1hlsl.precedence.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:7  Function Definition: @PixelShaderFunction(vf4;vf4;vf4;vf4; ( temp 4-component vector of float)
60:7    Function Parameters:
70:7      'a1' ( in 4-component vector of float)
80:7      'a2' ( in 4-component vector of float)
90:7      'a3' ( in 4-component vector of float)
100:7      'a4' ( in 4-component vector of float)
110:?     Sequence
120:8      Branch: Return with expression
130:8        add ( temp 4-component vector of float)
140:8          add ( temp 4-component vector of float)
150:8            add ( temp 4-component vector of float)
160:8              'a1' ( in 4-component vector of float)
170:8              component-wise multiply ( temp 4-component vector of float)
180:8                'a2' ( in 4-component vector of float)
190:8                'a3' ( in 4-component vector of float)
200:8            'a4' ( in 4-component vector of float)
210:?           Construct vec4 ( temp 4-component vector of float)
220:8            component-wise multiply ( temp 3-component vector of float)
230:8              vector swizzle ( temp 3-component vector of float)
240:8                'a1' ( in 4-component vector of float)
250:8                Sequence
260:8                  Constant:
270:8                    0 (const int)
280:8                  Constant:
290:8                    1 (const int)
300:8                  Constant:
310:8                    2 (const int)
320:8              vector swizzle ( temp 3-component vector of float)
330:8                'a2' ( in 4-component vector of float)
340:8                Sequence
350:8                  Constant:
360:8                    0 (const int)
370:8                  Constant:
380:8                    1 (const int)
390:8                  Constant:
400:8                    2 (const int)
410:8            direct index ( temp float)
420:8              'a3' ( in 4-component vector of float)
430:8              Constant:
440:8                3 (const int)
450:7  Function Definition: PixelShaderFunction( ( temp void)
460:7    Function Parameters:
470:?     Sequence
480:7      move second child to first child ( temp 4-component vector of float)
490:?         'a1' ( temp 4-component vector of float)
500:?         'a1' (layout( location=0) in 4-component vector of float)
510:7      move second child to first child ( temp 4-component vector of float)
520:?         'a2' ( temp 4-component vector of float)
530:?         'a2' (layout( location=1) in 4-component vector of float)
540:7      move second child to first child ( temp 4-component vector of float)
550:?         'a3' ( temp 4-component vector of float)
560:?         'a3' (layout( location=2) in 4-component vector of float)
570:7      move second child to first child ( temp 4-component vector of float)
580:?         'a4' ( temp 4-component vector of float)
590:?         'a4' (layout( location=3) in 4-component vector of float)
600:7      move second child to first child ( temp 4-component vector of float)
610:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
620:7        Function Call: @PixelShaderFunction(vf4;vf4;vf4;vf4; ( temp 4-component vector of float)
630:?           'a1' ( temp 4-component vector of float)
640:?           'a2' ( temp 4-component vector of float)
650:?           'a3' ( temp 4-component vector of float)
660:?           'a4' ( temp 4-component vector of float)
670:?   Linker Objects
680:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
690:?     'a1' (layout( location=0) in 4-component vector of float)
700:?     'a2' (layout( location=1) in 4-component vector of float)
710:?     'a3' (layout( location=2) in 4-component vector of float)
720:?     'a4' (layout( location=3) in 4-component vector of float)
73
74
75Linked fragment stage:
76
77
78Shader version: 500
79gl_FragCoord origin is upper left
800:? Sequence
810:7  Function Definition: @PixelShaderFunction(vf4;vf4;vf4;vf4; ( temp 4-component vector of float)
820:7    Function Parameters:
830:7      'a1' ( in 4-component vector of float)
840:7      'a2' ( in 4-component vector of float)
850:7      'a3' ( in 4-component vector of float)
860:7      'a4' ( in 4-component vector of float)
870:?     Sequence
880:8      Branch: Return with expression
890:8        add ( temp 4-component vector of float)
900:8          add ( temp 4-component vector of float)
910:8            add ( temp 4-component vector of float)
920:8              'a1' ( in 4-component vector of float)
930:8              component-wise multiply ( temp 4-component vector of float)
940:8                'a2' ( in 4-component vector of float)
950:8                'a3' ( in 4-component vector of float)
960:8            'a4' ( in 4-component vector of float)
970:?           Construct vec4 ( temp 4-component vector of float)
980:8            component-wise multiply ( temp 3-component vector of float)
990:8              vector swizzle ( temp 3-component vector of float)
1000:8                'a1' ( in 4-component vector of float)
1010:8                Sequence
1020:8                  Constant:
1030:8                    0 (const int)
1040:8                  Constant:
1050:8                    1 (const int)
1060:8                  Constant:
1070:8                    2 (const int)
1080:8              vector swizzle ( temp 3-component vector of float)
1090:8                'a2' ( in 4-component vector of float)
1100:8                Sequence
1110:8                  Constant:
1120:8                    0 (const int)
1130:8                  Constant:
1140:8                    1 (const int)
1150:8                  Constant:
1160:8                    2 (const int)
1170:8            direct index ( temp float)
1180:8              'a3' ( in 4-component vector of float)
1190:8              Constant:
1200:8                3 (const int)
1210:7  Function Definition: PixelShaderFunction( ( temp void)
1220:7    Function Parameters:
1230:?     Sequence
1240:7      move second child to first child ( temp 4-component vector of float)
1250:?         'a1' ( temp 4-component vector of float)
1260:?         'a1' (layout( location=0) in 4-component vector of float)
1270:7      move second child to first child ( temp 4-component vector of float)
1280:?         'a2' ( temp 4-component vector of float)
1290:?         'a2' (layout( location=1) in 4-component vector of float)
1300:7      move second child to first child ( temp 4-component vector of float)
1310:?         'a3' ( temp 4-component vector of float)
1320:?         'a3' (layout( location=2) in 4-component vector of float)
1330:7      move second child to first child ( temp 4-component vector of float)
1340:?         'a4' ( temp 4-component vector of float)
1350:?         'a4' (layout( location=3) in 4-component vector of float)
1360:7      move second child to first child ( temp 4-component vector of float)
1370:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
1380:7        Function Call: @PixelShaderFunction(vf4;vf4;vf4;vf4; ( temp 4-component vector of float)
1390:?           'a1' ( temp 4-component vector of float)
1400:?           'a2' ( temp 4-component vector of float)
1410:?           'a3' ( temp 4-component vector of float)
1420:?           'a4' ( temp 4-component vector of float)
1430:?   Linker Objects
1440:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
1450:?     'a1' (layout( location=0) in 4-component vector of float)
1460:?     'a2' (layout( location=1) in 4-component vector of float)
1470:?     'a3' (layout( location=2) in 4-component vector of float)
1480:?     'a4' (layout( location=3) in 4-component vector of float)
149
150// Module Version 10000
151// Generated by (magic number): 80007
152// Id's are bound by 65
153
154                              Capability Shader
155               1:             ExtInstImport  "GLSL.std.450"
156                              MemoryModel Logical GLSL450
157                              EntryPoint Fragment 4  "PixelShaderFunction" 43 46 49 52 55
158                              ExecutionMode 4 OriginUpperLeft
159                              Source HLSL 500
160                              Name 4  "PixelShaderFunction"
161                              Name 14  "@PixelShaderFunction(vf4;vf4;vf4;vf4;"
162                              Name 10  "a1"
163                              Name 11  "a2"
164                              Name 12  "a3"
165                              Name 13  "a4"
166                              Name 41  "a1"
167                              Name 43  "a1"
168                              Name 45  "a2"
169                              Name 46  "a2"
170                              Name 48  "a3"
171                              Name 49  "a3"
172                              Name 51  "a4"
173                              Name 52  "a4"
174                              Name 55  "@entryPointOutput"
175                              Name 56  "param"
176                              Name 58  "param"
177                              Name 60  "param"
178                              Name 62  "param"
179                              Decorate 43(a1) Location 0
180                              Decorate 46(a2) Location 1
181                              Decorate 49(a3) Location 2
182                              Decorate 52(a4) Location 3
183                              Decorate 55(@entryPointOutput) Location 0
184               2:             TypeVoid
185               3:             TypeFunction 2
186               6:             TypeFloat 32
187               7:             TypeVector 6(float) 4
188               8:             TypePointer Function 7(fvec4)
189               9:             TypeFunction 7(fvec4) 8(ptr) 8(ptr) 8(ptr) 8(ptr)
190              23:             TypeVector 6(float) 3
191              29:             TypeInt 32 0
192              30:     29(int) Constant 3
193              31:             TypePointer Function 6(float)
194              42:             TypePointer Input 7(fvec4)
195          43(a1):     42(ptr) Variable Input
196          46(a2):     42(ptr) Variable Input
197          49(a3):     42(ptr) Variable Input
198          52(a4):     42(ptr) Variable Input
199              54:             TypePointer Output 7(fvec4)
20055(@entryPointOutput):     54(ptr) Variable Output
2014(PixelShaderFunction):           2 Function None 3
202               5:             Label
203          41(a1):      8(ptr) Variable Function
204          45(a2):      8(ptr) Variable Function
205          48(a3):      8(ptr) Variable Function
206          51(a4):      8(ptr) Variable Function
207       56(param):      8(ptr) Variable Function
208       58(param):      8(ptr) Variable Function
209       60(param):      8(ptr) Variable Function
210       62(param):      8(ptr) Variable Function
211              44:    7(fvec4) Load 43(a1)
212                              Store 41(a1) 44
213              47:    7(fvec4) Load 46(a2)
214                              Store 45(a2) 47
215              50:    7(fvec4) Load 49(a3)
216                              Store 48(a3) 50
217              53:    7(fvec4) Load 52(a4)
218                              Store 51(a4) 53
219              57:    7(fvec4) Load 41(a1)
220                              Store 56(param) 57
221              59:    7(fvec4) Load 45(a2)
222                              Store 58(param) 59
223              61:    7(fvec4) Load 48(a3)
224                              Store 60(param) 61
225              63:    7(fvec4) Load 51(a4)
226                              Store 62(param) 63
227              64:    7(fvec4) FunctionCall 14(@PixelShaderFunction(vf4;vf4;vf4;vf4;) 56(param) 58(param) 60(param) 62(param)
228                              Store 55(@entryPointOutput) 64
229                              Return
230                              FunctionEnd
23114(@PixelShaderFunction(vf4;vf4;vf4;vf4;):    7(fvec4) Function None 9
232          10(a1):      8(ptr) FunctionParameter
233          11(a2):      8(ptr) FunctionParameter
234          12(a3):      8(ptr) FunctionParameter
235          13(a4):      8(ptr) FunctionParameter
236              15:             Label
237              16:    7(fvec4) Load 10(a1)
238              17:    7(fvec4) Load 11(a2)
239              18:    7(fvec4) Load 12(a3)
240              19:    7(fvec4) FMul 17 18
241              20:    7(fvec4) FAdd 16 19
242              21:    7(fvec4) Load 13(a4)
243              22:    7(fvec4) FAdd 20 21
244              24:    7(fvec4) Load 10(a1)
245              25:   23(fvec3) VectorShuffle 24 24 0 1 2
246              26:    7(fvec4) Load 11(a2)
247              27:   23(fvec3) VectorShuffle 26 26 0 1 2
248              28:   23(fvec3) FMul 25 27
249              32:     31(ptr) AccessChain 12(a3) 30
250              33:    6(float) Load 32
251              34:    6(float) CompositeExtract 28 0
252              35:    6(float) CompositeExtract 28 1
253              36:    6(float) CompositeExtract 28 2
254              37:    7(fvec4) CompositeConstruct 34 35 36 33
255              38:    7(fvec4) FAdd 22 37
256                              ReturnValue 38
257                              FunctionEnd
258