blob: 07563b3f15e03297ef3f3bb3fa2f84b4a4c4c665 [file] [log] [blame]
John Kessenichcc16fa02015-12-10 18:01:54 -07001spv.Operations.frag
John Kessenich6c1c2762018-01-29 16:16:11 -07002// Module Version 10200
John Kessenichc72e5932017-12-11 08:24:06 -07003// Generated by (magic number): 80003
John Kessenich04794372017-03-01 13:49:11 -07004// Id's are bound by 532
John Kessenichcc16fa02015-12-10 18:01:54 -07005
6 Capability Shader
7 1: ExtInstImport "GLSL.std.450"
8 MemoryModel Logical GLSL450
John Kessenich04794372017-03-01 13:49:11 -07009 EntryPoint Fragment 4 "main" 11 22 212 288 485 526 531
John Kessenich6c292d32016-02-15 20:58:50 -070010 ExecutionMode 4 OriginUpperLeft
John Kessenich3c24a062015-12-11 15:08:26 -070011 Source GLSL 450
John Kessenichcc16fa02015-12-10 18:01:54 -070012 Name 4 "main"
13 Name 9 "v"
14 Name 11 "uv4"
15 Name 20 "i"
16 Name 22 "ui"
John Kessenich3c24a062015-12-11 15:08:26 -070017 Name 181 "ub41"
18 Name 188 "f"
John Kesseniche7c83cf2015-12-13 13:34:37 -070019 Name 212 "uf"
20 Name 285 "u"
21 Name 288 "uui"
22 Name 305 "b"
23 Name 342 "ub42"
John Kessenich6c292d32016-02-15 20:58:50 -070024 Name 485 "FragColor"
John Kessenich04794372017-03-01 13:49:11 -070025 Name 503 "m1"
26 Name 510 "m2"
27 Name 526 "uiv4"
28 Name 528 "ub"
29 Name 531 "uuv4"
John Kessenich6c292d32016-02-15 20:58:50 -070030 Decorate 22(ui) Flat
31 Decorate 288(uui) Flat
John Kessenich04794372017-03-01 13:49:11 -070032 Decorate 526(uiv4) Flat
33 Decorate 531(uuv4) Flat
John Kessenichcc16fa02015-12-10 18:01:54 -070034 2: TypeVoid
35 3: TypeFunction 2
36 6: TypeFloat 32
37 7: TypeVector 6(float) 4
38 8: TypePointer Function 7(fvec4)
John Kessenich6c292d32016-02-15 20:58:50 -070039 10: TypePointer Input 7(fvec4)
40 11(uv4): 10(ptr) Variable Input
John Kessenichcc16fa02015-12-10 18:01:54 -070041 18: TypeInt 32 1
42 19: TypePointer Function 18(int)
John Kessenich6c292d32016-02-15 20:58:50 -070043 21: TypePointer Input 18(int)
44 22(ui): 21(ptr) Variable Input
John Kessenich3c24a062015-12-11 15:08:26 -070045 141: TypeInt 32 0
46 142: 141(int) Constant 0
47 143: TypePointer Function 6(float)
48 178: TypeBool
49 179: TypeVector 178(bool) 4
John Kessenich6c292d32016-02-15 20:58:50 -070050 180: TypePointer Private 179(bvec4)
51 181(ub41): 180(ptr) Variable Private
52 211: TypePointer Input 6(float)
53 212(uf): 211(ptr) Variable Input
John Kesseniche7c83cf2015-12-13 13:34:37 -070054 284: TypePointer Function 141(int)
John Kessenich6c292d32016-02-15 20:58:50 -070055 287: TypePointer Input 141(int)
56 288(uui): 287(ptr) Variable Input
John Kesseniche7c83cf2015-12-13 13:34:37 -070057 304: TypePointer Function 178(bool)
John Kessenich6c292d32016-02-15 20:58:50 -070058 342(ub42): 180(ptr) Variable Private
59 398: 18(int) Constant 2
60 405: 18(int) Constant 1
61 435: TypeVector 6(float) 3
62 454: 6(float) Constant 1073741824
63 461: 6(float) Constant 1065353216
64 466: 18(int) Constant 66
65 472: 18(int) Constant 17
66 484: TypePointer Output 7(fvec4)
67 485(FragColor): 484(ptr) Variable Output
John Kessenich04794372017-03-01 13:49:11 -070068 501: TypeMatrix 7(fvec4) 4
69 502: TypePointer Function 501
70 504: 6(float) Constant 0
71 505: 7(fvec4) ConstantComposite 461 504 504 504
72 506: 7(fvec4) ConstantComposite 504 461 504 504
73 507: 7(fvec4) ConstantComposite 504 504 461 504
74 508: 7(fvec4) ConstantComposite 504 504 504 461
75 509: 501 ConstantComposite 505 506 507 508
76 511: 7(fvec4) ConstantComposite 504 504 504 504
77 512: 501 ConstantComposite 511 511 511 511
78 524: TypeVector 18(int) 4
79 525: TypePointer Input 524(ivec4)
80 526(uiv4): 525(ptr) Variable Input
81 527: TypePointer Private 178(bool)
82 528(ub): 527(ptr) Variable Private
83 529: TypeVector 141(int) 4
84 530: TypePointer Input 529(ivec4)
85 531(uuv4): 530(ptr) Variable Input
John Kessenichcc16fa02015-12-10 18:01:54 -070086 4(main): 2 Function None 3
87 5: Label
88 9(v): 8(ptr) Variable Function
89 20(i): 19(ptr) Variable Function
John Kessenich3c24a062015-12-11 15:08:26 -070090 188(f): 143(ptr) Variable Function
John Kesseniche7c83cf2015-12-13 13:34:37 -070091 285(u): 284(ptr) Variable Function
92 305(b): 304(ptr) Variable Function
John Kessenich6c292d32016-02-15 20:58:50 -070093 486: 8(ptr) Variable Function
John Kessenich04794372017-03-01 13:49:11 -070094 503(m1): 502(ptr) Variable Function
95 510(m2): 502(ptr) Variable Function
96 513: 502(ptr) Variable Function
John Kessenichcc16fa02015-12-10 18:01:54 -070097 12: 7(fvec4) Load 11(uv4)
98 13: 7(fvec4) ExtInst 1(GLSL.std.450) 11(Radians) 12
99 Store 9(v) 13
100 14: 7(fvec4) Load 9(v)
101 15: 7(fvec4) ExtInst 1(GLSL.std.450) 12(Degrees) 14
102 16: 7(fvec4) Load 9(v)
103 17: 7(fvec4) FAdd 16 15
104 Store 9(v) 17
105 23: 18(int) Load 22(ui)
106 24: 18(int) Load 22(ui)
107 25: 18(int) IMul 23 24
108 Store 20(i) 25
109 26: 7(fvec4) Load 9(v)
110 27: 7(fvec4) ExtInst 1(GLSL.std.450) 13(Sin) 26
111 28: 7(fvec4) Load 9(v)
112 29: 7(fvec4) FAdd 28 27
113 Store 9(v) 29
114 30: 7(fvec4) Load 9(v)
115 31: 7(fvec4) ExtInst 1(GLSL.std.450) 14(Cos) 30
116 32: 7(fvec4) Load 9(v)
117 33: 7(fvec4) FAdd 32 31
118 Store 9(v) 33
119 34: 7(fvec4) Load 9(v)
120 35: 7(fvec4) ExtInst 1(GLSL.std.450) 15(Tan) 34
121 36: 7(fvec4) Load 9(v)
122 37: 7(fvec4) FAdd 36 35
123 Store 9(v) 37
124 38: 7(fvec4) Load 9(v)
125 39: 7(fvec4) ExtInst 1(GLSL.std.450) 16(Asin) 38
126 40: 7(fvec4) Load 9(v)
127 41: 7(fvec4) FAdd 40 39
128 Store 9(v) 41
129 42: 7(fvec4) Load 9(v)
130 43: 7(fvec4) ExtInst 1(GLSL.std.450) 17(Acos) 42
131 44: 7(fvec4) Load 9(v)
132 45: 7(fvec4) FAdd 44 43
133 Store 9(v) 45
134 46: 7(fvec4) Load 9(v)
135 47: 7(fvec4) ExtInst 1(GLSL.std.450) 18(Atan) 46
136 48: 7(fvec4) Load 9(v)
137 49: 7(fvec4) FAdd 48 47
138 Store 9(v) 49
139 50: 7(fvec4) Load 9(v)
140 51: 7(fvec4) ExtInst 1(GLSL.std.450) 19(Sinh) 50
141 52: 7(fvec4) Load 9(v)
142 53: 7(fvec4) FAdd 52 51
143 Store 9(v) 53
144 54: 7(fvec4) Load 9(v)
145 55: 7(fvec4) ExtInst 1(GLSL.std.450) 20(Cosh) 54
146 56: 7(fvec4) Load 9(v)
147 57: 7(fvec4) FAdd 56 55
148 Store 9(v) 57
149 58: 7(fvec4) Load 9(v)
150 59: 7(fvec4) ExtInst 1(GLSL.std.450) 21(Tanh) 58
151 60: 7(fvec4) Load 9(v)
152 61: 7(fvec4) FAdd 60 59
153 Store 9(v) 61
154 62: 7(fvec4) Load 9(v)
155 63: 7(fvec4) ExtInst 1(GLSL.std.450) 22(Asinh) 62
156 64: 7(fvec4) Load 9(v)
157 65: 7(fvec4) FAdd 64 63
158 Store 9(v) 65
159 66: 7(fvec4) Load 9(v)
160 67: 7(fvec4) ExtInst 1(GLSL.std.450) 23(Acosh) 66
161 68: 7(fvec4) Load 9(v)
162 69: 7(fvec4) FAdd 68 67
163 Store 9(v) 69
164 70: 7(fvec4) Load 9(v)
165 71: 7(fvec4) ExtInst 1(GLSL.std.450) 24(Atanh) 70
166 72: 7(fvec4) Load 9(v)
167 73: 7(fvec4) FAdd 72 71
168 Store 9(v) 73
169 74: 7(fvec4) Load 9(v)
170 75: 7(fvec4) Load 9(v)
171 76: 7(fvec4) ExtInst 1(GLSL.std.450) 26(Pow) 74 75
172 77: 7(fvec4) Load 9(v)
173 78: 7(fvec4) FAdd 77 76
174 Store 9(v) 78
175 79: 7(fvec4) Load 9(v)
176 80: 7(fvec4) ExtInst 1(GLSL.std.450) 27(Exp) 79
177 81: 7(fvec4) Load 9(v)
178 82: 7(fvec4) FAdd 81 80
179 Store 9(v) 82
180 83: 7(fvec4) Load 9(v)
181 84: 7(fvec4) ExtInst 1(GLSL.std.450) 28(Log) 83
182 85: 7(fvec4) Load 9(v)
183 86: 7(fvec4) FAdd 85 84
184 Store 9(v) 86
185 87: 7(fvec4) Load 9(v)
186 88: 7(fvec4) ExtInst 1(GLSL.std.450) 29(Exp2) 87
187 89: 7(fvec4) Load 9(v)
188 90: 7(fvec4) FAdd 89 88
189 Store 9(v) 90
190 91: 7(fvec4) Load 9(v)
191 92: 7(fvec4) ExtInst 1(GLSL.std.450) 30(Log2) 91
192 93: 7(fvec4) Load 9(v)
193 94: 7(fvec4) FAdd 93 92
194 Store 9(v) 94
195 95: 7(fvec4) Load 9(v)
196 96: 7(fvec4) ExtInst 1(GLSL.std.450) 31(Sqrt) 95
197 97: 7(fvec4) Load 9(v)
198 98: 7(fvec4) FAdd 97 96
199 Store 9(v) 98
200 99: 7(fvec4) Load 9(v)
201 100: 7(fvec4) ExtInst 1(GLSL.std.450) 32(InverseSqrt) 99
202 101: 7(fvec4) Load 9(v)
203 102: 7(fvec4) FAdd 101 100
204 Store 9(v) 102
205 103: 7(fvec4) Load 9(v)
206 104: 7(fvec4) ExtInst 1(GLSL.std.450) 4(FAbs) 103
207 105: 7(fvec4) Load 9(v)
208 106: 7(fvec4) FAdd 105 104
209 Store 9(v) 106
210 107: 7(fvec4) Load 9(v)
211 108: 7(fvec4) ExtInst 1(GLSL.std.450) 6(FSign) 107
212 109: 7(fvec4) Load 9(v)
213 110: 7(fvec4) FAdd 109 108
214 Store 9(v) 110
215 111: 7(fvec4) Load 9(v)
216 112: 7(fvec4) ExtInst 1(GLSL.std.450) 8(Floor) 111
217 113: 7(fvec4) Load 9(v)
218 114: 7(fvec4) FAdd 113 112
219 Store 9(v) 114
220 115: 7(fvec4) Load 9(v)
John Kessenich3c24a062015-12-11 15:08:26 -0700221 116: 7(fvec4) ExtInst 1(GLSL.std.450) 3(Trunc) 115
John Kessenichcc16fa02015-12-10 18:01:54 -0700222 117: 7(fvec4) Load 9(v)
223 118: 7(fvec4) FAdd 117 116
224 Store 9(v) 118
225 119: 7(fvec4) Load 9(v)
John Kessenich3c24a062015-12-11 15:08:26 -0700226 120: 7(fvec4) ExtInst 1(GLSL.std.450) 1(Round) 119
John Kessenichcc16fa02015-12-10 18:01:54 -0700227 121: 7(fvec4) Load 9(v)
228 122: 7(fvec4) FAdd 121 120
229 Store 9(v) 122
230 123: 7(fvec4) Load 9(v)
John Kessenich3c24a062015-12-11 15:08:26 -0700231 124: 7(fvec4) ExtInst 1(GLSL.std.450) 2(RoundEven) 123
232 125: 7(fvec4) Load 9(v)
233 126: 7(fvec4) FAdd 125 124
234 Store 9(v) 126
235 127: 7(fvec4) Load 9(v)
236 128: 7(fvec4) ExtInst 1(GLSL.std.450) 9(Ceil) 127
237 129: 7(fvec4) Load 9(v)
238 130: 7(fvec4) FAdd 129 128
239 Store 9(v) 130
240 131: 7(fvec4) Load 9(v)
241 132: 7(fvec4) ExtInst 1(GLSL.std.450) 10(Fract) 131
242 133: 7(fvec4) Load 9(v)
243 134: 7(fvec4) FAdd 133 132
244 Store 9(v) 134
245 135: 7(fvec4) Load 9(v)
John Kessenichcc16fa02015-12-10 18:01:54 -0700246 136: 7(fvec4) Load 9(v)
John Kessenich3c24a062015-12-11 15:08:26 -0700247 137: 7(fvec4) FMod 135 136
John Kessenichcc16fa02015-12-10 18:01:54 -0700248 138: 7(fvec4) Load 9(v)
John Kessenich3c24a062015-12-11 15:08:26 -0700249 139: 7(fvec4) FAdd 138 137
250 Store 9(v) 139
251 140: 7(fvec4) Load 9(v)
252 144: 143(ptr) AccessChain 9(v) 142
253 145: 6(float) Load 144
254 146: 7(fvec4) CompositeConstruct 145 145 145 145
255 147: 7(fvec4) FMod 140 146
John Kessenichcc16fa02015-12-10 18:01:54 -0700256 148: 7(fvec4) Load 9(v)
John Kessenich3c24a062015-12-11 15:08:26 -0700257 149: 7(fvec4) FAdd 148 147
258 Store 9(v) 149
259 150: 7(fvec4) Load 9(v)
260 151: 7(fvec4) ExtInst 1(GLSL.std.450) 35(Modf) 150 9(v)
John Kessenichcc16fa02015-12-10 18:01:54 -0700261 152: 7(fvec4) Load 9(v)
262 153: 7(fvec4) FAdd 152 151
263 Store 9(v) 153
264 154: 7(fvec4) Load 9(v)
John Kessenich3c24a062015-12-11 15:08:26 -0700265 155: 7(fvec4) Load 11(uv4)
266 156: 7(fvec4) ExtInst 1(GLSL.std.450) 37(FMin) 154 155
267 157: 7(fvec4) Load 9(v)
268 158: 7(fvec4) FAdd 157 156
269 Store 9(v) 158
270 159: 7(fvec4) Load 9(v)
271 160: 7(fvec4) Load 11(uv4)
272 161: 7(fvec4) ExtInst 1(GLSL.std.450) 40(FMax) 159 160
273 162: 7(fvec4) Load 9(v)
274 163: 7(fvec4) FAdd 162 161
275 Store 9(v) 163
276 164: 7(fvec4) Load 9(v)
277 165: 7(fvec4) Load 11(uv4)
278 166: 7(fvec4) Load 11(uv4)
279 167: 7(fvec4) ExtInst 1(GLSL.std.450) 43(FClamp) 164 165 166
280 168: 7(fvec4) Load 9(v)
281 169: 7(fvec4) FAdd 168 167
282 Store 9(v) 169
283 170: 7(fvec4) Load 9(v)
284 171: 7(fvec4) Load 9(v)
285 172: 7(fvec4) Load 9(v)
286 173: 7(fvec4) ExtInst 1(GLSL.std.450) 46(FMix) 170 171 172
John Kessenichcc16fa02015-12-10 18:01:54 -0700287 174: 7(fvec4) Load 9(v)
John Kessenich3c24a062015-12-11 15:08:26 -0700288 175: 7(fvec4) FAdd 174 173
289 Store 9(v) 175
John Kessenichcc16fa02015-12-10 18:01:54 -0700290 176: 7(fvec4) Load 9(v)
John Kessenich3c24a062015-12-11 15:08:26 -0700291 177: 7(fvec4) Load 9(v)
292 182: 179(bvec4) Load 181(ub41)
Rex Xud715adc2016-03-15 12:08:31 +0800293 183: 7(fvec4) Select 182 177 176
John Kessenichcc16fa02015-12-10 18:01:54 -0700294 184: 7(fvec4) Load 9(v)
John Kessenich3c24a062015-12-11 15:08:26 -0700295 185: 7(fvec4) FAdd 184 183
296 Store 9(v) 185
John Kessenichcc16fa02015-12-10 18:01:54 -0700297 186: 7(fvec4) Load 9(v)
John Kessenich3c24a062015-12-11 15:08:26 -0700298 187: 7(fvec4) Load 9(v)
299 189: 6(float) Load 188(f)
John Kesseniche7c83cf2015-12-13 13:34:37 -0700300 190: 7(fvec4) CompositeConstruct 189 189 189 189
301 191: 7(fvec4) ExtInst 1(GLSL.std.450) 46(FMix) 186 187 190
302 192: 7(fvec4) Load 9(v)
303 193: 7(fvec4) FAdd 192 191
304 Store 9(v) 193
305 194: 7(fvec4) Load 9(v)
306 195: 7(fvec4) Load 11(uv4)
307 196: 7(fvec4) Load 9(v)
308 197: 7(fvec4) ExtInst 1(GLSL.std.450) 50(Fma) 194 195 196
309 198: 7(fvec4) Load 9(v)
310 199: 7(fvec4) FAdd 198 197
311 Store 9(v) 199
John Kessenichcc16fa02015-12-10 18:01:54 -0700312 200: 7(fvec4) Load 9(v)
John Kesseniche7c83cf2015-12-13 13:34:37 -0700313 201: 7(fvec4) Load 9(v)
314 202: 7(fvec4) ExtInst 1(GLSL.std.450) 48(Step) 200 201
315 203: 7(fvec4) Load 9(v)
316 204: 7(fvec4) FAdd 203 202
317 Store 9(v) 204
John Kessenichcc16fa02015-12-10 18:01:54 -0700318 205: 7(fvec4) Load 9(v)
John Kessenich3c24a062015-12-11 15:08:26 -0700319 206: 7(fvec4) Load 9(v)
John Kesseniche7c83cf2015-12-13 13:34:37 -0700320 207: 7(fvec4) Load 9(v)
321 208: 7(fvec4) ExtInst 1(GLSL.std.450) 49(SmoothStep) 205 206 207
322 209: 7(fvec4) Load 9(v)
323 210: 7(fvec4) FAdd 209 208
324 Store 9(v) 210
325 213: 6(float) Load 212(uf)
326 214: 7(fvec4) Load 9(v)
327 215: 7(fvec4) CompositeConstruct 213 213 213 213
328 216: 7(fvec4) ExtInst 1(GLSL.std.450) 48(Step) 215 214
329 217: 7(fvec4) Load 9(v)
330 218: 7(fvec4) FAdd 217 216
331 Store 9(v) 218
332 219: 6(float) Load 212(uf)
333 220: 6(float) Load 212(uf)
John Kessenich3c24a062015-12-11 15:08:26 -0700334 221: 7(fvec4) Load 9(v)
John Kesseniche7c83cf2015-12-13 13:34:37 -0700335 222: 7(fvec4) CompositeConstruct 219 219 219 219
336 223: 7(fvec4) CompositeConstruct 220 220 220 220
337 224: 7(fvec4) ExtInst 1(GLSL.std.450) 49(SmoothStep) 222 223 221
John Kessenich3c24a062015-12-11 15:08:26 -0700338 225: 7(fvec4) Load 9(v)
339 226: 7(fvec4) FAdd 225 224
340 Store 9(v) 226
341 227: 7(fvec4) Load 9(v)
John Kesseniche7c83cf2015-12-13 13:34:37 -0700342 228: 7(fvec4) ExtInst 1(GLSL.std.450) 69(Normalize) 227
John Kessenich3c24a062015-12-11 15:08:26 -0700343 229: 7(fvec4) Load 9(v)
John Kesseniche7c83cf2015-12-13 13:34:37 -0700344 230: 7(fvec4) FAdd 229 228
345 Store 9(v) 230
John Kessenich3c24a062015-12-11 15:08:26 -0700346 231: 7(fvec4) Load 9(v)
John Kesseniche7c83cf2015-12-13 13:34:37 -0700347 232: 7(fvec4) Load 9(v)
John Kessenich3c24a062015-12-11 15:08:26 -0700348 233: 7(fvec4) Load 9(v)
John Kesseniche7c83cf2015-12-13 13:34:37 -0700349 234: 7(fvec4) ExtInst 1(GLSL.std.450) 70(FaceForward) 231 232 233
350 235: 7(fvec4) Load 9(v)
351 236: 7(fvec4) FAdd 235 234
352 Store 9(v) 236
353 237: 7(fvec4) Load 9(v)
John Kessenich3c24a062015-12-11 15:08:26 -0700354 238: 7(fvec4) Load 9(v)
John Kesseniche7c83cf2015-12-13 13:34:37 -0700355 239: 7(fvec4) ExtInst 1(GLSL.std.450) 71(Reflect) 237 238
356 240: 7(fvec4) Load 9(v)
357 241: 7(fvec4) FAdd 240 239
358 Store 9(v) 241
John Kessenich3c24a062015-12-11 15:08:26 -0700359 242: 7(fvec4) Load 9(v)
John Kesseniche7c83cf2015-12-13 13:34:37 -0700360 243: 7(fvec4) Load 9(v)
361 244: 6(float) Load 212(uf)
362 245: 7(fvec4) ExtInst 1(GLSL.std.450) 72(Refract) 242 243 244
John Kessenich3c24a062015-12-11 15:08:26 -0700363 246: 7(fvec4) Load 9(v)
364 247: 7(fvec4) FAdd 246 245
365 Store 9(v) 247
366 248: 7(fvec4) Load 9(v)
John Kesseniche7c83cf2015-12-13 13:34:37 -0700367 249: 7(fvec4) DPdx 248
John Kessenich3c24a062015-12-11 15:08:26 -0700368 250: 7(fvec4) Load 9(v)
369 251: 7(fvec4) FAdd 250 249
370 Store 9(v) 251
371 252: 7(fvec4) Load 9(v)
John Kesseniche7c83cf2015-12-13 13:34:37 -0700372 253: 7(fvec4) DPdy 252
John Kessenich3c24a062015-12-11 15:08:26 -0700373 254: 7(fvec4) Load 9(v)
374 255: 7(fvec4) FAdd 254 253
375 Store 9(v) 255
John Kesseniche7c83cf2015-12-13 13:34:37 -0700376 256: 7(fvec4) Load 9(v)
377 257: 7(fvec4) Fwidth 256
378 258: 7(fvec4) Load 9(v)
379 259: 7(fvec4) FAdd 258 257
380 Store 9(v) 259
381 260: 18(int) Load 22(ui)
382 261: 18(int) ExtInst 1(GLSL.std.450) 5(SAbs) 260
John Kessenich3c24a062015-12-11 15:08:26 -0700383 262: 18(int) Load 20(i)
384 263: 18(int) IAdd 262 261
385 Store 20(i) 263
386 264: 18(int) Load 20(i)
John Kesseniche7c83cf2015-12-13 13:34:37 -0700387 265: 18(int) ExtInst 1(GLSL.std.450) 7(SSign) 264
388 266: 18(int) Load 20(i)
389 267: 18(int) IAdd 266 265
390 Store 20(i) 267
391 268: 18(int) Load 20(i)
392 269: 18(int) Load 22(ui)
393 270: 18(int) ExtInst 1(GLSL.std.450) 39(SMin) 268 269
394 271: 18(int) Load 20(i)
395 272: 18(int) IAdd 271 270
396 Store 20(i) 272
397 273: 18(int) Load 20(i)
398 274: 18(int) Load 22(ui)
399 275: 18(int) ExtInst 1(GLSL.std.450) 42(SMax) 273 274
400 276: 18(int) Load 20(i)
401 277: 18(int) IAdd 276 275
402 Store 20(i) 277
John Kessenich3c24a062015-12-11 15:08:26 -0700403 278: 18(int) Load 20(i)
John Kesseniche7c83cf2015-12-13 13:34:37 -0700404 279: 18(int) Load 22(ui)
405 280: 18(int) Load 22(ui)
406 281: 18(int) ExtInst 1(GLSL.std.450) 45(SClamp) 278 279 280
407 282: 18(int) Load 20(i)
408 283: 18(int) IAdd 282 281
409 Store 20(i) 283
410 286: 141(int) Load 285(u)
411 289: 141(int) Load 288(uui)
412 290: 141(int) ExtInst 1(GLSL.std.450) 38(UMin) 286 289
413 291: 141(int) Load 285(u)
414 292: 141(int) IAdd 291 290
415 Store 285(u) 292
416 293: 141(int) Load 285(u)
417 294: 141(int) Load 288(uui)
418 295: 141(int) ExtInst 1(GLSL.std.450) 41(UMax) 293 294
419 296: 141(int) Load 285(u)
420 297: 141(int) IAdd 296 295
421 Store 285(u) 297
422 298: 141(int) Load 285(u)
423 299: 141(int) Load 288(uui)
424 300: 141(int) Load 288(uui)
425 301: 141(int) ExtInst 1(GLSL.std.450) 44(UClamp) 298 299 300
426 302: 141(int) Load 285(u)
427 303: 141(int) IAdd 302 301
428 Store 285(u) 303
429 306: 6(float) Load 212(uf)
430 307: 178(bool) IsNan 306
431 Store 305(b) 307
432 308: 6(float) Load 188(f)
433 309: 178(bool) IsInf 308
434 Store 305(b) 309
435 310: 7(fvec4) Load 9(v)
436 311: 7(fvec4) Load 11(uv4)
437 312: 179(bvec4) FOrdLessThan 310 311
438 313: 178(bool) Any 312
439 Store 305(b) 313
440 314: 178(bool) Load 305(b)
441 SelectionMerge 316 None
442 BranchConditional 314 315 316
443 315: Label
444 317: 7(fvec4) Load 9(v)
445 318: 7(fvec4) Load 11(uv4)
446 319: 179(bvec4) FOrdLessThanEqual 317 318
447 320: 178(bool) Any 319
448 Branch 316
449 316: Label
450 321: 178(bool) Phi 314 5 320 315
451 Store 305(b) 321
452 322: 178(bool) Load 305(b)
453 SelectionMerge 324 None
454 BranchConditional 322 323 324
455 323: Label
456 325: 7(fvec4) Load 9(v)
457 326: 7(fvec4) Load 11(uv4)
458 327: 179(bvec4) FOrdGreaterThan 325 326
459 328: 178(bool) Any 327
460 Branch 324
461 324: Label
462 329: 178(bool) Phi 322 316 328 323
463 Store 305(b) 329
464 330: 178(bool) Load 305(b)
465 SelectionMerge 332 None
466 BranchConditional 330 331 332
467 331: Label
468 333: 7(fvec4) Load 9(v)
469 334: 7(fvec4) Load 11(uv4)
470 335: 179(bvec4) FOrdGreaterThanEqual 333 334
471 336: 178(bool) Any 335
472 Branch 332
473 332: Label
474 337: 178(bool) Phi 330 324 336 331
475 Store 305(b) 337
476 338: 178(bool) Load 305(b)
477 SelectionMerge 340 None
478 BranchConditional 338 339 340
479 339: Label
480 341: 179(bvec4) Load 181(ub41)
481 343: 179(bvec4) Load 342(ub42)
Rex Xuc7d36562016-04-27 08:15:37 +0800482 344: 179(bvec4) LogicalEqual 341 343
John Kesseniche7c83cf2015-12-13 13:34:37 -0700483 345: 178(bool) Any 344
484 Branch 340
485 340: Label
486 346: 178(bool) Phi 338 332 345 339
487 Store 305(b) 346
488 347: 178(bool) Load 305(b)
489 SelectionMerge 349 None
490 BranchConditional 347 348 349
491 348: Label
492 350: 179(bvec4) Load 181(ub41)
493 351: 179(bvec4) Load 342(ub42)
Rex Xuc7d36562016-04-27 08:15:37 +0800494 352: 179(bvec4) LogicalNotEqual 350 351
John Kesseniche7c83cf2015-12-13 13:34:37 -0700495 353: 178(bool) Any 352
496 Branch 349
497 349: Label
498 354: 178(bool) Phi 347 340 353 348
499 Store 305(b) 354
500 355: 178(bool) Load 305(b)
John Kessenich3c24a062015-12-11 15:08:26 -0700501 356: 179(bvec4) Load 181(ub41)
John Kesseniche7c83cf2015-12-13 13:34:37 -0700502 357: 178(bool) Any 356
John Kessenich3c24a062015-12-11 15:08:26 -0700503 358: 178(bool) LogicalAnd 355 357
John Kesseniche7c83cf2015-12-13 13:34:37 -0700504 Store 305(b) 358
505 359: 178(bool) Load 305(b)
506 360: 179(bvec4) Load 181(ub41)
507 361: 178(bool) All 360
508 362: 178(bool) LogicalAnd 359 361
509 Store 305(b) 362
510 363: 178(bool) Load 305(b)
511 SelectionMerge 365 None
512 BranchConditional 363 364 365
513 364: Label
514 366: 179(bvec4) Load 181(ub41)
515 367: 179(bvec4) LogicalNot 366
516 368: 178(bool) Any 367
517 Branch 365
518 365: Label
519 369: 178(bool) Phi 363 349 368 364
520 Store 305(b) 369
521 370: 18(int) Load 20(i)
John Kessenich3c24a062015-12-11 15:08:26 -0700522 371: 18(int) Load 22(ui)
John Kesseniche7c83cf2015-12-13 13:34:37 -0700523 372: 18(int) IAdd 370 371
John Kessenich3c24a062015-12-11 15:08:26 -0700524 373: 18(int) Load 20(i)
John Kesseniche7c83cf2015-12-13 13:34:37 -0700525 374: 18(int) IMul 372 373
526 375: 18(int) Load 22(ui)
527 376: 18(int) ISub 374 375
528 377: 18(int) Load 20(i)
529 378: 18(int) SDiv 376 377
530 Store 20(i) 378
531 379: 18(int) Load 20(i)
532 380: 18(int) Load 22(ui)
533 381: 18(int) SMod 379 380
534 Store 20(i) 381
535 382: 18(int) Load 20(i)
536 383: 18(int) Load 22(ui)
537 384: 178(bool) IEqual 382 383
538 385: 178(bool) LogicalNot 384
539 SelectionMerge 387 None
540 BranchConditional 385 386 387
541 386: Label
542 388: 18(int) Load 20(i)
543 389: 18(int) Load 22(ui)
544 390: 178(bool) INotEqual 388 389
John Kessenich6c292d32016-02-15 20:58:50 -0700545 SelectionMerge 392 None
546 BranchConditional 390 391 392
547 391: Label
548 393: 18(int) Load 20(i)
549 394: 18(int) Load 22(ui)
550 395: 178(bool) IEqual 393 394
551 Branch 392
552 392: Label
553 396: 178(bool) Phi 390 386 395 391
554 397: 18(int) Load 20(i)
555 399: 178(bool) INotEqual 397 398
556 400: 178(bool) LogicalNotEqual 396 399
John Kesseniche7c83cf2015-12-13 13:34:37 -0700557 Branch 387
558 387: Label
John Kessenich6c292d32016-02-15 20:58:50 -0700559 401: 178(bool) Phi 384 365 400 392
560 SelectionMerge 403 None
561 BranchConditional 401 402 403
562 402: Label
563 404: 18(int) Load 20(i)
564 406: 18(int) IAdd 404 405
565 Store 20(i) 406
566 Branch 403
567 403: Label
568 407: 6(float) Load 212(uf)
John Kesseniche7c83cf2015-12-13 13:34:37 -0700569 408: 6(float) Load 212(uf)
John Kessenich6c292d32016-02-15 20:58:50 -0700570 409: 6(float) FAdd 407 408
John Kesseniche7c83cf2015-12-13 13:34:37 -0700571 410: 6(float) Load 212(uf)
John Kessenich6c292d32016-02-15 20:58:50 -0700572 411: 6(float) FMul 409 410
John Kesseniche7c83cf2015-12-13 13:34:37 -0700573 412: 6(float) Load 212(uf)
John Kessenich6c292d32016-02-15 20:58:50 -0700574 413: 6(float) FSub 411 412
575 414: 6(float) Load 212(uf)
576 415: 6(float) FDiv 413 414
577 Store 188(f) 415
578 416: 7(fvec4) Load 9(v)
579 417: 6(float) ExtInst 1(GLSL.std.450) 66(Length) 416
580 418: 6(float) Load 188(f)
581 419: 6(float) FAdd 418 417
582 Store 188(f) 419
583 420: 7(fvec4) Load 9(v)
584 421: 7(fvec4) Load 9(v)
585 422: 6(float) ExtInst 1(GLSL.std.450) 67(Distance) 420 421
586 423: 6(float) Load 188(f)
587 424: 6(float) FAdd 423 422
588 Store 188(f) 424
589 425: 7(fvec4) Load 9(v)
590 426: 7(fvec4) Load 9(v)
591 427: 6(float) Dot 425 426
John Kesseniche7c83cf2015-12-13 13:34:37 -0700592 428: 6(float) Load 188(f)
John Kessenich6c292d32016-02-15 20:58:50 -0700593 429: 6(float) FAdd 428 427
594 Store 188(f) 429
595 430: 6(float) Load 188(f)
596 431: 6(float) Load 212(uf)
597 432: 6(float) FMul 430 431
598 433: 6(float) Load 188(f)
599 434: 6(float) FAdd 433 432
600 Store 188(f) 434
John Kesseniche7c83cf2015-12-13 13:34:37 -0700601 436: 7(fvec4) Load 9(v)
John Kessenich6c292d32016-02-15 20:58:50 -0700602 437: 435(fvec3) VectorShuffle 436 436 0 1 2
603 438: 7(fvec4) Load 9(v)
604 439: 435(fvec3) VectorShuffle 438 438 0 1 2
605 440: 435(fvec3) ExtInst 1(GLSL.std.450) 68(Cross) 437 439
606 441: 6(float) CompositeExtract 440 0
John Kesseniche7c83cf2015-12-13 13:34:37 -0700607 442: 6(float) Load 188(f)
John Kessenich6c292d32016-02-15 20:58:50 -0700608 443: 6(float) FAdd 442 441
609 Store 188(f) 443
610 444: 6(float) Load 188(f)
611 445: 6(float) Load 212(uf)
612 446: 178(bool) FOrdEqual 444 445
613 447: 178(bool) LogicalNot 446
614 SelectionMerge 449 None
615 BranchConditional 447 448 449
616 448: Label
617 450: 6(float) Load 188(f)
618 451: 6(float) Load 212(uf)
619 452: 178(bool) FOrdNotEqual 450 451
620 453: 6(float) Load 188(f)
621 455: 178(bool) FOrdNotEqual 453 454
622 456: 178(bool) LogicalAnd 452 455
623 Branch 449
624 449: Label
625 457: 178(bool) Phi 446 403 456 448
626 SelectionMerge 459 None
627 BranchConditional 457 458 459
628 458: Label
629 460: 6(float) Load 188(f)
630 462: 6(float) FAdd 460 461
631 Store 188(f) 462
632 Branch 459
633 459: Label
634 463: 18(int) Load 22(ui)
635 464: 18(int) Load 20(i)
636 465: 18(int) BitwiseAnd 464 463
637 Store 20(i) 465
638 467: 18(int) Load 20(i)
639 468: 18(int) BitwiseOr 467 466
640 Store 20(i) 468
641 469: 18(int) Load 22(ui)
642 470: 18(int) Load 20(i)
643 471: 18(int) BitwiseXor 470 469
644 Store 20(i) 471
John Kesseniche7c83cf2015-12-13 13:34:37 -0700645 473: 18(int) Load 20(i)
John Kessenich6c292d32016-02-15 20:58:50 -0700646 474: 18(int) SMod 473 472
John Kesseniche7c83cf2015-12-13 13:34:37 -0700647 Store 20(i) 474
John Kessenich6c292d32016-02-15 20:58:50 -0700648 475: 18(int) Load 20(i)
649 476: 18(int) ShiftRightArithmetic 475 398
650 Store 20(i) 476
651 477: 18(int) Load 22(ui)
John Kesseniche7c83cf2015-12-13 13:34:37 -0700652 478: 18(int) Load 20(i)
John Kessenich6c292d32016-02-15 20:58:50 -0700653 479: 18(int) ShiftLeftLogical 478 477
John Kesseniche7c83cf2015-12-13 13:34:37 -0700654 Store 20(i) 479
John Kessenich6c292d32016-02-15 20:58:50 -0700655 480: 18(int) Load 20(i)
656 481: 18(int) Not 480
657 Store 20(i) 481
658 482: 178(bool) Load 305(b)
659 483: 178(bool) LogicalNot 482
660 Store 305(b) 483
661 487: 178(bool) Load 305(b)
662 SelectionMerge 489 None
663 BranchConditional 487 488 498
664 488: Label
665 490: 18(int) Load 20(i)
666 491: 6(float) ConvertSToF 490
John Kesseniche7c83cf2015-12-13 13:34:37 -0700667 492: 7(fvec4) CompositeConstruct 491 491 491 491
John Kessenich6c292d32016-02-15 20:58:50 -0700668 493: 6(float) Load 188(f)
669 494: 7(fvec4) CompositeConstruct 493 493 493 493
670 495: 7(fvec4) FAdd 492 494
671 496: 7(fvec4) Load 9(v)
672 497: 7(fvec4) FAdd 495 496
673 Store 486 497
674 Branch 489
675 498: Label
676 499: 7(fvec4) Load 9(v)
677 Store 486 499
678 Branch 489
679 489: Label
680 500: 7(fvec4) Load 486
681 Store 485(FragColor) 500
John Kessenich04794372017-03-01 13:49:11 -0700682 Store 503(m1) 509
683 Store 510(m2) 512
684 514: 178(bool) Load 305(b)
685 SelectionMerge 516 None
686 BranchConditional 514 515 518
687 515: Label
688 517: 501 Load 503(m1)
689 Store 513 517
690 Branch 516
691 518: Label
692 519: 501 Load 510(m2)
693 Store 513 519
694 Branch 516
695 516: Label
696 520: 8(ptr) AccessChain 513 405
697 521: 7(fvec4) Load 520
698 522: 7(fvec4) Load 485(FragColor)
699 523: 7(fvec4) FAdd 522 521
700 Store 485(FragColor) 523
John Kessenichcc16fa02015-12-10 18:01:54 -0700701 Return
702 FunctionEnd