vkd3d/tests/hlsl/ffp-point-size.shader_test

65 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2024-10-03 14:23:04 -07:00
[require]
point-size
[input layout]
0 r32g32-float position
[vb 0]
-0.5 0
0.5 0
[vertex shader]
float4 main(float4 pos : position) : sv_position
{
return pos;
}
[pixel shader]
float4 main() : sv_target
{
return float4(0, 1, 0, 1);
}
[test]
2024-10-03 15:55:33 -07:00
clear rtv 0 0 0 0 0
point-size 40.0 1.0 64.0
draw point list 2
probe (139, 240) rgba (0, 0, 0, 0)
probe (141, 240) rgba (0, 1, 0, 1)
probe (179, 240) rgba (0, 1, 0, 1)
probe (181, 240) rgba (0, 0, 0, 0)
probe (459, 240) rgba (0, 0, 0, 0)
probe (461, 240) rgba (0, 1, 0, 1)
probe (499, 240) rgba (0, 1, 0, 1)
probe (501, 240) rgba (0, 0, 0, 0)
clear rtv 0 0 0 0 0
point-size 40.0 1.0 20.0
draw point list 2
probe (149, 240) rgba (0, 0, 0, 0)
probe (151, 240) rgba (0, 1, 0, 1)
probe (169, 240) rgba (0, 1, 0, 1)
probe (171, 240) rgba (0, 0, 0, 0)
probe (469, 240) rgba (0, 0, 0, 0)
probe (471, 240) rgba (0, 1, 0, 1)
probe (489, 240) rgba (0, 1, 0, 1)
probe (491, 240) rgba (0, 0, 0, 0)
clear rtv 0 0 0 0 0
point-size 20.0 40.0 64.0
2024-10-03 14:23:04 -07:00
draw point list 2
probe (139, 240) rgba (0, 0, 0, 0)
probe (141, 240) rgba (0, 1, 0, 1)
probe (179, 240) rgba (0, 1, 0, 1)
probe (181, 240) rgba (0, 0, 0, 0)
probe (459, 240) rgba (0, 0, 0, 0)
probe (461, 240) rgba (0, 1, 0, 1)
probe (499, 240) rgba (0, 1, 0, 1)
probe (501, 240) rgba (0, 0, 0, 0)