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