tests: Add more tests for broadcasts in function call args.

This commit is contained in:
Francisco Casas 2023-01-23 18:27:26 -03:00 committed by Alexandre Julliard
parent 2a9b9f7530
commit 1b951c87f6
Notes: Alexandre Julliard 2023-02-20 22:45:40 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/99

View File

@ -55,6 +55,18 @@ float4 main() : SV_TARGET
}
[pixel shader fail]
float4 fun(float f[7])
{
return f[1];
}
float4 main() : SV_TARGET
{
return fun(32);
}
[pixel shader fail]
struct apple
{
@ -68,3 +80,19 @@ float4 PSMain() : SV_TARGET
a1 = (struct apple)1;
return a1.foo;
}
[pixel shader todo]
float4 fun(float3 f)
{
return f.xyxy;
}
float4 main() : SV_TARGET
{
return fun(33);
}
[test]
todo draw quad
todo probe all rgba (33.0, 33.0, 33.0, 33.0)