Track what ins/outs/uniforms are used, so that errors like "declare after use" or "can't use both XXX and YYY" can be issued. So far, used this for invariant, gl_FragColor et. al., and gl_FragCoord use before redeclaration.

Also made all tests in testlist include linker tests.


git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@24156 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich 2013-11-20 21:12:43 +00:00
parent 23bcc02a20
commit 5134b9cf57
114 changed files with 835 additions and 24 deletions

View File

@ -11,4 +11,4 @@ void main()
vec4 c = gl_FragCoord;
}
layout(origin_upper_left, pixel_center_integer) in vec4 gl_FragCoord;
layout(origin_upper_left, pixel_center_integer) in vec4 gl_FragCoord; // ERROR, declared after use

View File

@ -11,6 +11,7 @@ void main()
gl_Position = iv4;
gl_PointSize = ps;
gl_ClipDistance[2] = iv4.x;
gl_ClipVertex = iv4;
}
float gl_ClipDistance[4];

View File

@ -7,8 +7,8 @@ varying vec4 varyingVar;
void main()
{
gl_FragColor = varyingVar;
gl_FragData[1] = inVar;
gl_FragColor = varyingVar; // link ERROR: user output was used
gl_FragData[1] = inVar; // link ERROR: user output was used
int buffer = 4;
}
@ -21,4 +21,5 @@ in gl_PerFragment {
void foo()
{
vec4 c = gl_Color;
outVar = inVar;
}

View File

@ -38,4 +38,4 @@ layout(location = 3) uniform vec3 uv3;
layout(location = 5) in vec4 gl_Color; // ERROR, layout
noperspective in float gl_ClipDistance[4]; // ERROR, can't change qualifier
layout(origin_upper_left, pixel_center_integer) in vec4 gl_FragCoord;
layout(origin_upper_left, pixel_center_integer) in vec4 gl_FragCoord; // ERROR, declared after use

View File

@ -1,3 +1,4 @@
100.frag
ERROR: 0:3: '{ } style initializers' : not supported with this profile: es
ERROR: 0:3: 'initializer' : not supported for this version or the enabled extensions
ERROR: 0:3: 'array initializer' : not supported for this version or the enabled extensions
@ -63,6 +64,7 @@ ERROR: 0:150: 'floating-point suffix' : not supported for this version or the en
ERROR: 0:152: '' : syntax error
ERROR: 56 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:3 Sequence
0:3 move second child to first child (3-element array of mediump int)
@ -280,3 +282,8 @@ ERROR: node is still EOpNull!
0:? 'f123' (mediump float)
0:? 'f124' (mediump float)
Linked fragment stage:

View File

@ -1,3 +1,5 @@
100Limits.vert
0:? Sequence
0:15 Function Definition: foo(f1; (void)
0:15 Function Parameters:
@ -439,3 +441,8 @@
0:? 2.000000
0:? 2.000000
Linked vertex stage:

View File

@ -1,3 +1,4 @@
100scope.vert
ERROR: 0:5: 'a' : redefinition
ERROR: 0:17: 'b' : redeclaration of existing name
ERROR: 0:19: 'f' : redefinition
@ -8,6 +9,7 @@ ERROR: 0:54: 'z' : undeclared identifier
ERROR: 0:54: 'z' : redefinition
ERROR: 8 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:3 Function Definition: f(i1;i1;i1; (highp int)
0:3 Function Parameters:
@ -111,3 +113,8 @@ ERROR: node is still EOpNull!
0:? 'b' (bool)
0:? 'tan' (highp float)
Linked vertex stage:

View File

@ -1,3 +1,4 @@
120.frag
ERROR: 0:9: 'in for stage inputs' : not supported for this version or the enabled extensions
ERROR: 0:10: 'out for stage outputs' : not supported for this version or the enabled extensions
ERROR: 0:54: '+' : wrong operand types: no operation '+' exists that takes a left-hand operand of type '2-component vector of float' and a right operand of type '3-component vector of float' (or there is no acceptable conversion)
@ -31,6 +32,7 @@ ERROR: 0:115: 'return' : void function cannot return a value
ERROR: 0:125: 'gl_TexCoord' : redeclaration of array with size
ERROR: 31 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:21 Function Definition: main( (void)
0:21 Function Parameters:
@ -317,3 +319,10 @@ ERROR: node is still EOpNull!
0:? 'a' (int)
0:? 'gl_TexCoord' (smooth in 6-element array of 4-component vector of float)
Linked fragment stage:
ERROR: Linking fragment stage: Recursion detected:
foo(f1; calling foo(f1;

View File

@ -1,3 +1,4 @@
120.vert
ERROR: 0:3: 'in for stage inputs' : not supported for this version or the enabled extensions
ERROR: 0:4: 'out for stage outputs' : not supported for this version or the enabled extensions
ERROR: 0:11: 'gl_Position' : cannot add storage, auxiliary, memory, interpolation, or precision qualifier to an existing variable
@ -44,6 +45,7 @@ ERROR: 0:111: 'overloadE' : no matching overloaded function found
ERROR: 0:117: 'overloadF' : no matching overloaded function found
ERROR: 44 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:15 Function Definition: main( (void)
0:15 Function Parameters:
@ -200,3 +202,8 @@ ERROR: node is still EOpNull!
0:? 'concall' (const float)
0:? 0.295520
Linked vertex stage:

View File

@ -1,3 +1,4 @@
130.frag
Warning, version 130 is not yet complete; most features are present, but a few are missing.
ERROR: 0:25: 'texture gather function' : not supported for this version or the enabled extensions
ERROR: 0:35: 'redeclaration' : cannot change the type of gl_Color
@ -9,6 +10,7 @@ ERROR: 0:63: '>' : wrong operand types: no operation '>' exists that takes a le
ERROR: 0:64: '>=' : wrong operand types: no operation '>=' exists that takes a left-hand operand of type 'const 2-component vector of uint' and a right operand of type 'const 2-component vector of uint' (or there is no acceptable conversion)
ERROR: 7 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:16 Function Definition: main( (void)
0:16 Function Parameters:
@ -105,3 +107,8 @@ ERROR: node is still EOpNull!
0:? 'gl_Color' (smooth in 4-component vector of float)
0:? 'gl_Color' (flat in 4-component vector of float)
Linked fragment stage:

View File

@ -1,8 +1,10 @@
140.frag
Warning, version 140 is not yet complete; most features are present, but a few are missing.
WARNING: 0:3: varying deprecated in version 130; may be removed in future release
ERROR: 0:17: '#error' : GL_ES is not set
ERROR: 1 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:10 Function Definition: main( (void)
0:10 Function Parameters:
@ -21,3 +23,8 @@ ERROR: node is still EOpNull!
0:? 'gl_ClipDistance' (smooth in 5-element array of float)
0:? 'gl_ClipDistance' (smooth in 5-element array of float)
Linked fragment stage:

View File

@ -1,8 +1,11 @@
150.frag
Warning, version 150 is not yet complete; some version-specific features are present, but many are missing.
ERROR: 0:4: 'redeclaration' : cannot redeclare with different qualification: gl_FragCoord
ERROR: 0:5: 'redeclaration' : cannot redeclare with different qualification: gl_FragCoord
ERROR: 0:6: 'layout qualifier' : can only apply origin_upper_left and pixel_center_origin to gl_FragCoord
ERROR: 3 compilation errors. No code generated.
ERROR: 0:14: 'gl_FragCoord' : cannot redeclare after use
ERROR: 4 compilation errors. No code generated.
gl_FragCoord pixel center is integer
gl_FragCoord origin is upper left
@ -19,3 +22,8 @@ ERROR: node is still EOpNull!
0:? 'gl_FragCoord' (gl_FragCoord 4-component vector of float)
0:? 'foo' (smooth in 4-component vector of float)
Linked fragment stage:

View File

@ -1,3 +1,4 @@
150.geom
Warning, version 150 is not yet complete; some version-specific features are present, but many are missing.
ERROR: 0:15: 'fromVertex' : block instance name redefinition
ERROR: 0:19: 'fromVertex' : redefinition
@ -29,6 +30,7 @@ ERROR: 0:88: 'invocations' : not supported for this version or the enabled exten
ERROR: 0:91: 'stream' : member cannot contradict block
ERROR: 28 compilation errors. No code generated.
invocations = 4
max_vertices = 127
input primitive = lines_adjancency
@ -139,3 +141,8 @@ ERROR: node is still EOpNull!
0:? '__anon__3' (layout(stream=3 ) out block{f15})
0:? '__anon__4' (layout(column_major shared ) uniform block{b15})
Linked geometry stage:

View File

@ -1,7 +1,9 @@
150.vert
Warning, version 150 is not yet complete; some version-specific features are present, but many are missing.
ERROR: 0:21: 'a' : cannot redeclare a user-block member array
ERROR: 0:22: 'a' : cannot redeclare a user-block member array
ERROR: 1 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:9 Function Definition: main( (void)
0:9 Function Parameters:
@ -30,6 +32,12 @@ ERROR: node is still EOpNull!
0:13 'iv4' (in 4-component vector of float)
0:13 Constant:
0:13 0 (const int)
0:14 move second child to first child (4-component vector of float)
0:14 gl_ClipVertex: direct index for structure (gl_ClipVertex 4-component vector of float)
0:14 '__anon__0' (out block{gl_Position,gl_PointSize,gl_ClipDistance,gl_ClipVertex,gl_FrontColor,gl_BackColor,gl_FrontSecondaryColor,gl_BackSecondaryColor,gl_TexCoord,gl_FogFragCoord})
0:14 Constant:
0:14 3 (const uint)
0:14 'iv4' (in 4-component vector of float)
0:? Linker Objects
0:? 'iv4' (in 4-component vector of float)
0:? 'ps' (uniform float)
@ -37,3 +45,9 @@ ERROR: node is still EOpNull!
0:? 'gl_VertexID' (gl_VertexId int)
0:? 'gl_InstanceID' (gl_InstanceId int)
Linked vertex stage:
ERROR: Linking vertex stage: Can only use one of gl_ClipDistance or gl_ClipVertex (gl_ClipDistance is preferred)

View File

@ -1,3 +1,4 @@
300.frag
ERROR: 0:30: 'noperspective' : Reserved word.
ERROR: 0:30: 'noperspective' : not supported with this profile: es
ERROR: 0:31: 'sampler2D' : sampler/image types can only be used in uniform variables or function parameters: bads
@ -28,6 +29,7 @@ ERROR: 0:126: 'imageBuffer' : Reserved word.
ERROR: 0:126: '' : syntax error
ERROR: 28 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:53 Function Definition: main( (void)
0:53 Function Parameters:
@ -289,3 +291,9 @@ ERROR: node is still EOpNull!
0:? 'st1' (uniform structure{i,s})
0:? 'st2' (uniform structure{i,s})
Linked fragment stage:
ERROR: Linking fragment stage: when more than one fragment shader output, all must have location qualifiers

View File

@ -1,3 +1,4 @@
300.vert
ERROR: 0:8: 'varying' : Reserved word.
ERROR: 0:8: 'varying' : no longer supported in es profile; removed in version 300
ERROR: 0:9: 'vertex input arrays' : not supported with this profile: es
@ -18,12 +19,14 @@ ERROR: 0:63: '' : array size required
ERROR: 0:65: '' : array size required
ERROR: 0:64: '' : array size required
ERROR: 0:67: '' : array size required
ERROR: 0:76: 'invariant' : cannot change qualification after use
ERROR: 0:78: 'invariant' : can only apply to an output: invIn
ERROR: 0:88: 'ub2' : Cannot reuse block name within the same interface: uniform
ERROR: 0:92: 'ub2' : Cannot reuse block name within the same interface: uniform
ERROR: 0:96: 'ub2' : Cannot reuse block name within the same interface: uniform
ERROR: 0:104: 'ub3' : Cannot reuse block name within the same interface: uniform
ERROR: 25 compilation errors. No code generated.
ERROR: 26 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:27 Function Definition: main( (void)
@ -175,3 +178,8 @@ ERROR: node is still EOpNull!
0:? 'gl_VertexID' (gl_VertexId highp int)
0:? 'gl_InstanceID' (gl_InstanceId highp int)
Linked vertex stage:

View File

@ -1,7 +1,9 @@
300BuiltIns.frag
ERROR: 0:6: 'float' : type requires declaration of default precision qualifier
ERROR: 0:70: 'noise2' : no matching overloaded function found
ERROR: 2 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:26 Function Definition: main( (void)
0:26 Function Parameters:
@ -204,3 +206,8 @@ ERROR: node is still EOpNull!
0:? 'v2b' (mediump 2-component vector of float)
0:? 'v4' (mediump 4-component vector of float)
Linked fragment stage:

View File

@ -1,9 +1,11 @@
300block.frag
ERROR: 0:10: '' : cannot nest a structure definition inside a structure or block
ERROR: 0:21: '' : cannot nest a structure definition inside a structure or block
ERROR: 0:20: 'sampler' : member of block cannot be a sampler type
ERROR: 0:45: 'variable indexing block array' : not supported with this profile: es
ERROR: 4 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:42 Function Definition: main( (void)
0:42 Function Parameters:
@ -54,3 +56,8 @@ ERROR: node is still EOpNull!
0:? 'insts' (layout(column_major shared ) uniform 4-element array of block{nbv,ni})
0:? '__anon__1' (layout(column_major shared ) uniform block{f,u})
Linked fragment stage:

View File

@ -1,6 +1,8 @@
300layout.frag
ERROR: 0:4: 'location qualifier on input' : not supported in this stage: fragment
ERROR: 1 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:10 Function Definition: main( (void)
0:10 Function Parameters:
@ -24,3 +26,8 @@ ERROR: node is still EOpNull!
0:? 'p' (layout(location=3 ) out mediump 4-component vector of float)
0:? 'q' (layout(location=4 ) out 2-element array of mediump 4-component vector of float)
Linked fragment stage:

View File

@ -1,3 +1,4 @@
300layout.vert
ERROR: 0:7: 'vertex input arrays' : not supported with this profile: es
ERROR: 0:8: 'in' : cannot be a structure or array
ERROR: 0:8: 'vertex input arrays' : not supported with this profile: es
@ -12,6 +13,7 @@ ERROR: 0:47: 'shared' : not supported with this profile: es
ERROR: 0:47: 'shared' : not supported in this stage: vertex
ERROR: 12 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:41 Function Definition: main( (void)
0:41 Function Parameters:
@ -68,3 +70,8 @@ ERROR: node is still EOpNull!
0:? 'gl_VertexID' (gl_VertexId highp int)
0:? 'gl_InstanceID' (gl_InstanceId highp int)
Linked vertex stage:

View File

@ -1,3 +1,4 @@
300operations.frag
ERROR: 0:11: 'float' : type requires declaration of default precision qualifier
ERROR: 0:30: '+' : wrong operand types: no operation '+' exists that takes a left-hand operand of type 'layout(column_major shared ) uniform block{f}' and a right operand of type 'layout(column_major shared ) uniform block{f}' (or there is no acceptable conversion)
ERROR: 0:31: '+' : wrong operand types: no operation '+' exists that takes a left-hand operand of type 'structure{i}' and a right operand of type 'structure{i}' (or there is no acceptable conversion)
@ -56,6 +57,7 @@ ERROR: 0:89: '^' : wrong operand types: no operation '^' exists that takes a le
ERROR: 0:90: 'assign' : l-value required
ERROR: 56 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:13 Function Definition: main( (void)
0:13 Function Parameters:
@ -233,3 +235,8 @@ ERROR: node is still EOpNull!
0:? 's' (structure{i})
0:? 'a' (5-element array of mediump float)
Linked fragment stage:

View File

@ -1,3 +1,4 @@
300scope.vert
ERROR: 0:5: 'a' : redefinition
ERROR: 0:17: 'b' : redeclaration of existing name
ERROR: 0:19: 'f' : redefinition
@ -16,6 +17,7 @@ ERROR: 0:54: 'z' : undeclared identifier
ERROR: 0:54: 'z' : redefinition
ERROR: 16 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:3 Function Definition: f(i1;i1;i1; (highp int)
0:3 Function Parameters:
@ -120,3 +122,8 @@ ERROR: node is still EOpNull!
0:? 'gl_VertexID' (gl_VertexId highp int)
0:? 'gl_InstanceID' (gl_InstanceId highp int)
Linked vertex stage:

View File

@ -1,4 +1,6 @@
330.frag
Warning, version 330 is not yet complete; some version-specific features are present, but many are missing.
0:? Sequence
0:8 Function Definition: main( (void)
0:8 Function Parameters:
@ -27,9 +29,19 @@ Warning, version 330 is not yet complete; some version-specific features are pre
0:23 '__anon__0' (in block{gl_Color})
0:23 Constant:
0:23 0 (const uint)
0:24 move second child to first child (4-component vector of float)
0:24 'outVar' (out 4-component vector of float)
0:24 'inVar' (smooth in 4-component vector of float)
0:? Linker Objects
0:? 'inVar' (smooth in 4-component vector of float)
0:? 'outVar' (out 4-component vector of float)
0:? 'varyingVar' (smooth in 4-component vector of float)
0:? '__anon__0' (in block{gl_Color})
Linked fragment stage:
ERROR: Linking fragment stage: Cannot use gl_FragColor or gl_FragData when using user-defined outputs
ERROR: Linking fragment stage: Cannot use both gl_FragColor and gl_FragData

View File

@ -1,4 +1,6 @@
330comp.frag
Warning, version 330 is not yet complete; some version-specific features are present, but many are missing.
0:? Sequence
0:8 Function Definition: main( (void)
0:8 Function Parameters:
@ -19,3 +21,9 @@ Warning, version 330 is not yet complete; some version-specific features are pre
0:? 'outVar' (out 4-component vector of float)
0:? 'varyingVar' (smooth in 4-component vector of float)
Linked fragment stage:
ERROR: Linking fragment stage: Cannot use both gl_FragColor and gl_FragData

View File

@ -1,3 +1,4 @@
400.frag
Warning, version 400 is not yet complete; some version-specific features are present, but many are missing.
ERROR: 0:20: 'texture gather component' : must be a constant
ERROR: 0:21: 'texture gather component' : must be 0, 1, 2, or 3
@ -8,6 +9,7 @@ ERROR: 0:39: 'redeclaration' : cannot change qualification of gl_ClipDistance
ERROR: 0:41: 'gl_FragCoord' : cannot redeclare after use
ERROR: 7 compilation errors. No code generated.
gl_FragCoord pixel center is integer
gl_FragCoord origin is upper left
ERROR: node is still EOpNull!
@ -130,3 +132,8 @@ ERROR: node is still EOpNull!
0:? 'gl_FragCoord' (gl_FragCoord 4-component vector of float)
0:? 'gl_FragCoord' (gl_FragCoord 4-component vector of float)
Linked fragment stage:

View File

@ -1,3 +1,4 @@
400.geom
Warning, version 400 is not yet complete; some version-specific features are present, but many are missing.
ERROR: 0:13: 'invocations' : can only apply to a standalone qualifier
ERROR: 0:24: 'length' : array must be declared with a size before using this method
@ -6,6 +7,7 @@ ERROR: 0:39: 'triangles' : inconsistent input primitive for array size colorBad
ERROR: 0:43: 'triangles' : inconsistent input primitive for array size colorbad2
ERROR: 5 compilation errors. No code generated.
invocations = 4
max_vertices = 127
input primitive = triangles
@ -65,3 +67,8 @@ ERROR: node is still EOpNull!
0:? 'colorBad' (in 4-element array of 4-component vector of float)
0:? 'colorbad2' (in 2-element array of 4-component vector of float)
Linked geometry stage:

View File

@ -1,4 +1,6 @@
400.tesc
Warning, version 400 is not yet complete; some version-specific features are present, but many are missing.
0:? Sequence
0:3 Function Definition: main( (void)
0:3 Function Parameters:
@ -6,3 +8,8 @@ Warning, version 400 is not yet complete; some version-specific features are pre
0:5 Barrier (void)
0:? Linker Objects
Linked tessellation control stage:

View File

@ -1,7 +1,9 @@
400.tese
Warning, version 400 is not yet complete; some version-specific features are present, but many are missing.
ERROR: 0:5: 'barrier' : no matching overloaded function found
ERROR: 1 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:3 Function Definition: main( (void)
0:3 Function Parameters:
@ -10,3 +12,8 @@ ERROR: node is still EOpNull!
0:5 0.000000
0:? Linker Objects
Linked tessellation evaluation stage:

View File

@ -1,3 +1,4 @@
410.geom
Warning, version 410 is not yet complete; some version-specific features are present, but many are missing.
ERROR: 0:8: 'myIn' : cannot redeclare a built-in block with a user name
ERROR: 0:8: 'gl_' : reserved built-in name
@ -6,6 +7,7 @@ ERROR: 0:20: 'gl_PerVertex' : can only redeclare a built-in block once, and befo
ERROR: 0:20: 'gl_' : reserved built-in name
ERROR: 5 compilation errors. No code generated.
invocations = 0
max_vertices = 0
input primitive = none
@ -41,3 +43,8 @@ ERROR: node is still EOpNull!
0:? 'gl_in' (in unsized array of block{gl_PointSize})
0:? '__anon__0' (layout(stream=0 ) out block{gl_PointSize})
Linked geometry stage:

View File

@ -1,3 +1,4 @@
420.geom
Warning, version 420 is not yet complete; some version-specific features are present, but many are missing.
ERROR: 0:9: 'length' : array must be declared with a size before using this method
ERROR: 0:11: '[' : array must be redeclared with a size before being indexed with a variable
@ -5,6 +6,7 @@ ERROR: 0:42: 'assign' : l-value required (can't modify a const)
ERROR: 0:43: 'assign' : l-value required "v4" (can't modify a uniform)
ERROR: 4 compilation errors. No code generated.
invocations = 0
max_vertices = 0
input primitive = triangles
@ -114,3 +116,9 @@ ERROR: node is still EOpNull!
0:? 'coord' (in 2-component vector of float)
0:? 'v4' (uniform 4-component vector of float)
Linked geometry stage:
ERROR: Linking geometry stage: Missing entry point: Each stage requires one "void main()" entry point

View File

@ -1,3 +1,4 @@
420.tese
Warning, version 420 is not yet complete; some version-specific features are present, but many are missing.
ERROR: 0:7: '=' : cannot convert from '3-element array of float' to '2-element array of float'
ERROR: 0:8: 'initializer list' : wrong vector size (or rows in a matrix column): 2-component vector of float
@ -14,6 +15,7 @@ ERROR: 0:40: 'constructor' : cannot convert parameter 1 from 'float' to 'struct
ERROR: 0:58: 'initializer list' : wrong number of structure members
ERROR: 13 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:4 Sequence
0:4 move second child to first child (2X2 matrix of float)
@ -155,3 +157,8 @@ ERROR: node is still EOpNull!
0:? 'av3' (3-component vector of float)
0:? 'bv3' (3-component vector of float)
Linked tessellation evaluation stage:

View File

@ -1,3 +1,4 @@
420.vert
Warning, version 420 is not yet complete; some version-specific features are present, but many are missing.
WARNING: 0:3: varying deprecated in version 130; may be removed in future release
ERROR: 0:3: 'varying' : no longer supported in core profile; removed in version 420
@ -26,6 +27,7 @@ ERROR: 0:70: 'binding' : requires uniform or buffer storage qualifier
ERROR: 0:71: 'binding' : binding is too large
ERROR: 24 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:20 Function Definition: foo( (const int)
0:20 Function Parameters:
@ -125,3 +127,8 @@ ERROR: node is still EOpNull!
0:? 'gl_VertexID' (gl_VertexId int)
0:? 'gl_InstanceID' (gl_InstanceId int)
Linked vertex stage:

View File

@ -1,7 +1,9 @@
430.comp
Warning, version 430 is not yet complete; some version-specific features are present, but many are missing.
ERROR: 0:12: 'location qualifier on input' : not supported in this stage: compute
ERROR: 1 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:3 Function Definition: main( (void)
0:3 Function Parameters:
@ -14,3 +16,8 @@ ERROR: node is still EOpNull!
0:? Linker Objects
0:? 'v3' (layout(location=2 ) in 3-component vector of float)
Linked compute stage:

View File

@ -1,3 +1,4 @@
430.vert
Warning, version 430 is not yet complete; some version-specific features are present, but many are missing.
ERROR: 0:3: 'v4' : location qualifiers only appy to uniform, buffer, in, or out storage qualifiers
ERROR: 0:7: 'location qualifier on input block' : not supported for this version or the enabled extensions
@ -12,6 +13,7 @@ ERROR: 0:30: '' : cannot use layout qualifiers on a function parameter
ERROR: 0:31: '' : cannot use auxiliary or interpolation qualifiers on a function parameter
ERROR: 11 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:14 Function Definition: foo( (void)
0:14 Function Parameters:
@ -41,3 +43,9 @@ ERROR: node is still EOpNull!
0:? 'gl_VertexID' (gl_VertexId int)
0:? 'gl_InstanceID' (gl_InstanceId int)
Linked vertex stage:
ERROR: Linking vertex stage: Missing entry point: Each stage requires one "void main()" entry point

View File

@ -1,3 +1,4 @@
430scope.vert
Warning, version 430 is not yet complete; some version-specific features are present, but many are missing.
ERROR: 0:5: 'a' : redefinition
ERROR: 0:17: 'b' : redeclaration of existing name
@ -6,6 +7,7 @@ ERROR: 0:54: 'z' : undeclared identifier
ERROR: 0:54: 'z' : redefinition
ERROR: 5 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:3 Function Definition: f(i1;i1;i1; (int)
0:3 Function Parameters:
@ -114,3 +116,8 @@ ERROR: node is still EOpNull!
0:? 'gl_VertexID' (gl_VertexId int)
0:? 'gl_InstanceID' (gl_InstanceId int)
Linked vertex stage:

View File

@ -1,4 +1,6 @@
../../LunarGLASS/test/Operations.frag
Warning, version 130 is not yet complete; most features are present, but a few are missing.
0:? Sequence
0:15 Function Definition: main( (void)
0:15 Function Parameters:
@ -431,3 +433,8 @@ Warning, version 130 is not yet complete; most features are present, but a few a
0:? 'uf' (uniform float)
0:? 'ui' (uniform int)
Linked fragment stage:

View File

@ -1,6 +1,8 @@
../../LunarGLASS/test/aggOps.frag
Warning, version 130 is not yet complete; most features are present, but a few are missing.
WARNING: 0:4: varying deprecated in version 130; may be removed in future release
WARNING: 0:6: varying deprecated in version 130; may be removed in future release
0:? Sequence
0:23 Function Definition: main( (void)
0:23 Function Parameters:
@ -145,3 +147,8 @@ WARNING: 0:6: varying deprecated in version 130; may be removed in future releas
0:? 'foo2a' (uniform structure{i,f,s1_1})
0:? 'foo2b' (uniform structure{i,f,s1_1})
Linked fragment stage:

View File

@ -1,3 +1,5 @@
../../LunarGLASS/test/always-discard.frag
0:? Sequence
0:4 Function Definition: main( (void)
0:4 Function Parameters:
@ -114,3 +116,8 @@
0:? Linker Objects
0:? 'tex_coord' (smooth in 2-component vector of float)
Linked fragment stage:

View File

@ -1,3 +1,5 @@
../../LunarGLASS/test/always-discard2.frag
0:? Sequence
0:4 Function Definition: main( (void)
0:4 Function Parameters:
@ -55,3 +57,8 @@
0:? Linker Objects
0:? 'tex_coord' (smooth in 2-component vector of float)
Linked fragment stage:

View File

@ -1,3 +1,4 @@
array.frag
Warning, version 130 is not yet complete; most features are present, but a few are missing.
ERROR: 0:21: '[' : array index out of range '2'
ERROR: 0:27: '[' : array must be redeclared with a size before being indexed with a variable
@ -15,6 +16,7 @@ ERROR: 0:57: '[' : index out of range '-858993459'
ERROR: 0:58: '[]' : scalar integer expression required
ERROR: 14 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:9 Function Definition: foo(f1[5]; (4-element array of float)
0:9 Function Parameters:
@ -186,3 +188,8 @@ ERROR: node is still EOpNull!
0:? 'g5' (5-element array of float)
0:? 'a' (uniform int)
Linked fragment stage:

View File

@ -1,3 +1,4 @@
array100.frag
ERROR: 0:3: 'float' : type requires declaration of default precision qualifier
ERROR: 0:3: '' : array size required
ERROR: 0:9: 'arrayed type' : not supported for this version or the enabled extensions
@ -22,6 +23,7 @@ ERROR: 0:68: 'array assignment' : not supported for this version or the enabled
ERROR: 0:69: 'array initializer' : not supported for this version or the enabled extensions
ERROR: 22 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:9 Function Definition: foo(f1[5]; (4-element array of mediump float)
0:9 Function Parameters:
@ -154,3 +156,8 @@ ERROR: node is still EOpNull!
0:? 'g5' (5-element array of mediump float)
0:? 'a' (uniform mediump int)
Linked fragment stage:

View File

@ -1,7 +1,14 @@
comment.frag
Warning, version 430 is not yet complete; some version-specific features are present, but many are missing.
0:? Sequence
0:17 Function Definition: main( (void)
0:17 Function Parameters:
0:? Linker Objects
0:? 'v' (smooth in 4-component vector of float)
Linked fragment stage:

View File

@ -1,3 +1,5 @@
../../LunarGLASS/test/conditionalDiscard.frag
0:? Sequence
0:6 Function Definition: main( (void)
0:6 Function Parameters:
@ -26,3 +28,8 @@
0:? 'tex' (uniform sampler2D)
0:? 'coord' (smooth in 2-component vector of float)
Linked fragment stage:

View File

@ -1,3 +1,4 @@
constErrors.frag
Warning, version 330 is not yet complete; some version-specific features are present, but many are missing.
ERROR: 0:14: 'non-constant initializer' : not supported for this version or the enabled extensions
ERROR: 0:17: '' : constant expression required
@ -10,6 +11,7 @@ ERROR: 0:27: '=' : global const initializers must be constant 'const structure{v
ERROR: 0:33: '=' : global const initializers must be constant 'const structure{v3,iv2,m}'
ERROR: 9 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:10 Function Definition: main( (void)
0:10 Function Parameters:
@ -29,3 +31,8 @@ ERROR: node is still EOpNull!
0:? 'f' (const float)
0:? 3.000000
Linked fragment stage:

View File

@ -1,3 +1,4 @@
constFold.frag
Warning, version 430 is not yet complete; some version-specific features are present, but many are missing.
ERROR: 0:109: '[' : index out of range '-1'
ERROR: 0:110: '[' : vector index out of range '4'
@ -7,6 +8,7 @@ ERROR: 0:113: '[' : vector index out of range '3'
ERROR: 0:114: '[' : matrix index out of range '3'
ERROR: 6 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:28 Function Definition: main( (void)
0:28 Function Parameters:
@ -303,3 +305,8 @@ ERROR: node is still EOpNull!
0:? 5.000000
0:? 'a4' (2-element array of float)
Linked fragment stage:

View File

@ -1,4 +1,6 @@
../../LunarGLASS/test/conversion.frag
Warning, version 130 is not yet complete; most features are present, but a few are missing.
0:? Sequence
0:33 Function Definition: main( (void)
0:33 Function Parameters:
@ -473,3 +475,8 @@ Warning, version 130 is not yet complete; most features are present, but a few a
0:? 'i_f3' (smooth in 3-component vector of float)
0:? 'i_f4' (smooth in 4-component vector of float)
Linked fragment stage:

View File

@ -1,9 +1,11 @@
cppComplexExpr.vert
ERROR: 0:46: 'xyxwx' : illegal vector field selection
ERROR: 0:46: 'xyxwx' : illegal vector field selection
ERROR: 0:66: '#define' : Macro redefined; different substitutions: BIG
ERROR: 0:79: '' : missing #endif
ERROR: 4 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:4 Sequence
0:4 move second child to first child (highp float)
@ -69,3 +71,8 @@ ERROR: node is still EOpNull!
0:? 'gl_VertexID' (gl_VertexId highp int)
0:? 'gl_InstanceID' (gl_InstanceId highp int)
Linked vertex stage:

View File

@ -1,3 +1,5 @@
cppIndent.vert
0:? Sequence
0:5 Sequence
0:5 move second child to first child (float)
@ -34,3 +36,8 @@
0:? Linker Objects
0:? 'sum' (float)
Linked vertex stage:

View File

@ -1,3 +1,5 @@
cppNest.vert
0:? Sequence
0:5 Sequence
0:5 move second child to first child (float)
@ -56,3 +58,8 @@
0:? 'selected2' (int)
0:? 'selected3' (int)
Linked vertex stage:

View File

@ -1,3 +1,4 @@
cppSimple.vert
Warning, version 400 is not yet complete; some version-specific features are present, but many are missing.
ERROR: 0:77: '#error' : good1
ERROR: 0:81: '#error' : good2
@ -46,6 +47,7 @@ ERROR: 0:205: '#undef' : can't use with built-in names ("GL_" prefix)
ERROR: 0:209: '' : missing #endif
ERROR: 45 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:5 Sequence
0:5 move second child to first child (float)
@ -132,3 +134,8 @@ ERROR: node is still EOpNull!
0:? 'gl_VertexID' (gl_VertexId int)
0:? 'gl_InstanceID' (gl_InstanceId int)
Linked vertex stage:

View File

@ -1,5 +1,7 @@
../../LunarGLASS/test/dataOut.frag
Warning, version 130 is not yet complete; most features are present, but a few are missing.
WARNING: 0:3: varying deprecated in version 130; may be removed in future release
0:? Sequence
0:5 Function Definition: main( (void)
0:5 Function Parameters:
@ -13,3 +15,8 @@ WARNING: 0:3: varying deprecated in version 130; may be removed in future releas
0:? Linker Objects
0:? 'Color' (smooth in 4-component vector of float)
Linked fragment stage:

View File

@ -1,5 +1,7 @@
../../LunarGLASS/test/dataOutIndirect.frag
Warning, version 130 is not yet complete; most features are present, but a few are missing.
WARNING: 0:3: varying deprecated in version 130; may be removed in future release
0:? Sequence
0:7 Function Definition: main( (void)
0:7 Function Parameters:
@ -13,3 +15,8 @@ WARNING: 0:3: varying deprecated in version 130; may be removed in future releas
0:? 'Color' (smooth in 4-component vector of float)
0:? 'i' (uniform int)
Linked fragment stage:

View File

@ -1,4 +1,6 @@
dce.frag
Warning, version 400 is not yet complete; some version-specific features are present, but many are missing.
0:? Sequence
0:5 Sequence
0:5 move second child to first child (int)
@ -132,3 +134,9 @@ Warning, version 400 is not yet complete; some version-specific features are pre
0:? false (const bool)
0:? 'c' (int)
Linked fragment stage:
ERROR: Linking fragment stage: Missing entry point: Each stage requires one "void main()" entry point

View File

@ -1,3 +1,4 @@
decls.frag
ERROR: 0:19: 'vi4' : illegal use of type 'void'
ERROR: 0:20: 'vj' : illegal use of type 'void'
ERROR: 0:20: 'vk5' : illegal use of type 'void'
@ -18,6 +19,7 @@ ERROR: 0:42: '' : boolean expression expected
ERROR: 0:43: 'gl_' : reserved built-in name
ERROR: 18 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:5 Sequence
0:5 move second child to first child (int)
@ -214,3 +216,8 @@ ERROR: node is still EOpNull!
0:? 'gl_vn8' (4-element array of int)
0:? 'gl_vp' (int)
Linked fragment stage:

View File

@ -1,3 +1,5 @@
../../LunarGLASS/test/deepRvalue.frag
0:? Sequence
0:5 Sequence
0:5 move second child to first child (4-component vector of float)
@ -137,3 +139,8 @@
0:? 'v3' (4-component vector of float)
0:? 'v4' (4-component vector of float)
Linked fragment stage:

View File

@ -1,6 +1,8 @@
../../LunarGLASS/test/depthOut.frag
Warning, version 130 is not yet complete; most features are present, but a few are missing.
WARNING: 0:3: varying deprecated in version 130; may be removed in future release
WARNING: 0:4: varying deprecated in version 130; may be removed in future release
0:? Sequence
0:8 Function Definition: main( (void)
0:8 Function Parameters:
@ -19,3 +21,9 @@ WARNING: 0:4: varying deprecated in version 130; may be removed in future releas
0:? 'Depth' (smooth in float)
0:? 'foo' (out 4-component vector of float)
Linked fragment stage:
ERROR: Linking fragment stage: Cannot use gl_FragColor or gl_FragData when using user-defined outputs

View File

@ -1,3 +1,5 @@
../../LunarGLASS/test/discard-dce.frag
0:? Sequence
0:4 Function Definition: main( (void)
0:4 Function Parameters:
@ -114,3 +116,8 @@
0:? Linker Objects
0:? 'tex_coord' (smooth in 2-component vector of float)
Linked fragment stage:

View File

@ -1,3 +1,5 @@
../../LunarGLASS/test/doWhileLoop.frag
0:? Sequence
0:7 Function Definition: main( (void)
0:7 Function Parameters:
@ -27,3 +29,8 @@
0:? 'BaseColor' (smooth in 4-component vector of float)
0:? 'd' (uniform float)
Linked fragment stage:

View File

@ -1,3 +1,5 @@
../../LunarGLASS/test/earlyReturnDiscard.frag
0:? Sequence
0:19 Function Definition: main( (void)
0:19 Function Parameters:
@ -123,3 +125,8 @@
0:? 'BaseColor' (smooth in 4-component vector of float)
0:? 'b' (uniform bool)
Linked fragment stage:

View File

@ -1,7 +1,9 @@
errors.frag
ERROR: 0:1: 'main' : function cannot take any parameter(s)
ERROR: 0:1: 'int' : main function cannot return a value
ERROR: 2 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:1 Function Definition: main(i1; (mediump int)
0:1 Function Parameters:
@ -12,3 +14,8 @@ ERROR: node is still EOpNull!
0:3 1 (const int)
0:? Linker Objects
Linked fragment stage:

View File

@ -1,3 +1,5 @@
../../LunarGLASS/test/flowControl.frag
0:? Sequence
0:10 Function Definition: main( (void)
0:10 Function Parameters:
@ -35,3 +37,8 @@
0:? 'c' (smooth in float)
0:? 'BaseColor' (smooth in 4-component vector of float)
Linked fragment stage:

View File

@ -1,3 +1,5 @@
../../LunarGLASS/test/forLoop.frag
0:? Sequence
0:8 Function Definition: main( (void)
0:8 Function Parameters:
@ -33,3 +35,8 @@
0:? 'BaseColor' (smooth in 4-component vector of float)
0:? 'Count' (uniform int)
Linked fragment stage:

View File

@ -1,3 +1,5 @@
forwardRef.frag
0:? Sequence
0:11 Function Definition: main( (void)
0:11 Function Parameters:
@ -57,3 +59,8 @@
0:? 'BaseColor' (smooth in 4-component vector of float)
0:? 'd' (uniform float)
Linked fragment stage:

View File

@ -1,5 +1,7 @@
../../LunarGLASS/test/functionCall.frag
Warning, version 130 is not yet complete; most features are present, but a few are missing.
WARNING: 0:4: varying deprecated in version 130; may be removed in future release
0:? Sequence
0:7 Sequence
0:7 move second child to first child (float)
@ -87,3 +89,8 @@ WARNING: 0:4: varying deprecated in version 130; may be removed in future releas
0:? 'd' (uniform float)
0:? 'h' (float)
Linked fragment stage:

View File

@ -1,3 +1,5 @@
../../LunarGLASS/test/functionSemantics.frag
0:? Sequence
0:3 Function Definition: foo(i1;i1;i1;i1;i1;i1; (mediump int)
0:3 Function Parameters:
@ -117,3 +119,8 @@
0:35 'color' (mediump int)
0:? Linker Objects
Linked fragment stage:

View File

@ -1,3 +1,5 @@
../../LunarGLASS/test/length.frag
0:? Sequence
0:11 Function Definition: main( (void)
0:11 Function Parameters:
@ -25,3 +27,8 @@
0:? 'u' (uniform 3-element array of 4-component vector of float)
0:? 'v' (smooth in 2-element array of 2-component vector of float)
Linked fragment stage:

View File

@ -1,8 +1,10 @@
lineContinuation.vert
ERROR: 0:6: '#error' : e1
ERROR: 0:11: '#error' : e2
ERROR: 0:18: '#error' : e3
ERROR: 3 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:20 Function Definition: main( (void)
0:20 Function Parameters:
@ -26,3 +28,8 @@ ERROR: node is still EOpNull!
0:? 'gl_VertexID' (gl_VertexId highp int)
0:? 'gl_InstanceID' (gl_InstanceId highp int)
Linked vertex stage:

View File

@ -1,3 +1,4 @@
lineContinuation100.vert
ERROR: 0:3: 'line continuation' : not supported for this version or the enabled extensions
ERROR: 0:6: '#error' : e1
ERROR: 0:8: 'line continuation' : not supported for this version or the enabled extensions
@ -9,6 +10,7 @@ ERROR: 0:18: '#error' : e3
ERROR: 0:24: 'line continuation' : not supported for this version or the enabled extensions
ERROR: 9 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:20 Function Definition: main( (void)
0:20 Function Parameters:
@ -30,3 +32,8 @@ ERROR: node is still EOpNull!
0:? Linker Objects
0:? 'foo' (highp float)
Linked vertex stage:

View File

@ -1,6 +1,8 @@
../../LunarGLASS/test/localAggregates.frag
Warning, version 130 is not yet complete; most features are present, but a few are missing.
WARNING: 0:4: varying deprecated in version 130; may be removed in future release
WARNING: 0:5: varying deprecated in version 130; may be removed in future release
0:? Sequence
0:34 Function Definition: main( (void)
0:34 Function Parameters:
@ -203,3 +205,8 @@ WARNING: 0:5: varying deprecated in version 130; may be removed in future releas
0:? 'uFloatArray' (uniform 16-element array of float)
0:? 'condition' (uniform int)
Linked fragment stage:

View File

@ -1,5 +1,7 @@
../../LunarGLASS/test/loops.frag
Warning, version 130 is not yet complete; most features are present, but a few are missing.
WARNING: 0:14: varying deprecated in version 130; may be removed in future release
0:? Sequence
0:53 Function Definition: main( (void)
0:53 Function Parameters:
@ -963,3 +965,8 @@ WARNING: 0:14: varying deprecated in version 130; may be removed in future relea
0:? 'd34' (uniform float)
0:? 'Count' (uniform int)
Linked fragment stage:

View File

@ -1,5 +1,7 @@
../../LunarGLASS/test/loopsArtificial.frag
Warning, version 130 is not yet complete; most features are present, but a few are missing.
WARNING: 0:14: varying deprecated in version 130; may be removed in future release
0:? Sequence
0:53 Function Definition: main( (void)
0:53 Function Parameters:
@ -212,3 +214,8 @@ WARNING: 0:14: varying deprecated in version 130; may be removed in future relea
0:? 'd34' (uniform float)
0:? 'Count' (uniform int)
Linked fragment stage:

View File

@ -1,7 +1,9 @@
../../LunarGLASS/test/matrix.frag
Warning, version 130 is not yet complete; most features are present, but a few are missing.
WARNING: 0:6: varying deprecated in version 130; may be removed in future release
WARNING: 0:17: varying deprecated in version 130; may be removed in future release
WARNING: 0:22: varying deprecated in version 130; may be removed in future release
0:? Sequence
0:25 Function Definition: main( (void)
0:25 Function Parameters:
@ -250,3 +252,8 @@ WARNING: 0:22: varying deprecated in version 130; may be removed in future relea
0:? 'v' (smooth in 4-component vector of float)
0:? 'u' (smooth in 4-component vector of float)
Linked fragment stage:

View File

@ -1,7 +1,9 @@
../../LunarGLASS/test/matrix2.frag
Warning, version 150 is not yet complete; some version-specific features are present, but many are missing.
WARNING: 0:4: varying deprecated in version 130; may be removed in future release
WARNING: 0:13: varying deprecated in version 130; may be removed in future release
WARNING: 0:15: varying deprecated in version 130; may be removed in future release
0:? Sequence
0:19 Function Definition: main( (void)
0:19 Function Parameters:
@ -158,3 +160,8 @@ WARNING: 0:15: varying deprecated in version 130; may be removed in future relea
0:? 'u' (smooth in 3-component vector of float)
0:? 'FragColor' (out 4-component vector of float)
Linked fragment stage:

View File

@ -1,3 +1,4 @@
matrixError.vert
ERROR: 0:10: 'constructor' : too many arguments
ERROR: 0:7: 'const' : non-matching or non-convertible constant type for const initializer
ERROR: 0:17: 'assign' : cannot convert from '2-component vector of float' to '3-component vector of float'
@ -7,6 +8,7 @@ ERROR: 0:21: '[' : matrix index out of range '2'
ERROR: 0:21: '[' : vector index out of range '4'
ERROR: 7 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:12 Function Definition: main( (void)
0:12 Function Parameters:
@ -34,3 +36,8 @@ ERROR: node is still EOpNull!
0:? 'm32' (uniform 3X2 matrix of float)
0:? 'm24' (2X4 matrix of float)
Linked vertex stage:

View File

@ -1,4 +1,6 @@
../../LunarGLASS/test/newTexture.frag
Warning, version 430 is not yet complete; some version-specific features are present, but many are missing.
0:? Sequence
0:34 Function Definition: main( (void)
0:34 Function Parameters:
@ -212,3 +214,8 @@ Warning, version 430 is not yet complete; some version-specific features are pre
0:? 'ic4D' (flat in 4-component vector of int)
0:? 'FragData' (out 4-component vector of float)
Linked fragment stage:

View File

@ -1,3 +1,5 @@
nonSquare.vert
0:? Sequence
0:15 Function Definition: main( (void)
0:15 Function Parameters:
@ -86,3 +88,8 @@
0:? 7.000000
0:? 8.000000
Linked vertex stage:

View File

@ -1,3 +1,4 @@
numeral.frag
Warning, version 400 is not yet complete; some version-specific features are present, but many are missing.
ERROR: 0:14: '' : octal literal digit too large
ERROR: 0:15: '' : octal literal digit too large
@ -11,6 +12,7 @@ ERROR: 0:50: '' : hexidecimal literal too big
ERROR: 0:88: '' : float literal needs a decimal point or exponent
ERROR: 10 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:3 Function Definition: main( (void)
0:3 Function Parameters:
@ -378,3 +380,8 @@ ERROR: node is still EOpNull!
0:? 'c6' (layout(location=6 ) out 4-component vector of float)
0:? 'c7' (layout(location=7 ) out 4-component vector of float)
Linked fragment stage:

View File

@ -1,3 +1,5 @@
pointCoord.frag
0:? Sequence
0:5 Function Definition: main( (void)
0:5 Function Parameters:
@ -29,3 +31,8 @@
0:? Linker Objects
0:? 'sampler' (uniform lowp sampler2D)
Linked fragment stage:

View File

@ -1,3 +1,4 @@
precision.frag
ERROR: 0:3: 'float' : type requires declaration of default precision qualifier
ERROR: 0:18: 'int' : cannot apply precision statement to this type; use 'float', 'int' or a sampler type
ERROR: 0:19: 'int' : cannot apply precision statement to this type; use 'float', 'int' or a sampler type
@ -7,6 +8,7 @@ ERROR: 0:75: 'structure' : cannot apply precision statement to this type; use 'f
ERROR: 0:76: 'bool' : type cannot have precision qualifier
ERROR: 7 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:5 Function Definition: foo(vf3; (lowp 2-component vector of float)
0:5 Function Parameters:
@ -121,3 +123,8 @@ ERROR: node is still EOpNull!
0:? 'global_high' (highp int)
0:? 'b2' (mediump 2-component vector of bool)
Linked fragment stage:

View File

@ -1,8 +1,10 @@
precision.vert
ERROR: 0:7: 'sampler/image' : type requires declaration of default precision qualifier
ERROR: 0:8: 'sampler/image' : type requires declaration of default precision qualifier
ERROR: 0:14: 'sampler/image' : type requires declaration of default precision qualifier
ERROR: 3 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:18 Function Definition: main( (void)
0:18 Function Parameters:
@ -46,3 +48,8 @@ ERROR: node is still EOpNull!
0:? 'gl_VertexID' (gl_VertexId highp int)
0:? 'gl_InstanceID' (gl_InstanceId highp int)
Linked vertex stage:

View File

@ -1,4 +1,6 @@
../../LunarGLASS/test/prepost.frag
Warning, version 140 is not yet complete; most features are present, but a few are missing.
0:? Sequence
0:3 Function Definition: main( (void)
0:3 Function Parameters:
@ -131,3 +133,8 @@ Warning, version 140 is not yet complete; most features are present, but a few a
0:37 'v' (4-component vector of float)
0:? Linker Objects
Linked fragment stage:

View File

@ -1,3 +1,5 @@
sample.frag
0:? Sequence
0:38 Function Definition: main( (void)
0:38 Function Parameters:
@ -11,3 +13,8 @@
0:? Linker Objects
0:? 'color' (smooth in 3-component vector of float)
Linked fragment stage:

View File

@ -1,3 +1,5 @@
sample.vert
0:? Sequence
0:38 Function Definition: main( (void)
0:38 Function Parameters:
@ -16,3 +18,8 @@
0:? Linker Objects
0:? 'color' (smooth out 3-component vector of float)
Linked vertex stage:

View File

@ -1,5 +1,7 @@
../../LunarGLASS/test/simpleFunctionCall.frag
Warning, version 150 is not yet complete; some version-specific features are present, but many are missing.
WARNING: 0:4: varying deprecated in version 130; may be removed in future release
0:? Sequence
0:7 Function Definition: foo( (4-component vector of float)
0:7 Function Parameters:
@ -17,3 +19,8 @@ WARNING: 0:4: varying deprecated in version 130; may be removed in future releas
0:? 'BaseColor' (smooth in 4-component vector of float)
0:? 'd' (uniform float)
Linked fragment stage:

View File

@ -1,3 +1,4 @@
specExamples.frag
Warning, version 430 is not yet complete; some version-specific features are present, but many are missing.
ERROR: 0:6: '=' : cannot convert from 'const uint' to 'int'
ERROR: 0:20: '' : numeric literal too big
@ -49,6 +50,7 @@ ERROR: 0:228: 'in' : not allowed in nested scope
ERROR: 0:232: 'out' : not allowed in nested scope
ERROR: 48 compilation errors. No code generated.
gl_FragCoord pixel center is integer
gl_FragCoord origin is upper left
ERROR: node is still EOpNull!
@ -295,3 +297,8 @@ ERROR: node is still EOpNull!
0:? '__anon__2' (in block{gl_FogFragCoord,gl_TexCoord,gl_Color,gl_SecondaryColor})
0:? '__anon__2' (in block{gl_FogFragCoord,gl_TexCoord,gl_Color,gl_SecondaryColor})
Linked fragment stage:

View File

@ -1,3 +1,4 @@
specExamples.vert
Warning, version 430 is not yet complete; some version-specific features are present, but many are missing.
ERROR: 0:23: 'transforms' : redeclaration of array with size
ERROR: 0:29: 's' : location qualifiers only appy to uniform, buffer, in, or out storage qualifiers
@ -44,6 +45,7 @@ ERROR: 0:193: 'constructor' : constructing from a non-dereferenced array
ERROR: 0:194: 'constructor' : constructing from a non-dereferenced array
ERROR: 42 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:134 Function Definition: funcA(I21; (4-component vector of float)
0:134 Function Parameters:
@ -314,3 +316,8 @@ ERROR: node is still EOpNull!
0:? 'gl_VertexID' (gl_VertexId int)
0:? 'gl_InstanceID' (gl_InstanceId int)
Linked vertex stage:

View File

@ -1,5 +1,7 @@
../../LunarGLASS/test/structAssignment.frag
Warning, version 130 is not yet complete; most features are present, but a few are missing.
WARNING: 0:4: varying deprecated in version 130; may be removed in future release
0:? Sequence
0:29 Function Definition: main( (void)
0:29 Function Parameters:
@ -47,3 +49,8 @@ WARNING: 0:4: varying deprecated in version 130; may be removed in future releas
0:? 'foo2' (uniform structure{i,f,s1_1})
0:? 'foo3' (uniform structure{s2_1,i,f,s1_1})
Linked fragment stage:

View File

@ -1,5 +1,7 @@
../../LunarGLASS/test/structDeref.frag
Warning, version 130 is not yet complete; most features are present, but a few are missing.
WARNING: 0:4: varying deprecated in version 130; may be removed in future release
0:? Sequence
0:41 Function Definition: main( (void)
0:41 Function Parameters:
@ -168,3 +170,8 @@ WARNING: 0:4: varying deprecated in version 130; may be removed in future releas
0:? 'foo3' (uniform structure{s2_1,i,f,s1_1})
0:? 'foo00' (uniform structure{s0_0})
Linked fragment stage:

View File

@ -1,5 +1,7 @@
../../LunarGLASS/test/structure.frag
Warning, version 130 is not yet complete; most features are present, but a few are missing.
WARNING: 0:3: varying deprecated in version 130; may be removed in future release
0:? Sequence
0:20 Function Definition: main( (void)
0:20 Function Parameters:
@ -78,3 +80,8 @@ WARNING: 0:3: varying deprecated in version 130; may be removed in future releas
0:? 'foo' (uniform structure{i,f,color})
0:? 'foo2' (uniform 5-element array of structure{i,f,s1_1})
Linked fragment stage:

View File

@ -1,3 +1,4 @@
switch.frag
ERROR: 0:11: 'switch' : condition must be a scalar integer expression
ERROR: 0:14: 'switch' : condition must be a scalar integer expression
ERROR: 0:21: 'switch' : last case/default label must be followed by statements
@ -9,6 +10,7 @@ ERROR: 0:67: 'case' : constant expression required
ERROR: 0:89: '' : break statement only allowed in switch and loops
ERROR: 9 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:6 Function Definition: main( (void)
0:6 Function Parameters:
@ -192,3 +194,8 @@ ERROR: node is still EOpNull!
0:? 'd' (uniform mediump int)
0:? 'x' (smooth in highp float)
Linked fragment stage:

View File

@ -1,3 +1,5 @@
../../LunarGLASS/test/swizzle.frag
0:? Sequence
0:9 Function Definition: main( (void)
0:9 Function Parameters:
@ -206,3 +208,8 @@
0:? 'p' (uniform bool)
0:? 't' (smooth in 2-component vector of float)
Linked fragment stage:

View File

@ -1,10 +1,17 @@
../../LunarGLASS/test/syntaxError.frag
ERROR: 0:9: 'vec5' : undeclared identifier
ERROR: 0:9: '' : syntax error
ERROR: 2 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:? Linker Objects
0:? 'bigColor' (uniform 4-component vector of float)
0:? 'BaseColor' (smooth in 4-component vector of float)
0:? 'd' (uniform float)
Linked fragment stage:

View File

@ -1,3 +1,5 @@
../../LunarGLASS/test/test.frag
0:? Sequence
0:13 Function Definition: main( (void)
0:13 Function Parameters:
@ -52,3 +54,8 @@
0:? 't' (smooth in 2-component vector of float)
0:? 'coords' (smooth in 3-component vector of float)
Linked fragment stage:

View File

@ -1,6 +1,8 @@
../../LunarGLASS/test/texture.frag
Warning, version 130 is not yet complete; most features are present, but a few are missing.
WARNING: 0:14: varying deprecated in version 130; may be removed in future release
WARNING: 0:15: varying deprecated in version 130; may be removed in future release
0:? Sequence
0:17 Function Definition: main( (void)
0:17 Function Parameters:
@ -280,3 +282,8 @@ WARNING: 0:15: varying deprecated in version 130; may be removed in future relea
0:? 't' (smooth in 2-component vector of float)
0:? 'coords2D' (smooth in 2-component vector of float)
Linked fragment stage:

View File

@ -1,3 +1,4 @@
tokenLength.vert
ERROR: 0:9: '' : numeric literal too big
ERROR: 0:10: '' : numeric literal too big
ERROR: 0:13: '' : octal literal too big
@ -14,6 +15,7 @@ ERROR: 0:36: '' : float literal too long
ERROR: 0:36: '' : float literal too long
ERROR: 14 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:9 Sequence
0:9 move second child to first child (highp int)
@ -105,3 +107,8 @@ ERROR: node is still EOpNull!
0:? 'gl_VertexID' (gl_VertexId highp int)
0:? 'gl_InstanceID' (gl_InstanceId highp int)
Linked vertex stage:

View File

@ -1,4 +1,6 @@
../../LunarGLASS/test/types.frag
Warning, version 130 is not yet complete; most features are present, but a few are missing.
0:? Sequence
0:33 Function Definition: main( (void)
0:33 Function Parameters:
@ -334,3 +336,8 @@ Warning, version 130 is not yet complete; most features are present, but a few a
0:? 'i_f3' (smooth in 3-component vector of float)
0:? 'i_f4' (smooth in 4-component vector of float)
Linked fragment stage:

View File

@ -1,3 +1,4 @@
uint.frag
ERROR: 0:2: 'uint' : must be qualified as flat in
ERROR: 0:6: 'in' : cannot be bool
ERROR: 0:20: 'const' : non-matching or non-convertible constant type for const initializer
@ -9,6 +10,7 @@ ERROR: 0:51: '=' : cannot convert from 'const int' to 'mediump uint'
ERROR: 0:63: 'float' : type requires declaration of default precision qualifier
ERROR: 9 compilation errors. No code generated.
ERROR: node is still EOpNull!
0:15 Function Definition: main( (void)
0:15 Function Parameters:
@ -303,3 +305,8 @@ ERROR: node is still EOpNull!
0:? 'c' (out mediump 4-component vector of uint)
0:? 'usampler' (uniform lowp usampler2D)
Linked fragment stage:

View File

@ -1,4 +1,6 @@
../../LunarGLASS/test/uniformArray.frag
Warning, version 130 is not yet complete; most features are present, but a few are missing.
0:? Sequence
0:7 Function Definition: main( (void)
0:7 Function Parameters:
@ -44,3 +46,8 @@ Warning, version 130 is not yet complete; most features are present, but a few a
0:? 'color' (uniform 6-element array of 4-component vector of float)
0:? 'alpha' (uniform 16-element array of float)
Linked fragment stage:

View File

@ -1,5 +1,7 @@
../../LunarGLASS/test/variableArrayIndex.frag
Warning, version 130 is not yet complete; most features are present, but a few are missing.
WARNING: 0:3: varying deprecated in version 130; may be removed in future release
0:? Sequence
0:29 Function Definition: main( (void)
0:29 Function Parameters:
@ -108,3 +110,8 @@ WARNING: 0:3: varying deprecated in version 130; may be removed in future releas
0:? 'foo3' (uniform structure{s2_1,i,f,s1_1})
0:? 'Count' (uniform int)
Linked fragment stage:

View File

@ -1,8 +1,10 @@
../../LunarGLASS/test/varyingArray.frag
Warning, version 130 is not yet complete; most features are present, but a few are missing.
WARNING: 0:3: varying deprecated in version 130; may be removed in future release
WARNING: 0:4: varying deprecated in version 130; may be removed in future release
WARNING: 0:6: varying deprecated in version 130; may be removed in future release
WARNING: 0:8: varying deprecated in version 130; may be removed in future release
0:? Sequence
0:10 Function Definition: main( (void)
0:10 Function Parameters:
@ -57,3 +59,8 @@ WARNING: 0:8: varying deprecated in version 130; may be removed in future releas
0:? 'gl_TexCoord' (smooth in 6-element array of 4-component vector of float)
0:? 'foo' (smooth in 3-element array of 4-component vector of float)
Linked fragment stage:

Some files were not shown because too many files have changed in this diff Show More