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