• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 450
2
3layout(binding=1) uniform sampler2D s2D;
4
5int a1[];  // max size from link1
6int a2[];  // max size from link2
7int b[];
8int c[7];
9int i;
10
11layout (binding = 0) buffer bnameRuntime  { float r[]; };
12layout (binding = 1) buffer bnameImplicit { float m[4]; };
13
14vec4 getColor()
15{
16    a1[2] = 1;
17    a2[9] = 1;
18    b[2] = 1;
19    c[3] = 1;
20    c[i] = 1;
21
22    return texture(s2D, vec2(0.5));
23}
24