mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-10 04:20:06 +00:00
53fb465729
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@20806 e7fa87d3-cd2b-0410-9028-fcbf551c1848
23 lines
451 B
GLSL
23 lines
451 B
GLSL
#version 330
|
|
|
|
in vec4 inVar;
|
|
out vec4 outVar;
|
|
|
|
const int constInt = 3;
|
|
|
|
uniform int uniformInt;
|
|
|
|
void main()
|
|
{
|
|
const int a1 = 2; // okay
|
|
const int a2 = constInt; // okay
|
|
const int a3 = uniformInt; // error
|
|
|
|
vec4 c[constInt]; // okay
|
|
vec4 d[uniformInt]; // error
|
|
vec4 e[constInt + uniformInt]; // error
|
|
vec4 f[uniformInt + constInt]; // error
|
|
|
|
vec4 g[int(sin(0.3)) + 1]; // okay
|
|
}
|