vkd3d/tests/hlsl/discard.shader_test

17 lines
305 B
Plaintext

[pixel shader todo(sm<4)]
uniform float4 x;
float4 main() : sv_target
{
if (x.x == 9.0f) discard;
return x;
}
[test]
uniform 0 float4 1 2 3 4
todo(sm<4 | sm>=6 | glsl) draw quad
probe all rgba (1, 2, 3, 4)
uniform 0 float4 9 8 7 6
todo(sm<4 | sm>=6 | glsl) draw quad
probe all rgba (1, 2, 3, 4)