David Gonzalez Martin be2de1d672 Render a texture
2024-11-10 08:48:46 -06:00

606 lines
31 KiB
Plaintext

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