mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Add some tests for state value assignments.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
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
@ -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 \
|
||||
|
51
tests/hlsl/effect-assignments-fx_5.shader_test
Normal file
51
tests/hlsl/effect-assignments-fx_5.shader_test
Normal 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]);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user