mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-24 04:04:58 +00:00
8a1a4a7a8b
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@26501 e7fa87d3-cd2b-0410-9028-fcbf551c1848
512 lines
18 KiB
Plaintext
512 lines
18 KiB
Plaintext
array.frag
|
|
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
|
|
ERROR: 0:30: 'assign' : cannot convert from '4-element array of float' to '5-element array of float'
|
|
ERROR: 0:31: 'assign' : cannot convert from '4-element array of float' to 'implicitly-sized array of float'
|
|
ERROR: 0:33: 'foo' : no matching overloaded function found
|
|
ERROR: 0:42: '[' : array index out of range '5'
|
|
ERROR: 0:45: '[' : array index out of range '1000'
|
|
ERROR: 0:46: '[' : index out of range '-1'
|
|
ERROR: 0:52: '[' : array index out of range '2'
|
|
ERROR: 0:54: 'const' : non-matching or non-convertible constant type for const initializer
|
|
ERROR: 0:56: '=' : cannot convert from 'const 2-element array of int' to '3-element array of int'
|
|
ERROR: 0:57: '[]' : scalar integer expression required
|
|
ERROR: 0:57: '[' : index out of range '-858993459'
|
|
ERROR: 0:58: '[]' : scalar integer expression required
|
|
ERROR: 0:61: '' : array size required
|
|
ERROR: 0:62: '' : array size required
|
|
ERROR: 0:63: '' : array size required
|
|
ERROR: 0:66: '=' : cannot convert from '3-component vector of float' to 'float'
|
|
ERROR: 0:76: 'bar' : no matching overloaded function found
|
|
ERROR: 0:79: '' : array size required
|
|
ERROR: 0:84: 'return' : type does not match, or is not convertible to, the function's return type
|
|
ERROR: 0:93: 'length' : array must be declared with a size before using this method
|
|
ERROR: 0:101: '[' : array index out of range '5'
|
|
ERROR: 23 compilation errors. No code generated.
|
|
|
|
|
|
Shader version: 130
|
|
ERROR: node is still EOpNull!
|
|
0:9 Function Definition: foo(f1[5]; (4-element array of float)
|
|
0:9 Function Parameters:
|
|
0:9 'a' (in 5-element array of float)
|
|
0:11 Sequence
|
|
0:11 Branch: Return with expression
|
|
0:11 Construct float (4-element array of float)
|
|
0:11 direct index (float)
|
|
0:11 'a' (in 5-element array of float)
|
|
0:11 Constant:
|
|
0:11 0 (const int)
|
|
0:11 direct index (float)
|
|
0:11 'a' (in 5-element array of float)
|
|
0:11 Constant:
|
|
0:11 1 (const int)
|
|
0:11 direct index (float)
|
|
0:11 'a' (in 5-element array of float)
|
|
0:11 Constant:
|
|
0:11 2 (const int)
|
|
0:11 direct index (float)
|
|
0:11 'a' (in 5-element array of float)
|
|
0:11 Constant:
|
|
0:11 3 (const int)
|
|
0:14 Function Definition: bar(f1[5]; (void)
|
|
0:14 Function Parameters:
|
|
0:14 '' (in 5-element array of float)
|
|
0:16 Function Definition: main( (void)
|
|
0:16 Function Parameters:
|
|
0:? Sequence
|
|
0:? Sequence
|
|
0:21 move second child to first child (float)
|
|
0:21 direct index (float)
|
|
0:21 'gu' (2-element array of float)
|
|
0:21 Constant:
|
|
0:21 2 (const int)
|
|
0:21 Constant:
|
|
0:21 4.000000
|
|
0:24 move second child to first child (float)
|
|
0:24 direct index (float)
|
|
0:24 'gu' (implicitly-sized array of float)
|
|
0:24 Constant:
|
|
0:24 2 (const int)
|
|
0:24 Constant:
|
|
0:24 4.000000
|
|
0:26 move second child to first child (float)
|
|
0:26 direct index (float)
|
|
0:26 'gu' (implicitly-sized array of float)
|
|
0:26 Constant:
|
|
0:26 3 (const int)
|
|
0:26 Constant:
|
|
0:26 3.000000
|
|
0:27 move second child to first child (float)
|
|
0:27 indirect index (float)
|
|
0:27 'gu' (implicitly-sized array of float)
|
|
0:27 'a' (uniform int)
|
|
0:27 Constant:
|
|
0:27 5.000000
|
|
0:29 move second child to first child (4-element array of float)
|
|
0:29 'g4' (4-element array of float)
|
|
0:29 Function Call: foo(f1[5]; (4-element array of float)
|
|
0:29 'g5' (5-element array of float)
|
|
0:30 'g5' (5-element array of float)
|
|
0:31 'gu' (implicitly-sized array of float)
|
|
0:33 Constant:
|
|
0:33 0.000000
|
|
0:34 Function Call: bar(f1[5]; (void)
|
|
0:34 'g5' (5-element array of float)
|
|
0:36 Test condition and select (void)
|
|
0:36 Condition
|
|
0:36 Compare Equal (bool)
|
|
0:36 Constant:
|
|
0:36 1.000000
|
|
0:36 2.000000
|
|
0:36 3.000000
|
|
0:36 4.000000
|
|
0:36 'g4' (4-element array of float)
|
|
0:36 true case
|
|
0:37 move second child to first child (float)
|
|
0:37 direct index (float)
|
|
0:37 'gu' (implicitly-sized array of float)
|
|
0:37 Constant:
|
|
0:37 0 (const int)
|
|
0:37 Constant:
|
|
0:37 2.000000
|
|
0:40 move second child to first child (float)
|
|
0:40 direct index (float)
|
|
0:40 'u' (5-element array of float)
|
|
0:40 Constant:
|
|
0:40 2 (const int)
|
|
0:40 Constant:
|
|
0:40 3.000000
|
|
0:42 move second child to first child (float)
|
|
0:42 direct index (float)
|
|
0:42 'u' (5-element array of float)
|
|
0:42 Constant:
|
|
0:42 5 (const int)
|
|
0:42 Constant:
|
|
0:42 5.000000
|
|
0:43 Function Call: foo(f1[5]; (4-element array of float)
|
|
0:43 'u' (5-element array of float)
|
|
0:45 move second child to first child (4-component vector of float)
|
|
0:45 direct index (4-component vector of float)
|
|
0:45 'gl_FragData' (fragColor 32-element array of 4-component vector of float)
|
|
0:45 Constant:
|
|
0:45 1000 (const int)
|
|
0:45 Constant:
|
|
0:45 1.000000
|
|
0:45 1.000000
|
|
0:45 1.000000
|
|
0:45 1.000000
|
|
0:46 move second child to first child (4-component vector of float)
|
|
0:46 direct index (4-component vector of float)
|
|
0:46 'gl_FragData' (fragColor 32-element array of 4-component vector of float)
|
|
0:46 Constant:
|
|
0:46 -1 (const int)
|
|
0:46 Constant:
|
|
0:46 1.000000
|
|
0:46 1.000000
|
|
0:46 1.000000
|
|
0:46 1.000000
|
|
0:47 move second child to first child (4-component vector of float)
|
|
0:47 direct index (4-component vector of float)
|
|
0:47 'gl_FragData' (fragColor 32-element array of 4-component vector of float)
|
|
0:47 Constant:
|
|
0:47 3 (const int)
|
|
0:47 Constant:
|
|
0:47 1.000000
|
|
0:47 1.000000
|
|
0:47 1.000000
|
|
0:47 1.000000
|
|
0:50 Sequence
|
|
0:50 move second child to first child (int)
|
|
0:50 'sum' (int)
|
|
0:50 Constant:
|
|
0:50 3 (const int)
|
|
0:51 add second child into first child (int)
|
|
0:51 'sum' (int)
|
|
0:51 Constant:
|
|
0:51 2 (const int)
|
|
0:52 add second child into first child (int)
|
|
0:52 'sum' (int)
|
|
0:52 Constant:
|
|
0:52 2 (const int)
|
|
0:55 Sequence
|
|
0:55 move second child to first child (2-element array of int)
|
|
0:55 'ica' (2-element array of int)
|
|
0:55 Constant:
|
|
0:55 3 (const int)
|
|
0:55 2 (const int)
|
|
0:57 move second child to first child (int)
|
|
0:57 direct index (int)
|
|
0:57 'ica' (2-element array of int)
|
|
0:57 Constant:
|
|
0:57 3.100000
|
|
0:57 Constant:
|
|
0:57 3 (const int)
|
|
0:58 move second child to first child (int)
|
|
0:58 indirect index (int)
|
|
0:58 'ica' (2-element array of int)
|
|
0:58 direct index (float)
|
|
0:58 'u' (5-element array of float)
|
|
0:58 Constant:
|
|
0:58 1 (const int)
|
|
0:58 Constant:
|
|
0:58 4 (const int)
|
|
0:68 Function Definition: foo( (void)
|
|
0:68 Function Parameters:
|
|
0:? Sequence
|
|
0:71 move second child to first child (int)
|
|
0:71 direct index (int)
|
|
0:71 'uns' (implicitly-sized array of int)
|
|
0:71 Constant:
|
|
0:71 3 (const int)
|
|
0:71 Constant:
|
|
0:71 40 (const int)
|
|
0:72 move second child to first child (int)
|
|
0:72 direct index (int)
|
|
0:72 'uns' (implicitly-sized array of int)
|
|
0:72 Constant:
|
|
0:72 1 (const int)
|
|
0:72 Constant:
|
|
0:72 30 (const int)
|
|
0:73 move second child to first child (3-component vector of float)
|
|
0:73 direct index (3-component vector of float)
|
|
0:73 'guns' (implicitly-sized array of 3-component vector of float)
|
|
0:73 Constant:
|
|
0:73 2 (const int)
|
|
0:73 Constant:
|
|
0:73 2.400000
|
|
0:73 2.400000
|
|
0:73 2.400000
|
|
0:76 Constant:
|
|
0:76 0.000000
|
|
0:79 Function Definition: foo2( (implicitly-sized array of float)
|
|
0:79 Function Parameters:
|
|
0:? Sequence
|
|
0:82 Branch: Return with expression
|
|
0:82 'f' (implicitly-sized array of float)
|
|
0:84 Branch: Return with expression
|
|
0:84 'g' (9-element array of float)
|
|
0:89 Function Definition: foo3( (void)
|
|
0:89 Function Parameters:
|
|
0:? Sequence
|
|
0:92 move second child to first child (float)
|
|
0:92 direct index (float)
|
|
0:92 'resize1' (3-element array of float)
|
|
0:92 Constant:
|
|
0:92 2 (const int)
|
|
0:92 Constant:
|
|
0:92 4.000000
|
|
0:93 Constant:
|
|
0:93 1 (const int)
|
|
0:95 Constant:
|
|
0:95 3 (const int)
|
|
0:98 move second child to first child (float)
|
|
0:98 direct index (float)
|
|
0:98 'resize2' (5-element array of float)
|
|
0:98 Constant:
|
|
0:98 5 (const int)
|
|
0:98 Constant:
|
|
0:98 4.000000
|
|
0:100 Constant:
|
|
0:100 5 (const int)
|
|
0:101 move second child to first child (float)
|
|
0:101 direct index (float)
|
|
0:101 'resize2' (5-element array of float)
|
|
0:101 Constant:
|
|
0:101 5 (const int)
|
|
0:101 Constant:
|
|
0:101 4.000000
|
|
0:? Linker Objects
|
|
0:? 'gu' (implicitly-sized array of float)
|
|
0:? 'g4' (4-element array of float)
|
|
0:? 'g5' (5-element array of float)
|
|
0:? 'a' (uniform int)
|
|
0:? 'guns' (implicitly-sized array of 3-component vector of float)
|
|
0:? 'f' (float)
|
|
0:? 'gUnusedUnsized' (implicitly-sized array of float)
|
|
|
|
|
|
Linked fragment stage:
|
|
|
|
|
|
Shader version: 130
|
|
ERROR: node is still EOpNull!
|
|
0:9 Function Definition: foo(f1[5]; (4-element array of float)
|
|
0:9 Function Parameters:
|
|
0:9 'a' (in 5-element array of float)
|
|
0:11 Sequence
|
|
0:11 Branch: Return with expression
|
|
0:11 Construct float (4-element array of float)
|
|
0:11 direct index (float)
|
|
0:11 'a' (in 5-element array of float)
|
|
0:11 Constant:
|
|
0:11 0 (const int)
|
|
0:11 direct index (float)
|
|
0:11 'a' (in 5-element array of float)
|
|
0:11 Constant:
|
|
0:11 1 (const int)
|
|
0:11 direct index (float)
|
|
0:11 'a' (in 5-element array of float)
|
|
0:11 Constant:
|
|
0:11 2 (const int)
|
|
0:11 direct index (float)
|
|
0:11 'a' (in 5-element array of float)
|
|
0:11 Constant:
|
|
0:11 3 (const int)
|
|
0:14 Function Definition: bar(f1[5]; (void)
|
|
0:14 Function Parameters:
|
|
0:14 '' (in 5-element array of float)
|
|
0:16 Function Definition: main( (void)
|
|
0:16 Function Parameters:
|
|
0:? Sequence
|
|
0:? Sequence
|
|
0:21 move second child to first child (float)
|
|
0:21 direct index (float)
|
|
0:21 'gu' (2-element array of float)
|
|
0:21 Constant:
|
|
0:21 2 (const int)
|
|
0:21 Constant:
|
|
0:21 4.000000
|
|
0:24 move second child to first child (float)
|
|
0:24 direct index (float)
|
|
0:24 'gu' (4-element array of float)
|
|
0:24 Constant:
|
|
0:24 2 (const int)
|
|
0:24 Constant:
|
|
0:24 4.000000
|
|
0:26 move second child to first child (float)
|
|
0:26 direct index (float)
|
|
0:26 'gu' (4-element array of float)
|
|
0:26 Constant:
|
|
0:26 3 (const int)
|
|
0:26 Constant:
|
|
0:26 3.000000
|
|
0:27 move second child to first child (float)
|
|
0:27 indirect index (float)
|
|
0:27 'gu' (4-element array of float)
|
|
0:27 'a' (uniform int)
|
|
0:27 Constant:
|
|
0:27 5.000000
|
|
0:29 move second child to first child (4-element array of float)
|
|
0:29 'g4' (4-element array of float)
|
|
0:29 Function Call: foo(f1[5]; (4-element array of float)
|
|
0:29 'g5' (5-element array of float)
|
|
0:30 'g5' (5-element array of float)
|
|
0:31 'gu' (4-element array of float)
|
|
0:33 Constant:
|
|
0:33 0.000000
|
|
0:34 Function Call: bar(f1[5]; (void)
|
|
0:34 'g5' (5-element array of float)
|
|
0:36 Test condition and select (void)
|
|
0:36 Condition
|
|
0:36 Compare Equal (bool)
|
|
0:36 Constant:
|
|
0:36 1.000000
|
|
0:36 2.000000
|
|
0:36 3.000000
|
|
0:36 4.000000
|
|
0:36 'g4' (4-element array of float)
|
|
0:36 true case
|
|
0:37 move second child to first child (float)
|
|
0:37 direct index (float)
|
|
0:37 'gu' (4-element array of float)
|
|
0:37 Constant:
|
|
0:37 0 (const int)
|
|
0:37 Constant:
|
|
0:37 2.000000
|
|
0:40 move second child to first child (float)
|
|
0:40 direct index (float)
|
|
0:40 'u' (5-element array of float)
|
|
0:40 Constant:
|
|
0:40 2 (const int)
|
|
0:40 Constant:
|
|
0:40 3.000000
|
|
0:42 move second child to first child (float)
|
|
0:42 direct index (float)
|
|
0:42 'u' (5-element array of float)
|
|
0:42 Constant:
|
|
0:42 5 (const int)
|
|
0:42 Constant:
|
|
0:42 5.000000
|
|
0:43 Function Call: foo(f1[5]; (4-element array of float)
|
|
0:43 'u' (5-element array of float)
|
|
0:45 move second child to first child (4-component vector of float)
|
|
0:45 direct index (4-component vector of float)
|
|
0:45 'gl_FragData' (fragColor 32-element array of 4-component vector of float)
|
|
0:45 Constant:
|
|
0:45 1000 (const int)
|
|
0:45 Constant:
|
|
0:45 1.000000
|
|
0:45 1.000000
|
|
0:45 1.000000
|
|
0:45 1.000000
|
|
0:46 move second child to first child (4-component vector of float)
|
|
0:46 direct index (4-component vector of float)
|
|
0:46 'gl_FragData' (fragColor 32-element array of 4-component vector of float)
|
|
0:46 Constant:
|
|
0:46 -1 (const int)
|
|
0:46 Constant:
|
|
0:46 1.000000
|
|
0:46 1.000000
|
|
0:46 1.000000
|
|
0:46 1.000000
|
|
0:47 move second child to first child (4-component vector of float)
|
|
0:47 direct index (4-component vector of float)
|
|
0:47 'gl_FragData' (fragColor 32-element array of 4-component vector of float)
|
|
0:47 Constant:
|
|
0:47 3 (const int)
|
|
0:47 Constant:
|
|
0:47 1.000000
|
|
0:47 1.000000
|
|
0:47 1.000000
|
|
0:47 1.000000
|
|
0:50 Sequence
|
|
0:50 move second child to first child (int)
|
|
0:50 'sum' (int)
|
|
0:50 Constant:
|
|
0:50 3 (const int)
|
|
0:51 add second child into first child (int)
|
|
0:51 'sum' (int)
|
|
0:51 Constant:
|
|
0:51 2 (const int)
|
|
0:52 add second child into first child (int)
|
|
0:52 'sum' (int)
|
|
0:52 Constant:
|
|
0:52 2 (const int)
|
|
0:55 Sequence
|
|
0:55 move second child to first child (2-element array of int)
|
|
0:55 'ica' (2-element array of int)
|
|
0:55 Constant:
|
|
0:55 3 (const int)
|
|
0:55 2 (const int)
|
|
0:57 move second child to first child (int)
|
|
0:57 direct index (int)
|
|
0:57 'ica' (2-element array of int)
|
|
0:57 Constant:
|
|
0:57 3.100000
|
|
0:57 Constant:
|
|
0:57 3 (const int)
|
|
0:58 move second child to first child (int)
|
|
0:58 indirect index (int)
|
|
0:58 'ica' (2-element array of int)
|
|
0:58 direct index (float)
|
|
0:58 'u' (5-element array of float)
|
|
0:58 Constant:
|
|
0:58 1 (const int)
|
|
0:58 Constant:
|
|
0:58 4 (const int)
|
|
0:68 Function Definition: foo( (void)
|
|
0:68 Function Parameters:
|
|
0:? Sequence
|
|
0:71 move second child to first child (int)
|
|
0:71 direct index (int)
|
|
0:71 'uns' (4-element array of int)
|
|
0:71 Constant:
|
|
0:71 3 (const int)
|
|
0:71 Constant:
|
|
0:71 40 (const int)
|
|
0:72 move second child to first child (int)
|
|
0:72 direct index (int)
|
|
0:72 'uns' (4-element array of int)
|
|
0:72 Constant:
|
|
0:72 1 (const int)
|
|
0:72 Constant:
|
|
0:72 30 (const int)
|
|
0:73 move second child to first child (3-component vector of float)
|
|
0:73 direct index (3-component vector of float)
|
|
0:73 'guns' (8-element array of 3-component vector of float)
|
|
0:73 Constant:
|
|
0:73 2 (const int)
|
|
0:73 Constant:
|
|
0:73 2.400000
|
|
0:73 2.400000
|
|
0:73 2.400000
|
|
0:76 Constant:
|
|
0:76 0.000000
|
|
0:79 Function Definition: foo2( (implicitly-sized array of float)
|
|
0:79 Function Parameters:
|
|
0:? Sequence
|
|
0:82 Branch: Return with expression
|
|
0:82 'f' (1-element array of float)
|
|
0:84 Branch: Return with expression
|
|
0:84 'g' (9-element array of float)
|
|
0:89 Function Definition: foo3( (void)
|
|
0:89 Function Parameters:
|
|
0:? Sequence
|
|
0:92 move second child to first child (float)
|
|
0:92 direct index (float)
|
|
0:92 'resize1' (3-element array of float)
|
|
0:92 Constant:
|
|
0:92 2 (const int)
|
|
0:92 Constant:
|
|
0:92 4.000000
|
|
0:93 Constant:
|
|
0:93 1 (const int)
|
|
0:95 Constant:
|
|
0:95 3 (const int)
|
|
0:98 move second child to first child (float)
|
|
0:98 direct index (float)
|
|
0:98 'resize2' (5-element array of float)
|
|
0:98 Constant:
|
|
0:98 5 (const int)
|
|
0:98 Constant:
|
|
0:98 4.000000
|
|
0:100 Constant:
|
|
0:100 5 (const int)
|
|
0:101 move second child to first child (float)
|
|
0:101 direct index (float)
|
|
0:101 'resize2' (5-element array of float)
|
|
0:101 Constant:
|
|
0:101 5 (const int)
|
|
0:101 Constant:
|
|
0:101 4.000000
|
|
0:? Linker Objects
|
|
0:? 'gu' (4-element array of float)
|
|
0:? 'g4' (4-element array of float)
|
|
0:? 'g5' (5-element array of float)
|
|
0:? 'a' (uniform int)
|
|
0:? 'guns' (8-element array of 3-component vector of float)
|
|
0:? 'f' (float)
|
|
0:? 'gUnusedUnsized' (1-element array of float)
|
|
|