6 const int constInt = 3;
8 uniform int uniformInt;
12 const int a1 = 2; // okay
13 const int a2 = constInt; // okay
14 const int a3 = uniformInt; // error
16 vec4 c[constInt]; // okay
17 vec4 d[uniformInt]; // error
18 vec4 e[constInt + uniformInt]; // error
19 vec4 f[uniformInt + constInt]; // error
21 vec4 g[int(sin(0.3)) + 1]; // okay
27 } s = S(vec3(3.0), ivec2(3, constInt + uniformInt)); // ERROR, non-const y componenent
33 } s2 = S2(vec3(3.0), ivec2(3, constInt), mat2x4(1.0, 2.0, 3.0, inVar.x, 5.0, 6.0, 7.0, 8.0)); // ERROR, non-constant matrix
35 const float f = 3; // okay, type conversion