blob: 42411d99cc9dedaaf409b6e1d621b5d8de67a254 [file] [log] [blame]
John Kessenich6c292d32016-02-15 20:58:50 -07001#version 400
2
3layout(input_attachment_index = 1) uniform subpassInput sub;
4layout(input_attachment_index = 2) uniform subpassInputMS subMS;
5layout(input_attachment_index = 3) uniform isubpassInput isub;
6layout(input_attachment_index = 4) uniform isubpassInputMS isubMS;
7layout(input_attachment_index = 5) uniform usubpassInput usub;
8layout(input_attachment_index = 6) uniform usubpassInputMS usubMS;
9
10out vec4 color;
11out ivec4 icolor;
12out uvec4 ucolor;
13
14void foo(isubpassInputMS sb)
15{
16 icolor += subpassLoad(sb, 3);
17}
18
19void main()
20{
21 color = subpassLoad(sub);
22 color += subpassLoad(subMS, 3);
23 icolor = subpassLoad(isub);
24 icolor += subpassLoad(isubMS, 3);
25 ucolor = subpassLoad(usub);
26 ucolor += subpassLoad(usubMS, 3);
27
28 foo(isubMS);
29}