blob: f66c25e973801d7541dc3ac61703555ce2283551 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//TEST:CROSS_COMPILE: -profile ps_5_0 -entry main -target spirv-assembly
// Ensure that we add the `GL_EXT_nonuniform_qualifier` extension for any code that uses unbounded-size arrays of resources.
Texture2D t[];
SamplerState s;
cbuffer C
{
float2 uv;
uint index;
}
float4 main() : SV_Target
{
return t[index].Sample(s, uv);
}
|