1hlsl.semicolons.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:2  Function Definition: MyFunc( ( temp void)
60:2    Function Parameters:
70:8  Function Definition: MyFunc2( ( temp void)
80:8    Function Parameters:
90:13  Function Definition: @main( ( temp structure{ temp 4-component vector of float color})
100:13    Function Parameters:
110:?     Sequence
120:16      move second child to first child ( temp 4-component vector of float)
130:16        color: direct index for structure ( temp 4-component vector of float)
140:16          'ps_output' ( temp structure{ temp 4-component vector of float color})
150:16          Constant:
160:16            0 (const int)
170:16        Constant:
180:16          1.000000
190:16          1.000000
200:16          1.000000
210:16          1.000000
220:17      Branch: Return with expression
230:17        'ps_output' ( temp structure{ temp 4-component vector of float color})
240:13  Function Definition: main( ( temp void)
250:13    Function Parameters:
260:?     Sequence
270:13      Sequence
280:13        move second child to first child ( temp 4-component vector of float)
290:?           '@entryPointOutput.color' (layout( location=0) out 4-component vector of float)
300:13          color: direct index for structure ( temp 4-component vector of float)
310:13            Function Call: @main( ( temp structure{ temp 4-component vector of float color})
320:13            Constant:
330:13              0 (const int)
340:?   Linker Objects
350:?     '@entryPointOutput.color' (layout( location=0) out 4-component vector of float)
36
37
38Linked fragment stage:
39
40
41Shader version: 500
42gl_FragCoord origin is upper left
430:? Sequence
440:2  Function Definition: MyFunc( ( temp void)
450:2    Function Parameters:
460:8  Function Definition: MyFunc2( ( temp void)
470:8    Function Parameters:
480:13  Function Definition: @main( ( temp structure{ temp 4-component vector of float color})
490:13    Function Parameters:
500:?     Sequence
510:16      move second child to first child ( temp 4-component vector of float)
520:16        color: direct index for structure ( temp 4-component vector of float)
530:16          'ps_output' ( temp structure{ temp 4-component vector of float color})
540:16          Constant:
550:16            0 (const int)
560:16        Constant:
570:16          1.000000
580:16          1.000000
590:16          1.000000
600:16          1.000000
610:17      Branch: Return with expression
620:17        'ps_output' ( temp structure{ temp 4-component vector of float color})
630:13  Function Definition: main( ( temp void)
640:13    Function Parameters:
650:?     Sequence
660:13      Sequence
670:13        move second child to first child ( temp 4-component vector of float)
680:?           '@entryPointOutput.color' (layout( location=0) out 4-component vector of float)
690:13          color: direct index for structure ( temp 4-component vector of float)
700:13            Function Call: @main( ( temp structure{ temp 4-component vector of float color})
710:13            Constant:
720:13              0 (const int)
730:?   Linker Objects
740:?     '@entryPointOutput.color' (layout( location=0) out 4-component vector of float)
75
76// Module Version 10000
77// Generated by (magic number): 80007
78// Id's are bound by 31
79
80                              Capability Shader
81               1:             ExtInstImport  "GLSL.std.450"
82                              MemoryModel Logical GLSL450
83                              EntryPoint Fragment 4  "main" 28
84                              ExecutionMode 4 OriginUpperLeft
85                              Source HLSL 500
86                              Name 4  "main"
87                              Name 6  "MyFunc("
88                              Name 8  "MyFunc2("
89                              Name 12  "PS_OUTPUT"
90                              MemberName 12(PS_OUTPUT) 0  "color"
91                              Name 14  "@main("
92                              Name 17  "ps_output"
93                              Name 28  "@entryPointOutput.color"
94                              Decorate 28(@entryPointOutput.color) Location 0
95               2:             TypeVoid
96               3:             TypeFunction 2
97              10:             TypeFloat 32
98              11:             TypeVector 10(float) 4
99   12(PS_OUTPUT):             TypeStruct 11(fvec4)
100              13:             TypeFunction 12(PS_OUTPUT)
101              16:             TypePointer Function 12(PS_OUTPUT)
102              18:             TypeInt 32 1
103              19:     18(int) Constant 0
104              20:   10(float) Constant 1065353216
105              21:   11(fvec4) ConstantComposite 20 20 20 20
106              22:             TypePointer Function 11(fvec4)
107              27:             TypePointer Output 11(fvec4)
10828(@entryPointOutput.color):     27(ptr) Variable Output
109         4(main):           2 Function None 3
110               5:             Label
111              29:12(PS_OUTPUT) FunctionCall 14(@main()
112              30:   11(fvec4) CompositeExtract 29 0
113                              Store 28(@entryPointOutput.color) 30
114                              Return
115                              FunctionEnd
116      6(MyFunc():           2 Function None 3
117               7:             Label
118                              Return
119                              FunctionEnd
120     8(MyFunc2():           2 Function None 3
121               9:             Label
122                              Return
123                              FunctionEnd
124      14(@main():12(PS_OUTPUT) Function None 13
125              15:             Label
126   17(ps_output):     16(ptr) Variable Function
127              23:     22(ptr) AccessChain 17(ps_output) 19
128                              Store 23 21
129              24:12(PS_OUTPUT) Load 17(ps_output)
130                              ReturnValue 24
131                              FunctionEnd
132