vkd3d-shader/hlsl: Handle static constants in array size expressions.

This commit is contained in:
Nikolay Sivov
2023-06-09 15:39:38 +02:00
committed by Alexandre Julliard
parent 38c89442ac
commit d856be0519
Notes: Alexandre Julliard 2023-06-12 23:10:20 +02:00
Approved-by: Zebediah Figura (@zfigura)
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/228
4 changed files with 13 additions and 7 deletions

View File

@ -39,7 +39,7 @@ float4 main() : SV_TARGET
draw quad
probe all rgba (61, 62, 63, 64)
[pixel shader todo]
[pixel shader]
static const int size = 8;
static const float array[size] = {1, 2, 3, 4, 5, 6, 7, 8};
@ -49,5 +49,5 @@ float4 main() : sv_target
}
[test]
todo draw quad
todo probe all rgba (2, 3, 6, 1)
draw quad
probe all rgba (2, 3, 6, 1)