blob: 42411d99cc9dedaaf409b6e1d621b5d8de67a254 [file] [log] [blame]
#version 400
layout(input_attachment_index = 1) uniform subpassInput sub;
layout(input_attachment_index = 2) uniform subpassInputMS subMS;
layout(input_attachment_index = 3) uniform isubpassInput isub;
layout(input_attachment_index = 4) uniform isubpassInputMS isubMS;
layout(input_attachment_index = 5) uniform usubpassInput usub;
layout(input_attachment_index = 6) uniform usubpassInputMS usubMS;
out vec4 color;
out ivec4 icolor;
out uvec4 ucolor;
void foo(isubpassInputMS sb)
{
icolor += subpassLoad(sb, 3);
}
void main()
{
color = subpassLoad(sub);
color += subpassLoad(subMS, 3);
icolor = subpassLoad(isub);
icolor += subpassLoad(isubMS, 3);
ucolor = subpassLoad(usub);
ucolor += subpassLoad(usubMS, 3);
foo(isubMS);
}