1spv.sparseTextureClamp.frag 2Validation failed 3// Module Version 10000 4// Generated by (magic number): 8000b 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 33(c2) Location 0 46 Decorate 36(lodClamp) Location 3 47 Decorate 47(s3D) DescriptorSet 0 48 Decorate 47(s3D) Binding 1 49 Decorate 51(c3) Location 1 50 Decorate 63(isCube) DescriptorSet 0 51 Decorate 63(isCube) Binding 7 52 Decorate 76(s2DShadow) DescriptorSet 0 53 Decorate 76(s2DShadow) Binding 2 54 Decorate 92(sCubeArrayShadow) DescriptorSet 0 55 Decorate 92(sCubeArrayShadow) Binding 6 56 Decorate 95(c4) Location 2 57 Decorate 154(us2DRect) DescriptorSet 0 58 Decorate 154(us2DRect) Binding 10 59 Decorate 170(s2DArrayShadow) DescriptorSet 0 60 Decorate 170(s2DArrayShadow) Binding 4 61 Decorate 218(sCubeShadow) DescriptorSet 0 62 Decorate 218(sCubeShadow) Binding 3 63 Decorate 235(usCubeArray) DescriptorSet 0 64 Decorate 235(usCubeArray) Binding 9 65 Decorate 286(s2DRectShadow) DescriptorSet 0 66 Decorate 286(s2DRectShadow) Binding 5 67 Decorate 305(is2DArray) DescriptorSet 0 68 Decorate 305(is2DArray) Binding 8 69 Decorate 345(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 215: TypeImage 10(float) Cube depth sampled format:Unknown 143 216: TypeSampledImage 215 144 217: TypePointer UniformConstant 216 145218(sCubeShadow): 217(ptr) Variable UniformConstant 146 224: 20(int) Constant 1 147 232: TypeImage 20(int) Cube array sampled format:Unknown 148 233: TypeSampledImage 232 149 234: TypePointer UniformConstant 233 150235(usCubeArray): 234(ptr) Variable UniformConstant 151 283: TypeImage 10(float) Rect depth sampled format:Unknown 152 284: TypeSampledImage 283 153 285: TypePointer UniformConstant 284 154286(s2DRectShadow): 285(ptr) Variable UniformConstant 155 291: 6(int) Constant 6 156 292: 157(ivec2) ConstantComposite 291 291 157 294: 20(int) Constant 3 158 302: TypeImage 6(int) 2D array sampled format:Unknown 159 303: TypeSampledImage 302 160 304: TypePointer UniformConstant 303 161 305(is2DArray): 304(ptr) Variable UniformConstant 162 310: 157(ivec2) ConstantComposite 143 143 163 344: TypePointer Output 11(fvec4) 164 345(outColor): 344(ptr) Variable Output 165 347: 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 349: 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: 49(fvec3) Load 51(c3) 329 208: 49(fvec3) Load 51(c3) 330 209: 10(float) Load 36(lodClamp) 331 210: 38(ResType) ImageSparseSampleExplicitLod 205 206 Grad MinLod 207 208 209 332 211: 11(fvec4) CompositeExtract 210 1 333 Store 13(texel) 211 334 212: 6(int) CompositeExtract 210 0 335 213: 6(int) Load 8(resident) 336 214: 6(int) BitwiseOr 213 212 337 Store 8(resident) 214 338 219: 216 Load 218(sCubeShadow) 339 220: 11(fvec4) Load 95(c4) 340 221: 49(fvec3) Load 51(c3) 341 222: 49(fvec3) Load 51(c3) 342 223: 10(float) Load 36(lodClamp) 343 225: 80(ptr) AccessChain 13(texel) 224 344 226: 10(float) CompositeExtract 220 3 345 227: 83(ResType) ImageSparseSampleDrefExplicitLod 219 220 226 Grad MinLod 221 222 223 346 228: 10(float) CompositeExtract 227 1 347 Store 225 228 348 229: 6(int) CompositeExtract 227 0 349 230: 6(int) Load 8(resident) 350 231: 6(int) BitwiseOr 230 229 351 Store 8(resident) 231 352 236: 233 Load 235(usCubeArray) 353 237: 11(fvec4) Load 95(c4) 354 238: 49(fvec3) Load 51(c3) 355 239: 49(fvec3) Load 51(c3) 356 240: 10(float) Load 36(lodClamp) 357 241:161(ResType) ImageSparseSampleExplicitLod 236 237 Grad MinLod 238 239 240 358 242: 21(ivec4) CompositeExtract 241 1 359 Store 23(utexel) 242 360 243: 6(int) CompositeExtract 241 0 361 244: 6(int) Load 8(resident) 362 245: 6(int) BitwiseOr 244 243 363 Store 8(resident) 245 364 246: 45 Load 47(s3D) 365 247: 49(fvec3) Load 51(c3) 366 248: 49(fvec3) Load 51(c3) 367 249: 49(fvec3) Load 51(c3) 368 250: 10(float) Load 36(lodClamp) 369 251: 11(fvec4) ImageSampleExplicitLod 246 247 Grad MinLod 248 249 250 370 252: 11(fvec4) Load 13(texel) 371 253: 11(fvec4) FAdd 252 251 372 Store 13(texel) 253 373 254: 216 Load 218(sCubeShadow) 374 255: 11(fvec4) Load 95(c4) 375 256: 49(fvec3) Load 51(c3) 376 257: 49(fvec3) Load 51(c3) 377 258: 10(float) Load 36(lodClamp) 378 259: 10(float) CompositeExtract 255 3 379 260: 10(float) ImageSampleDrefExplicitLod 254 255 259 Grad MinLod 256 257 258 380 261: 80(ptr) AccessChain 13(texel) 224 381 262: 10(float) Load 261 382 263: 10(float) FAdd 262 260 383 264: 80(ptr) AccessChain 13(texel) 224 384 Store 264 263 385 265: 233 Load 235(usCubeArray) 386 266: 11(fvec4) Load 95(c4) 387 267: 49(fvec3) Load 51(c3) 388 268: 49(fvec3) Load 51(c3) 389 269: 10(float) Load 36(lodClamp) 390 270: 21(ivec4) ImageSampleExplicitLod 265 266 Grad MinLod 267 268 269 391 271: 21(ivec4) Load 23(utexel) 392 272: 21(ivec4) IAdd 271 270 393 Store 23(utexel) 272 394 273: 27 Load 29(s2D) 395 274: 31(fvec2) Load 33(c2) 396 275: 31(fvec2) Load 33(c2) 397 276: 31(fvec2) Load 33(c2) 398 277: 10(float) Load 36(lodClamp) 399 278: 38(ResType) ImageSparseSampleExplicitLod 273 274 Grad ConstOffset MinLod 275 276 174 277 400 279: 11(fvec4) CompositeExtract 278 1 401 Store 13(texel) 279 402 280: 6(int) CompositeExtract 278 0 403 281: 6(int) Load 8(resident) 404 282: 6(int) BitwiseOr 281 280 405 Store 8(resident) 282 406 287: 284 Load 286(s2DRectShadow) 407 288: 49(fvec3) Load 51(c3) 408 289: 31(fvec2) Load 33(c2) 409 290: 31(fvec2) Load 33(c2) 410 293: 10(float) Load 36(lodClamp) 411 295: 80(ptr) AccessChain 13(texel) 294 412 296: 10(float) CompositeExtract 288 2 413 297: 83(ResType) ImageSparseSampleDrefExplicitLod 287 288 296 Grad ConstOffset MinLod 289 290 292 293 414 298: 10(float) CompositeExtract 297 1 415 Store 295 298 416 299: 6(int) CompositeExtract 297 0 417 300: 6(int) Load 8(resident) 418 301: 6(int) BitwiseOr 300 299 419 Store 8(resident) 301 420 306: 303 Load 305(is2DArray) 421 307: 49(fvec3) Load 51(c3) 422 308: 31(fvec2) Load 33(c2) 423 309: 31(fvec2) Load 33(c2) 424 311: 10(float) Load 36(lodClamp) 425 312: 67(ResType) ImageSparseSampleExplicitLod 306 307 Grad ConstOffset MinLod 308 309 310 311 426 313: 16(ivec4) CompositeExtract 312 1 427 Store 18(itexel) 313 428 314: 6(int) CompositeExtract 312 0 429 315: 6(int) Load 8(resident) 430 316: 6(int) BitwiseOr 315 314 431 Store 8(resident) 316 432 317: 27 Load 29(s2D) 433 318: 31(fvec2) Load 33(c2) 434 319: 31(fvec2) Load 33(c2) 435 320: 31(fvec2) Load 33(c2) 436 321: 10(float) Load 36(lodClamp) 437 322: 11(fvec4) ImageSampleExplicitLod 317 318 Grad ConstOffset MinLod 319 320 174 321 438 323: 11(fvec4) Load 13(texel) 439 324: 11(fvec4) FAdd 323 322 440 Store 13(texel) 324 441 325: 284 Load 286(s2DRectShadow) 442 326: 49(fvec3) Load 51(c3) 443 327: 31(fvec2) Load 33(c2) 444 328: 31(fvec2) Load 33(c2) 445 329: 10(float) Load 36(lodClamp) 446 330: 10(float) CompositeExtract 326 2 447 331: 10(float) ImageSampleDrefExplicitLod 325 326 330 Grad ConstOffset MinLod 327 328 292 329 448 332: 80(ptr) AccessChain 13(texel) 294 449 333: 10(float) Load 332 450 334: 10(float) FAdd 333 331 451 335: 80(ptr) AccessChain 13(texel) 294 452 Store 335 334 453 336: 303 Load 305(is2DArray) 454 337: 49(fvec3) Load 51(c3) 455 338: 31(fvec2) Load 33(c2) 456 339: 31(fvec2) Load 33(c2) 457 340: 10(float) Load 36(lodClamp) 458 341: 16(ivec4) ImageSampleExplicitLod 336 337 Grad ConstOffset MinLod 338 339 310 340 459 342: 16(ivec4) Load 18(itexel) 460 343: 16(ivec4) IAdd 342 341 461 Store 18(itexel) 343 462 346: 6(int) Load 8(resident) 463 348: 347(bool) ImageSparseTexelsResident 346 464 SelectionMerge 351 None 465 BranchConditional 348 350 353 466 350: Label 467 352: 11(fvec4) Load 13(texel) 468 Store 349 352 469 Branch 351 470 353: Label 471 354: 16(ivec4) Load 18(itexel) 472 355: 11(fvec4) ConvertSToF 354 473 356: 21(ivec4) Load 23(utexel) 474 357: 11(fvec4) ConvertUToF 356 475 358: 11(fvec4) FAdd 355 357 476 Store 349 358 477 Branch 351 478 351: Label 479 359: 11(fvec4) Load 349 480 Store 345(outColor) 359 481 Return 482 FunctionEnd 483