mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
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:
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
23
tests/hlsl/unbounded-array-5.1.shader_test
Normal file
23
tests/hlsl/unbounded-array-5.1.shader_test
Normal 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;}
|
||||
Reference in New Issue
Block a user