3136e34215
--msl-decoration-binding would end up overriding the input attachment index to binding which is very unexpected and broken.
13 lines
346 B
GLSL
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));
|
|
}
|