mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Add a test for uniform array indexing.
This commit is contained in:
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
@ -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user