tests: Test proper initialization of static structs to zero.

This commit is contained in:
Giovanni Mascellani 2022-12-08 14:52:11 -03:00 committed by Alexandre Julliard
parent 5cfc8d378f
commit 207643b8e8
Notes: Alexandre Julliard 2023-01-19 22:45:10 +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/54

View File

@ -23,3 +23,33 @@ float4 main() : sv_target
{
return 1 / i;
}
[pixel shader]
static struct
{
float4 x;
float4 y;
} x;
float4 main() : sv_target
{
return 0;
}
[pixel shader]
static struct
{
float4 x;
float3 y;
} x;
float4 main() : sv_target
{
return float4(1, 2, 3, 4) + x.x;
}
[test]
draw quad
probe all rgba (1.0, 2.0, 3.0, 4.0)