tests: Add a test for uniform array indexing.

This commit is contained in:
Nikolay Sivov 2024-10-03 19:55:06 +02:00 committed by Henri Verbeet
parent d1c2ae3f0e
commit 565698711b
Notes: Henri Verbeet 2024-10-07 17:52:44 +02:00
Approved-by: Francisco Casas (@fcasas)
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1144

View File

@ -336,3 +336,14 @@ todo(glsl) draw quad
if(sm<4) probe (0,0) rgba (1.0, 1.0, 1.0, 1.0)
if(sm>=4 & sm<6) todo probe (0,0) rgba (4.0, 4.0, 4.0, 4.0)
if(sm>=6) probe (0,0) rgba (4.0, 3.0, 2.0, 1.0)
[require]
shader model >= 4.0
[pixel shader]
float4 f[2];
float4 main(uint index : INDEX) : sv_target
{
return f[index];
}