| 330 | }; |
| 331 | |
| 332 | static 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 |
| 355 | static bool check_aspect_ratio(float width_to_check, float height_to_check, float width, float height) |
| 356 | { |
no outgoing calls
no test coverage detected