mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
3522d0f3a7
Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
23 lines
460 B
Plaintext
23 lines
460 B
Plaintext
[pixel shader]
|
|
float4 main(float4 pos : SV_POSITION) : SV_TARGET
|
|
{
|
|
int i;
|
|
float x = 0.0;
|
|
for (i = 0; i < 10; i++)
|
|
{
|
|
x += i;
|
|
if (pos.x == 1.5 && i == 5)
|
|
break;
|
|
if (pos.x == 2.5 && i >= 7)
|
|
continue;
|
|
x -= 1;
|
|
}
|
|
return float4(i, x, 0.0, 0.0);
|
|
}
|
|
|
|
[test]
|
|
draw quad
|
|
probe rgba (0, 0) (10.0, 35.0, 0.0, 0.0)
|
|
probe rgba (1, 0) (5.0, 10.0, 0.0, 0.0)
|
|
probe rgba (2, 0) (10.0, 38.0, 0.0, 0.0)
|