1hlsl.scalar2matrix.frag 2Shader version: 500 3gl_FragCoord origin is upper left 40:? Sequence 50:2 Function Definition: Fn1(mf44; ( temp void) 60:2 Function Parameters: 70:2 'p' ( in 4X4 matrix of float) 80:5 Function Definition: @main( ( temp 4-component vector of float) 90:5 Function Parameters: 100:? Sequence 110:10 Sequence 120:10 move second child to first child ( temp 4X4 matrix of float) 130:10 'mat1' ( temp 4X4 matrix of float) 140:10 Constant: 150:10 0.250000 160:10 0.250000 170:10 0.250000 180:10 0.250000 190:10 0.250000 200:10 0.250000 210:10 0.250000 220:10 0.250000 230:10 0.250000 240:10 0.250000 250:10 0.250000 260:10 0.250000 270:10 0.250000 280:10 0.250000 290:10 0.250000 300:10 0.250000 310:11 Sequence 320:11 move second child to first child ( temp 4X4 matrix of float) 330:11 'mat2' ( temp 4X4 matrix of float) 340:11 Constant: 350:11 3.000000 360:11 3.100000 370:11 3.200000 380:11 0.000000 390:11 0.000000 400:11 0.000000 410:11 0.000000 420:11 0.000000 430:11 0.000000 440:11 0.000000 450:11 0.000000 460:11 0.000000 470:11 0.000000 480:11 0.000000 490:11 0.000000 500:11 0.000000 510:12 Sequence 520:12 move second child to first child ( temp 4X4 matrix of float) 530:12 'mat3' ( temp 4X4 matrix of float) 540:12 Constant: 550:12 0.375000 560:12 0.375000 570:12 0.375000 580:12 0.375000 590:12 0.375000 600:12 0.375000 610:12 0.375000 620:12 0.375000 630:12 0.375000 640:12 0.375000 650:12 0.375000 660:12 0.375000 670:12 0.375000 680:12 0.375000 690:12 0.375000 700:12 0.375000 710:16 move second child to first child ( temp 4X4 matrix of float) 720:16 'mat4' ( temp 4X4 matrix of float) 730:16 Constant: 740:16 0.750000 750:16 0.750000 760:16 0.750000 770:16 0.750000 780:16 0.750000 790:16 0.750000 800:16 0.750000 810:16 0.750000 820:16 0.750000 830:16 0.750000 840:16 0.750000 850:16 0.750000 860:16 0.750000 870:16 0.750000 880:16 0.750000 890:16 0.750000 900:17 move second child to first child ( temp 4X4 matrix of float) 910:17 'mat4' ( temp 4X4 matrix of float) 920:17 Constant: 930:17 4.000000 940:17 4.100000 950:17 4.200000 960:17 0.000000 970:17 0.000000 980:17 0.000000 990:17 0.000000 1000:17 0.000000 1010:17 0.000000 1020:17 0.000000 1030:17 0.000000 1040:17 0.000000 1050:17 0.000000 1060:17 0.000000 1070:17 0.000000 1080:17 0.000000 1090:18 move second child to first child ( temp 4X4 matrix of float) 1100:18 'mat4' ( temp 4X4 matrix of float) 1110:18 Constant: 1120:18 0.500000 1130:18 0.500000 1140:18 0.500000 1150:18 0.500000 1160:18 0.500000 1170:18 0.500000 1180:18 0.500000 1190:18 0.500000 1200:18 0.500000 1210:18 0.500000 1220:18 0.500000 1230:18 0.500000 1240:18 0.500000 1250:18 0.500000 1260:18 0.500000 1270:18 0.500000 1280:20 matrix scale second child into first child ( temp 4X4 matrix of float) 1290:20 'mat4' ( temp 4X4 matrix of float) 1300:20 Constant: 1310:20 0.750000 1320:21 add second child into first child ( temp 4X4 matrix of float) 1330:21 'mat4' ( temp 4X4 matrix of float) 1340:21 Constant: 1350:21 0.750000 1360:22 subtract second child into first child ( temp 4X4 matrix of float) 1370:22 'mat4' ( temp 4X4 matrix of float) 1380:22 Constant: 1390:22 0.500000 1400:23 divide second child into first child ( temp 4X4 matrix of float) 1410:23 'mat4' ( temp 4X4 matrix of float) 1420:23 Constant: 1430:23 2.000000 1440:25 Function Call: Fn1(mf44; ( temp void) 1450:25 Constant: 1460:25 5.000000 1470:25 5.000000 1480:25 5.000000 1490:25 5.000000 1500:25 5.000000 1510:25 5.000000 1520:25 5.000000 1530:25 5.000000 1540:25 5.000000 1550:25 5.000000 1560:25 5.000000 1570:25 5.000000 1580:25 5.000000 1590:25 5.000000 1600:25 5.000000 1610:25 5.000000 1620:27 Branch: Return with expression 1630:27 add ( temp 4-component vector of float) 1640:27 add ( temp 4-component vector of float) 1650:27 Constant: 1660:27 0.300000 1670:27 0.300000 1680:27 0.300000 1690:27 0.300000 1700:27 direct index ( temp 4-component vector of float) 1710:27 'mat1' ( temp 4X4 matrix of float) 1720:27 Constant: 1730:27 1 (const int) 1740:27 direct index ( temp 4-component vector of float) 1750:27 'mat4' ( temp 4X4 matrix of float) 1760:27 Constant: 1770:27 2 (const int) 1780:5 Function Definition: main( ( temp void) 1790:5 Function Parameters: 1800:? Sequence 1810:5 move second child to first child ( temp 4-component vector of float) 1820:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 1830:5 Function Call: @main( ( temp 4-component vector of float) 1840:? Linker Objects 1850:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 186 187 188Linked fragment stage: 189 190 191Shader version: 500 192gl_FragCoord origin is upper left 1930:? Sequence 1940:2 Function Definition: Fn1(mf44; ( temp void) 1950:2 Function Parameters: 1960:2 'p' ( in 4X4 matrix of float) 1970:5 Function Definition: @main( ( temp 4-component vector of float) 1980:5 Function Parameters: 1990:? Sequence 2000:10 Sequence 2010:10 move second child to first child ( temp 4X4 matrix of float) 2020:10 'mat1' ( temp 4X4 matrix of float) 2030:10 Constant: 2040:10 0.250000 2050:10 0.250000 2060:10 0.250000 2070:10 0.250000 2080:10 0.250000 2090:10 0.250000 2100:10 0.250000 2110:10 0.250000 2120:10 0.250000 2130:10 0.250000 2140:10 0.250000 2150:10 0.250000 2160:10 0.250000 2170:10 0.250000 2180:10 0.250000 2190:10 0.250000 2200:11 Sequence 2210:11 move second child to first child ( temp 4X4 matrix of float) 2220:11 'mat2' ( temp 4X4 matrix of float) 2230:11 Constant: 2240:11 3.000000 2250:11 3.100000 2260:11 3.200000 2270:11 0.000000 2280:11 0.000000 2290:11 0.000000 2300:11 0.000000 2310:11 0.000000 2320:11 0.000000 2330:11 0.000000 2340:11 0.000000 2350:11 0.000000 2360:11 0.000000 2370:11 0.000000 2380:11 0.000000 2390:11 0.000000 2400:12 Sequence 2410:12 move second child to first child ( temp 4X4 matrix of float) 2420:12 'mat3' ( temp 4X4 matrix of float) 2430:12 Constant: 2440:12 0.375000 2450:12 0.375000 2460:12 0.375000 2470:12 0.375000 2480:12 0.375000 2490:12 0.375000 2500:12 0.375000 2510:12 0.375000 2520:12 0.375000 2530:12 0.375000 2540:12 0.375000 2550:12 0.375000 2560:12 0.375000 2570:12 0.375000 2580:12 0.375000 2590:12 0.375000 2600:16 move second child to first child ( temp 4X4 matrix of float) 2610:16 'mat4' ( temp 4X4 matrix of float) 2620:16 Constant: 2630:16 0.750000 2640:16 0.750000 2650:16 0.750000 2660:16 0.750000 2670:16 0.750000 2680:16 0.750000 2690:16 0.750000 2700:16 0.750000 2710:16 0.750000 2720:16 0.750000 2730:16 0.750000 2740:16 0.750000 2750:16 0.750000 2760:16 0.750000 2770:16 0.750000 2780:16 0.750000 2790:17 move second child to first child ( temp 4X4 matrix of float) 2800:17 'mat4' ( temp 4X4 matrix of float) 2810:17 Constant: 2820:17 4.000000 2830:17 4.100000 2840:17 4.200000 2850:17 0.000000 2860:17 0.000000 2870:17 0.000000 2880:17 0.000000 2890:17 0.000000 2900:17 0.000000 2910:17 0.000000 2920:17 0.000000 2930:17 0.000000 2940:17 0.000000 2950:17 0.000000 2960:17 0.000000 2970:17 0.000000 2980:18 move second child to first child ( temp 4X4 matrix of float) 2990:18 'mat4' ( temp 4X4 matrix of float) 3000:18 Constant: 3010:18 0.500000 3020:18 0.500000 3030:18 0.500000 3040:18 0.500000 3050:18 0.500000 3060:18 0.500000 3070:18 0.500000 3080:18 0.500000 3090:18 0.500000 3100:18 0.500000 3110:18 0.500000 3120:18 0.500000 3130:18 0.500000 3140:18 0.500000 3150:18 0.500000 3160:18 0.500000 3170:20 matrix scale second child into first child ( temp 4X4 matrix of float) 3180:20 'mat4' ( temp 4X4 matrix of float) 3190:20 Constant: 3200:20 0.750000 3210:21 add second child into first child ( temp 4X4 matrix of float) 3220:21 'mat4' ( temp 4X4 matrix of float) 3230:21 Constant: 3240:21 0.750000 3250:22 subtract second child into first child ( temp 4X4 matrix of float) 3260:22 'mat4' ( temp 4X4 matrix of float) 3270:22 Constant: 3280:22 0.500000 3290:23 divide second child into first child ( temp 4X4 matrix of float) 3300:23 'mat4' ( temp 4X4 matrix of float) 3310:23 Constant: 3320:23 2.000000 3330:25 Function Call: Fn1(mf44; ( temp void) 3340:25 Constant: 3350:25 5.000000 3360:25 5.000000 3370:25 5.000000 3380:25 5.000000 3390:25 5.000000 3400:25 5.000000 3410:25 5.000000 3420:25 5.000000 3430:25 5.000000 3440:25 5.000000 3450:25 5.000000 3460:25 5.000000 3470:25 5.000000 3480:25 5.000000 3490:25 5.000000 3500:25 5.000000 3510:27 Branch: Return with expression 3520:27 add ( temp 4-component vector of float) 3530:27 add ( temp 4-component vector of float) 3540:27 Constant: 3550:27 0.300000 3560:27 0.300000 3570:27 0.300000 3580:27 0.300000 3590:27 direct index ( temp 4-component vector of float) 3600:27 'mat1' ( temp 4X4 matrix of float) 3610:27 Constant: 3620:27 1 (const int) 3630:27 direct index ( temp 4-component vector of float) 3640:27 'mat4' ( temp 4X4 matrix of float) 3650:27 Constant: 3660:27 2 (const int) 3670:5 Function Definition: main( ( temp void) 3680:5 Function Parameters: 3690:? Sequence 3700:5 move second child to first child ( temp 4-component vector of float) 3710:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 3720:5 Function Call: @main( ( temp 4-component vector of float) 3730:? Linker Objects 3740:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 375 376// Module Version 10000 377// Generated by (magic number): 8000a 378// Id's are bound by 96 379 380 Capability Shader 381 1: ExtInstImport "GLSL.std.450" 382 MemoryModel Logical GLSL450 383 EntryPoint Fragment 4 "main" 94 384 ExecutionMode 4 OriginUpperLeft 385 Source HLSL 500 386 Name 4 "main" 387 Name 12 "Fn1(mf44;" 388 Name 11 "p" 389 Name 15 "@main(" 390 Name 17 "mat1" 391 Name 21 "mat2" 392 Name 29 "mat3" 393 Name 33 "mat4" 394 Name 77 "param" 395 Name 94 "@entryPointOutput" 396 Decorate 94(@entryPointOutput) Location 0 397 2: TypeVoid 398 3: TypeFunction 2 399 6: TypeFloat 32 400 7: TypeVector 6(float) 4 401 8: TypeMatrix 7(fvec4) 4 402 9: TypePointer Function 8 403 10: TypeFunction 2 9(ptr) 404 14: TypeFunction 7(fvec4) 405 18: 6(float) Constant 1048576000 406 19: 7(fvec4) ConstantComposite 18 18 18 18 407 20: 8 ConstantComposite 19 19 19 19 408 22: 6(float) Constant 1077936128 409 23: 6(float) Constant 1078355558 410 24: 6(float) Constant 1078774989 411 25: 6(float) Constant 0 412 26: 7(fvec4) ConstantComposite 22 23 24 25 413 27: 7(fvec4) ConstantComposite 25 25 25 25 414 28: 8 ConstantComposite 26 27 27 27 415 30: 6(float) Constant 1052770304 416 31: 7(fvec4) ConstantComposite 30 30 30 30 417 32: 8 ConstantComposite 31 31 31 31 418 34: 6(float) Constant 1061158912 419 35: 7(fvec4) ConstantComposite 34 34 34 34 420 36: 8 ConstantComposite 35 35 35 35 421 37: 6(float) Constant 1082130432 422 38: 6(float) Constant 1082340147 423 39: 6(float) Constant 1082549862 424 40: 7(fvec4) ConstantComposite 37 38 39 25 425 41: 8 ConstantComposite 40 27 27 27 426 42: 6(float) Constant 1056964608 427 43: 7(fvec4) ConstantComposite 42 42 42 42 428 44: 8 ConstantComposite 43 43 43 43 429 69: 6(float) Constant 1073741824 430 71: 6(float) Constant 1065353216 431 74: 6(float) Constant 1084227584 432 75: 7(fvec4) ConstantComposite 74 74 74 74 433 76: 8 ConstantComposite 75 75 75 75 434 79: 6(float) Constant 1050253722 435 80: 7(fvec4) ConstantComposite 79 79 79 79 436 81: TypeInt 32 1 437 82: 81(int) Constant 1 438 83: TypePointer Function 7(fvec4) 439 87: 81(int) Constant 2 440 93: TypePointer Output 7(fvec4) 44194(@entryPointOutput): 93(ptr) Variable Output 442 4(main): 2 Function None 3 443 5: Label 444 95: 7(fvec4) FunctionCall 15(@main() 445 Store 94(@entryPointOutput) 95 446 Return 447 FunctionEnd 448 12(Fn1(mf44;): 2 Function None 10 449 11(p): 9(ptr) FunctionParameter 450 13: Label 451 Return 452 FunctionEnd 453 15(@main(): 7(fvec4) Function None 14 454 16: Label 455 17(mat1): 9(ptr) Variable Function 456 21(mat2): 9(ptr) Variable Function 457 29(mat3): 9(ptr) Variable Function 458 33(mat4): 9(ptr) Variable Function 459 77(param): 9(ptr) Variable Function 460 Store 17(mat1) 20 461 Store 21(mat2) 28 462 Store 29(mat3) 32 463 Store 33(mat4) 36 464 Store 33(mat4) 41 465 Store 33(mat4) 44 466 45: 8 Load 33(mat4) 467 46: 8 MatrixTimesScalar 45 34 468 Store 33(mat4) 46 469 47: 8 Load 33(mat4) 470 48: 7(fvec4) CompositeConstruct 34 34 34 34 471 49: 7(fvec4) CompositeExtract 47 0 472 50: 7(fvec4) FAdd 49 48 473 51: 7(fvec4) CompositeExtract 47 1 474 52: 7(fvec4) FAdd 51 48 475 53: 7(fvec4) CompositeExtract 47 2 476 54: 7(fvec4) FAdd 53 48 477 55: 7(fvec4) CompositeExtract 47 3 478 56: 7(fvec4) FAdd 55 48 479 57: 8 CompositeConstruct 50 52 54 56 480 Store 33(mat4) 57 481 58: 8 Load 33(mat4) 482 59: 7(fvec4) CompositeConstruct 42 42 42 42 483 60: 7(fvec4) CompositeExtract 58 0 484 61: 7(fvec4) FSub 60 59 485 62: 7(fvec4) CompositeExtract 58 1 486 63: 7(fvec4) FSub 62 59 487 64: 7(fvec4) CompositeExtract 58 2 488 65: 7(fvec4) FSub 64 59 489 66: 7(fvec4) CompositeExtract 58 3 490 67: 7(fvec4) FSub 66 59 491 68: 8 CompositeConstruct 61 63 65 67 492 Store 33(mat4) 68 493 70: 8 Load 33(mat4) 494 72: 6(float) FDiv 71 69 495 73: 8 MatrixTimesScalar 70 72 496 Store 33(mat4) 73 497 Store 77(param) 76 498 78: 2 FunctionCall 12(Fn1(mf44;) 77(param) 499 84: 83(ptr) AccessChain 17(mat1) 82 500 85: 7(fvec4) Load 84 501 86: 7(fvec4) FAdd 80 85 502 88: 83(ptr) AccessChain 33(mat4) 87 503 89: 7(fvec4) Load 88 504 90: 7(fvec4) FAdd 86 89 505 ReturnValue 90 506 FunctionEnd 507