Array of array: Implement the core functionality: types, constructors, operations.

There will be subsequent commits to refine semantics, esp. version-specific semantics,
as well as I/O functionality and restrictions.

Note: I'm getting white-space differences in the preprocessor test results,
which I'm not checking in.  I think they need to be tagged as binary or something.
This commit is contained in:
John Kessenich
2015-08-10 17:08:55 -06:00
parent b35483587f
commit 65c78a0b62
23 changed files with 1344 additions and 185 deletions

View File

@@ -17,10 +17,6 @@ ERROR: 0:102: 'color' : redefinition
ERROR: 0:112: 'redeclaration' : all redeclarations must use the same depth layout on gl_FragDepth
ERROR: 0:118: 'redeclaration' : all redeclarations must use the same depth layout on gl_FragDepth
ERROR: 0:121: 'redeclaration' : all redeclarations must use the same depth layout on gl_FragDepth
WARNING: 0:146: 'Not supported yet.' : arrays of arrays
ERROR: 0:150: 'constructor' : constructing from a non-dereferenced array
ERROR: 0:150: '=' : cannot convert from 'const float' to 'temp 3-element array of 2-element array of 4-component vector of float'
ERROR: 0:152: 'constructor' : cannot convert parameter 1 from 'const 2-element array of 4-component vector of float' to 'temp 4-component vector of float'
ERROR: 0:172: 'x' : undeclared identifier
ERROR: 0:172: '[]' : scalar integer expression required
ERROR: 0:175: 'x' : undeclared identifier
@@ -42,7 +38,7 @@ ERROR: 0:226: 'in' : not allowed in nested scope
ERROR: 0:227: 'in' : not allowed in nested scope
ERROR: 0:228: 'in' : not allowed in nested scope
ERROR: 0:232: 'out' : not allowed in nested scope
ERROR: 41 compilation errors. No code generated.
ERROR: 38 compilation errors. No code generated.
Shader version: 430
@@ -164,6 +160,41 @@ ERROR: node is still EOpNull!
0:149 0.100000
0:149 0.100000
0:149 0.100000
0:150 Sequence
0:150 move second child to first child (temp 3-element array of 2-element array of 4-component vector of float)
0:150 'a3' (temp 3-element array of 2-element array of 4-component vector of float)
0:150 Construct vec4 (temp 3-element array of 2-element array of 4-component vector of float)
0:150 'b' (temp 2-element array of 4-component vector of float)
0:150 'b' (temp 2-element array of 4-component vector of float)
0:150 'b' (temp 2-element array of 4-component vector of float)
0:152 Sequence
0:152 move second child to first child (temp 3-element array of 2-element array of 4-component vector of float)
0:152 'a4' (temp 3-element array of 2-element array of 4-component vector of float)
0:152 Constant:
0:152 0.000000
0:152 0.000000
0:152 0.000000
0:152 0.000000
0:152 1.000000
0:152 1.000000
0:152 1.000000
0:152 1.000000
0:152 0.000000
0:152 0.000000
0:152 0.000000
0:152 0.000000
0:152 1.000000
0:152 1.000000
0:152 1.000000
0:152 1.000000
0:152 0.000000
0:152 0.000000
0:152 0.000000
0:152 0.000000
0:152 1.000000
0:152 1.000000
0:152 1.000000
0:152 1.000000
0:? Sequence
0:159 Sequence
0:159 Sequence
@@ -191,7 +222,7 @@ ERROR: node is still EOpNull!
0:171 Constant:
0:171 3 (const int)
0:172 Constant:
0:172 4 (const int)
0:172 2 (const int)
0:175 Constant:
0:175 0.000000
0:178 Constant:
@@ -418,6 +449,41 @@ ERROR: node is still EOpNull!
0:149 0.100000
0:149 0.100000
0:149 0.100000
0:150 Sequence
0:150 move second child to first child (temp 3-element array of 2-element array of 4-component vector of float)
0:150 'a3' (temp 3-element array of 2-element array of 4-component vector of float)
0:150 Construct vec4 (temp 3-element array of 2-element array of 4-component vector of float)
0:150 'b' (temp 2-element array of 4-component vector of float)
0:150 'b' (temp 2-element array of 4-component vector of float)
0:150 'b' (temp 2-element array of 4-component vector of float)
0:152 Sequence
0:152 move second child to first child (temp 3-element array of 2-element array of 4-component vector of float)
0:152 'a4' (temp 3-element array of 2-element array of 4-component vector of float)
0:152 Constant:
0:152 0.000000
0:152 0.000000
0:152 0.000000
0:152 0.000000
0:152 1.000000
0:152 1.000000
0:152 1.000000
0:152 1.000000
0:152 0.000000
0:152 0.000000
0:152 0.000000
0:152 0.000000
0:152 1.000000
0:152 1.000000
0:152 1.000000
0:152 1.000000
0:152 0.000000
0:152 0.000000
0:152 0.000000
0:152 0.000000
0:152 1.000000
0:152 1.000000
0:152 1.000000
0:152 1.000000
0:? Sequence
0:159 Sequence
0:159 Sequence
@@ -445,7 +511,7 @@ ERROR: node is still EOpNull!
0:171 Constant:
0:171 3 (const int)
0:172 Constant:
0:172 4 (const int)
0:172 2 (const int)
0:175 Constant:
0:175 0.000000
0:178 Constant: