mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-24 11:50:06 +00:00
39ffdaf2ab
Also add missing NonUniformEXT decoration on OpImageTexelPointer.
11 lines
358 B
GLSL
11 lines
358 B
GLSL
#version 450
|
|
#extension GL_EXT_nonuniform_qualifier : require
|
|
layout(set = 0, binding = 0) uniform texture2D uTex[];
|
|
layout(set = 1, binding = 0) uniform sampler uSamp;
|
|
layout(location = 0) flat in int Index;
|
|
layout(location = 0) out vec4 FragColor;
|
|
void main()
|
|
{
|
|
FragColor = texture(nonuniformEXT(sampler2D(uTex[Index], uSamp)), vec2(0.5));
|
|
}
|