SPIRV-Cross/shaders-msl-no-opt/frag/subpass-input.decoration-binding.ios.framebuffer-fetch.msl2.argument.frag
Hans-Kristian Arntzen 3136e34215 MSL: Always use input_attachment_index for framebuffer fetch binding.
--msl-decoration-binding would end up overriding the input attachment
index to binding which is very unexpected and broken.
2021-01-08 10:17:42 +01:00

13 lines
346 B
GLSL

#version 450
layout(set = 0, binding = 10, input_attachment_index = 1) uniform subpassInput uSub;
layout(location = 0) out vec4 FragColor;
layout(set = 0, binding = 9) uniform texture2D uTex;
layout(set = 0, binding = 8) uniform sampler uSampler;
void main()
{
FragColor = subpassLoad(uSub) + texture(sampler2D(uTex, uSampler), vec2(0.5));
}