xref: /aosp_15_r20/external/angle/third_party/glslang/src/Test/baseResults/hlsl.scalarCast.vert.out (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
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): 8000b
326// Id's are bound by 108
327
328                              Capability Shader
329               1:             ExtInstImport  "GLSL.std.450"
330                              MemoryModel Logical GLSL450
331                              EntryPoint Vertex 4  "main" 96 103
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 52  "f"
346                              Name 53  "scalarCopy"
347                              Name 64  "f"
348                              Name 65  "scalarCopy"
349                              Name 76  "v0"
350                              Name 78  "v1"
351                              Name 80  "v2"
352                              Name 82  "v3"
353                              Name 84  "v4"
354                              Name 86  "v5"
355                              Name 93  "flattenTemp"
356                              Name 96  "@entryPointOutput.position"
357                              Name 103  "@entryPointOutput.texCoord"
358                              Decorate 96(@entryPointOutput.position) BuiltIn Position
359                              Decorate 103(@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              55:    6(float) Constant 1065353216
381              75:             TypePointer Function 9(VertexOut)
382              88:    7(fvec4) ConstantComposite 55 55 55 55
383              89:    8(fvec2) ConstantComposite 55 55
384              90:9(VertexOut) ConstantComposite 88 89
385              95:             TypePointer Output 7(fvec4)
38696(@entryPointOutput.position):     95(ptr) Variable Output
387              97:             TypeInt 32 1
388              98:     97(int) Constant 0
389              99:             TypePointer Function 7(fvec4)
390             102:             TypePointer Output 8(fvec2)
391103(@entryPointOutput.texCoord):    102(ptr) Variable Output
392             104:     97(int) Constant 1
393             105:             TypePointer Function 8(fvec2)
394         4(main):           2 Function None 3
395               5:             Label
396 93(flattenTemp):     75(ptr) Variable Function
397              94:9(VertexOut) FunctionCall 23(@main()
398                              Store 93(flattenTemp) 94
399             100:     99(ptr) AccessChain 93(flattenTemp) 98
400             101:    7(fvec4) Load 100
401                              Store 96(@entryPointOutput.position) 101
402             106:    105(ptr) AccessChain 93(flattenTemp) 104
403             107:    8(fvec2) Load 106
404                              Store 103(@entryPointOutput.texCoord) 107
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:    7(fvec4) CompositeConstruct 45 45 45 45
425              47:    6(float) Load 44(f)
426              48:    8(fvec2) CompositeConstruct 47 47
427              49:9(VertexOut) CompositeConstruct 46 48
428                              ReturnValue 49
429                              FunctionEnd
430         19(r4():9(VertexOut) Function None 10
431              20:             Label
432           52(f):     43(ptr) Variable Function
433  53(scalarCopy):     43(ptr) Variable Function
434                              Store 52(f) 25
435              54:    6(float) Load 52(f)
436              56:    6(float) FAdd 54 55
437                              Store 53(scalarCopy) 56
438              57:    6(float) Load 53(scalarCopy)
439              58:    7(fvec4) CompositeConstruct 57 57 57 57
440              59:    6(float) Load 53(scalarCopy)
441              60:    8(fvec2) CompositeConstruct 59 59
442              61:9(VertexOut) CompositeConstruct 58 60
443                              ReturnValue 61
444                              FunctionEnd
445         21(r5():9(VertexOut) Function None 10
446              22:             Label
447           64(f):     43(ptr) Variable Function
448  65(scalarCopy):     43(ptr) Variable Function
449                              Store 64(f) 25
450              66:    6(float) Load 64(f)
451              67:    6(float) ExtInst 1(GLSL.std.450) 13(Sin) 66
452                              Store 65(scalarCopy) 67
453              68:    6(float) Load 65(scalarCopy)
454              69:    7(fvec4) CompositeConstruct 68 68 68 68
455              70:    6(float) Load 65(scalarCopy)
456              71:    8(fvec2) CompositeConstruct 70 70
457              72:9(VertexOut) CompositeConstruct 69 71
458                              ReturnValue 72
459                              FunctionEnd
460      23(@main():9(VertexOut) Function None 10
461              24:             Label
462          76(v0):     75(ptr) Variable Function
463          78(v1):     75(ptr) Variable Function
464          80(v2):     75(ptr) Variable Function
465          82(v3):     75(ptr) Variable Function
466          84(v4):     75(ptr) Variable Function
467          86(v5):     75(ptr) Variable Function
468              77:9(VertexOut) FunctionCall 11(r0()
469                              Store 76(v0) 77
470              79:9(VertexOut) FunctionCall 13(r1()
471                              Store 78(v1) 79
472              81:9(VertexOut) FunctionCall 15(r2()
473                              Store 80(v2) 81
474              83:9(VertexOut) FunctionCall 17(r3()
475                              Store 82(v3) 83
476              85:9(VertexOut) FunctionCall 19(r4()
477                              Store 84(v4) 85
478              87:9(VertexOut) FunctionCall 21(r5()
479                              Store 86(v5) 87
480                              ReturnValue 90
481                              FunctionEnd
482