tests: Add some tests for state value assignments.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov 2024-09-22 10:12:05 +02:00 committed by Henri Verbeet
parent 3b1760134f
commit 849d4b3b2b
Notes: Henri Verbeet 2024-10-02 22:37:09 +02:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1101
2 changed files with 52 additions and 0 deletions

View File

@ -104,6 +104,7 @@ vkd3d_shader_tests = \
tests/hlsl/early-depth-stencil.shader_test \
tests/hlsl/effect-annotations-fx_2.shader_test \
tests/hlsl/effect-annotations-fx_4.shader_test \
tests/hlsl/effect-assignments-fx_5.shader_test \
tests/hlsl/effect-compile.shader_test \
tests/hlsl/effect-initial-values-fx_2.shader_test \
tests/hlsl/effect-initial-values-fx_4.shader_test \

View File

@ -0,0 +1,51 @@
[require]
shader model >= 5.0
shader model < 6.0
[pixel shader]
float4 main() : sv_target
{
return 0;
}
uint stencil_refs[2];
technique11
{
pass
{
SetDepthStencilState(NULL, stencil_refs[10]);
}
}
[effect todo]
uint stencil_ref;
uint stencil_refs[2];
uint index;
technique11
{
pass
{
SetDepthStencilState(NULL, stencil_ref);
}
pass
{
SetDepthStencilState(NULL, stencil_refs[1]);
}
pass
{
SetDepthStencilState(NULL, stencil_refs[index]);
}
}
[effect fail todo]
uint stencil_refs[2];
technique11
{
pass
{
SetDepthStencilState(NULL, stencil_refs[10]);
}
}