• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1hlsl.precedence2.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:7  Function Definition: @PixelShaderFunction(i1;i1;i1;i1; ( temp int)
60:7    Function Parameters:
70:7      'a1' ( in int)
80:7      'a2' ( in int)
90:7      'a3' ( in int)
100:7      'a4' ( in int)
110:?     Sequence
120:8      Branch: Return with expression
130:8        add ( temp int)
140:8          left-shift ( temp int)
150:8            add ( temp int)
160:8              component-wise multiply ( temp int)
170:8                'a1' ( in int)
180:8                'a2' ( in int)
190:8              'a3' ( in int)
200:8            'a4' ( in int)
210:8          left-shift ( temp int)
220:8            'a1' ( in int)
230:8            add ( temp int)
240:8              'a2' ( in int)
250:8              component-wise multiply ( temp int)
260:8                'a3' ( in int)
270:8                'a4' ( in int)
280:7  Function Definition: PixelShaderFunction( ( temp void)
290:7    Function Parameters:
300:?     Sequence
310:7      move second child to first child ( temp int)
320:?         'a1' ( temp int)
330:?         'a1' (layout( location=0) flat in int)
340:7      move second child to first child ( temp int)
350:?         'a2' ( temp int)
360:?         'a2' (layout( location=1) flat in int)
370:7      move second child to first child ( temp int)
380:?         'a3' ( temp int)
390:?         'a3' (layout( location=2) flat in int)
400:7      move second child to first child ( temp int)
410:?         'a4' ( temp int)
420:?         'a4' (layout( location=3) flat in int)
430:7      move second child to first child ( temp int)
440:?         '@entryPointOutput' (layout( location=0) out int)
450:7        Function Call: @PixelShaderFunction(i1;i1;i1;i1; ( temp int)
460:?           'a1' ( temp int)
470:?           'a2' ( temp int)
480:?           'a3' ( temp int)
490:?           'a4' ( temp int)
500:?   Linker Objects
510:?     '@entryPointOutput' (layout( location=0) out int)
520:?     'a1' (layout( location=0) flat in int)
530:?     'a2' (layout( location=1) flat in int)
540:?     'a3' (layout( location=2) flat in int)
550:?     'a4' (layout( location=3) flat in int)
56
57
58Linked fragment stage:
59
60
61Shader version: 500
62gl_FragCoord origin is upper left
630:? Sequence
640:7  Function Definition: @PixelShaderFunction(i1;i1;i1;i1; ( temp int)
650:7    Function Parameters:
660:7      'a1' ( in int)
670:7      'a2' ( in int)
680:7      'a3' ( in int)
690:7      'a4' ( in int)
700:?     Sequence
710:8      Branch: Return with expression
720:8        add ( temp int)
730:8          left-shift ( temp int)
740:8            add ( temp int)
750:8              component-wise multiply ( temp int)
760:8                'a1' ( in int)
770:8                'a2' ( in int)
780:8              'a3' ( in int)
790:8            'a4' ( in int)
800:8          left-shift ( temp int)
810:8            'a1' ( in int)
820:8            add ( temp int)
830:8              'a2' ( in int)
840:8              component-wise multiply ( temp int)
850:8                'a3' ( in int)
860:8                'a4' ( in int)
870:7  Function Definition: PixelShaderFunction( ( temp void)
880:7    Function Parameters:
890:?     Sequence
900:7      move second child to first child ( temp int)
910:?         'a1' ( temp int)
920:?         'a1' (layout( location=0) flat in int)
930:7      move second child to first child ( temp int)
940:?         'a2' ( temp int)
950:?         'a2' (layout( location=1) flat in int)
960:7      move second child to first child ( temp int)
970:?         'a3' ( temp int)
980:?         'a3' (layout( location=2) flat in int)
990:7      move second child to first child ( temp int)
1000:?         'a4' ( temp int)
1010:?         'a4' (layout( location=3) flat in int)
1020:7      move second child to first child ( temp int)
1030:?         '@entryPointOutput' (layout( location=0) out int)
1040:7        Function Call: @PixelShaderFunction(i1;i1;i1;i1; ( temp int)
1050:?           'a1' ( temp int)
1060:?           'a2' ( temp int)
1070:?           'a3' ( temp int)
1080:?           'a4' ( temp int)
1090:?   Linker Objects
1100:?     '@entryPointOutput' (layout( location=0) out int)
1110:?     'a1' (layout( location=0) flat in int)
1120:?     'a2' (layout( location=1) flat in int)
1130:?     'a3' (layout( location=2) flat in int)
1140:?     'a4' (layout( location=3) flat in int)
115
116// Module Version 10000
117// Generated by (magic number): 8000a
118// Id's are bound by 56
119
120                              Capability Shader
121               1:             ExtInstImport  "GLSL.std.450"
122                              MemoryModel Logical GLSL450
123                              EntryPoint Fragment 4  "PixelShaderFunction" 34 37 40 43 46
124                              ExecutionMode 4 OriginUpperLeft
125                              Source HLSL 500
126                              Name 4  "PixelShaderFunction"
127                              Name 13  "@PixelShaderFunction(i1;i1;i1;i1;"
128                              Name 9  "a1"
129                              Name 10  "a2"
130                              Name 11  "a3"
131                              Name 12  "a4"
132                              Name 32  "a1"
133                              Name 34  "a1"
134                              Name 36  "a2"
135                              Name 37  "a2"
136                              Name 39  "a3"
137                              Name 40  "a3"
138                              Name 42  "a4"
139                              Name 43  "a4"
140                              Name 46  "@entryPointOutput"
141                              Name 47  "param"
142                              Name 49  "param"
143                              Name 51  "param"
144                              Name 53  "param"
145                              Decorate 34(a1) Flat
146                              Decorate 34(a1) Location 0
147                              Decorate 37(a2) Flat
148                              Decorate 37(a2) Location 1
149                              Decorate 40(a3) Flat
150                              Decorate 40(a3) Location 2
151                              Decorate 43(a4) Flat
152                              Decorate 43(a4) Location 3
153                              Decorate 46(@entryPointOutput) Location 0
154               2:             TypeVoid
155               3:             TypeFunction 2
156               6:             TypeInt 32 1
157               7:             TypePointer Function 6(int)
158               8:             TypeFunction 6(int) 7(ptr) 7(ptr) 7(ptr) 7(ptr)
159              33:             TypePointer Input 6(int)
160          34(a1):     33(ptr) Variable Input
161          37(a2):     33(ptr) Variable Input
162          40(a3):     33(ptr) Variable Input
163          43(a4):     33(ptr) Variable Input
164              45:             TypePointer Output 6(int)
16546(@entryPointOutput):     45(ptr) Variable Output
1664(PixelShaderFunction):           2 Function None 3
167               5:             Label
168          32(a1):      7(ptr) Variable Function
169          36(a2):      7(ptr) Variable Function
170          39(a3):      7(ptr) Variable Function
171          42(a4):      7(ptr) Variable Function
172       47(param):      7(ptr) Variable Function
173       49(param):      7(ptr) Variable Function
174       51(param):      7(ptr) Variable Function
175       53(param):      7(ptr) Variable Function
176              35:      6(int) Load 34(a1)
177                              Store 32(a1) 35
178              38:      6(int) Load 37(a2)
179                              Store 36(a2) 38
180              41:      6(int) Load 40(a3)
181                              Store 39(a3) 41
182              44:      6(int) Load 43(a4)
183                              Store 42(a4) 44
184              48:      6(int) Load 32(a1)
185                              Store 47(param) 48
186              50:      6(int) Load 36(a2)
187                              Store 49(param) 50
188              52:      6(int) Load 39(a3)
189                              Store 51(param) 52
190              54:      6(int) Load 42(a4)
191                              Store 53(param) 54
192              55:      6(int) FunctionCall 13(@PixelShaderFunction(i1;i1;i1;i1;) 47(param) 49(param) 51(param) 53(param)
193                              Store 46(@entryPointOutput) 55
194                              Return
195                              FunctionEnd
19613(@PixelShaderFunction(i1;i1;i1;i1;):      6(int) Function None 8
197           9(a1):      7(ptr) FunctionParameter
198          10(a2):      7(ptr) FunctionParameter
199          11(a3):      7(ptr) FunctionParameter
200          12(a4):      7(ptr) FunctionParameter
201              14:             Label
202              15:      6(int) Load 9(a1)
203              16:      6(int) Load 10(a2)
204              17:      6(int) IMul 15 16
205              18:      6(int) Load 11(a3)
206              19:      6(int) IAdd 17 18
207              20:      6(int) Load 12(a4)
208              21:      6(int) ShiftLeftLogical 19 20
209              22:      6(int) Load 9(a1)
210              23:      6(int) Load 10(a2)
211              24:      6(int) Load 11(a3)
212              25:      6(int) Load 12(a4)
213              26:      6(int) IMul 24 25
214              27:      6(int) IAdd 23 26
215              28:      6(int) ShiftLeftLogical 22 27
216              29:      6(int) IAdd 21 28
217                              ReturnValue 29
218                              FunctionEnd
219