1 constFold.frag 2 ERROR: 0:109: '[' : index out of range '-1' 3 ERROR: 0:110: '[' : vector index out of range '4' 4 ERROR: 0:111: '[' : index out of range '-2' 5 ERROR: 0:112: '[' : index out of range '-1' 6 ERROR: 0:113: '[' : vector index out of range '3' 7 ERROR: 0:114: '[' : matrix index out of range '3' 8 ERROR: 6 compilation errors. No code generated. 9 10 11 Shader version: 430 12 ERROR: node is still EOpNull! 13 0:28 Function Definition: main( ( global void) 14 0:28 Function Parameters: 15 0:30 Sequence 16 0:30 Sequence 17 0:30 move second child to first child ( temp 4-component vector of float) 18 0:30 'dx' ( temp 4-component vector of float) 19 0:30 dPdx ( global 4-component vector of float) 20 0:30 'inv' ( smooth in 4-component vector of float) 21 0:37 move second child to first child ( temp 4-component vector of float) 22 0:37 'FragColor' ( out 4-component vector of float) 23 0:37 Constant: 24 0:37 2.000000 25 0:37 6.000000 26 0:37 3.000000 27 0:37 171.887339 28 0:42 move second child to first child ( temp 4-component vector of float) 29 0:42 'FragColor' ( out 4-component vector of float) 30 0:42 Constant: 31 0:42 3.000000 32 0:42 2.000000 33 0:42 0.001593 34 0:42 -0.999999 35 0:43 move second child to first child ( temp 2-component vector of float) 36 0:43 'out2' ( out 2-component vector of float) 37 0:43 Constant: 38 0:43 5.600000 39 0:43 5.800000 40 0:44 move second child to first child ( temp 4-component vector of float) 41 0:44 'out3' ( out 4-component vector of float) 42 0:44 Constant: 43 0:44 20.085537 44 0:44 2.302585 45 0:44 16.000000 46 0:44 8.000000 47 0:45 move second child to first child ( temp 4-component vector of float) 48 0:45 'out4' ( out 4-component vector of float) 49 0:45 Constant: 50 0:45 10.000000 51 0:45 0.100000 52 0:45 4.700000 53 0:45 10.900000 54 0:46 move second child to first child ( temp 4-component vector of int) 55 0:46 'out5' ( out 4-component vector of int) 56 0:46 Constant: 57 0:46 8 (const int) 58 0:46 17 (const int) 59 0:46 -1 (const int) 60 0:46 1 (const int) 61 0:47 move second child to first child ( temp 3-component vector of float) 62 0:47 'out6' ( out 3-component vector of float) 63 0:47 Constant: 64 0:47 -1.000000 65 0:47 1.000000 66 0:47 0.000000 67 0:48 move second child to first child ( temp 4-component vector of float) 68 0:48 'out7' ( out 4-component vector of float) 69 0:48 Constant: 70 0:48 4.000000 71 0:48 -4.000000 72 0:48 5.000000 73 0:48 -5.000000 74 0:49 move second child to first child ( temp 4-component vector of float) 75 0:49 'out8' ( out 4-component vector of float) 76 0:49 Constant: 77 0:49 4.000000 78 0:49 5.000000 79 0:49 4.000000 80 0:49 -6.000000 81 0:50 move second child to first child ( temp 4-component vector of float) 82 0:50 'out9' ( out 4-component vector of float) 83 0:50 Constant: 84 0:50 8.000000 85 0:50 -4.000000 86 0:50 0.345000 87 0:50 0.400000 88 0:51 move second child to first child ( temp 4-component vector of float) 89 0:51 'out10' ( out 4-component vector of float) 90 0:51 Constant: 91 0:51 1.000000 92 0:51 1.000000 93 0:51 0.000000 94 0:51 0.000000 95 0:52 move second child to first child ( temp 4-component vector of float) 96 0:52 'out11' ( out 4-component vector of float) 97 0:52 Constant: 98 0:52 0.000000 99 0:52 0.000000 100 0:52 1.000000 101 0:52 0.000000 102 0:53 move second child to first child ( temp 4-component vector of float) 103 0:53 'out11' ( out 4-component vector of float) 104 0:53 Constant: 105 0:53 1.029639 106 0:53 0.799690 107 0:53 0.674741 108 0:53 1.570696 109 0:54 move second child to first child ( temp 4-component vector of float) 110 0:54 'out11' ( out 4-component vector of float) 111 0:54 Constant: 112 0:54 0.000000 113 0:54 0.523599 114 0:54 1.570796 115 0:54 1.047198 116 0:58 move second child to first child ( temp 4-component vector of float) 117 0:58 'out11' ( out 4-component vector of float) 118 0:58 Constant: 119 0:58 1.373401 120 0:58 0.000000 121 0:58 0.896055 122 0:58 -0.380506 123 0:62 move second child to first child ( temp 2-component vector of int) 124 0:62 'out12' ( out 2-component vector of int) 125 0:62 Constant: 126 0:62 15 (const int) 127 0:62 16 (const int) 128 0:63 move second child to first child ( temp 2-component vector of int) 129 0:63 'out12' ( out 2-component vector of int) 130 0:63 Constant: 131 0:63 17 (const int) 132 0:63 17 (const int) 133 0:64 move second child to first child ( temp 2-component vector of float) 134 0:64 'out2' ( out 2-component vector of float) 135 0:64 Constant: 136 0:64 871.421253 137 0:64 4913.000000 138 0:65 move second child to first child ( temp 3-component vector of uint) 139 0:65 'out13' ( out 3-component vector of uint) 140 0:65 Constant: 141 0:65 10 (const uint) 142 0:65 20 (const uint) 143 0:65 30 (const uint) 144 0:66 move second child to first child ( temp 2-component vector of float) 145 0:66 'out2' ( out 2-component vector of float) 146 0:66 Constant: 147 0:66 3.000000 148 0:66 6.000000 149 0:67 move second child to first child ( temp 2-component vector of float) 150 0:67 'out2' ( out 2-component vector of float) 151 0:67 Constant: 152 0:67 3.500000 153 0:67 4.500000 154 0:68 move second child to first child ( temp 2-component vector of float) 155 0:68 'out2' ( out 2-component vector of float) 156 0:68 Constant: 157 0:68 0.000000 158 0:68 1.000000 159 0:69 move second child to first child ( temp 4-component vector of float) 160 0:69 'out11' ( out 4-component vector of float) 161 0:69 Constant: 162 0:69 0.000000 163 0:69 0.028000 164 0:69 0.500000 165 0:69 1.000000 166 0:78 Function Definition: foo( ( global void) 167 0:78 Function Parameters: 168 0:? Sequence 169 0:81 move second child to first child ( temp float) 170 0:81 direct index ( temp float) 171 0:81 'a' ( temp 3-element array of float) 172 0:81 Constant: 173 0:81 0 (const int) 174 0:81 Constant: 175 0:81 7.000000 176 0:82 Constant: 177 0:82 2 (const int) 178 0:83 Constant: 179 0:83 2147483647 (const int) 180 0:84 Constant: 181 0:84 +1.#INF 182 0:84 Constant: 183 0:84 -1.#INF 184 0:84 Constant: 185 0:84 1.#IND 186 0:88 Constant: 187 0:88 2 (const uint) 188 0:88 3 (const uint) 189 0:89 Constant: 190 0:89 0 (const uint) 191 0:90 Constant: 192 0:90 6 (const uint) 193 0:90 7 (const uint) 194 0:103 Function Definition: foo2( ( global void) 195 0:103 Function Parameters: 196 0:105 Sequence 197 0:105 direct index ( temp float) 198 0:105 'a1' ( global 1-element array of float) 199 0:105 Constant: 200 0:105 0 (const int) 201 0:106 direct index ( temp float) 202 0:106 'a2' ( global 2-element array of float) 203 0:106 Constant: 204 0:106 0 (const int) 205 0:107 direct index ( temp float) 206 0:107 'a3' ( global 4-element array of float) 207 0:107 Constant: 208 0:107 0 (const int) 209 0:108 direct index ( temp float) 210 0:108 'a4' ( global 2-element array of float) 211 0:108 Constant: 212 0:108 0 (const int) 213 0:109 Constant: 214 0:109 1.000000 215 0:110 Constant: 216 0:110 5.000000 217 0:111 Constant: 218 0:111 2.000000 219 0:112 Constant: 220 0:112 3.000000 221 0:113 Constant: 222 0:113 0.000000 223 0:114 Constant: 224 0:114 0.000000 225 0:116 move second child to first child ( temp int) 226 0:116 'p' ( temp int) 227 0:116 Constant: 228 0:116 2147483647 (const int) 229 0:117 move second child to first child ( temp int) 230 0:117 'p' ( temp int) 231 0:117 Constant: 232 0:117 -2147483648 (const int) 233 0:118 move second child to first child ( temp int) 234 0:118 'p' ( temp int) 235 0:118 Constant: 236 0:118 -2147483647 (const int) 237 0:119 Sequence 238 0:119 move second child to first child ( temp float) 239 0:119 'f' ( temp float) 240 0:119 Constant: 241 0:119 1.444000 242 0:120 move second child to first child ( temp float) 243 0:120 'f' ( temp float) 244 0:120 direct index ( temp float) 245 0:120 Construct vec4 ( temp 4-component vector of float) 246 0:120 Test condition and select ( temp float) 247 0:120 Condition 248 0:120 Compare Less Than ( temp bool) 249 0:120 direct index ( temp float) 250 0:120 'inv' ( smooth in 4-component vector of float) 251 0:120 Constant: 252 0:120 0 (const int) 253 0:120 Constant: 254 0:120 2.400000 255 0:120 true case 256 0:120 Constant: 257 0:120 -1.000000 258 0:120 false case 259 0:120 Constant: 260 0:120 1.000000 261 0:120 Constant: 262 0:120 3 (const int) 263 0:126 Function Definition: foo3( ( global void) 264 0:126 Function Parameters: 265 0:128 Sequence 266 0:128 Sequence 267 0:128 move second child to first child ( temp 3X2 matrix of float) 268 0:128 'r32' ( temp 3X2 matrix of float) 269 0:128 Constant: 270 0:128 43.000000 271 0:128 64.000000 272 0:128 51.000000 273 0:128 76.000000 274 0:128 59.000000 275 0:128 88.000000 276 0:138 Function Definition: foo4( ( global void) 277 0:138 Function Parameters: 278 0:140 Sequence 279 0:140 Sequence 280 0:140 move second child to first child ( temp int) 281 0:140 'a' ( temp int) 282 0:140 Constant: 283 0:140 9 (const int) 284 0:? Linker Objects 285 0:? 'a' ( const int) 286 0:? 1 (const int) 287 0:? 'b' ( const int) 288 0:? 2 (const int) 289 0:? 'c' ( const int) 290 0:? 3 (const int) 291 0:? 'd' ( const int) 292 0:? 2 (const int) 293 0:? 'e' ( const float) 294 0:? 2.000000 295 0:? 'f' ( const float) 296 0:? 6.000000 297 0:? 'g' ( const float) 298 0:? 3.000000 299 0:? 'pytho' ( const 2-component vector of float) 300 0:? 3.000000 301 0:? 4.000000 302 0:? 'inv' ( smooth in 4-component vector of float) 303 0:? 'FragColor' ( out 4-component vector of float) 304 0:? 'out2' ( out 2-component vector of float) 305 0:? 'out3' ( out 4-component vector of float) 306 0:? 'out4' ( out 4-component vector of float) 307 0:? 'out5' ( out 4-component vector of int) 308 0:? 'out6' ( out 3-component vector of float) 309 0:? 'out7' ( out 4-component vector of float) 310 0:? 'out8' ( out 4-component vector of float) 311 0:? 'out9' ( out 4-component vector of float) 312 0:? 'out10' ( out 4-component vector of float) 313 0:? 'out11' ( out 4-component vector of float) 314 0:? 'out12' ( out 2-component vector of int) 315 0:? 'out13' ( out 3-component vector of uint) 316 0:? 's' ( const structure{ global 3-component vector of float v3, global 2-component vector of int iv2, global 2X4 matrix of float m}) 317 0:? 3.000000 318 0:? 3.000000 319 0:? 3.000000 320 0:? 3 (const int) 321 0:? 3 (const int) 322 0:? 1.000000 323 0:? 2.000000 324 0:? 3.000000 325 0:? 4.000000 326 0:? 5.000000 327 0:? 6.000000 328 0:? 7.000000 329 0:? 8.000000 330 0:? 'm2' ( const 2X2 matrix of float) 331 0:? 2.000000 332 0:? 3.000000 333 0:? 4.000000 334 0:? 5.000000 335 0:? 'm3' ( const 3X3 matrix of float) 336 0:? 2.000000 337 0:? 3.000000 338 0:? 0.000000 339 0:? 4.000000 340 0:? 5.000000 341 0:? 0.000000 342 0:? 0.000000 343 0:? 0.000000 344 0:? 1.000000 345 0:? 'mc' ( const int) 346 0:? 1 (const int) 347 0:? 'a1' ( global 1-element array of float) 348 0:? 'a2' ( global 2-element array of float) 349 0:? 'a3' ( global 4-element array of float) 350 0:? 'v2' ( const 2-component vector of float) 351 0:? 1.000000 352 0:? 2.000000 353 0:? 'v3' ( const 3-component vector of float) 354 0:? 3.000000 355 0:? 4.000000 356 0:? 5.000000 357 0:? 'a4' ( global 2-element array of float) 358 0:? 'mm2' ( const 2X2 matrix of float) 359 0:? 1.000000 360 0:? 2.000000 361 0:? 3.000000 362 0:? 4.000000 363 0:? 'mm32' ( const 3X2 matrix of float) 364 0:? 10.000000 365 0:? 11.000000 366 0:? 12.000000 367 0:? 13.000000 368 0:? 14.000000 369 0:? 15.000000 370 0:? 'a0' ( const 3-element array of structure{ global int i, global float f, global bool b}) 371 0:? 3 (const int) 372 0:? 2.000000 373 0:? true (const bool) 374 0:? 1 (const int) 375 0:? 5.000000 376 0:? true (const bool) 377 0:? 1 (const int) 378 0:? 9.000000 379 0:? false (const bool) 380 0:? 'cval1' ( const bool) 381 0:? true (const bool) 382 0:? 'cval2' ( const bool) 383 0:? false (const bool) 384 0:? 'cval3' ( const bool) 385 0:? false (const bool) 386 0:? 'cval4' ( const bool) 387 0:? true (const bool) 388 0:? 'cval5' ( const bool) 389 0:? false (const bool) 390 0:? 'cval6' ( const bool) 391 0:? true (const bool) 392 393 394 Linked fragment stage: 395 396 397 Shader version: 430 398 ERROR: node is still EOpNull! 399 0:28 Function Definition: main( ( global void) 400 0:28 Function Parameters: 401 0:30 Sequence 402 0:30 Sequence 403 0:30 move second child to first child ( temp 4-component vector of float) 404 0:30 'dx' ( temp 4-component vector of float) 405 0:30 dPdx ( global 4-component vector of float) 406 0:30 'inv' ( smooth in 4-component vector of float) 407 0:37 move second child to first child ( temp 4-component vector of float) 408 0:37 'FragColor' ( out 4-component vector of float) 409 0:37 Constant: 410 0:37 2.000000 411 0:37 6.000000 412 0:37 3.000000 413 0:37 171.887339 414 0:42 move second child to first child ( temp 4-component vector of float) 415 0:42 'FragColor' ( out 4-component vector of float) 416 0:42 Constant: 417 0:42 3.000000 418 0:42 2.000000 419 0:42 0.001593 420 0:42 -0.999999 421 0:43 move second child to first child ( temp 2-component vector of float) 422 0:43 'out2' ( out 2-component vector of float) 423 0:43 Constant: 424 0:43 5.600000 425 0:43 5.800000 426 0:44 move second child to first child ( temp 4-component vector of float) 427 0:44 'out3' ( out 4-component vector of float) 428 0:44 Constant: 429 0:44 20.085537 430 0:44 2.302585 431 0:44 16.000000 432 0:44 8.000000 433 0:45 move second child to first child ( temp 4-component vector of float) 434 0:45 'out4' ( out 4-component vector of float) 435 0:45 Constant: 436 0:45 10.000000 437 0:45 0.100000 438 0:45 4.700000 439 0:45 10.900000 440 0:46 move second child to first child ( temp 4-component vector of int) 441 0:46 'out5' ( out 4-component vector of int) 442 0:46 Constant: 443 0:46 8 (const int) 444 0:46 17 (const int) 445 0:46 -1 (const int) 446 0:46 1 (const int) 447 0:47 move second child to first child ( temp 3-component vector of float) 448 0:47 'out6' ( out 3-component vector of float) 449 0:47 Constant: 450 0:47 -1.000000 451 0:47 1.000000 452 0:47 0.000000 453 0:48 move second child to first child ( temp 4-component vector of float) 454 0:48 'out7' ( out 4-component vector of float) 455 0:48 Constant: 456 0:48 4.000000 457 0:48 -4.000000 458 0:48 5.000000 459 0:48 -5.000000 460 0:49 move second child to first child ( temp 4-component vector of float) 461 0:49 'out8' ( out 4-component vector of float) 462 0:49 Constant: 463 0:49 4.000000 464 0:49 5.000000 465 0:49 4.000000 466 0:49 -6.000000 467 0:50 move second child to first child ( temp 4-component vector of float) 468 0:50 'out9' ( out 4-component vector of float) 469 0:50 Constant: 470 0:50 8.000000 471 0:50 -4.000000 472 0:50 0.345000 473 0:50 0.400000 474 0:51 move second child to first child ( temp 4-component vector of float) 475 0:51 'out10' ( out 4-component vector of float) 476 0:51 Constant: 477 0:51 1.000000 478 0:51 1.000000 479 0:51 0.000000 480 0:51 0.000000 481 0:52 move second child to first child ( temp 4-component vector of float) 482 0:52 'out11' ( out 4-component vector of float) 483 0:52 Constant: 484 0:52 0.000000 485 0:52 0.000000 486 0:52 1.000000 487 0:52 0.000000 488 0:53 move second child to first child ( temp 4-component vector of float) 489 0:53 'out11' ( out 4-component vector of float) 490 0:53 Constant: 491 0:53 1.029639 492 0:53 0.799690 493 0:53 0.674741 494 0:53 1.570696 495 0:54 move second child to first child ( temp 4-component vector of float) 496 0:54 'out11' ( out 4-component vector of float) 497 0:54 Constant: 498 0:54 0.000000 499 0:54 0.523599 500 0:54 1.570796 501 0:54 1.047198 502 0:58 move second child to first child ( temp 4-component vector of float) 503 0:58 'out11' ( out 4-component vector of float) 504 0:58 Constant: 505 0:58 1.373401 506 0:58 0.000000 507 0:58 0.896055 508 0:58 -0.380506 509 0:62 move second child to first child ( temp 2-component vector of int) 510 0:62 'out12' ( out 2-component vector of int) 511 0:62 Constant: 512 0:62 15 (const int) 513 0:62 16 (const int) 514 0:63 move second child to first child ( temp 2-component vector of int) 515 0:63 'out12' ( out 2-component vector of int) 516 0:63 Constant: 517 0:63 17 (const int) 518 0:63 17 (const int) 519 0:64 move second child to first child ( temp 2-component vector of float) 520 0:64 'out2' ( out 2-component vector of float) 521 0:64 Constant: 522 0:64 871.421253 523 0:64 4913.000000 524 0:65 move second child to first child ( temp 3-component vector of uint) 525 0:65 'out13' ( out 3-component vector of uint) 526 0:65 Constant: 527 0:65 10 (const uint) 528 0:65 20 (const uint) 529 0:65 30 (const uint) 530 0:66 move second child to first child ( temp 2-component vector of float) 531 0:66 'out2' ( out 2-component vector of float) 532 0:66 Constant: 533 0:66 3.000000 534 0:66 6.000000 535 0:67 move second child to first child ( temp 2-component vector of float) 536 0:67 'out2' ( out 2-component vector of float) 537 0:67 Constant: 538 0:67 3.500000 539 0:67 4.500000 540 0:68 move second child to first child ( temp 2-component vector of float) 541 0:68 'out2' ( out 2-component vector of float) 542 0:68 Constant: 543 0:68 0.000000 544 0:68 1.000000 545 0:69 move second child to first child ( temp 4-component vector of float) 546 0:69 'out11' ( out 4-component vector of float) 547 0:69 Constant: 548 0:69 0.000000 549 0:69 0.028000 550 0:69 0.500000 551 0:69 1.000000 552 0:? Linker Objects 553 0:? 'a' ( const int) 554 0:? 1 (const int) 555 0:? 'b' ( const int) 556 0:? 2 (const int) 557 0:? 'c' ( const int) 558 0:? 3 (const int) 559 0:? 'd' ( const int) 560 0:? 2 (const int) 561 0:? 'e' ( const float) 562 0:? 2.000000 563 0:? 'f' ( const float) 564 0:? 6.000000 565 0:? 'g' ( const float) 566 0:? 3.000000 567 0:? 'pytho' ( const 2-component vector of float) 568 0:? 3.000000 569 0:? 4.000000 570 0:? 'inv' ( smooth in 4-component vector of float) 571 0:? 'FragColor' ( out 4-component vector of float) 572 0:? 'out2' ( out 2-component vector of float) 573 0:? 'out3' ( out 4-component vector of float) 574 0:? 'out4' ( out 4-component vector of float) 575 0:? 'out5' ( out 4-component vector of int) 576 0:? 'out6' ( out 3-component vector of float) 577 0:? 'out7' ( out 4-component vector of float) 578 0:? 'out8' ( out 4-component vector of float) 579 0:? 'out9' ( out 4-component vector of float) 580 0:? 'out10' ( out 4-component vector of float) 581 0:? 'out11' ( out 4-component vector of float) 582 0:? 'out12' ( out 2-component vector of int) 583 0:? 'out13' ( out 3-component vector of uint) 584 0:? 's' ( const structure{ global 3-component vector of float v3, global 2-component vector of int iv2, global 2X4 matrix of float m}) 585 0:? 3.000000 586 0:? 3.000000 587 0:? 3.000000 588 0:? 3 (const int) 589 0:? 3 (const int) 590 0:? 1.000000 591 0:? 2.000000 592 0:? 3.000000 593 0:? 4.000000 594 0:? 5.000000 595 0:? 6.000000 596 0:? 7.000000 597 0:? 8.000000 598 0:? 'm2' ( const 2X2 matrix of float) 599 0:? 2.000000 600 0:? 3.000000 601 0:? 4.000000 602 0:? 5.000000 603 0:? 'm3' ( const 3X3 matrix of float) 604 0:? 2.000000 605 0:? 3.000000 606 0:? 0.000000 607 0:? 4.000000 608 0:? 5.000000 609 0:? 0.000000 610 0:? 0.000000 611 0:? 0.000000 612 0:? 1.000000 613 0:? 'mc' ( const int) 614 0:? 1 (const int) 615 0:? 'a1' ( global 1-element array of float) 616 0:? 'a2' ( global 2-element array of float) 617 0:? 'a3' ( global 4-element array of float) 618 0:? 'v2' ( const 2-component vector of float) 619 0:? 1.000000 620 0:? 2.000000 621 0:? 'v3' ( const 3-component vector of float) 622 0:? 3.000000 623 0:? 4.000000 624 0:? 5.000000 625 0:? 'a4' ( global 2-element array of float) 626 0:? 'mm2' ( const 2X2 matrix of float) 627 0:? 1.000000 628 0:? 2.000000 629 0:? 3.000000 630 0:? 4.000000 631 0:? 'mm32' ( const 3X2 matrix of float) 632 0:? 10.000000 633 0:? 11.000000 634 0:? 12.000000 635 0:? 13.000000 636 0:? 14.000000 637 0:? 15.000000 638 0:? 'a0' ( const 3-element array of structure{ global int i, global float f, global bool b}) 639 0:? 3 (const int) 640 0:? 2.000000 641 0:? true (const bool) 642 0:? 1 (const int) 643 0:? 5.000000 644 0:? true (const bool) 645 0:? 1 (const int) 646 0:? 9.000000 647 0:? false (const bool) 648 0:? 'cval1' ( const bool) 649 0:? true (const bool) 650 0:? 'cval2' ( const bool) 651 0:? false (const bool) 652 0:? 'cval3' ( const bool) 653 0:? false (const bool) 654 0:? 'cval4' ( const bool) 655 0:? true (const bool) 656 0:? 'cval5' ( const bool) 657 0:? false (const bool) 658 0:? 'cval6' ( const bool) 659 0:? true (const bool) 660 661