mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Add a test for array size expressions using static constants.
This commit is contained in:
parent
99314b6340
commit
38c89442ac
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
@ -38,3 +38,16 @@ float4 main() : SV_TARGET
|
||||
[test]
|
||||
draw quad
|
||||
probe all rgba (61, 62, 63, 64)
|
||||
|
||||
[pixel shader todo]
|
||||
static const int size = 8;
|
||||
static const float array[size] = {1, 2, 3, 4, 5, 6, 7, 8};
|
||||
|
||||
float4 main() : sv_target
|
||||
{
|
||||
return float4(array[1], array[2], array[5], array[0]);
|
||||
}
|
||||
|
||||
[test]
|
||||
todo draw quad
|
||||
todo probe all rgba (2, 3, 6, 1)
|
||||
|
Loading…
Reference in New Issue
Block a user