mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
90b4cbc1f2
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
29 lines
609 B
Plaintext
29 lines
609 B
Plaintext
[vertex shader]
|
|
void main(out float tex : texcoord, inout float4 pos : sv_position)
|
|
{
|
|
tex = pos.x;
|
|
}
|
|
|
|
[pixel shader]
|
|
float4 main(float tex : texcoord) : sv_target
|
|
{
|
|
int i;
|
|
float x = 0.0;
|
|
for (i = 0; i < 10; i++)
|
|
{
|
|
x += i;
|
|
if (tex > 0.5 && i == 5)
|
|
break;
|
|
if (tex > -0.5 && i >= 7)
|
|
continue;
|
|
x -= 1;
|
|
}
|
|
return float4(i, x, 0.0, 0.0);
|
|
}
|
|
|
|
[test]
|
|
draw quad
|
|
probe rect rgba ( 0, 0, 159, 480) (10.0, 35.0, 0.0, 0.0)
|
|
probe rect rgba (161, 0, 479, 480) (10.0, 38.0, 0.0, 0.0)
|
|
probe rect rgba (481, 0, 640, 480) ( 5.0, 10.0, 0.0, 0.0)
|