vkd3d/tests/hlsl-discard.shader_test
Nikolay Sivov 4fe4784e8a tests: Add a simple test for "discard".
Signed-off-by: Ethan Lee <flibitijibibo@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-04-26 22:46:52 +02:00

17 lines
242 B
Plaintext

[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)