vkd3d-shader: Create a separate variable for output varyings.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura
2021-03-28 21:46:59 +02:00
committed by Alexandre Julliard
parent 5ad94644ec
commit 3d22df25fe
2 changed files with 97 additions and 2 deletions

View File

@@ -146,3 +146,16 @@ float4 main(struct input i) : sv_target
{
return i.a;
}
[pixel shader fail]
struct output
{
float4 t : sv_target;
int a;
};
void main(out struct output o)
{
o.t = float4(0, 0, 0, 0);
o.a = 0;
}