mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
tests: Add a simple test for "discard".
Signed-off-by: Ethan Lee <flibitijibibo@gmail.com> Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
e541e71532
commit
4fe4784e8a
Notes:
Alexandre Julliard
2023-04-26 22:59:12 +02:00
Approved-by: Zebediah Figura (@zfigura) 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/136
@ -76,6 +76,7 @@ vkd3d_shader_tests = \
|
|||||||
tests/hlsl-clamp.shader_test \
|
tests/hlsl-clamp.shader_test \
|
||||||
tests/hlsl-comma.shader_test \
|
tests/hlsl-comma.shader_test \
|
||||||
tests/hlsl-cross.shader_test \
|
tests/hlsl-cross.shader_test \
|
||||||
|
tests/hlsl-discard.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-for.shader_test \
|
tests/hlsl-for.shader_test \
|
||||||
|
16
tests/hlsl-discard.shader_test
Normal file
16
tests/hlsl-discard.shader_test
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
[pixel shader]
|
||||||
|
uniform float4 x;
|
||||||
|
|
||||||
|
float4 main() : sv_target
|
||||||
|
{
|
||||||
|
if (x.x == 9.0f) discard;
|
||||||
|
return x;
|
||||||
|
}
|
||||||
|
|
||||||
|
[test]
|
||||||
|
uniform 0 float4 1 2 3 4
|
||||||
|
draw quad
|
||||||
|
probe all rgba (1, 2, 3, 4)
|
||||||
|
uniform 0 float4 9 8 7 6
|
||||||
|
draw quad
|
||||||
|
probe all rgba (1, 2, 3, 4)
|
Loading…
x
Reference in New Issue
Block a user