1spv.1.4.sparseTexture.frag 2// Module Version 10400 3// Generated by (magic number): 8000b 4// Id's are bound by 213 5 6 Capability Shader 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 13 Source GLSL 450 14 SourceExtension "GL_ARB_sparse_texture2" 15 Name 4 "main" 16 Name 8 "resident" 17 Name 13 "texel" 18 Name 18 "itexel" 19 Name 23 "utexel" 20 Name 29 "s2D" 21 Name 33 "c2" 22 Name 35 "ResType" 23 Name 42 "tempReturn" 24 Name 46 "is2D" 25 Name 49 "tempArg" 26 Name 50 "ResType" 27 Name 59 "tempReturn" 28 Name 63 "us2D" 29 Name 66 "tempArg" 30 Name 67 "ResType" 31 Name 84 "tempReturn" 32 Name 87 "tempArg" 33 Name 96 "tempReturn" 34 Name 99 "tempArg" 35 Name 119 "tempReturn" 36 Name 123 "tempArg" 37 Name 133 "tempReturn" 38 Name 137 "tempArg" 39 Name 149 "i2D" 40 Name 152 "ic2" 41 Name 159 "tempReturn" 42 Name 162 "ii2DMS" 43 Name 166 "tempArg" 44 Name 177 "ui3D" 45 Name 181 "ic3" 46 Name 189 "outColor" 47 Name 206 "c3" 48 Name 208 "c4" 49 Name 212 "offsets" 50 Decorate 29(s2D) Binding 0 51 Decorate 29(s2D) DescriptorSet 0 52 Decorate 33(c2) Location 0 53 Decorate 46(is2D) Binding 1 54 Decorate 46(is2D) DescriptorSet 0 55 Decorate 63(us2D) Binding 2 56 Decorate 63(us2D) DescriptorSet 0 57 Decorate 149(i2D) Binding 3 58 Decorate 149(i2D) DescriptorSet 0 59 Decorate 152(ic2) Flat 60 Decorate 152(ic2) Location 3 61 Decorate 162(ii2DMS) Binding 4 62 Decorate 162(ii2DMS) DescriptorSet 0 63 Decorate 177(ui3D) Binding 5 64 Decorate 177(ui3D) DescriptorSet 0 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 72 2: TypeVoid 73 3: TypeFunction 2 74 6: TypeInt 32 1 75 7: TypePointer Function 6(int) 76 9: 6(int) Constant 0 77 10: TypeFloat 32 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 85 20: TypeInt 32 0 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 136 191: TypeBool 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 147 5: Label 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 160 Store 8(resident) 9 161 Store 13(texel) 15 162 Store 18(itexel) 19 163 Store 23(utexel) 25 164 30: 27 Load 29(s2D) 165 34: 31(fvec2) Load 33(c2) 166 36: 35(ResType) ImageSparseSampleImplicitLod 30 34 167 37: 11(fvec4) CompositeExtract 36 1 168 Store 13(texel) 37 169 38: 6(int) CompositeExtract 36 0 170 39: 6(int) Load 8(resident) 171 40: 6(int) BitwiseOr 39 38 172 Store 8(resident) 40 173 47: 44 Load 46(is2D) 174 48: 31(fvec2) Load 33(c2) 175 51: 50(ResType) ImageSparseSampleImplicitLod 47 48 SignExtend 176 52: 16(ivec4) CompositeExtract 51 1 177 Store 49(tempArg) 52 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 182 Store 13(texel) 55 183 56: 6(int) Load 42(tempReturn) 184 57: 6(int) Load 8(resident) 185 58: 6(int) BitwiseOr 57 56 186 Store 8(resident) 58 187 64: 61 Load 63(us2D) 188 65: 31(fvec2) Load 33(c2) 189 68: 67(ResType) ImageSparseSampleImplicitLod 64 65 ZeroExtend 190 69: 21(ivec4) CompositeExtract 68 1 191 Store 66(tempArg) 69 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 196 Store 13(texel) 72 197 73: 6(int) Load 59(tempReturn) 198 74: 6(int) Load 8(resident) 199 75: 6(int) BitwiseOr 74 73 200 Store 8(resident) 75 201 76: 27 Load 29(s2D) 202 77: 31(fvec2) Load 33(c2) 203 79: 35(ResType) ImageSparseSampleExplicitLod 76 77 Lod 78 204 80: 11(fvec4) CompositeExtract 79 1 205 Store 13(texel) 80 206 81: 6(int) CompositeExtract 79 0 207 82: 6(int) Load 8(resident) 208 83: 6(int) BitwiseOr 82 81 209 Store 8(resident) 83 210 85: 44 Load 46(is2D) 211 86: 31(fvec2) Load 33(c2) 212 88: 50(ResType) ImageSparseSampleExplicitLod 85 86 Lod SignExtend 78 213 89: 16(ivec4) CompositeExtract 88 1 214 Store 87(tempArg) 89 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 219 Store 13(texel) 92 220 93: 6(int) Load 84(tempReturn) 221 94: 6(int) Load 8(resident) 222 95: 6(int) BitwiseOr 94 93 223 Store 8(resident) 95 224 97: 61 Load 63(us2D) 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 233 Store 13(texel) 104 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 238 108: 27 Load 29(s2D) 239 109: 31(fvec2) Load 33(c2) 240 111: 110(ivec2) ConvertFToS 109 241 113: 26 Image 108 242 114: 35(ResType) ImageSparseFetch 113 111 Lod 112 243 115: 11(fvec4) CompositeExtract 114 1 244 Store 13(texel) 115 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 252 124: 43 Image 120 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 260 Store 13(texel) 129 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 268 138: 60 Image 134 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 276 Store 13(texel) 143 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 285 Store 13(texel) 155 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 299 Store 13(texel) 171 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 308 Store 23(utexel) 184 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 317 194: Label 318 196: 11(fvec4) Load 13(texel) 319 Store 193 196 320 Branch 195 321 197: Label 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 327 Store 193 202 328 Branch 195 329 195: Label 330 203: 11(fvec4) Load 193 331 Store 189(outColor) 203 332 Return 333 FunctionEnd 334