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