1 spv.1.4.sparseTexture.frag
2 // Module Version 10400
3 // Generated by (magic number): 8000b
4 // Id's are bound by 213
7 Capability StorageImageMultisample
8 Capability SparseResidency
9 1: ExtInstImport "GLSL.std.450"
10 MemoryModel Logical GLSL450
11 EntryPoint Fragment 4 "main" 29 33 42 46 59 63 84 96 119 133 149 152 159 162 177 181 189 206 208 212
12 ExecutionMode 4 OriginUpperLeft
14 SourceExtension "GL_ARB_sparse_texture2"
50 Decorate 29(s2D) DescriptorSet 0
51 Decorate 29(s2D) Binding 0
52 Decorate 33(c2) Location 0
53 Decorate 46(is2D) DescriptorSet 0
54 Decorate 46(is2D) Binding 1
55 Decorate 63(us2D) DescriptorSet 0
56 Decorate 63(us2D) Binding 2
57 Decorate 149(i2D) DescriptorSet 0
58 Decorate 149(i2D) Binding 3
59 Decorate 152(ic2) Flat
60 Decorate 152(ic2) Location 3
61 Decorate 162(ii2DMS) DescriptorSet 0
62 Decorate 162(ii2DMS) Binding 4
63 Decorate 177(ui3D) DescriptorSet 0
64 Decorate 177(ui3D) Binding 5
65 Decorate 181(ic3) Flat
66 Decorate 181(ic3) Location 4
67 Decorate 189(outColor) Location 0
68 Decorate 206(c3) Location 1
69 Decorate 208(c4) Location 2
70 Decorate 212(offsets) Flat
71 Decorate 212(offsets) Location 5
75 7: TypePointer Function 6(int)
78 11: TypeVector 10(float) 4
79 12: TypePointer Function 11(fvec4)
80 14: 10(float) Constant 0
81 15: 11(fvec4) ConstantComposite 14 14 14 14
82 16: TypeVector 6(int) 4
83 17: TypePointer Function 16(ivec4)
84 19: 16(ivec4) ConstantComposite 9 9 9 9
86 21: TypeVector 20(int) 4
87 22: TypePointer Function 21(ivec4)
88 24: 20(int) Constant 0
89 25: 21(ivec4) ConstantComposite 24 24 24 24
90 26: TypeImage 10(float) 2D sampled format:Unknown
91 27: TypeSampledImage 26
92 28: TypePointer UniformConstant 27
93 29(s2D): 28(ptr) Variable UniformConstant
94 31: TypeVector 10(float) 2
95 32: TypePointer Input 31(fvec2)
96 33(c2): 32(ptr) Variable Input
97 35(ResType): TypeStruct 6(int) 11(fvec4)
98 41: TypePointer Private 6(int)
99 42(tempReturn): 41(ptr) Variable Private
100 43: TypeImage 6(int) 2D sampled format:Unknown
101 44: TypeSampledImage 43
102 45: TypePointer UniformConstant 44
103 46(is2D): 45(ptr) Variable UniformConstant
104 50(ResType): TypeStruct 6(int) 16(ivec4)
105 59(tempReturn): 41(ptr) Variable Private
106 60: TypeImage 20(int) 2D sampled format:Unknown
107 61: TypeSampledImage 60
108 62: TypePointer UniformConstant 61
109 63(us2D): 62(ptr) Variable UniformConstant
110 67(ResType): TypeStruct 6(int) 21(ivec4)
111 78: 10(float) Constant 1073741824
112 84(tempReturn): 41(ptr) Variable Private
113 96(tempReturn): 41(ptr) Variable Private
114 110: TypeVector 6(int) 2
115 112: 6(int) Constant 2
116 119(tempReturn): 41(ptr) Variable Private
117 133(tempReturn): 41(ptr) Variable Private
118 147: TypeImage 10(float) 2D nonsampled format:Rgba32f
119 148: TypePointer UniformConstant 147
120 149(i2D): 148(ptr) Variable UniformConstant
121 151: TypePointer Input 110(ivec2)
122 152(ic2): 151(ptr) Variable Input
123 159(tempReturn): 41(ptr) Variable Private
124 160: TypeImage 6(int) 2D multi-sampled nonsampled format:Rgba32i
125 161: TypePointer UniformConstant 160
126 162(ii2DMS): 161(ptr) Variable UniformConstant
127 165: 6(int) Constant 3
128 175: TypeImage 20(int) 3D nonsampled format:Rgba32ui
129 176: TypePointer UniformConstant 175
130 177(ui3D): 176(ptr) Variable UniformConstant
131 179: TypeVector 6(int) 3
132 180: TypePointer Input 179(ivec3)
133 181(ic3): 180(ptr) Variable Input
134 188: TypePointer Output 11(fvec4)
135 189(outColor): 188(ptr) Variable Output
137 204: TypeVector 10(float) 3
138 205: TypePointer Input 204(fvec3)
139 206(c3): 205(ptr) Variable Input
140 207: TypePointer Input 11(fvec4)
141 208(c4): 207(ptr) Variable Input
142 209: 20(int) Constant 4
143 210: TypeArray 110(ivec2) 209
144 211: TypePointer Input 210
145 212(offsets): 211(ptr) Variable Input
146 4(main): 2 Function None 3
148 8(resident): 7(ptr) Variable Function
149 13(texel): 12(ptr) Variable Function
150 18(itexel): 17(ptr) Variable Function
151 23(utexel): 22(ptr) Variable Function
152 49(tempArg): 17(ptr) Variable Function
153 66(tempArg): 22(ptr) Variable Function
154 87(tempArg): 17(ptr) Variable Function
155 99(tempArg): 22(ptr) Variable Function
156 123(tempArg): 17(ptr) Variable Function
157 137(tempArg): 22(ptr) Variable Function
158 166(tempArg): 17(ptr) Variable Function
159 193: 12(ptr) Variable Function
165 34: 31(fvec2) Load 33(c2)
166 36: 35(ResType) ImageSparseSampleImplicitLod 30 34
167 37: 11(fvec4) CompositeExtract 36 1
169 38: 6(int) CompositeExtract 36 0
170 39: 6(int) Load 8(resident)
171 40: 6(int) BitwiseOr 39 38
174 48: 31(fvec2) Load 33(c2)
175 51: 50(ResType) ImageSparseSampleImplicitLod 47 48 SignExtend
176 52: 16(ivec4) CompositeExtract 51 1
178 53: 6(int) CompositeExtract 51 0
179 Store 42(tempReturn) 53
180 54: 16(ivec4) Load 49(tempArg)
181 55: 11(fvec4) ConvertSToF 54
183 56: 6(int) Load 42(tempReturn)
184 57: 6(int) Load 8(resident)
185 58: 6(int) BitwiseOr 57 56
188 65: 31(fvec2) Load 33(c2)
189 68: 67(ResType) ImageSparseSampleImplicitLod 64 65 ZeroExtend
190 69: 21(ivec4) CompositeExtract 68 1
192 70: 6(int) CompositeExtract 68 0
193 Store 59(tempReturn) 70
194 71: 21(ivec4) Load 66(tempArg)
195 72: 11(fvec4) ConvertUToF 71
197 73: 6(int) Load 59(tempReturn)
198 74: 6(int) Load 8(resident)
199 75: 6(int) BitwiseOr 74 73
202 77: 31(fvec2) Load 33(c2)
203 79: 35(ResType) ImageSparseSampleExplicitLod 76 77 Lod 78
204 80: 11(fvec4) CompositeExtract 79 1
206 81: 6(int) CompositeExtract 79 0
207 82: 6(int) Load 8(resident)
208 83: 6(int) BitwiseOr 82 81
211 86: 31(fvec2) Load 33(c2)
212 88: 50(ResType) ImageSparseSampleExplicitLod 85 86 Lod SignExtend 78
213 89: 16(ivec4) CompositeExtract 88 1
215 90: 6(int) CompositeExtract 88 0
216 Store 84(tempReturn) 90
217 91: 16(ivec4) Load 87(tempArg)
218 92: 11(fvec4) ConvertSToF 91
220 93: 6(int) Load 84(tempReturn)
221 94: 6(int) Load 8(resident)
222 95: 6(int) BitwiseOr 94 93
225 98: 31(fvec2) Load 33(c2)
226 100: 67(ResType) ImageSparseSampleExplicitLod 97 98 Lod ZeroExtend 78
227 101: 21(ivec4) CompositeExtract 100 1
228 Store 99(tempArg) 101
229 102: 6(int) CompositeExtract 100 0
230 Store 96(tempReturn) 102
231 103: 21(ivec4) Load 99(tempArg)
232 104: 11(fvec4) ConvertUToF 103
234 105: 6(int) Load 96(tempReturn)
235 106: 6(int) Load 8(resident)
236 107: 6(int) BitwiseOr 106 105
237 Store 8(resident) 107
239 109: 31(fvec2) Load 33(c2)
240 111: 110(ivec2) ConvertFToS 109
242 114: 35(ResType) ImageSparseFetch 113 111 Lod 112
243 115: 11(fvec4) CompositeExtract 114 1
245 116: 6(int) CompositeExtract 114 0
246 117: 6(int) Load 8(resident)
247 118: 6(int) BitwiseOr 117 116
248 Store 8(resident) 118
249 120: 44 Load 46(is2D)
250 121: 31(fvec2) Load 33(c2)
251 122: 110(ivec2) ConvertFToS 121
253 125: 50(ResType) ImageSparseFetch 124 122 Lod SignExtend 112
254 126: 16(ivec4) CompositeExtract 125 1
255 Store 123(tempArg) 126
256 127: 6(int) CompositeExtract 125 0
257 Store 119(tempReturn) 127
258 128: 16(ivec4) Load 123(tempArg)
259 129: 11(fvec4) ConvertSToF 128
261 130: 6(int) Load 119(tempReturn)
262 131: 6(int) Load 8(resident)
263 132: 6(int) BitwiseOr 131 130
264 Store 8(resident) 132
265 134: 61 Load 63(us2D)
266 135: 31(fvec2) Load 33(c2)
267 136: 110(ivec2) ConvertFToS 135
269 139: 67(ResType) ImageSparseFetch 138 136 Lod ZeroExtend 112
270 140: 21(ivec4) CompositeExtract 139 1
271 Store 137(tempArg) 140
272 141: 6(int) CompositeExtract 139 0
273 Store 133(tempReturn) 141
274 142: 21(ivec4) Load 137(tempArg)
275 143: 11(fvec4) ConvertUToF 142
277 144: 6(int) Load 133(tempReturn)
278 145: 6(int) Load 8(resident)
279 146: 6(int) BitwiseOr 145 144
280 Store 8(resident) 146
281 150: 147 Load 149(i2D)
282 153: 110(ivec2) Load 152(ic2)
283 154: 35(ResType) ImageSparseRead 150 153
284 155: 11(fvec4) CompositeExtract 154 1
286 156: 6(int) CompositeExtract 154 0
287 157: 6(int) Load 8(resident)
288 158: 6(int) BitwiseOr 157 156
289 Store 8(resident) 158
290 163: 160 Load 162(ii2DMS)
291 164: 110(ivec2) Load 152(ic2)
292 167: 50(ResType) ImageSparseRead 163 164 Sample SignExtend 165
293 168: 16(ivec4) CompositeExtract 167 1
294 Store 166(tempArg) 168
295 169: 6(int) CompositeExtract 167 0
296 Store 159(tempReturn) 169
297 170: 16(ivec4) Load 166(tempArg)
298 171: 11(fvec4) ConvertSToF 170
300 172: 6(int) Load 159(tempReturn)
301 173: 6(int) Load 8(resident)
302 174: 6(int) BitwiseOr 173 172
303 Store 8(resident) 174
304 178: 175 Load 177(ui3D)
305 182: 179(ivec3) Load 181(ic3)
306 183: 67(ResType) ImageSparseRead 178 182 ZeroExtend
307 184: 21(ivec4) CompositeExtract 183 1
309 185: 6(int) CompositeExtract 183 0
310 186: 6(int) Load 8(resident)
311 187: 6(int) BitwiseOr 186 185
312 Store 8(resident) 187
313 190: 6(int) Load 8(resident)
314 192: 191(bool) ImageSparseTexelsResident 190
315 SelectionMerge 195 None
316 BranchConditional 192 194 197
318 196: 11(fvec4) Load 13(texel)
322 198: 16(ivec4) Load 18(itexel)
323 199: 11(fvec4) ConvertSToF 198
324 200: 21(ivec4) Load 23(utexel)
325 201: 11(fvec4) ConvertUToF 200
326 202: 11(fvec4) FAdd 199 201
330 203: 11(fvec4) Load 193
331 Store 189(outColor) 203