1hlsl.staticMemberFunction.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:5  Function Definition: Test::staticMemFun(vf4; ( global 4-component vector of float)
60:5    Function Parameters:
70:5      'a' ( in 4-component vector of float)
80:?     Sequence
90:6      Branch: Return with expression
100:6        vector-scale ( temp 4-component vector of float)
110:6          Constant:
120:6            2.000000
130:6          'a' ( in 4-component vector of float)
140:9  Function Definition: Test::staticMemFun(i1; ( global int)
150:9    Function Parameters:
160:9      'a' ( in int)
170:?     Sequence
180:10      Branch: Return with expression
190:10        add ( temp int)
200:10          Constant:
210:10            2 (const int)
220:10          'a' ( in int)
230:16  Function Definition: @main( ( temp 4-component vector of float)
240:16    Function Parameters:
250:?     Sequence
260:18      Sequence
270:18        move second child to first child ( temp 4-component vector of float)
280:18          'f4' ( temp 4-component vector of float)
290:?           Constant:
300:?             1.000000
310:?             1.000000
320:?             1.000000
330:?             1.000000
340:19      add second child into first child ( temp 4-component vector of float)
350:19        'f4' ( temp 4-component vector of float)
360:19        Function Call: Test::staticMemFun(vf4; ( global 4-component vector of float)
370:?           Constant:
380:?             5.000000
390:?             5.000000
400:?             5.000000
410:?             5.000000
420:20      add second child into first child ( temp 4-component vector of float)
430:20        'f4' ( temp 4-component vector of float)
440:20        Convert int to float ( temp float)
450:20          Function Call: Test::staticMemFun(i1; ( global int)
460:20            Constant:
470:20              7 (const int)
480:21      Branch: Return with expression
490:21        'f4' ( temp 4-component vector of float)
500:16  Function Definition: main( ( temp void)
510:16    Function Parameters:
520:?     Sequence
530:16      move second child to first child ( temp 4-component vector of float)
540:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
550:16        Function Call: @main( ( temp 4-component vector of float)
560:?   Linker Objects
570:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
58
59
60Linked fragment stage:
61
62
63Shader version: 500
64gl_FragCoord origin is upper left
650:? Sequence
660:5  Function Definition: Test::staticMemFun(vf4; ( global 4-component vector of float)
670:5    Function Parameters:
680:5      'a' ( in 4-component vector of float)
690:?     Sequence
700:6      Branch: Return with expression
710:6        vector-scale ( temp 4-component vector of float)
720:6          Constant:
730:6            2.000000
740:6          'a' ( in 4-component vector of float)
750:9  Function Definition: Test::staticMemFun(i1; ( global int)
760:9    Function Parameters:
770:9      'a' ( in int)
780:?     Sequence
790:10      Branch: Return with expression
800:10        add ( temp int)
810:10          Constant:
820:10            2 (const int)
830:10          'a' ( in int)
840:16  Function Definition: @main( ( temp 4-component vector of float)
850:16    Function Parameters:
860:?     Sequence
870:18      Sequence
880:18        move second child to first child ( temp 4-component vector of float)
890:18          'f4' ( temp 4-component vector of float)
900:?           Constant:
910:?             1.000000
920:?             1.000000
930:?             1.000000
940:?             1.000000
950:19      add second child into first child ( temp 4-component vector of float)
960:19        'f4' ( temp 4-component vector of float)
970:19        Function Call: Test::staticMemFun(vf4; ( global 4-component vector of float)
980:?           Constant:
990:?             5.000000
1000:?             5.000000
1010:?             5.000000
1020:?             5.000000
1030:20      add second child into first child ( temp 4-component vector of float)
1040:20        'f4' ( temp 4-component vector of float)
1050:20        Convert int to float ( temp float)
1060:20          Function Call: Test::staticMemFun(i1; ( global int)
1070:20            Constant:
1080:20              7 (const int)
1090:21      Branch: Return with expression
1100:21        'f4' ( temp 4-component vector of float)
1110:16  Function Definition: main( ( temp void)
1120:16    Function Parameters:
1130:?     Sequence
1140:16      move second child to first child ( temp 4-component vector of float)
1150:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
1160:16        Function Call: @main( ( temp 4-component vector of float)
1170:?   Linker Objects
1180:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
119
120// Module Version 10000
121// Generated by (magic number): 80007
122// Id's are bound by 54
123
124                              Capability Shader
125               1:             ExtInstImport  "GLSL.std.450"
126                              MemoryModel Logical GLSL450
127                              EntryPoint Fragment 4  "main" 52
128                              ExecutionMode 4 OriginUpperLeft
129                              Source HLSL 500
130                              Name 4  "main"
131                              Name 11  "Test::staticMemFun(vf4;"
132                              Name 10  "a"
133                              Name 17  "Test::staticMemFun(i1;"
134                              Name 16  "a"
135                              Name 20  "@main("
136                              Name 32  "f4"
137                              Name 37  "param"
138                              Name 42  "param"
139                              Name 52  "@entryPointOutput"
140                              Decorate 52(@entryPointOutput) Location 0
141               2:             TypeVoid
142               3:             TypeFunction 2
143               6:             TypeFloat 32
144               7:             TypeVector 6(float) 4
145               8:             TypePointer Function 7(fvec4)
146               9:             TypeFunction 7(fvec4) 8(ptr)
147              13:             TypeInt 32 1
148              14:             TypePointer Function 13(int)
149              15:             TypeFunction 13(int) 14(ptr)
150              19:             TypeFunction 7(fvec4)
151              22:    6(float) Constant 1073741824
152              27:     13(int) Constant 2
153              33:    6(float) Constant 1065353216
154              34:    7(fvec4) ConstantComposite 33 33 33 33
155              35:    6(float) Constant 1084227584
156              36:    7(fvec4) ConstantComposite 35 35 35 35
157              41:     13(int) Constant 7
158              51:             TypePointer Output 7(fvec4)
15952(@entryPointOutput):     51(ptr) Variable Output
160         4(main):           2 Function None 3
161               5:             Label
162              53:    7(fvec4) FunctionCall 20(@main()
163                              Store 52(@entryPointOutput) 53
164                              Return
165                              FunctionEnd
16611(Test::staticMemFun(vf4;):    7(fvec4) Function None 9
167           10(a):      8(ptr) FunctionParameter
168              12:             Label
169              23:    7(fvec4) Load 10(a)
170              24:    7(fvec4) VectorTimesScalar 23 22
171                              ReturnValue 24
172                              FunctionEnd
17317(Test::staticMemFun(i1;):     13(int) Function None 15
174           16(a):     14(ptr) FunctionParameter
175              18:             Label
176              28:     13(int) Load 16(a)
177              29:     13(int) IAdd 27 28
178                              ReturnValue 29
179                              FunctionEnd
180      20(@main():    7(fvec4) Function None 19
181              21:             Label
182          32(f4):      8(ptr) Variable Function
183       37(param):      8(ptr) Variable Function
184       42(param):     14(ptr) Variable Function
185                              Store 32(f4) 34
186                              Store 37(param) 36
187              38:    7(fvec4) FunctionCall 11(Test::staticMemFun(vf4;) 37(param)
188              39:    7(fvec4) Load 32(f4)
189              40:    7(fvec4) FAdd 39 38
190                              Store 32(f4) 40
191                              Store 42(param) 41
192              43:     13(int) FunctionCall 17(Test::staticMemFun(i1;) 42(param)
193              44:    6(float) ConvertSToF 43
194              45:    7(fvec4) Load 32(f4)
195              46:    7(fvec4) CompositeConstruct 44 44 44 44
196              47:    7(fvec4) FAdd 45 46
197                              Store 32(f4) 47
198              48:    7(fvec4) Load 32(f4)
199                              ReturnValue 48
200                              FunctionEnd
201