1hlsl.scalarCast.vert
2Shader version: 500
30:? Sequence
40:5  Function Definition: r0( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
50:5    Function Parameters:
60:?     Sequence
70:7      Branch: Return with expression
80:7        Constant:
90:7          2.000000
100:7          2.000000
110:7          2.000000
120:7          2.000000
130:7          2.000000
140:7          2.000000
150:9  Function Definition: r1( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
160:9    Function Parameters:
170:?     Sequence
180:11      Branch: Return with expression
190:11        Constant:
200:11          3.000000
210:11          3.000000
220:11          3.000000
230:11          3.000000
240:11          3.000000
250:11          3.000000
260:13  Function Definition: r2( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
270:13    Function Parameters:
280:?     Sequence
290:15      Branch: Return with expression
300:15        Constant:
310:15          0.909297
320:15          0.909297
330:15          0.909297
340:15          0.909297
350:15          0.909297
360:15          0.909297
370:17  Function Definition: r3( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
380:17    Function Parameters:
390:?     Sequence
400:18      Sequence
410:18        move second child to first child ( temp float)
420:18          'f' ( temp float)
430:18          Constant:
440:18            2.000000
450:19      Branch: Return with expression
460:19        Construct structure ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
470:19          Construct vec4 ( temp 4-component vector of float)
480:19            'f' ( temp float)
490:19            'f' ( temp float)
500:19            'f' ( temp float)
510:19            'f' ( temp float)
520:19          Construct vec2 ( temp 2-component vector of float)
530:19            'f' ( temp float)
540:19            'f' ( temp float)
550:21  Function Definition: r4( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
560:21    Function Parameters:
570:?     Sequence
580:22      Sequence
590:22        move second child to first child ( temp float)
600:22          'f' ( temp float)
610:22          Constant:
620:22            2.000000
630:23      Branch: Return with expression
640:23        Comma ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
650:23          move second child to first child ( temp float)
660:23            'scalarCopy' ( temp float)
670:23            add ( temp float)
680:23              'f' ( temp float)
690:23              Constant:
700:23                1.000000
710:23          Construct structure ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
720:23            Construct vec4 ( temp 4-component vector of float)
730:23              'scalarCopy' ( temp float)
740:23              'scalarCopy' ( temp float)
750:23              'scalarCopy' ( temp float)
760:23              'scalarCopy' ( temp float)
770:23            Construct vec2 ( temp 2-component vector of float)
780:23              'scalarCopy' ( temp float)
790:23              'scalarCopy' ( temp float)
800:25  Function Definition: r5( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
810:25    Function Parameters:
820:?     Sequence
830:26      Sequence
840:26        move second child to first child ( temp float)
850:26          'f' ( temp float)
860:26          Constant:
870:26            2.000000
880:27      Branch: Return with expression
890:27        Comma ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
900:27          move second child to first child ( temp float)
910:27            'scalarCopy' ( temp float)
920:27            sine ( temp float)
930:27              'f' ( temp float)
940:27          Construct structure ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
950:27            Construct vec4 ( temp 4-component vector of float)
960:27              'scalarCopy' ( temp float)
970:27              'scalarCopy' ( temp float)
980:27              'scalarCopy' ( temp float)
990:27              'scalarCopy' ( temp float)
1000:27            Construct vec2 ( temp 2-component vector of float)
1010:27              'scalarCopy' ( temp float)
1020:27              'scalarCopy' ( temp float)
1030:29  Function Definition: @main( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1040:29    Function Parameters:
1050:?     Sequence
1060:30      Sequence
1070:30        move second child to first child ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1080:30          'v0' ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1090:30          Function Call: r0( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1100:31      Sequence
1110:31        move second child to first child ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1120:31          'v1' ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1130:31          Function Call: r1( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1140:32      Sequence
1150:32        move second child to first child ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1160:32          'v2' ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1170:32          Function Call: r2( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1180:33      Sequence
1190:33        move second child to first child ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1200:33          'v3' ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1210:33          Function Call: r3( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1220:34      Sequence
1230:34        move second child to first child ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1240:34          'v4' ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1250:34          Function Call: r4( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1260:35      Sequence
1270:35        move second child to first child ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1280:35          'v5' ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1290:35          Function Call: r5( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1300:36      Branch: Return with expression
1310:36        Constant:
1320:36          1.000000
1330:36          1.000000
1340:36          1.000000
1350:36          1.000000
1360:36          1.000000
1370:36          1.000000
1380:29  Function Definition: main( ( temp void)
1390:29    Function Parameters:
1400:?     Sequence
1410:29      Sequence
1420:29        move second child to first child ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1430:29          'flattenTemp' ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1440:29          Function Call: @main( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1450:29        move second child to first child ( temp 4-component vector of float)
1460:?           '@entryPointOutput.position' ( out 4-component vector of float Position)
1470:29          position: direct index for structure ( temp 4-component vector of float)
1480:29            'flattenTemp' ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1490:29            Constant:
1500:29              0 (const int)
1510:29        move second child to first child ( temp 2-component vector of float)
1520:?           '@entryPointOutput.texCoord' (layout( location=0) out 2-component vector of float)
1530:29          texCoord: direct index for structure ( temp 2-component vector of float)
1540:29            'flattenTemp' ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1550:29            Constant:
1560:29              1 (const int)
1570:?   Linker Objects
1580:?     '@entryPointOutput.position' ( out 4-component vector of float Position)
1590:?     '@entryPointOutput.texCoord' (layout( location=0) out 2-component vector of float)
160
161
162Linked vertex stage:
163
164
165Shader version: 500
1660:? Sequence
1670:5  Function Definition: r0( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1680:5    Function Parameters:
1690:?     Sequence
1700:7      Branch: Return with expression
1710:7        Constant:
1720:7          2.000000
1730:7          2.000000
1740:7          2.000000
1750:7          2.000000
1760:7          2.000000
1770:7          2.000000
1780:9  Function Definition: r1( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1790:9    Function Parameters:
1800:?     Sequence
1810:11      Branch: Return with expression
1820:11        Constant:
1830:11          3.000000
1840:11          3.000000
1850:11          3.000000
1860:11          3.000000
1870:11          3.000000
1880:11          3.000000
1890:13  Function Definition: r2( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
1900:13    Function Parameters:
1910:?     Sequence
1920:15      Branch: Return with expression
1930:15        Constant:
1940:15          0.909297
1950:15          0.909297
1960:15          0.909297
1970:15          0.909297
1980:15          0.909297
1990:15          0.909297
2000:17  Function Definition: r3( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2010:17    Function Parameters:
2020:?     Sequence
2030:18      Sequence
2040:18        move second child to first child ( temp float)
2050:18          'f' ( temp float)
2060:18          Constant:
2070:18            2.000000
2080:19      Branch: Return with expression
2090:19        Construct structure ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2100:19          Construct vec4 ( temp 4-component vector of float)
2110:19            'f' ( temp float)
2120:19            'f' ( temp float)
2130:19            'f' ( temp float)
2140:19            'f' ( temp float)
2150:19          Construct vec2 ( temp 2-component vector of float)
2160:19            'f' ( temp float)
2170:19            'f' ( temp float)
2180:21  Function Definition: r4( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2190:21    Function Parameters:
2200:?     Sequence
2210:22      Sequence
2220:22        move second child to first child ( temp float)
2230:22          'f' ( temp float)
2240:22          Constant:
2250:22            2.000000
2260:23      Branch: Return with expression
2270:23        Comma ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2280:23          move second child to first child ( temp float)
2290:23            'scalarCopy' ( temp float)
2300:23            add ( temp float)
2310:23              'f' ( temp float)
2320:23              Constant:
2330:23                1.000000
2340:23          Construct structure ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2350:23            Construct vec4 ( temp 4-component vector of float)
2360:23              'scalarCopy' ( temp float)
2370:23              'scalarCopy' ( temp float)
2380:23              'scalarCopy' ( temp float)
2390:23              'scalarCopy' ( temp float)
2400:23            Construct vec2 ( temp 2-component vector of float)
2410:23              'scalarCopy' ( temp float)
2420:23              'scalarCopy' ( temp float)
2430:25  Function Definition: r5( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2440:25    Function Parameters:
2450:?     Sequence
2460:26      Sequence
2470:26        move second child to first child ( temp float)
2480:26          'f' ( temp float)
2490:26          Constant:
2500:26            2.000000
2510:27      Branch: Return with expression
2520:27        Comma ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2530:27          move second child to first child ( temp float)
2540:27            'scalarCopy' ( temp float)
2550:27            sine ( temp float)
2560:27              'f' ( temp float)
2570:27          Construct structure ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2580:27            Construct vec4 ( temp 4-component vector of float)
2590:27              'scalarCopy' ( temp float)
2600:27              'scalarCopy' ( temp float)
2610:27              'scalarCopy' ( temp float)
2620:27              'scalarCopy' ( temp float)
2630:27            Construct vec2 ( temp 2-component vector of float)
2640:27              'scalarCopy' ( temp float)
2650:27              'scalarCopy' ( temp float)
2660:29  Function Definition: @main( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2670:29    Function Parameters:
2680:?     Sequence
2690:30      Sequence
2700:30        move second child to first child ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2710:30          'v0' ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2720:30          Function Call: r0( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2730:31      Sequence
2740:31        move second child to first child ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2750:31          'v1' ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2760:31          Function Call: r1( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2770:32      Sequence
2780:32        move second child to first child ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2790:32          'v2' ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2800:32          Function Call: r2( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2810:33      Sequence
2820:33        move second child to first child ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2830:33          'v3' ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2840:33          Function Call: r3( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2850:34      Sequence
2860:34        move second child to first child ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2870:34          'v4' ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2880:34          Function Call: r4( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2890:35      Sequence
2900:35        move second child to first child ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2910:35          'v5' ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2920:35          Function Call: r5( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
2930:36      Branch: Return with expression
2940:36        Constant:
2950:36          1.000000
2960:36          1.000000
2970:36          1.000000
2980:36          1.000000
2990:36          1.000000
3000:36          1.000000
3010:29  Function Definition: main( ( temp void)
3020:29    Function Parameters:
3030:?     Sequence
3040:29      Sequence
3050:29        move second child to first child ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
3060:29          'flattenTemp' ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
3070:29          Function Call: @main( ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
3080:29        move second child to first child ( temp 4-component vector of float)
3090:?           '@entryPointOutput.position' ( out 4-component vector of float Position)
3100:29          position: direct index for structure ( temp 4-component vector of float)
3110:29            'flattenTemp' ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
3120:29            Constant:
3130:29              0 (const int)
3140:29        move second child to first child ( temp 2-component vector of float)
3150:?           '@entryPointOutput.texCoord' (layout( location=0) out 2-component vector of float)
3160:29          texCoord: direct index for structure ( temp 2-component vector of float)
3170:29            'flattenTemp' ( temp structure{ temp 4-component vector of float position,  temp 2-component vector of float texCoord})
3180:29            Constant:
3190:29              1 (const int)
3200:?   Linker Objects
3210:?     '@entryPointOutput.position' ( out 4-component vector of float Position)
3220:?     '@entryPointOutput.texCoord' (layout( location=0) out 2-component vector of float)
323
324// Module Version 10000
325// Generated by (magic number): 8000a
326// Id's are bound by 120
327
328                              Capability Shader
329               1:             ExtInstImport  "GLSL.std.450"
330                              MemoryModel Logical GLSL450
331                              EntryPoint Vertex 4  "main" 108 115
332                              Source HLSL 500
333                              Name 4  "main"
334                              Name 9  "VertexOut"
335                              MemberName 9(VertexOut) 0  "position"
336                              MemberName 9(VertexOut) 1  "texCoord"
337                              Name 11  "r0("
338                              Name 13  "r1("
339                              Name 15  "r2("
340                              Name 17  "r3("
341                              Name 19  "r4("
342                              Name 21  "r5("
343                              Name 23  "@main("
344                              Name 44  "f"
345                              Name 56  "f"
346                              Name 57  "scalarCopy"
347                              Name 72  "f"
348                              Name 73  "scalarCopy"
349                              Name 88  "v0"
350                              Name 90  "v1"
351                              Name 92  "v2"
352                              Name 94  "v3"
353                              Name 96  "v4"
354                              Name 98  "v5"
355                              Name 105  "flattenTemp"
356                              Name 108  "@entryPointOutput.position"
357                              Name 115  "@entryPointOutput.texCoord"
358                              Decorate 108(@entryPointOutput.position) BuiltIn Position
359                              Decorate 115(@entryPointOutput.texCoord) Location 0
360               2:             TypeVoid
361               3:             TypeFunction 2
362               6:             TypeFloat 32
363               7:             TypeVector 6(float) 4
364               8:             TypeVector 6(float) 2
365    9(VertexOut):             TypeStruct 7(fvec4) 8(fvec2)
366              10:             TypeFunction 9(VertexOut)
367              25:    6(float) Constant 1073741824
368              26:    7(fvec4) ConstantComposite 25 25 25 25
369              27:    8(fvec2) ConstantComposite 25 25
370              28:9(VertexOut) ConstantComposite 26 27
371              31:    6(float) Constant 1077936128
372              32:    7(fvec4) ConstantComposite 31 31 31 31
373              33:    8(fvec2) ConstantComposite 31 31
374              34:9(VertexOut) ConstantComposite 32 33
375              37:    6(float) Constant 1063831479
376              38:    7(fvec4) ConstantComposite 37 37 37 37
377              39:    8(fvec2) ConstantComposite 37 37
378              40:9(VertexOut) ConstantComposite 38 39
379              43:             TypePointer Function 6(float)
380              59:    6(float) Constant 1065353216
381              87:             TypePointer Function 9(VertexOut)
382             100:    7(fvec4) ConstantComposite 59 59 59 59
383             101:    8(fvec2) ConstantComposite 59 59
384             102:9(VertexOut) ConstantComposite 100 101
385             107:             TypePointer Output 7(fvec4)
386108(@entryPointOutput.position):    107(ptr) Variable Output
387             109:             TypeInt 32 1
388             110:    109(int) Constant 0
389             111:             TypePointer Function 7(fvec4)
390             114:             TypePointer Output 8(fvec2)
391115(@entryPointOutput.texCoord):    114(ptr) Variable Output
392             116:    109(int) Constant 1
393             117:             TypePointer Function 8(fvec2)
394         4(main):           2 Function None 3
395               5:             Label
396105(flattenTemp):     87(ptr) Variable Function
397             106:9(VertexOut) FunctionCall 23(@main()
398                              Store 105(flattenTemp) 106
399             112:    111(ptr) AccessChain 105(flattenTemp) 110
400             113:    7(fvec4) Load 112
401                              Store 108(@entryPointOutput.position) 113
402             118:    117(ptr) AccessChain 105(flattenTemp) 116
403             119:    8(fvec2) Load 118
404                              Store 115(@entryPointOutput.texCoord) 119
405                              Return
406                              FunctionEnd
407         11(r0():9(VertexOut) Function None 10
408              12:             Label
409                              ReturnValue 28
410                              FunctionEnd
411         13(r1():9(VertexOut) Function None 10
412              14:             Label
413                              ReturnValue 34
414                              FunctionEnd
415         15(r2():9(VertexOut) Function None 10
416              16:             Label
417                              ReturnValue 40
418                              FunctionEnd
419         17(r3():9(VertexOut) Function None 10
420              18:             Label
421           44(f):     43(ptr) Variable Function
422                              Store 44(f) 25
423              45:    6(float) Load 44(f)
424              46:    6(float) Load 44(f)
425              47:    6(float) Load 44(f)
426              48:    6(float) Load 44(f)
427              49:    7(fvec4) CompositeConstruct 45 46 47 48
428              50:    6(float) Load 44(f)
429              51:    6(float) Load 44(f)
430              52:    8(fvec2) CompositeConstruct 50 51
431              53:9(VertexOut) CompositeConstruct 49 52
432                              ReturnValue 53
433                              FunctionEnd
434         19(r4():9(VertexOut) Function None 10
435              20:             Label
436           56(f):     43(ptr) Variable Function
437  57(scalarCopy):     43(ptr) Variable Function
438                              Store 56(f) 25
439              58:    6(float) Load 56(f)
440              60:    6(float) FAdd 58 59
441                              Store 57(scalarCopy) 60
442              61:    6(float) Load 57(scalarCopy)
443              62:    6(float) Load 57(scalarCopy)
444              63:    6(float) Load 57(scalarCopy)
445              64:    6(float) Load 57(scalarCopy)
446              65:    7(fvec4) CompositeConstruct 61 62 63 64
447              66:    6(float) Load 57(scalarCopy)
448              67:    6(float) Load 57(scalarCopy)
449              68:    8(fvec2) CompositeConstruct 66 67
450              69:9(VertexOut) CompositeConstruct 65 68
451                              ReturnValue 69
452                              FunctionEnd
453         21(r5():9(VertexOut) Function None 10
454              22:             Label
455           72(f):     43(ptr) Variable Function
456  73(scalarCopy):     43(ptr) Variable Function
457                              Store 72(f) 25
458              74:    6(float) Load 72(f)
459              75:    6(float) ExtInst 1(GLSL.std.450) 13(Sin) 74
460                              Store 73(scalarCopy) 75
461              76:    6(float) Load 73(scalarCopy)
462              77:    6(float) Load 73(scalarCopy)
463              78:    6(float) Load 73(scalarCopy)
464              79:    6(float) Load 73(scalarCopy)
465              80:    7(fvec4) CompositeConstruct 76 77 78 79
466              81:    6(float) Load 73(scalarCopy)
467              82:    6(float) Load 73(scalarCopy)
468              83:    8(fvec2) CompositeConstruct 81 82
469              84:9(VertexOut) CompositeConstruct 80 83
470                              ReturnValue 84
471                              FunctionEnd
472      23(@main():9(VertexOut) Function None 10
473              24:             Label
474          88(v0):     87(ptr) Variable Function
475          90(v1):     87(ptr) Variable Function
476          92(v2):     87(ptr) Variable Function
477          94(v3):     87(ptr) Variable Function
478          96(v4):     87(ptr) Variable Function
479          98(v5):     87(ptr) Variable Function
480              89:9(VertexOut) FunctionCall 11(r0()
481                              Store 88(v0) 89
482              91:9(VertexOut) FunctionCall 13(r1()
483                              Store 90(v1) 91
484              93:9(VertexOut) FunctionCall 15(r2()
485                              Store 92(v2) 93
486              95:9(VertexOut) FunctionCall 17(r3()
487                              Store 94(v3) 95
488              97:9(VertexOut) FunctionCall 19(r4()
489                              Store 96(v4) 97
490              99:9(VertexOut) FunctionCall 21(r5()
491                              Store 98(v5) 99
492                              ReturnValue 102
493                              FunctionEnd
494