vkd3d/tests/hlsl/clip-planes.shader_test

44 lines
935 B
Plaintext
Raw Permalink Normal View History

2024-07-16 17:49:30 -07:00
[require]
clip-planes
[pixel shader]
float4 main() : sv_target
{
return 1.0;
}
[test]
clear rtv 0 0 0 0 0
clip-plane 1 1.0 1.0 0.0 0.0
clip-plane 3 -1.0 1.0 0.0 0.0
draw quad
probe (320, 120) rgba (1, 1, 1, 1)
probe (320, 360) rgba (0, 0, 0, 0)
probe (160, 240) rgba (0, 0, 0, 0)
probe (480, 240) rgba (0, 0, 0, 0)
clear rtv 0 0 0 0 0
clip-plane 0 1.0 0.0 0.0 0.5
clip-plane 1 -1.0 0.0 0.0 0.5
clip-plane 2 0.0 1.0 0.0 0.5
clip-plane 3 0.0 -1.0 0.0 0.5
clip-plane 5 1.0 1.0 0.0 0.2
draw quad
probe (150, 130) rgba (0, 0, 0, 0)
probe (170, 110) rgba (0, 0, 0, 0)
probe (170, 130) rgba (1, 1, 1, 1)
probe (490, 130) rgba (0, 0, 0, 0)
probe (470, 110) rgba (0, 0, 0, 0)
probe (470, 130) rgba (1, 1, 1, 1)
probe (150, 350) rgba (0, 0, 0, 0)
probe (170, 370) rgba (0, 0, 0, 0)
probe (170, 350) rgba (0, 0, 0, 0)
probe (490, 350) rgba (0, 0, 0, 0)
probe (470, 370) rgba (0, 0, 0, 0)
probe (470, 350) rgba (1, 1, 1, 1)