1spv.forLoop.frag
2// Module Version 10000
3// Generated by (magic number): 80007
4// Id's are bound by 131
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Fragment 4  "main" 11 24 28 36 53 104
10                              ExecutionMode 4 OriginUpperLeft
11                              Source GLSL 140
12                              Name 4  "main"
13                              Name 9  "color"
14                              Name 11  "BaseColor"
15                              Name 15  "i"
16                              Name 24  "Count"
17                              Name 28  "bigColor"
18                              Name 36  "gl_FragColor"
19                              Name 39  "sum"
20                              Name 41  "i"
21                              Name 53  "v4"
22                              Name 63  "i"
23                              Name 71  "tv4"
24                              Name 88  "r"
25                              Name 94  "i"
26                              Name 104  "f"
27                              Name 117  "i"
28                              Decorate 24(Count) Flat
29                              Decorate 36(gl_FragColor) Location 0
30                              Decorate 53(v4) Flat
31               2:             TypeVoid
32               3:             TypeFunction 2
33               6:             TypeFloat 32
34               7:             TypeVector 6(float) 4
35               8:             TypePointer Function 7(fvec4)
36              10:             TypePointer Input 7(fvec4)
37   11(BaseColor):     10(ptr) Variable Input
38              13:             TypeInt 32 1
39              14:             TypePointer Function 13(int)
40              16:     13(int) Constant 0
41              23:             TypePointer Input 13(int)
42       24(Count):     23(ptr) Variable Input
43              26:             TypeBool
44    28(bigColor):     10(ptr) Variable Input
45              33:     13(int) Constant 1
46              35:             TypePointer Output 7(fvec4)
4736(gl_FragColor):     35(ptr) Variable Output
48              38:             TypePointer Function 6(float)
49              40:    6(float) Constant 0
50              48:     13(int) Constant 4
51              50:             TypeInt 32 0
52              51:             TypeVector 50(int) 4
53              52:             TypePointer Input 51(ivec4)
54          53(v4):     52(ptr) Variable Input
55              55:             TypePointer Input 50(int)
56              76:     50(int) Constant 4
57              89:             TypeVector 6(float) 3
58             103:             TypePointer Input 6(float)
59          104(f):    103(ptr) Variable Input
60             106:     50(int) Constant 3
61             124:     13(int) Constant 16
62         4(main):           2 Function None 3
63               5:             Label
64        9(color):      8(ptr) Variable Function
65           15(i):     14(ptr) Variable Function
66         39(sum):     38(ptr) Variable Function
67           41(i):     14(ptr) Variable Function
68           63(i):     14(ptr) Variable Function
69         71(tv4):      8(ptr) Variable Function
70           88(r):      8(ptr) Variable Function
71           94(i):     14(ptr) Variable Function
72          117(i):     14(ptr) Variable Function
73              12:    7(fvec4) Load 11(BaseColor)
74                              Store 9(color) 12
75                              Store 15(i) 16
76                              Branch 17
77              17:             Label
78                              LoopMerge 19 20 None
79                              Branch 21
80              21:             Label
81              22:     13(int) Load 15(i)
82              25:     13(int) Load 24(Count)
83              27:    26(bool) SLessThan 22 25
84                              BranchConditional 27 18 19
85              18:               Label
86              29:    7(fvec4)   Load 28(bigColor)
87              30:    7(fvec4)   Load 9(color)
88              31:    7(fvec4)   FAdd 30 29
89                                Store 9(color) 31
90                                Branch 20
91              20:               Label
92              32:     13(int)   Load 15(i)
93              34:     13(int)   IAdd 32 33
94                                Store 15(i) 34
95                                Branch 17
96              19:             Label
97              37:    7(fvec4) Load 9(color)
98                              Store 36(gl_FragColor) 37
99                              Store 39(sum) 40
100                              Store 41(i) 16
101                              Branch 42
102              42:             Label
103                              LoopMerge 44 45 None
104                              Branch 46
105              46:             Label
106              47:     13(int) Load 41(i)
107              49:    26(bool) SLessThan 47 48
108                              BranchConditional 49 43 44
109              43:               Label
110              54:     13(int)   Load 41(i)
111              56:     55(ptr)   AccessChain 53(v4) 54
112              57:     50(int)   Load 56
113              58:    6(float)   ConvertUToF 57
114              59:    6(float)   Load 39(sum)
115              60:    6(float)   FAdd 59 58
116                                Store 39(sum) 60
117                                Branch 45
118              45:               Label
119              61:     13(int)   Load 41(i)
120              62:     13(int)   IAdd 61 33
121                                Store 41(i) 62
122                                Branch 42
123              44:             Label
124                              Store 63(i) 16
125                              Branch 64
126              64:             Label
127                              LoopMerge 66 67 None
128                              Branch 68
129              68:             Label
130              69:     13(int) Load 63(i)
131              70:    26(bool) SLessThan 69 48
132                              BranchConditional 70 65 66
133              65:               Label
134              72:     13(int)   Load 63(i)
135              73:     13(int)   Load 63(i)
136              74:     55(ptr)   AccessChain 53(v4) 73
137              75:     50(int)   Load 74
138              77:     50(int)   IMul 75 76
139              78:    6(float)   ConvertUToF 77
140              79:     38(ptr)   AccessChain 71(tv4) 72
141                                Store 79 78
142                                Branch 67
143              67:               Label
144              80:     13(int)   Load 63(i)
145              81:     13(int)   IAdd 80 33
146                                Store 63(i) 81
147                                Branch 64
148              66:             Label
149              82:    6(float) Load 39(sum)
150              83:    7(fvec4) CompositeConstruct 82 82 82 82
151              84:    7(fvec4) Load 71(tv4)
152              85:    7(fvec4) FAdd 83 84
153              86:    7(fvec4) Load 36(gl_FragColor)
154              87:    7(fvec4) FAdd 86 85
155                              Store 36(gl_FragColor) 87
156              90:    7(fvec4) Load 11(BaseColor)
157              91:   89(fvec3) VectorShuffle 90 90 0 1 2
158              92:    7(fvec4) Load 88(r)
159              93:    7(fvec4) VectorShuffle 92 91 4 5 6 3
160                              Store 88(r) 93
161                              Store 94(i) 16
162                              Branch 95
163              95:             Label
164                              LoopMerge 97 98 None
165                              Branch 99
166              99:             Label
167             100:     13(int) Load 94(i)
168             101:     13(int) Load 24(Count)
169             102:    26(bool) SLessThan 100 101
170                              BranchConditional 102 96 97
171              96:               Label
172             105:    6(float)   Load 104(f)
173             107:     38(ptr)   AccessChain 88(r) 106
174                                Store 107 105
175                                Branch 98
176              98:               Label
177             108:     13(int)   Load 94(i)
178             109:     13(int)   IAdd 108 33
179                                Store 94(i) 109
180                                Branch 95
181              97:             Label
182             110:    7(fvec4) Load 88(r)
183             111:   89(fvec3) VectorShuffle 110 110 0 1 2
184             112:    7(fvec4) Load 36(gl_FragColor)
185             113:   89(fvec3) VectorShuffle 112 112 0 1 2
186             114:   89(fvec3) FAdd 113 111
187             115:    7(fvec4) Load 36(gl_FragColor)
188             116:    7(fvec4) VectorShuffle 115 114 4 5 6 3
189                              Store 36(gl_FragColor) 116
190                              Store 117(i) 16
191                              Branch 118
192             118:             Label
193                              LoopMerge 120 121 None
194                              Branch 122
195             122:             Label
196             123:     13(int) Load 117(i)
197             125:    26(bool) SLessThan 123 124
198                              BranchConditional 125 119 120
199             119:               Label
200             126:    6(float)   Load 104(f)
201             127:    7(fvec4)   Load 36(gl_FragColor)
202             128:    7(fvec4)   VectorTimesScalar 127 126
203                                Store 36(gl_FragColor) 128
204                                Branch 121
205             121:               Label
206             129:     13(int)   Load 117(i)
207             130:     13(int)   IAdd 129 48
208                                Store 117(i) 130
209                                Branch 118
210             120:             Label
211                              Return
212                              FunctionEnd
213