mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Test complex array size expression.
This commit is contained in:
parent
0d252f894a
commit
dff2f746bc
Notes:
Alexandre Julliard
2024-05-15 23:03:23 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Elizabeth Figura (@zfigura) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/839
@ -66,3 +66,27 @@ float4 main() : sv_target
|
||||
[test]
|
||||
todo draw quad
|
||||
probe all rgba (2, 3, 6, 1)
|
||||
|
||||
|
||||
[pixel shader fail(sm>=6) todo]
|
||||
static const struct
|
||||
{
|
||||
float f;
|
||||
float2x3 m[2];
|
||||
} a = {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1};
|
||||
|
||||
float arr[a.m[1]._13_22_21.zxy.z]; // Fails on SM6 because size is float.
|
||||
|
||||
float4 main() : sv_target
|
||||
{
|
||||
return arr[4];
|
||||
}
|
||||
|
||||
[test]
|
||||
uniform 0 float 0.0
|
||||
uniform 4 float 0.0
|
||||
uniform 8 float 0.0
|
||||
uniform 12 float 0.0
|
||||
uniform 16 float 42.0
|
||||
todo draw quad
|
||||
probe all rgba (42, 42, 42, 42)
|
||||
|
Loading…
Reference in New Issue
Block a user