1spv.textureGatherBiasLod.frag
2// Module Version 10000
3// Generated by (magic number): 8000a
4// Id's are bound by 298
5
6                              Capability Shader
7                              Capability ImageGatherExtended
8                              Capability SparseResidency
9                              Capability SampledCubeArray
10                              Capability ImageGatherBiasLodAMD
11                              Extension  "SPV_AMD_texture_gather_bias_lod"
12               1:             ExtInstImport  "GLSL.std.450"
13                              MemoryModel Logical GLSL450
14                              EntryPoint Fragment 4  "main" 20 25 37 61 176 296
15                              ExecutionMode 4 OriginUpperLeft
16                              Source GLSL 450
17                              SourceExtension  "GL_AMD_texture_gather_bias_lod"
18                              SourceExtension  "GL_ARB_sparse_texture2"
19                              Name 4  "main"
20                              Name 9  "texel"
21                              Name 12  "result"
22                              Name 16  "s2D"
23                              Name 20  "c2"
24                              Name 25  "bias"
25                              Name 33  "s2DArray"
26                              Name 37  "c3"
27                              Name 47  "sCube"
28                              Name 58  "sCubeArray"
29                              Name 61  "c4"
30                              Name 104  "ResType"
31                              Name 176  "lod"
32                              Name 296  "fragColor"
33                              Decorate 16(s2D) DescriptorSet 0
34                              Decorate 16(s2D) Binding 0
35                              Decorate 20(c2) Location 0
36                              Decorate 25(bias) Location 4
37                              Decorate 33(s2DArray) DescriptorSet 0
38                              Decorate 33(s2DArray) Binding 1
39                              Decorate 37(c3) Location 1
40                              Decorate 47(sCube) DescriptorSet 0
41                              Decorate 47(sCube) Binding 2
42                              Decorate 58(sCubeArray) DescriptorSet 0
43                              Decorate 58(sCubeArray) Binding 3
44                              Decorate 61(c4) Location 2
45                              Decorate 176(lod) Location 3
46                              Decorate 296(fragColor) Location 0
47               2:             TypeVoid
48               3:             TypeFunction 2
49               6:             TypeFloat 32
50               7:             TypeVector 6(float) 4
51               8:             TypePointer Function 7(fvec4)
52              10:    6(float) Constant 0
53              11:    7(fvec4) ConstantComposite 10 10 10 10
54              13:             TypeImage 6(float) 2D sampled format:Unknown
55              14:             TypeSampledImage 13
56              15:             TypePointer UniformConstant 14
57         16(s2D):     15(ptr) Variable UniformConstant
58              18:             TypeVector 6(float) 2
59              19:             TypePointer Input 18(fvec2)
60          20(c2):     19(ptr) Variable Input
61              22:             TypeInt 32 1
62              23:     22(int) Constant 0
63              24:             TypePointer Input 6(float)
64        25(bias):     24(ptr) Variable Input
65              30:             TypeImage 6(float) 2D array sampled format:Unknown
66              31:             TypeSampledImage 30
67              32:             TypePointer UniformConstant 31
68    33(s2DArray):     32(ptr) Variable UniformConstant
69              35:             TypeVector 6(float) 3
70              36:             TypePointer Input 35(fvec3)
71          37(c3):     36(ptr) Variable Input
72              39:     22(int) Constant 1
73              44:             TypeImage 6(float) Cube sampled format:Unknown
74              45:             TypeSampledImage 44
75              46:             TypePointer UniformConstant 45
76       47(sCube):     46(ptr) Variable UniformConstant
77              50:     22(int) Constant 2
78              55:             TypeImage 6(float) Cube array sampled format:Unknown
79              56:             TypeSampledImage 55
80              57:             TypePointer UniformConstant 56
81  58(sCubeArray):     57(ptr) Variable UniformConstant
82              60:             TypePointer Input 7(fvec4)
83          61(c4):     60(ptr) Variable Input
84              63:     22(int) Constant 3
85              70:             TypeVector 22(int) 2
86              71:   70(ivec2) ConstantComposite 23 23
87              78:   70(ivec2) ConstantComposite 23 39
88              85:             TypeInt 32 0
89              86:     85(int) Constant 4
90              87:             TypeArray 70(ivec2) 86
91              88:   70(ivec2) ConstantComposite 39 23
92              89:   70(ivec2) ConstantComposite 39 39
93              90:          87 ConstantComposite 71 78 88 89
94    104(ResType):             TypeStruct 22(int) 7(fvec4)
95        176(lod):     24(ptr) Variable Input
96             295:             TypePointer Output 7(fvec4)
97  296(fragColor):    295(ptr) Variable Output
98         4(main):           2 Function None 3
99               5:             Label
100        9(texel):      8(ptr) Variable Function
101      12(result):      8(ptr) Variable Function
102                              Store 9(texel) 11
103                              Store 12(result) 11
104              17:          14 Load 16(s2D)
105              21:   18(fvec2) Load 20(c2)
106              26:    6(float) Load 25(bias)
107              27:    7(fvec4) ImageGather 17 21 23 Bias 26
108              28:    7(fvec4) Load 9(texel)
109              29:    7(fvec4) FAdd 28 27
110                              Store 9(texel) 29
111              34:          31 Load 33(s2DArray)
112              38:   35(fvec3) Load 37(c3)
113              40:    6(float) Load 25(bias)
114              41:    7(fvec4) ImageGather 34 38 39 Bias 40
115              42:    7(fvec4) Load 9(texel)
116              43:    7(fvec4) FAdd 42 41
117                              Store 9(texel) 43
118              48:          45 Load 47(sCube)
119              49:   35(fvec3) Load 37(c3)
120              51:    6(float) Load 25(bias)
121              52:    7(fvec4) ImageGather 48 49 50 Bias 51
122              53:    7(fvec4) Load 9(texel)
123              54:    7(fvec4) FAdd 53 52
124                              Store 9(texel) 54
125              59:          56 Load 58(sCubeArray)
126              62:    7(fvec4) Load 61(c4)
127              64:    6(float) Load 25(bias)
128              65:    7(fvec4) ImageGather 59 62 63 Bias 64
129              66:    7(fvec4) Load 9(texel)
130              67:    7(fvec4) FAdd 66 65
131                              Store 9(texel) 67
132              68:          14 Load 16(s2D)
133              69:   18(fvec2) Load 20(c2)
134              72:    6(float) Load 25(bias)
135              73:    7(fvec4) ImageGather 68 69 23 Bias ConstOffset 72 71
136              74:    7(fvec4) Load 9(texel)
137              75:    7(fvec4) FAdd 74 73
138                              Store 9(texel) 75
139              76:          31 Load 33(s2DArray)
140              77:   35(fvec3) Load 37(c3)
141              79:    6(float) Load 25(bias)
142              80:    7(fvec4) ImageGather 76 77 39 Bias ConstOffset 79 78
143              81:    7(fvec4) Load 9(texel)
144              82:    7(fvec4) FAdd 81 80
145                              Store 9(texel) 82
146              83:          14 Load 16(s2D)
147              84:   18(fvec2) Load 20(c2)
148              91:    6(float) Load 25(bias)
149              92:    7(fvec4) ImageGather 83 84 23 Bias ConstOffsets 91 90
150              93:    7(fvec4) Load 9(texel)
151              94:    7(fvec4) FAdd 93 92
152                              Store 9(texel) 94
153              95:          31 Load 33(s2DArray)
154              96:   35(fvec3) Load 37(c3)
155              97:    6(float) Load 25(bias)
156              98:    7(fvec4) ImageGather 95 96 39 Bias ConstOffsets 97 90
157              99:    7(fvec4) Load 9(texel)
158             100:    7(fvec4) FAdd 99 98
159                              Store 9(texel) 100
160             101:          14 Load 16(s2D)
161             102:   18(fvec2) Load 20(c2)
162             103:    6(float) Load 25(bias)
163             105:104(ResType) ImageSparseGather 101 102 23 Bias 103
164             106:    7(fvec4) CompositeExtract 105 1
165                              Store 12(result) 106
166             107:     22(int) CompositeExtract 105 0
167             108:    7(fvec4) Load 12(result)
168             109:    7(fvec4) Load 9(texel)
169             110:    7(fvec4) FAdd 109 108
170                              Store 9(texel) 110
171             111:          31 Load 33(s2DArray)
172             112:   35(fvec3) Load 37(c3)
173             113:    6(float) Load 25(bias)
174             114:104(ResType) ImageSparseGather 111 112 39 Bias 113
175             115:    7(fvec4) CompositeExtract 114 1
176                              Store 12(result) 115
177             116:     22(int) CompositeExtract 114 0
178             117:    7(fvec4) Load 12(result)
179             118:    7(fvec4) Load 9(texel)
180             119:    7(fvec4) FAdd 118 117
181                              Store 9(texel) 119
182             120:          45 Load 47(sCube)
183             121:   35(fvec3) Load 37(c3)
184             122:    6(float) Load 25(bias)
185             123:104(ResType) ImageSparseGather 120 121 50 Bias 122
186             124:    7(fvec4) CompositeExtract 123 1
187                              Store 12(result) 124
188             125:     22(int) CompositeExtract 123 0
189             126:    7(fvec4) Load 12(result)
190             127:    7(fvec4) Load 9(texel)
191             128:    7(fvec4) FAdd 127 126
192                              Store 9(texel) 128
193             129:          56 Load 58(sCubeArray)
194             130:    7(fvec4) Load 61(c4)
195             131:    6(float) Load 25(bias)
196             132:104(ResType) ImageSparseGather 129 130 50 Bias 131
197             133:    7(fvec4) CompositeExtract 132 1
198                              Store 12(result) 133
199             134:     22(int) CompositeExtract 132 0
200             135:    7(fvec4) Load 12(result)
201             136:    7(fvec4) Load 9(texel)
202             137:    7(fvec4) FAdd 136 135
203                              Store 9(texel) 137
204             138:          14 Load 16(s2D)
205             139:   18(fvec2) Load 20(c2)
206             140:    6(float) Load 25(bias)
207             141:104(ResType) ImageSparseGather 138 139 23 Bias ConstOffset 140 71
208             142:    7(fvec4) CompositeExtract 141 1
209                              Store 12(result) 142
210             143:     22(int) CompositeExtract 141 0
211             144:    7(fvec4) Load 12(result)
212             145:    7(fvec4) Load 9(texel)
213             146:    7(fvec4) FAdd 145 144
214                              Store 9(texel) 146
215             147:          31 Load 33(s2DArray)
216             148:   35(fvec3) Load 37(c3)
217             149:    6(float) Load 25(bias)
218             150:104(ResType) ImageSparseGather 147 148 39 Bias ConstOffset 149 78
219             151:    7(fvec4) CompositeExtract 150 1
220                              Store 12(result) 151
221             152:     22(int) CompositeExtract 150 0
222             153:    7(fvec4) Load 12(result)
223             154:    7(fvec4) Load 9(texel)
224             155:    7(fvec4) FAdd 154 153
225                              Store 9(texel) 155
226             156:          14 Load 16(s2D)
227             157:   18(fvec2) Load 20(c2)
228             158:    6(float) Load 25(bias)
229             159:104(ResType) ImageSparseGather 156 157 23 Bias ConstOffsets 158 90
230             160:    7(fvec4) CompositeExtract 159 1
231                              Store 12(result) 160
232             161:     22(int) CompositeExtract 159 0
233             162:    7(fvec4) Load 12(result)
234             163:    7(fvec4) Load 9(texel)
235             164:    7(fvec4) FAdd 163 162
236                              Store 9(texel) 164
237             165:          31 Load 33(s2DArray)
238             166:   35(fvec3) Load 37(c3)
239             167:    6(float) Load 25(bias)
240             168:104(ResType) ImageSparseGather 165 166 39 Bias ConstOffsets 167 90
241             169:    7(fvec4) CompositeExtract 168 1
242                              Store 12(result) 169
243             170:     22(int) CompositeExtract 168 0
244             171:    7(fvec4) Load 12(result)
245             172:    7(fvec4) Load 9(texel)
246             173:    7(fvec4) FAdd 172 171
247                              Store 9(texel) 173
248             174:          14 Load 16(s2D)
249             175:   18(fvec2) Load 20(c2)
250             177:    6(float) Load 176(lod)
251             178:    7(fvec4) ImageGather 174 175 23 Lod 177
252             179:    7(fvec4) Load 9(texel)
253             180:    7(fvec4) FAdd 179 178
254                              Store 9(texel) 180
255             181:          31 Load 33(s2DArray)
256             182:   35(fvec3) Load 37(c3)
257             183:    6(float) Load 176(lod)
258             184:    7(fvec4) ImageGather 181 182 39 Lod 183
259             185:    7(fvec4) Load 9(texel)
260             186:    7(fvec4) FAdd 185 184
261                              Store 9(texel) 186
262             187:          45 Load 47(sCube)
263             188:   35(fvec3) Load 37(c3)
264             189:    6(float) Load 176(lod)
265             190:    7(fvec4) ImageGather 187 188 50 Lod 189
266             191:    7(fvec4) Load 9(texel)
267             192:    7(fvec4) FAdd 191 190
268                              Store 9(texel) 192
269             193:          56 Load 58(sCubeArray)
270             194:    7(fvec4) Load 61(c4)
271             195:    6(float) Load 176(lod)
272             196:    7(fvec4) ImageGather 193 194 63 Lod 195
273             197:    7(fvec4) Load 9(texel)
274             198:    7(fvec4) FAdd 197 196
275                              Store 9(texel) 198
276             199:          14 Load 16(s2D)
277             200:   18(fvec2) Load 20(c2)
278             201:    6(float) Load 176(lod)
279             202:    7(fvec4) ImageGather 199 200 23 Lod ConstOffset 201 71
280             203:    7(fvec4) Load 9(texel)
281             204:    7(fvec4) FAdd 203 202
282                              Store 9(texel) 204
283             205:          31 Load 33(s2DArray)
284             206:   35(fvec3) Load 37(c3)
285             207:    6(float) Load 176(lod)
286             208:    7(fvec4) ImageGather 205 206 39 Lod ConstOffset 207 78
287             209:    7(fvec4) Load 9(texel)
288             210:    7(fvec4) FAdd 209 208
289                              Store 9(texel) 210
290             211:          14 Load 16(s2D)
291             212:   18(fvec2) Load 20(c2)
292             213:    6(float) Load 176(lod)
293             214:    7(fvec4) ImageGather 211 212 23 Lod ConstOffsets 213 90
294             215:    7(fvec4) Load 9(texel)
295             216:    7(fvec4) FAdd 215 214
296                              Store 9(texel) 216
297             217:          31 Load 33(s2DArray)
298             218:   35(fvec3) Load 37(c3)
299             219:    6(float) Load 176(lod)
300             220:    7(fvec4) ImageGather 217 218 39 Lod ConstOffsets 219 90
301             221:    7(fvec4) Load 9(texel)
302             222:    7(fvec4) FAdd 221 220
303                              Store 9(texel) 222
304             223:          14 Load 16(s2D)
305             224:   18(fvec2) Load 20(c2)
306             225:    6(float) Load 176(lod)
307             226:104(ResType) ImageSparseGather 223 224 23 Lod 225
308             227:    7(fvec4) CompositeExtract 226 1
309                              Store 12(result) 227
310             228:     22(int) CompositeExtract 226 0
311             229:    7(fvec4) Load 12(result)
312             230:    7(fvec4) Load 9(texel)
313             231:    7(fvec4) FAdd 230 229
314                              Store 9(texel) 231
315             232:          31 Load 33(s2DArray)
316             233:   35(fvec3) Load 37(c3)
317             234:    6(float) Load 176(lod)
318             235:104(ResType) ImageSparseGather 232 233 39 Lod 234
319             236:    7(fvec4) CompositeExtract 235 1
320                              Store 12(result) 236
321             237:     22(int) CompositeExtract 235 0
322             238:    7(fvec4) Load 12(result)
323             239:    7(fvec4) Load 9(texel)
324             240:    7(fvec4) FAdd 239 238
325                              Store 9(texel) 240
326             241:          45 Load 47(sCube)
327             242:   35(fvec3) Load 37(c3)
328             243:    6(float) Load 176(lod)
329             244:104(ResType) ImageSparseGather 241 242 50 Lod 243
330             245:    7(fvec4) CompositeExtract 244 1
331                              Store 12(result) 245
332             246:     22(int) CompositeExtract 244 0
333             247:    7(fvec4) Load 12(result)
334             248:    7(fvec4) Load 9(texel)
335             249:    7(fvec4) FAdd 248 247
336                              Store 9(texel) 249
337             250:          56 Load 58(sCubeArray)
338             251:    7(fvec4) Load 61(c4)
339             252:    6(float) Load 176(lod)
340             253:104(ResType) ImageSparseGather 250 251 50 Lod 252
341             254:    7(fvec4) CompositeExtract 253 1
342                              Store 12(result) 254
343             255:     22(int) CompositeExtract 253 0
344             256:    7(fvec4) Load 12(result)
345             257:    7(fvec4) Load 9(texel)
346             258:    7(fvec4) FAdd 257 256
347                              Store 9(texel) 258
348             259:          14 Load 16(s2D)
349             260:   18(fvec2) Load 20(c2)
350             261:    6(float) Load 176(lod)
351             262:104(ResType) ImageSparseGather 259 260 23 Lod ConstOffset 261 71
352             263:    7(fvec4) CompositeExtract 262 1
353                              Store 12(result) 263
354             264:     22(int) CompositeExtract 262 0
355             265:    7(fvec4) Load 12(result)
356             266:    7(fvec4) Load 9(texel)
357             267:    7(fvec4) FAdd 266 265
358                              Store 9(texel) 267
359             268:          31 Load 33(s2DArray)
360             269:   35(fvec3) Load 37(c3)
361             270:    6(float) Load 176(lod)
362             271:104(ResType) ImageSparseGather 268 269 39 Lod ConstOffset 270 78
363             272:    7(fvec4) CompositeExtract 271 1
364                              Store 12(result) 272
365             273:     22(int) CompositeExtract 271 0
366             274:    7(fvec4) Load 12(result)
367             275:    7(fvec4) Load 9(texel)
368             276:    7(fvec4) FAdd 275 274
369                              Store 9(texel) 276
370             277:          14 Load 16(s2D)
371             278:   18(fvec2) Load 20(c2)
372             279:    6(float) Load 176(lod)
373             280:104(ResType) ImageSparseGather 277 278 23 Lod ConstOffsets 279 90
374             281:    7(fvec4) CompositeExtract 280 1
375                              Store 12(result) 281
376             282:     22(int) CompositeExtract 280 0
377             283:    7(fvec4) Load 12(result)
378             284:    7(fvec4) Load 9(texel)
379             285:    7(fvec4) FAdd 284 283
380                              Store 9(texel) 285
381             286:          31 Load 33(s2DArray)
382             287:   35(fvec3) Load 37(c3)
383             288:    6(float) Load 176(lod)
384             289:104(ResType) ImageSparseGather 286 287 39 Lod ConstOffsets 288 90
385             290:    7(fvec4) CompositeExtract 289 1
386                              Store 12(result) 290
387             291:     22(int) CompositeExtract 289 0
388             292:    7(fvec4) Load 12(result)
389             293:    7(fvec4) Load 9(texel)
390             294:    7(fvec4) FAdd 293 292
391                              Store 9(texel) 294
392             297:    7(fvec4) Load 9(texel)
393                              Store 296(fragColor) 297
394                              Return
395                              FunctionEnd
396