1 array.frag 2 ERROR: 0:21: '[' : array index out of range '2' 3 ERROR: 0:27: '[' : array must be redeclared with a size before being indexed with a variable 4 ERROR: 0:30: 'assign' : cannot convert from ' global 4-element array of float' to ' global 5-element array of float' 5 ERROR: 0:31: 'assign' : cannot convert from ' global 4-element array of float' to ' global runtime-sized array of float' 6 ERROR: 0:33: 'foo' : no matching overloaded function found 7 ERROR: 0:42: '[' : array index out of range '5' 8 ERROR: 0:45: '[' : array index out of range '1000' 9 ERROR: 0:46: '[' : index out of range '-1' 10 ERROR: 0:52: '[' : array index out of range '2' 11 ERROR: 0:54: 'const' : non-matching or non-convertible constant type for const initializer 12 ERROR: 0:56: '=' : cannot convert from ' const 2-element array of int' to ' temp 3-element array of int' 13 ERROR: 0:57: '[]' : scalar integer expression required 14 ERROR: 0:57: '[' : index out of range '-858993459' 15 ERROR: 0:58: '[]' : scalar integer expression required 16 ERROR: 0:61: '' : array size required 17 ERROR: 0:62: '' : array size required 18 ERROR: 0:63: '' : array size required 19 ERROR: 0:66: '=' : cannot convert from ' temp 3-component vector of float' to ' global float' 20 ERROR: 0:76: 'bar' : no matching overloaded function found 21 ERROR: 0:79: '' : array size required 22 ERROR: 0:84: 'return' : type does not match, or is not convertible to, the function's return type 23 ERROR: 0:93: 'length' : array must be declared with a size before using this method 24 ERROR: 0:101: '[' : array index out of range '5' 25 ERROR: 0:104: 'constructor' : array constructor must have at least one argument 26 ERROR: 0:104: '=' : cannot convert from ' const float' to ' global unsized 1-element array of int' 27 ERROR: 0:106: 'constructor' : array argument must be sized 28 ERROR: 0:111: 'variable index' : required extension not requested: GL_EXT_nonuniform_qualifier 29 ERROR: 0:111: 'variable indexing sampler array' : not supported with this profile: none 30 ERROR: 0:112: '[]' : array initializer must be sized 31 ERROR: 29 compilation errors. No code generated. 32 33 34 Shader version: 130 35 ERROR: node is still EOpNull! 36 0:9 Function Definition: foo(f1[5]; ( global 4-element array of float) 37 0:9 Function Parameters: 38 0:9 'a' ( in 5-element array of float) 39 0:11 Sequence 40 0:11 Branch: Return with expression 41 0:11 Construct float ( temp 4-element array of float) 42 0:11 direct index ( temp float) 43 0:11 'a' ( in 5-element array of float) 44 0:11 Constant: 45 0:11 0 (const int) 46 0:11 direct index ( temp float) 47 0:11 'a' ( in 5-element array of float) 48 0:11 Constant: 49 0:11 1 (const int) 50 0:11 direct index ( temp float) 51 0:11 'a' ( in 5-element array of float) 52 0:11 Constant: 53 0:11 2 (const int) 54 0:11 direct index ( temp float) 55 0:11 'a' ( in 5-element array of float) 56 0:11 Constant: 57 0:11 3 (const int) 58 0:14 Function Definition: bar(f1[5]; ( global void) 59 0:14 Function Parameters: 60 0:14 '' ( in 5-element array of float) 61 0:16 Function Definition: main( ( global void) 62 0:16 Function Parameters: 63 0:? Sequence 64 0:? Sequence 65 0:21 move second child to first child ( temp float) 66 0:21 direct index ( temp float) 67 0:21 'gu' ( temp 2-element array of float) 68 0:21 Constant: 69 0:21 2 (const int) 70 0:21 Constant: 71 0:21 4.000000 72 0:24 move second child to first child ( temp float) 73 0:24 direct index ( temp float) 74 0:24 'gu' ( global runtime-sized array of float) 75 0:24 Constant: 76 0:24 2 (const int) 77 0:24 Constant: 78 0:24 4.000000 79 0:26 move second child to first child ( temp float) 80 0:26 direct index ( temp float) 81 0:26 'gu' ( global runtime-sized array of float) 82 0:26 Constant: 83 0:26 3 (const int) 84 0:26 Constant: 85 0:26 3.000000 86 0:27 move second child to first child ( temp float) 87 0:27 indirect index ( temp float) 88 0:27 'gu' ( global runtime-sized array of float) 89 0:27 'a' ( uniform int) 90 0:27 Constant: 91 0:27 5.000000 92 0:29 move second child to first child ( temp 4-element array of float) 93 0:29 'g4' ( global 4-element array of float) 94 0:29 Function Call: foo(f1[5]; ( global 4-element array of float) 95 0:29 'g5' ( global 5-element array of float) 96 0:30 'g5' ( global 5-element array of float) 97 0:31 'gu' ( global runtime-sized array of float) 98 0:33 Constant: 99 0:33 0.000000 100 0:34 Function Call: bar(f1[5]; ( global void) 101 0:34 'g5' ( global 5-element array of float) 102 0:36 Test condition and select ( temp void) 103 0:36 Condition 104 0:36 Compare Equal ( temp bool) 105 0:36 Constant: 106 0:36 1.000000 107 0:36 2.000000 108 0:36 3.000000 109 0:36 4.000000 110 0:36 'g4' ( global 4-element array of float) 111 0:36 true case 112 0:37 move second child to first child ( temp float) 113 0:37 direct index ( temp float) 114 0:37 'gu' ( global runtime-sized array of float) 115 0:37 Constant: 116 0:37 0 (const int) 117 0:37 Constant: 118 0:37 2.000000 119 0:40 move second child to first child ( temp float) 120 0:40 direct index ( temp float) 121 0:40 'u' ( temp 5-element array of float) 122 0:40 Constant: 123 0:40 2 (const int) 124 0:40 Constant: 125 0:40 3.000000 126 0:42 move second child to first child ( temp float) 127 0:42 direct index ( temp float) 128 0:42 'u' ( temp 5-element array of float) 129 0:42 Constant: 130 0:42 5 (const int) 131 0:42 Constant: 132 0:42 5.000000 133 0:43 Function Call: foo(f1[5]; ( global 4-element array of float) 134 0:43 'u' ( temp 5-element array of float) 135 0:45 move second child to first child ( temp 4-component vector of float) 136 0:45 direct index ( temp 4-component vector of float FragData) 137 0:45 'gl_FragData' ( fragColor 32-element array of 4-component vector of float FragData) 138 0:45 Constant: 139 0:45 1000 (const int) 140 0:45 Constant: 141 0:45 1.000000 142 0:45 1.000000 143 0:45 1.000000 144 0:45 1.000000 145 0:46 move second child to first child ( temp 4-component vector of float) 146 0:46 direct index ( temp 4-component vector of float FragData) 147 0:46 'gl_FragData' ( fragColor 32-element array of 4-component vector of float FragData) 148 0:46 Constant: 149 0:46 -1 (const int) 150 0:46 Constant: 151 0:46 1.000000 152 0:46 1.000000 153 0:46 1.000000 154 0:46 1.000000 155 0:47 move second child to first child ( temp 4-component vector of float) 156 0:47 direct index ( temp 4-component vector of float FragData) 157 0:47 'gl_FragData' ( fragColor 32-element array of 4-component vector of float FragData) 158 0:47 Constant: 159 0:47 3 (const int) 160 0:47 Constant: 161 0:47 1.000000 162 0:47 1.000000 163 0:47 1.000000 164 0:47 1.000000 165 0:50 Sequence 166 0:50 move second child to first child ( temp int) 167 0:50 'sum' ( temp int) 168 0:50 Constant: 169 0:50 3 (const int) 170 0:51 add second child into first child ( temp int) 171 0:51 'sum' ( temp int) 172 0:51 Constant: 173 0:51 2 (const int) 174 0:52 add second child into first child ( temp int) 175 0:52 'sum' ( temp int) 176 0:52 Constant: 177 0:52 2 (const int) 178 0:55 Sequence 179 0:55 move second child to first child ( temp 2-element array of int) 180 0:55 'ica' ( temp 2-element array of int) 181 0:55 Constant: 182 0:55 3 (const int) 183 0:55 2 (const int) 184 0:57 move second child to first child ( temp int) 185 0:57 direct index ( temp int) 186 0:57 'ica' ( temp 2-element array of int) 187 0:57 Constant: 188 0:57 3.100000 189 0:57 Constant: 190 0:57 3 (const int) 191 0:58 move second child to first child ( temp int) 192 0:58 indirect index ( temp int) 193 0:58 'ica' ( temp 2-element array of int) 194 0:58 direct index ( temp float) 195 0:58 'u' ( temp 5-element array of float) 196 0:58 Constant: 197 0:58 1 (const int) 198 0:58 Constant: 199 0:58 4 (const int) 200 0:68 Function Definition: foo( ( global void) 201 0:68 Function Parameters: 202 0:? Sequence 203 0:71 move second child to first child ( temp int) 204 0:71 direct index ( temp int) 205 0:71 'uns' ( temp unsized 4-element array of int) 206 0:71 Constant: 207 0:71 3 (const int) 208 0:71 Constant: 209 0:71 40 (const int) 210 0:72 move second child to first child ( temp int) 211 0:72 direct index ( temp int) 212 0:72 'uns' ( temp unsized 4-element array of int) 213 0:72 Constant: 214 0:72 1 (const int) 215 0:72 Constant: 216 0:72 30 (const int) 217 0:73 move second child to first child ( temp 3-component vector of float) 218 0:73 direct index ( temp 3-component vector of float) 219 0:73 'guns' ( global unsized 8-element array of 3-component vector of float) 220 0:73 Constant: 221 0:73 2 (const int) 222 0:73 Constant: 223 0:73 2.400000 224 0:73 2.400000 225 0:73 2.400000 226 0:76 Constant: 227 0:76 0.000000 228 0:79 Function Definition: foo2( ( global unsized 1-element array of float) 229 0:79 Function Parameters: 230 0:? Sequence 231 0:82 Branch: Return with expression 232 0:82 'f' ( temp unsized 1-element array of float) 233 0:84 Branch: Return with expression 234 0:84 'g' ( temp 9-element array of float) 235 0:89 Function Definition: foo3( ( global void) 236 0:89 Function Parameters: 237 0:? Sequence 238 0:92 move second child to first child ( temp float) 239 0:92 direct index ( temp float) 240 0:92 'resize1' ( temp 3-element array of float) 241 0:92 Constant: 242 0:92 2 (const int) 243 0:92 Constant: 244 0:92 4.000000 245 0:93 Constant: 246 0:93 1 (const int) 247 0:95 Constant: 248 0:95 3 (const int) 249 0:98 move second child to first child ( temp float) 250 0:98 direct index ( temp float) 251 0:98 'resize2' ( temp 5-element array of float) 252 0:98 Constant: 253 0:98 5 (const int) 254 0:98 Constant: 255 0:98 4.000000 256 0:100 Constant: 257 0:100 5 (const int) 258 0:101 move second child to first child ( temp float) 259 0:101 direct index ( temp float) 260 0:101 'resize2' ( temp 5-element array of float) 261 0:101 Constant: 262 0:101 5 (const int) 263 0:101 Constant: 264 0:101 4.000000 265 0:106 Sequence 266 0:106 move second child to first child ( temp float) 267 0:106 'b' ( global float) 268 0:106 Constant: 269 0:106 0.000000 270 0:109 Function Definition: foo4( ( global void) 271 0:109 Function Parameters: 272 0:111 Sequence 273 0:111 indirect index ( temp sampler2D) 274 0:111 's2d' ( uniform runtime-sized array of sampler2D) 275 0:111 'a' ( uniform int) 276 0:112 Sequence 277 0:112 move second child to first child ( temp unsized 1-element array of float) 278 0:112 'local' ( temp unsized 1-element array of float) 279 0:112 'gUnusedUnsized' ( global unsized 1-element array of float) 280 0:? Linker Objects 281 0:? 'gu' ( global runtime-sized array of float) 282 0:? 'g4' ( global 4-element array of float) 283 0:? 'g5' ( global 5-element array of float) 284 0:? 'a' ( uniform int) 285 0:? 'guns' ( global unsized 8-element array of 3-component vector of float) 286 0:? 'f' ( global float) 287 0:? 'gUnusedUnsized' ( global unsized 1-element array of float) 288 0:? 'i' ( global unsized 1-element array of int) 289 0:? 'emptyA' ( global unsized 1-element array of float) 290 0:? 'b' ( global float) 291 0:? 's2d' ( uniform runtime-sized array of sampler2D) 292 293 294 Linked fragment stage: 295 296 297 Shader version: 130 298 ERROR: node is still EOpNull! 299 0:9 Function Definition: foo(f1[5]; ( global 4-element array of float) 300 0:9 Function Parameters: 301 0:9 'a' ( in 5-element array of float) 302 0:11 Sequence 303 0:11 Branch: Return with expression 304 0:11 Construct float ( temp 4-element array of float) 305 0:11 direct index ( temp float) 306 0:11 'a' ( in 5-element array of float) 307 0:11 Constant: 308 0:11 0 (const int) 309 0:11 direct index ( temp float) 310 0:11 'a' ( in 5-element array of float) 311 0:11 Constant: 312 0:11 1 (const int) 313 0:11 direct index ( temp float) 314 0:11 'a' ( in 5-element array of float) 315 0:11 Constant: 316 0:11 2 (const int) 317 0:11 direct index ( temp float) 318 0:11 'a' ( in 5-element array of float) 319 0:11 Constant: 320 0:11 3 (const int) 321 0:14 Function Definition: bar(f1[5]; ( global void) 322 0:14 Function Parameters: 323 0:14 '' ( in 5-element array of float) 324 0:16 Function Definition: main( ( global void) 325 0:16 Function Parameters: 326 0:? Sequence 327 0:? Sequence 328 0:21 move second child to first child ( temp float) 329 0:21 direct index ( temp float) 330 0:21 'gu' ( temp 2-element array of float) 331 0:21 Constant: 332 0:21 2 (const int) 333 0:21 Constant: 334 0:21 4.000000 335 0:24 move second child to first child ( temp float) 336 0:24 direct index ( temp float) 337 0:24 'gu' ( global runtime-sized array of float) 338 0:24 Constant: 339 0:24 2 (const int) 340 0:24 Constant: 341 0:24 4.000000 342 0:26 move second child to first child ( temp float) 343 0:26 direct index ( temp float) 344 0:26 'gu' ( global runtime-sized array of float) 345 0:26 Constant: 346 0:26 3 (const int) 347 0:26 Constant: 348 0:26 3.000000 349 0:27 move second child to first child ( temp float) 350 0:27 indirect index ( temp float) 351 0:27 'gu' ( global runtime-sized array of float) 352 0:27 'a' ( uniform int) 353 0:27 Constant: 354 0:27 5.000000 355 0:29 move second child to first child ( temp 4-element array of float) 356 0:29 'g4' ( global 4-element array of float) 357 0:29 Function Call: foo(f1[5]; ( global 4-element array of float) 358 0:29 'g5' ( global 5-element array of float) 359 0:30 'g5' ( global 5-element array of float) 360 0:31 'gu' ( global runtime-sized array of float) 361 0:33 Constant: 362 0:33 0.000000 363 0:34 Function Call: bar(f1[5]; ( global void) 364 0:34 'g5' ( global 5-element array of float) 365 0:36 Test condition and select ( temp void) 366 0:36 Condition 367 0:36 Compare Equal ( temp bool) 368 0:36 Constant: 369 0:36 1.000000 370 0:36 2.000000 371 0:36 3.000000 372 0:36 4.000000 373 0:36 'g4' ( global 4-element array of float) 374 0:36 true case 375 0:37 move second child to first child ( temp float) 376 0:37 direct index ( temp float) 377 0:37 'gu' ( global runtime-sized array of float) 378 0:37 Constant: 379 0:37 0 (const int) 380 0:37 Constant: 381 0:37 2.000000 382 0:40 move second child to first child ( temp float) 383 0:40 direct index ( temp float) 384 0:40 'u' ( temp 5-element array of float) 385 0:40 Constant: 386 0:40 2 (const int) 387 0:40 Constant: 388 0:40 3.000000 389 0:42 move second child to first child ( temp float) 390 0:42 direct index ( temp float) 391 0:42 'u' ( temp 5-element array of float) 392 0:42 Constant: 393 0:42 5 (const int) 394 0:42 Constant: 395 0:42 5.000000 396 0:43 Function Call: foo(f1[5]; ( global 4-element array of float) 397 0:43 'u' ( temp 5-element array of float) 398 0:45 move second child to first child ( temp 4-component vector of float) 399 0:45 direct index ( temp 4-component vector of float FragData) 400 0:45 'gl_FragData' ( fragColor 32-element array of 4-component vector of float FragData) 401 0:45 Constant: 402 0:45 1000 (const int) 403 0:45 Constant: 404 0:45 1.000000 405 0:45 1.000000 406 0:45 1.000000 407 0:45 1.000000 408 0:46 move second child to first child ( temp 4-component vector of float) 409 0:46 direct index ( temp 4-component vector of float FragData) 410 0:46 'gl_FragData' ( fragColor 32-element array of 4-component vector of float FragData) 411 0:46 Constant: 412 0:46 -1 (const int) 413 0:46 Constant: 414 0:46 1.000000 415 0:46 1.000000 416 0:46 1.000000 417 0:46 1.000000 418 0:47 move second child to first child ( temp 4-component vector of float) 419 0:47 direct index ( temp 4-component vector of float FragData) 420 0:47 'gl_FragData' ( fragColor 32-element array of 4-component vector of float FragData) 421 0:47 Constant: 422 0:47 3 (const int) 423 0:47 Constant: 424 0:47 1.000000 425 0:47 1.000000 426 0:47 1.000000 427 0:47 1.000000 428 0:50 Sequence 429 0:50 move second child to first child ( temp int) 430 0:50 'sum' ( temp int) 431 0:50 Constant: 432 0:50 3 (const int) 433 0:51 add second child into first child ( temp int) 434 0:51 'sum' ( temp int) 435 0:51 Constant: 436 0:51 2 (const int) 437 0:52 add second child into first child ( temp int) 438 0:52 'sum' ( temp int) 439 0:52 Constant: 440 0:52 2 (const int) 441 0:55 Sequence 442 0:55 move second child to first child ( temp 2-element array of int) 443 0:55 'ica' ( temp 2-element array of int) 444 0:55 Constant: 445 0:55 3 (const int) 446 0:55 2 (const int) 447 0:57 move second child to first child ( temp int) 448 0:57 direct index ( temp int) 449 0:57 'ica' ( temp 2-element array of int) 450 0:57 Constant: 451 0:57 3.100000 452 0:57 Constant: 453 0:57 3 (const int) 454 0:58 move second child to first child ( temp int) 455 0:58 indirect index ( temp int) 456 0:58 'ica' ( temp 2-element array of int) 457 0:58 direct index ( temp float) 458 0:58 'u' ( temp 5-element array of float) 459 0:58 Constant: 460 0:58 1 (const int) 461 0:58 Constant: 462 0:58 4 (const int) 463 0:106 Sequence 464 0:106 move second child to first child ( temp float) 465 0:106 'b' ( global float) 466 0:106 Constant: 467 0:106 0.000000 468 0:? Linker Objects 469 0:? 'gu' ( global runtime-sized array of float) 470 0:? 'g4' ( global 4-element array of float) 471 0:? 'g5' ( global 5-element array of float) 472 0:? 'a' ( uniform int) 473 0:? 'guns' ( global 8-element array of 3-component vector of float) 474 0:? 'f' ( global float) 475 0:? 'gUnusedUnsized' ( global 1-element array of float) 476 0:? 'i' ( global 1-element array of int) 477 0:? 'emptyA' ( global 1-element array of float) 478 0:? 'b' ( global float) 479 0:? 's2d' ( uniform runtime-sized array of sampler2D) 480 481