mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
44 lines
935 B
Plaintext
44 lines
935 B
Plaintext
[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)
|