Welcome to mirror list, hosted at ThFree Co, Russian Federation.

nonuniform-constructor.msl2.frag « frag « shaders-msl-no-opt - github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4e0460afbbbf3583ff73696c084606b540006965 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#version 450
#extension GL_EXT_nonuniform_qualifier : require

layout(location = 0) out vec4 FragColor;
layout(location = 0) in vec2 vUV;
layout(location = 1) flat in int vIndex;

layout(set = 0, binding = 0) uniform texture2D uTex[10];
layout(set = 1, binding = 0) uniform sampler Immut;

void main()
{
	FragColor = texture(nonuniformEXT(sampler2D(uTex[vIndex], Immut)), vUV);
}