• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#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}
30