1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
|
bool success;
bool done = false;
int i;
int i, j = 42;
int j = 1;
uint k = 3u;
float x = 1.0;
float a = 1.5, b;
vec2 texcoord1, texcoord2;
vec3 position;
vec4 myRGBA;
ivec2 textureLookup;
bvec3 less;
mat2 mat2D;
mat3 optMatrix;
mat4 view;
mat3x2 m;
struct light
{
float intensity;
vec3 position;
} lightVar;
light lightVar3;
float frequencies[3];
uniform vec4 lightPosition[4];
light lights[];
const int numLights = 2;
light lights[numLights];
int a[5];
const float coef = 2.75;
int f ();
float[5] foo();
void foo (float[5]);
void foo (float a[5]);
const vec3 zAxis = vec3 (0.0, 0.0, 1.0);
in vec4 position;
in vec3 normal;
in vec2 texCoord[4];
in float foo[];
centroid out vec2 TexCoord;
invariant centroid out vec4 Color;
invariant flat centroid out vec4 Color;
noperspective out float temperature;
flat out vec3 myColor;
noperspective centroid out vec2 myTexCoord;
out vec4 FragmentColor;
out uint Luminosity;
uniform Transform
{
mat4 ModelViewMatrix;
mat4 ModelViewProjectionMatrix;
uniform mat3 NormalMatrix;
float Deformation;
};
in Material
{
smooth in vec4 Color1;
smooth vec4 Color2;
vec2 TexCoord;
};
out Vertex
{
vec4 Position;
vec2 Texture;
} Coords;
uniform Transform {
mat4 ModelViewMatrix;
mat4 ModelViewProjectionMatrix;
float Deformation;
} transforms[4];
layout (triangles) in;
layout (origin_upper_left) in vec4 gl_FragCoord;
layout (pixel_center_integer) in vec4 gl_FragCoord;
layout (origin_upper_left, pixel_center_integer) in vec4 gl_FragCoord;
layout (triangle_strip, max_vertices = 60) out;
layout (triangle_strip) out;
layout (max_vertices = 60) out;
layout (shared, column_major) uniform;
layout (std140) uniform Transform {
mat4 M1;
layout (column_major) mat4 M2;
mat3 N1;
};
flat out vec4 gl_FrontColor;
lowp float color;
out mediump vec2 P;
lowp ivec2 foo(lowp mat3);
highp mat4 m;
precision highp float;
precision highp int;
precision mediump int;
invariant gl_Position;
out vec3 Color;
invariant Color;
invariant centroid out vec3 Color;
vec4 color = vec4(0.0, 1.0, 0.0, 1.0);
void main ()
{
}
int i = 1 - 5 * 4 + 3;
int i = 1 - (5 * 4) + 3;
int i = (1 - 5) * 4 + 3;
int i = (1 - 5) * (4 + 3);
bool b = 1 < 2;
void main ()
{
if (intensity < 0.0) /* a comment */
return;
if (a & b)
return;
if (a | b)
return;
if (a && b)
return;
if (a || b)
return;
}
layout (std140) uniform PatternBlock
{ float pattern[100];
float arr[];
};
float x = a / b / c;
float x = (a / b) / c;
float x = a / (b / c);
|