Skip to content
Snippets Groups Projects
Commit 3252b185 authored by John Kessenich's avatar John Kessenich
Browse files

Minor updates to tests.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@20758 e7fa87d3-cd2b-0410-9028-fcbf551c1848
parent ca8899c9
No related branches found
No related tags found
No related merge requests found
......@@ -15,4 +15,15 @@ void main()
{
centTexCoord = attv2;
gl_Position = attv4;
vec3[12] a;
vec4[a.length()] b;
gl_Position = b[b.length()-1];
float f[];
int a = f.length();
}
uniform float initted = 3.4;
const float concall = sin(0.3);
#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[sin(3.2)]; // okay
}
int main(int foo)
{
return 1;
}
......@@ -25,3 +25,5 @@ comment.frag
300.frag
330.frag
330comp.frag
constErrors.frag
errors.frag
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment