• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1hlsl.loopattr.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:3  Function Definition: @main( ( temp 4-component vector of float)
60:3    Function Parameters:
70:?     Sequence
80:5      Sequence
90:5        move second child to first child ( temp int)
100:5          'x' ( temp int)
110:5          Constant:
120:5            0 (const int)
130:5        Loop with condition tested first: Unroll
140:5          Loop Condition
150:5          Compare Less Than ( temp bool)
160:5            'x' ( temp int)
170:5            Constant:
180:5              5 (const int)
190:5          No loop body
200:5          Loop Terminal Expression
210:5          Pre-Increment ( temp int)
220:5            'x' ( temp int)
230:8      Sequence
240:8        move second child to first child ( temp int)
250:8          'y' ( temp int)
260:8          Constant:
270:8            0 (const int)
280:8        Loop with condition tested first: DontUnroll
290:8          Loop Condition
300:8          Compare Less Than ( temp bool)
310:8            'y' ( temp int)
320:8            Constant:
330:8              5 (const int)
340:8          No loop body
350:8          Loop Terminal Expression
360:8          Pre-Increment ( temp int)
370:8            'y' ( temp int)
380:11      Sequence
390:11        move second child to first child ( temp int)
400:11          'z' ( temp int)
410:11          Constant:
420:11            0 (const int)
430:11        Loop with condition tested first
440:11          Loop Condition
450:11          Compare Less Than ( temp bool)
460:11            'z' ( temp int)
470:11            Constant:
480:11              5 (const int)
490:11          No loop body
500:11          Loop Terminal Expression
510:11          Pre-Increment ( temp int)
520:11            'z' ( temp int)
530:13      Branch: Return with expression
540:13        Constant:
550:13          0.000000
560:13          0.000000
570:13          0.000000
580:13          0.000000
590:3  Function Definition: main( ( temp void)
600:3    Function Parameters:
610:?     Sequence
620:3      move second child to first child ( temp 4-component vector of float)
630:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
640:3        Function Call: @main( ( temp 4-component vector of float)
650:?   Linker Objects
660:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
67
68
69Linked fragment stage:
70
71
72Shader version: 500
73gl_FragCoord origin is upper left
740:? Sequence
750:3  Function Definition: @main( ( temp 4-component vector of float)
760:3    Function Parameters:
770:?     Sequence
780:5      Sequence
790:5        move second child to first child ( temp int)
800:5          'x' ( temp int)
810:5          Constant:
820:5            0 (const int)
830:5        Loop with condition tested first: Unroll
840:5          Loop Condition
850:5          Compare Less Than ( temp bool)
860:5            'x' ( temp int)
870:5            Constant:
880:5              5 (const int)
890:5          No loop body
900:5          Loop Terminal Expression
910:5          Pre-Increment ( temp int)
920:5            'x' ( temp int)
930:8      Sequence
940:8        move second child to first child ( temp int)
950:8          'y' ( temp int)
960:8          Constant:
970:8            0 (const int)
980:8        Loop with condition tested first: DontUnroll
990:8          Loop Condition
1000:8          Compare Less Than ( temp bool)
1010:8            'y' ( temp int)
1020:8            Constant:
1030:8              5 (const int)
1040:8          No loop body
1050:8          Loop Terminal Expression
1060:8          Pre-Increment ( temp int)
1070:8            'y' ( temp int)
1080:11      Sequence
1090:11        move second child to first child ( temp int)
1100:11          'z' ( temp int)
1110:11          Constant:
1120:11            0 (const int)
1130:11        Loop with condition tested first
1140:11          Loop Condition
1150:11          Compare Less Than ( temp bool)
1160:11            'z' ( temp int)
1170:11            Constant:
1180:11              5 (const int)
1190:11          No loop body
1200:11          Loop Terminal Expression
1210:11          Pre-Increment ( temp int)
1220:11            'z' ( temp int)
1230:13      Branch: Return with expression
1240:13        Constant:
1250:13          0.000000
1260:13          0.000000
1270:13          0.000000
1280:13          0.000000
1290:3  Function Definition: main( ( temp void)
1300:3    Function Parameters:
1310:?     Sequence
1320:3      move second child to first child ( temp 4-component vector of float)
1330:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
1340:3        Function Call: @main( ( temp 4-component vector of float)
1350:?   Linker Objects
1360:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
137
138// Module Version 10000
139// Generated by (magic number): 8000a
140// Id's are bound by 54
141
142                              Capability Shader
143               1:             ExtInstImport  "GLSL.std.450"
144                              MemoryModel Logical GLSL450
145                              EntryPoint Fragment 4  "main" 52
146                              ExecutionMode 4 OriginUpperLeft
147                              Source HLSL 500
148                              Name 4  "main"
149                              Name 9  "@main("
150                              Name 13  "x"
151                              Name 27  "y"
152                              Name 37  "z"
153                              Name 52  "@entryPointOutput"
154                              Decorate 52(@entryPointOutput) Location 0
155               2:             TypeVoid
156               3:             TypeFunction 2
157               6:             TypeFloat 32
158               7:             TypeVector 6(float) 4
159               8:             TypeFunction 7(fvec4)
160              11:             TypeInt 32 1
161              12:             TypePointer Function 11(int)
162              14:     11(int) Constant 0
163              21:     11(int) Constant 5
164              22:             TypeBool
165              25:     11(int) Constant 1
166              47:    6(float) Constant 0
167              48:    7(fvec4) ConstantComposite 47 47 47 47
168              51:             TypePointer Output 7(fvec4)
16952(@entryPointOutput):     51(ptr) Variable Output
170         4(main):           2 Function None 3
171               5:             Label
172              53:    7(fvec4) FunctionCall 9(@main()
173                              Store 52(@entryPointOutput) 53
174                              Return
175                              FunctionEnd
176       9(@main():    7(fvec4) Function None 8
177              10:             Label
178           13(x):     12(ptr) Variable Function
179           27(y):     12(ptr) Variable Function
180           37(z):     12(ptr) Variable Function
181                              Store 13(x) 14
182                              Branch 15
183              15:             Label
184                              LoopMerge 17 18 Unroll
185                              Branch 19
186              19:             Label
187              20:     11(int) Load 13(x)
188              23:    22(bool) SLessThan 20 21
189                              BranchConditional 23 16 17
190              16:               Label
191                                Branch 18
192              18:               Label
193              24:     11(int)   Load 13(x)
194              26:     11(int)   IAdd 24 25
195                                Store 13(x) 26
196                                Branch 15
197              17:             Label
198                              Store 27(y) 14
199                              Branch 28
200              28:             Label
201                              LoopMerge 30 31 DontUnroll
202                              Branch 32
203              32:             Label
204              33:     11(int) Load 27(y)
205              34:    22(bool) SLessThan 33 21
206                              BranchConditional 34 29 30
207              29:               Label
208                                Branch 31
209              31:               Label
210              35:     11(int)   Load 27(y)
211              36:     11(int)   IAdd 35 25
212                                Store 27(y) 36
213                                Branch 28
214              30:             Label
215                              Store 37(z) 14
216                              Branch 38
217              38:             Label
218                              LoopMerge 40 41 None
219                              Branch 42
220              42:             Label
221              43:     11(int) Load 37(z)
222              44:    22(bool) SLessThan 43 21
223                              BranchConditional 44 39 40
224              39:               Label
225                                Branch 41
226              41:               Label
227              45:     11(int)   Load 37(z)
228              46:     11(int)   IAdd 45 25
229                                Store 37(z) 46
230                                Branch 38
231              40:             Label
232                              ReturnValue 48
233                              FunctionEnd
234