John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 1 | #version 400
|
| 2 |
|
| 3 | layout(input_attachment_index = 1) uniform subpassInput sub;
|
| 4 | layout(input_attachment_index = 2) uniform subpassInputMS subMS;
|
| 5 | layout(input_attachment_index = 3) uniform isubpassInput isub;
|
| 6 | layout(input_attachment_index = 4) uniform isubpassInputMS isubMS;
|
| 7 | layout(input_attachment_index = 5) uniform usubpassInput usub;
|
| 8 | layout(input_attachment_index = 6) uniform usubpassInputMS usubMS;
|
| 9 |
|
| 10 | out vec4 color;
|
| 11 | out ivec4 icolor;
|
| 12 | out uvec4 ucolor;
|
| 13 |
|
| 14 | void foo(isubpassInputMS sb)
|
| 15 | {
|
| 16 | icolor += subpassLoad(sb, 3);
|
| 17 | }
|
| 18 |
|
| 19 | void 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 | }
|