Still need to handle arrays and built-in redeclarations, and many more rules, but this puts the basics in place. git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23225 e7fa87d3-cd2b-0410-9028-fcbf551c1848
25 lines
241 B
GLSL
25 lines
241 B
GLSL
#version 130
|
|
|
|
uniform vec4 uv4;
|
|
uniform vec3 glass;
|
|
|
|
const int ci = 8;
|
|
|
|
vec4 a = ci * uv4;
|
|
|
|
in vec3 iv3;
|
|
in vec4 cup;
|
|
|
|
void main()
|
|
{
|
|
}
|
|
|
|
vec4 b = ci * a;
|
|
|
|
ivec2 foo(mat2 m)
|
|
{
|
|
return ivec2(m[0]);
|
|
}
|
|
|
|
vec4 c = b * b;
|