mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Test proper initialization of static structs to zero.
This commit is contained in:
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
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user