tests: Test HLSL unbounded array syntax.

Change the shader in test_unbounded_samplers() to also test a nested array.
Note that the changed shader compiles to the same bytecode.
This commit is contained in:
Zebediah Figura
2024-01-26 16:32:30 -06:00
committed by Alexandre Julliard
parent c5f507ac38
commit 083a58767a
Notes: Alexandre Julliard 2024-04-09 15:45:34 -05:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/757
4 changed files with 34 additions and 7 deletions

View File

@@ -0,0 +1,23 @@
[require]
shader model >= 5.1
options: unbounded-descriptor-arrays
[pixel shader fail]
SamplerState s[][];
float4 main() : sv_target
{
return 0;
}
[pixel shader fail]
SamplerState s[2][];
float4 main() : sv_target {return 0;}
[pixel shader fail]
float f[];
float4 main() : sv_target {return 0;}
[pixel shader fail todo]
STRING s[];
float4 main() : sv_target {return 0;}