SPIRV-Cross-Vulnerable/shaders-msl-no-opt/frag/force-active-resources.msl2.argument..force-active.discrete.frag
Hans-Kristian Arntzen c3bd136df1 MSL: Add support for force-activating IAB resources.
Important for ABI compatibility on MSL in certain cases.
2020-01-16 11:12:06 +01:00

16 lines
440 B
GLSL

#version 450
layout(location = 0) in vec2 vUV;
layout(location = 0) out vec4 FragColor;
layout(set = 0, binding = 0) uniform sampler2D uTexture1;
layout(set = 0, binding = 1) uniform sampler2D uTexture2;
layout(set = 2, binding = 0) uniform sampler2D uTextureDiscrete1;
layout(set = 2, binding = 1) uniform sampler2D uTextureDiscrete2;
void main()
{
FragColor = texture(uTexture2, vUV);
FragColor += texture(uTextureDiscrete2, vUV);
}