mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-28 05:30:33 +00:00
30 lines
791 B
GLSL
30 lines
791 B
GLSL
#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);
|
|
}
|