tests/hlsl: Test clip/cull distance semantics as arrays.

Arrays are allowed for clip/cull distance semantics. Their maximum size
is 2 since that's the maximum amount of registers allowed for clip/cull
distances.

Indirect addressing of these arrays is allowed on shader model 6.

These tests are introduced after the transformation of clip/cull
input/outputs into arrays in vsir since otherwise they segfault.
This commit is contained in:
Francisco Casas
2025-11-03 10:55:07 -03:00
committed by Henri Verbeet
parent 60fc072877
commit 41c593ef46
Notes: Henri Verbeet 2025-11-25 20:40:54 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1816
3 changed files with 92 additions and 1 deletions

View File

@@ -89,7 +89,8 @@ vkd3d_shader_tests = \
tests/hlsl/ceil.shader_test \
tests/hlsl/cf-cond-types.shader_test \
tests/hlsl/clamp.shader_test \
tests/hlsl/clip-cull-distance.shader_test \
tests/hlsl/clip-cull-distance-1.shader_test \
tests/hlsl/clip-cull-distance-2.shader_test \
tests/hlsl/clip-planes.shader_test \
tests/hlsl/clip.shader_test \
tests/hlsl/combined-samplers.shader_test \