blob: f0e5a7036ffd433e1b9d197832ace9a992a93359 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
//TEST:SIMPLE(filecheck=CHECK): -profile spirv_1_5+fragment -entry main -target spirv-assembly
//TEST:SIMPLE(filecheck=GLSL): -profile spirv_1_5+fragment -entry main -target glsl
// Ensure that we add the `GL_EXT_nonuniform_qualifier` extension for any code that uses unbounded-size arrays of resources.
// CHECK: OpCapability RuntimeDescriptorArray
// GLSL: #extension GL_EXT_nonuniform_qualifier : require
Texture2D t[];
SamplerState s;
cbuffer C
{
float2 uv;
uint index;
}
float4 main() : SV_Target
{
return t[index].Sample(s, uv);
}
|