tests: Test multiple calls to the same function in initializers.

This commit is contained in:
Francisco Casas 2023-02-14 21:00:17 -03:00 committed by Alexandre Julliard
parent 0ceecd1225
commit 9dd99a084d
Notes: Alexandre Julliard 2023-04-13 23:20:40 +02:00
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Francisco Casas (@fcasas)
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/124

View File

@ -261,3 +261,37 @@ float4 main() : sv_target
func(true);
return 0;
}
[pixel shader]
float func(float a)
{
return a + 1;
}
float4 main() : sv_target
{
return float4(func(1.0), func(2.0), func(5.0), func(6.0));
}
[test]
draw quad
todo probe all rgba (2.0, 3.0, 6.0, 7.0)
[pixel shader]
float func(float a)
{
return a + 1;
}
float4 main() : sv_target
{
float4 a = {func(1.0), func(2.0), func(5.0), func(6.0)};
return a;
}
[test]
draw quad
todo probe all rgba (2.0, 3.0, 6.0, 7.0)