MCPcopy Create free account
hub / github.com/crosire/reshade / check_depth_format

Function check_depth_format

examples/09-depth/generic_depth_addon.cpp:332–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330};
331
332static bool check_depth_format(format format)
333{
334 switch (s_format_filtering)
335 {
336 case 1:
337 return format == format::d16_unorm || format == format::r16_typeless;
338 case 2:
339 return format == format::d16_unorm_s8_uint;
340 case 3:
341 return format == format::d24_unorm_x8_uint;
342 case 4:
343 return format == format::d24_unorm_s8_uint || format == format::r24_g8_typeless;
344 case 5:
345 return format == format::d32_float || format == format::r32_float || format == format::r32_typeless;
346 case 6:
347 return format == format::d32_float_s8_uint || format == format::r32_g8_typeless;
348 case 7:
349 return format == format::intz;
350 default:
351 return false;
352 }
353}
354// Checks whether the aspect ratio of the two sets of dimensions is similar or not
355static bool check_aspect_ratio(float width_to_check, float height_to_check, float width, float height)
356{

Callers 2

on_begin_render_effectsFunction · 0.85
draw_settings_overlayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected