mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
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:
committed by
Alexandre Julliard
parent
5ad94644ec
commit
3d22df25fe
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user