mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests/shader_runner: Test the "earlydepthstencil" attribute.
This commit is contained in:
parent
0c621f9e4e
commit
fe8a2f820b
Notes:
Henri Verbeet
2024-09-12 18:57:32 +02:00
Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1063
@ -100,6 +100,7 @@ vkd3d_shader_tests = \
|
|||||||
tests/hlsl/distance.shader_test \
|
tests/hlsl/distance.shader_test \
|
||||||
tests/hlsl/dot.shader_test \
|
tests/hlsl/dot.shader_test \
|
||||||
tests/hlsl/duplicate-modifiers.shader_test \
|
tests/hlsl/duplicate-modifiers.shader_test \
|
||||||
|
tests/hlsl/early-depth-stencil.shader_test \
|
||||||
tests/hlsl/effect-compile.shader_test \
|
tests/hlsl/effect-compile.shader_test \
|
||||||
tests/hlsl/effect-pass-states-fx_5.shader_test \
|
tests/hlsl/effect-pass-states-fx_5.shader_test \
|
||||||
tests/hlsl/effect-shader-objects-fx_2.shader_test \
|
tests/hlsl/effect-shader-objects-fx_2.shader_test \
|
||||||
|
31
tests/hlsl/early-depth-stencil.shader_test
Normal file
31
tests/hlsl/early-depth-stencil.shader_test
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
[require]
|
||||||
|
shader model >= 5.0
|
||||||
|
|
||||||
|
[rtv 0]
|
||||||
|
size (2d, 640, 480)
|
||||||
|
|
||||||
|
[uav 1]
|
||||||
|
format r32-float
|
||||||
|
size (buffer, 1)
|
||||||
|
0.0
|
||||||
|
|
||||||
|
[dsv]
|
||||||
|
size (2d, 640, 480)
|
||||||
|
|
||||||
|
[pixel shader]
|
||||||
|
RWBuffer<float> u : register(u1);
|
||||||
|
[earlydepthstencil]
|
||||||
|
float4 main() : sv_target
|
||||||
|
{
|
||||||
|
u[0] = 1.0;
|
||||||
|
return float4(1, 1, 1, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
[test]
|
||||||
|
depth greater equal
|
||||||
|
|
||||||
|
clear rtv 0 0.0 0.0 0.0 0.0
|
||||||
|
clear dsv 0.5
|
||||||
|
todo(glsl) draw quad
|
||||||
|
probe (0, 0) rgba(0, 0, 0, 0)
|
||||||
|
todo(sm<6) probe uav 1 (0) r(0.0)
|
Loading…
Reference in New Issue
Block a user