1spv.newTexture.frag 2Validation failed 3// Module Version 10000 4// Generated by (magic number): 8000a 5// Id's are bound by 284 6 7 Capability Shader 8 Capability SampledRect 9 Capability SampledCubeArray 10 Capability ImageQuery 11 1: ExtInstImport "GLSL.std.450" 12 MemoryModel Logical GLSL450 13 EntryPoint Fragment 4 "main" 17 26 29 55 81 84 92 253 283 14 ExecutionMode 4 OriginUpperLeft 15 Source GLSL 430 16 Name 4 "main" 17 Name 9 "v" 18 Name 13 "s2D" 19 Name 17 "c2D" 20 Name 23 "sCubeArrayShadow" 21 Name 26 "c4D" 22 Name 29 "c1D" 23 Name 42 "s3D" 24 Name 51 "s2DArray" 25 Name 55 "c3D" 26 Name 64 "s2DShadow" 27 Name 81 "ic3D" 28 Name 84 "ic1D" 29 Name 92 "ic2D" 30 Name 102 "sr" 31 Name 128 "sCube" 32 Name 139 "s2DArrayShadow" 33 Name 167 "iv" 34 Name 171 "is2D" 35 Name 208 "is3D" 36 Name 220 "isCube" 37 Name 232 "is2DArray" 38 Name 243 "iv2" 39 Name 247 "sCubeShadow" 40 Name 253 "FragData" 41 Name 265 "is2Dms" 42 Name 269 "us2D" 43 Name 273 "us3D" 44 Name 277 "usCube" 45 Name 281 "us2DArray" 46 Name 283 "ic4D" 47 Decorate 13(s2D) DescriptorSet 0 48 Decorate 13(s2D) Binding 0 49 Decorate 17(c2D) Location 1 50 Decorate 23(sCubeArrayShadow) DescriptorSet 0 51 Decorate 23(sCubeArrayShadow) Binding 5 52 Decorate 26(c4D) Location 3 53 Decorate 29(c1D) Location 0 54 Decorate 42(s3D) DescriptorSet 0 55 Decorate 42(s3D) Binding 2 56 Decorate 51(s2DArray) DescriptorSet 0 57 Decorate 51(s2DArray) Binding 7 58 Decorate 55(c3D) Location 2 59 Decorate 64(s2DShadow) DescriptorSet 0 60 Decorate 64(s2DShadow) Binding 6 61 Decorate 81(ic3D) Flat 62 Decorate 81(ic3D) Location 6 63 Decorate 84(ic1D) Flat 64 Decorate 84(ic1D) Location 4 65 Decorate 92(ic2D) Flat 66 Decorate 92(ic2D) Location 5 67 Decorate 102(sr) DescriptorSet 0 68 Decorate 102(sr) Binding 1 69 Decorate 128(sCube) DescriptorSet 0 70 Decorate 128(sCube) Binding 3 71 Decorate 139(s2DArrayShadow) DescriptorSet 0 72 Decorate 139(s2DArrayShadow) Binding 8 73 Decorate 171(is2D) DescriptorSet 0 74 Decorate 171(is2D) Binding 9 75 Decorate 208(is3D) DescriptorSet 0 76 Decorate 208(is3D) Binding 10 77 Decorate 220(isCube) DescriptorSet 0 78 Decorate 220(isCube) Binding 11 79 Decorate 232(is2DArray) DescriptorSet 0 80 Decorate 232(is2DArray) Binding 12 81 Decorate 247(sCubeShadow) DescriptorSet 0 82 Decorate 247(sCubeShadow) Binding 4 83 Decorate 253(FragData) Location 0 84 Decorate 265(is2Dms) DescriptorSet 0 85 Decorate 265(is2Dms) Binding 0 86 Decorate 269(us2D) DescriptorSet 0 87 Decorate 269(us2D) Binding 0 88 Decorate 273(us3D) DescriptorSet 0 89 Decorate 273(us3D) Binding 0 90 Decorate 277(usCube) DescriptorSet 0 91 Decorate 277(usCube) Binding 0 92 Decorate 281(us2DArray) DescriptorSet 0 93 Decorate 281(us2DArray) Binding 0 94 Decorate 283(ic4D) Flat 95 Decorate 283(ic4D) Location 7 96 2: TypeVoid 97 3: TypeFunction 2 98 6: TypeFloat 32 99 7: TypeVector 6(float) 4 100 8: TypePointer Function 7(fvec4) 101 10: TypeImage 6(float) 2D sampled format:Unknown 102 11: TypeSampledImage 10 103 12: TypePointer UniformConstant 11 104 13(s2D): 12(ptr) Variable UniformConstant 105 15: TypeVector 6(float) 2 106 16: TypePointer Input 15(fvec2) 107 17(c2D): 16(ptr) Variable Input 108 20: TypeImage 6(float) Cube depth array sampled format:Unknown 109 21: TypeSampledImage 20 110 22: TypePointer UniformConstant 21 11123(sCubeArrayShadow): 22(ptr) Variable UniformConstant 112 25: TypePointer Input 7(fvec4) 113 26(c4D): 25(ptr) Variable Input 114 28: TypePointer Input 6(float) 115 29(c1D): 28(ptr) Variable Input 116 32: TypeInt 32 0 117 33: 32(int) Constant 1 118 34: TypePointer Function 6(float) 119 39: TypeImage 6(float) 3D sampled format:Unknown 120 40: TypeSampledImage 39 121 41: TypePointer UniformConstant 40 122 42(s3D): 41(ptr) Variable UniformConstant 123 48: TypeImage 6(float) 2D array sampled format:Unknown 124 49: TypeSampledImage 48 125 50: TypePointer UniformConstant 49 126 51(s2DArray): 50(ptr) Variable UniformConstant 127 53: TypeVector 6(float) 3 128 54: TypePointer Input 53(fvec3) 129 55(c3D): 54(ptr) Variable Input 130 57: 6(float) Constant 1067030938 131 61: TypeImage 6(float) 2D depth sampled format:Unknown 132 62: TypeSampledImage 61 133 63: TypePointer UniformConstant 62 134 64(s2DShadow): 63(ptr) Variable UniformConstant 135 67: TypeInt 32 1 136 68: TypeVector 67(int) 2 137 69: 67(int) Constant 3 138 70: 68(ivec2) ConstantComposite 69 69 139 79: TypeVector 67(int) 3 140 80: TypePointer Input 79(ivec3) 141 81(ic3D): 80(ptr) Variable Input 142 83: TypePointer Input 67(int) 143 84(ic1D): 83(ptr) Variable Input 144 91: TypePointer Input 68(ivec2) 145 92(ic2D): 91(ptr) Variable Input 146 94: 67(int) Constant 4 147 99: TypeImage 6(float) Rect sampled format:Unknown 148 100: TypeSampledImage 99 149 101: TypePointer UniformConstant 100 150 102(sr): 101(ptr) Variable UniformConstant 151 105: 68(ivec2) ConstantComposite 94 94 152 125: TypeImage 6(float) Cube sampled format:Unknown 153 126: TypeSampledImage 125 154 127: TypePointer UniformConstant 126 155 128(sCube): 127(ptr) Variable UniformConstant 156 136: TypeImage 6(float) 2D depth array sampled format:Unknown 157 137: TypeSampledImage 136 158 138: TypePointer UniformConstant 137 159139(s2DArrayShadow): 138(ptr) Variable UniformConstant 160 146: 32(int) Constant 0 161 165: TypeVector 67(int) 4 162 166: TypePointer Function 165(ivec4) 163 168: TypeImage 67(int) 2D sampled format:Unknown 164 169: TypeSampledImage 168 165 170: TypePointer UniformConstant 169 166 171(is2D): 170(ptr) Variable UniformConstant 167 205: TypeImage 67(int) 3D sampled format:Unknown 168 206: TypeSampledImage 205 169 207: TypePointer UniformConstant 206 170 208(is3D): 207(ptr) Variable UniformConstant 171 211: 6(float) Constant 1082549862 172 217: TypeImage 67(int) Cube sampled format:Unknown 173 218: TypeSampledImage 217 174 219: TypePointer UniformConstant 218 175 220(isCube): 219(ptr) Variable UniformConstant 176 229: TypeImage 67(int) 2D array sampled format:Unknown 177 230: TypeSampledImage 229 178 231: TypePointer UniformConstant 230 179 232(is2DArray): 231(ptr) Variable UniformConstant 180 242: TypePointer Function 68(ivec2) 181 244: TypeImage 6(float) Cube depth sampled format:Unknown 182 245: TypeSampledImage 244 183 246: TypePointer UniformConstant 245 184247(sCubeShadow): 246(ptr) Variable UniformConstant 185 249: 67(int) Constant 2 186 252: TypePointer Output 7(fvec4) 187 253(FragData): 252(ptr) Variable Output 188 257: 6(float) Constant 0 189 262: TypeImage 67(int) 2D multi-sampled sampled format:Unknown 190 263: TypeSampledImage 262 191 264: TypePointer UniformConstant 263 192 265(is2Dms): 264(ptr) Variable UniformConstant 193 266: TypeImage 32(int) 2D sampled format:Unknown 194 267: TypeSampledImage 266 195 268: TypePointer UniformConstant 267 196 269(us2D): 268(ptr) Variable UniformConstant 197 270: TypeImage 32(int) 3D sampled format:Unknown 198 271: TypeSampledImage 270 199 272: TypePointer UniformConstant 271 200 273(us3D): 272(ptr) Variable UniformConstant 201 274: TypeImage 32(int) Cube sampled format:Unknown 202 275: TypeSampledImage 274 203 276: TypePointer UniformConstant 275 204 277(usCube): 276(ptr) Variable UniformConstant 205 278: TypeImage 32(int) 2D array sampled format:Unknown 206 279: TypeSampledImage 278 207 280: TypePointer UniformConstant 279 208 281(us2DArray): 280(ptr) Variable UniformConstant 209 282: TypePointer Input 165(ivec4) 210 283(ic4D): 282(ptr) Variable Input 211 4(main): 2 Function None 3 212 5: Label 213 9(v): 8(ptr) Variable Function 214 167(iv): 166(ptr) Variable Function 215 243(iv2): 242(ptr) Variable Function 216 14: 11 Load 13(s2D) 217 18: 15(fvec2) Load 17(c2D) 218 19: 7(fvec4) ImageSampleImplicitLod 14 18 219 Store 9(v) 19 220 24: 21 Load 23(sCubeArrayShadow) 221 27: 7(fvec4) Load 26(c4D) 222 30: 6(float) Load 29(c1D) 223 31: 6(float) ImageSampleDrefImplicitLod 24 27 30 224 35: 34(ptr) AccessChain 9(v) 33 225 36: 6(float) Load 35 226 37: 6(float) FAdd 36 31 227 38: 34(ptr) AccessChain 9(v) 33 228 Store 38 37 229 43: 40 Load 42(s3D) 230 44: 7(fvec4) Load 26(c4D) 231 45: 7(fvec4) ImageSampleProjImplicitLod 43 44 232 46: 7(fvec4) Load 9(v) 233 47: 7(fvec4) FAdd 46 45 234 Store 9(v) 47 235 52: 49 Load 51(s2DArray) 236 56: 53(fvec3) Load 55(c3D) 237 58: 7(fvec4) ImageSampleExplicitLod 52 56 Lod 57 238 59: 7(fvec4) Load 9(v) 239 60: 7(fvec4) FAdd 59 58 240 Store 9(v) 60 241 65: 62 Load 64(s2DShadow) 242 66: 53(fvec3) Load 55(c3D) 243 71: 6(float) Load 29(c1D) 244 72: 6(float) CompositeExtract 66 2 245 73: 6(float) ImageSampleDrefImplicitLod 65 66 72 Bias ConstOffset 71 70 246 74: 34(ptr) AccessChain 9(v) 33 247 75: 6(float) Load 74 248 76: 6(float) FAdd 75 73 249 77: 34(ptr) AccessChain 9(v) 33 250 Store 77 76 251 78: 40 Load 42(s3D) 252 82: 79(ivec3) Load 81(ic3D) 253 85: 67(int) Load 84(ic1D) 254 86: 39 Image 78 255 87: 7(fvec4) ImageFetch 86 82 Lod 85 256 88: 7(fvec4) Load 9(v) 257 89: 7(fvec4) FAdd 88 87 258 Store 9(v) 89 259 90: 11 Load 13(s2D) 260 93: 68(ivec2) Load 92(ic2D) 261 95: 10 Image 90 262 96: 7(fvec4) ImageFetch 95 93 Lod ConstOffset 94 70 263 97: 7(fvec4) Load 9(v) 264 98: 7(fvec4) FAdd 97 96 265 Store 9(v) 98 266 103: 100 Load 102(sr) 267 104: 68(ivec2) Load 92(ic2D) 268 106: 99 Image 103 269 107: 7(fvec4) ImageFetch 106 104 ConstOffset 105 270 108: 7(fvec4) Load 9(v) 271 109: 7(fvec4) FAdd 108 107 272 Store 9(v) 109 273 110: 62 Load 64(s2DShadow) 274 111: 53(fvec3) Load 55(c3D) 275 112: 6(float) Load 29(c1D) 276 113: 6(float) CompositeExtract 111 2 277 114: 6(float) ImageSampleDrefExplicitLod 110 111 113 Lod ConstOffset 112 70 278 115: 34(ptr) AccessChain 9(v) 33 279 116: 6(float) Load 115 280 117: 6(float) FAdd 116 114 281 118: 34(ptr) AccessChain 9(v) 33 282 Store 118 117 283 119: 11 Load 13(s2D) 284 120: 53(fvec3) Load 55(c3D) 285 121: 6(float) Load 29(c1D) 286 122: 7(fvec4) ImageSampleProjExplicitLod 119 120 Lod ConstOffset 121 70 287 123: 7(fvec4) Load 9(v) 288 124: 7(fvec4) FAdd 123 122 289 Store 9(v) 124 290 129: 126 Load 128(sCube) 291 130: 53(fvec3) Load 55(c3D) 292 131: 53(fvec3) Load 55(c3D) 293 132: 53(fvec3) Load 55(c3D) 294 133: 7(fvec4) ImageSampleExplicitLod 129 130 Grad 131 132 295 134: 7(fvec4) Load 9(v) 296 135: 7(fvec4) FAdd 134 133 297 Store 9(v) 135 298 140: 137 Load 139(s2DArrayShadow) 299 141: 7(fvec4) Load 26(c4D) 300 142: 15(fvec2) Load 17(c2D) 301 143: 15(fvec2) Load 17(c2D) 302 144: 6(float) CompositeExtract 141 3 303 145: 6(float) ImageSampleDrefExplicitLod 140 141 144 Grad ConstOffset 142 143 70 304 147: 34(ptr) AccessChain 9(v) 146 305 148: 6(float) Load 147 306 149: 6(float) FAdd 148 145 307 150: 34(ptr) AccessChain 9(v) 146 308 Store 150 149 309 151: 40 Load 42(s3D) 310 152: 7(fvec4) Load 26(c4D) 311 153: 53(fvec3) Load 55(c3D) 312 154: 53(fvec3) Load 55(c3D) 313 155: 7(fvec4) ImageSampleProjExplicitLod 151 152 Grad 153 154 314 156: 7(fvec4) Load 9(v) 315 157: 7(fvec4) FAdd 156 155 316 Store 9(v) 157 317 158: 11 Load 13(s2D) 318 159: 53(fvec3) Load 55(c3D) 319 160: 15(fvec2) Load 17(c2D) 320 161: 15(fvec2) Load 17(c2D) 321 162: 7(fvec4) ImageSampleProjExplicitLod 158 159 Grad ConstOffset 160 161 70 322 163: 7(fvec4) Load 9(v) 323 164: 7(fvec4) FAdd 163 162 324 Store 9(v) 164 325 172: 169 Load 171(is2D) 326 173: 15(fvec2) Load 17(c2D) 327 174: 165(ivec4) ImageSampleImplicitLod 172 173 328 Store 167(iv) 174 329 175: 165(ivec4) Load 167(iv) 330 176: 7(fvec4) ConvertSToF 175 331 177: 7(fvec4) Load 9(v) 332 178: 7(fvec4) FAdd 177 176 333 Store 9(v) 178 334 179: 169 Load 171(is2D) 335 180: 7(fvec4) Load 26(c4D) 336 181: 6(float) CompositeExtract 180 3 337 182: 7(fvec4) CompositeInsert 181 180 2 338 183: 165(ivec4) ImageSampleProjImplicitLod 179 182 ConstOffset 70 339 Store 167(iv) 183 340 184: 165(ivec4) Load 167(iv) 341 185: 7(fvec4) ConvertSToF 184 342 186: 7(fvec4) Load 9(v) 343 187: 7(fvec4) FAdd 186 185 344 Store 9(v) 187 345 188: 169 Load 171(is2D) 346 189: 53(fvec3) Load 55(c3D) 347 190: 6(float) Load 29(c1D) 348 191: 165(ivec4) ImageSampleProjExplicitLod 188 189 Lod 190 349 Store 167(iv) 191 350 192: 165(ivec4) Load 167(iv) 351 193: 7(fvec4) ConvertSToF 192 352 194: 7(fvec4) Load 9(v) 353 195: 7(fvec4) FAdd 194 193 354 Store 9(v) 195 355 196: 169 Load 171(is2D) 356 197: 53(fvec3) Load 55(c3D) 357 198: 15(fvec2) Load 17(c2D) 358 199: 15(fvec2) Load 17(c2D) 359 200: 165(ivec4) ImageSampleProjExplicitLod 196 197 Grad 198 199 360 Store 167(iv) 200 361 201: 165(ivec4) Load 167(iv) 362 202: 7(fvec4) ConvertSToF 201 363 203: 7(fvec4) Load 9(v) 364 204: 7(fvec4) FAdd 203 202 365 Store 9(v) 204 366 209: 206 Load 208(is3D) 367 210: 53(fvec3) Load 55(c3D) 368 212: 165(ivec4) ImageSampleImplicitLod 209 210 Bias 211 369 Store 167(iv) 212 370 213: 165(ivec4) Load 167(iv) 371 214: 7(fvec4) ConvertSToF 213 372 215: 7(fvec4) Load 9(v) 373 216: 7(fvec4) FAdd 215 214 374 Store 9(v) 216 375 221: 218 Load 220(isCube) 376 222: 53(fvec3) Load 55(c3D) 377 223: 6(float) Load 29(c1D) 378 224: 165(ivec4) ImageSampleExplicitLod 221 222 Lod 223 379 Store 167(iv) 224 380 225: 165(ivec4) Load 167(iv) 381 226: 7(fvec4) ConvertSToF 225 382 227: 7(fvec4) Load 9(v) 383 228: 7(fvec4) FAdd 227 226 384 Store 9(v) 228 385 233: 230 Load 232(is2DArray) 386 234: 79(ivec3) Load 81(ic3D) 387 235: 67(int) Load 84(ic1D) 388 236: 229 Image 233 389 237: 165(ivec4) ImageFetch 236 234 Lod 235 390 Store 167(iv) 237 391 238: 165(ivec4) Load 167(iv) 392 239: 7(fvec4) ConvertSToF 238 393 240: 7(fvec4) Load 9(v) 394 241: 7(fvec4) FAdd 240 239 395 Store 9(v) 241 396 248: 245 Load 247(sCubeShadow) 397 250: 244 Image 248 398 251: 68(ivec2) ImageQuerySizeLod 250 249 399 Store 243(iv2) 251 400 254: 7(fvec4) Load 9(v) 401 255: 68(ivec2) Load 243(iv2) 402 256: 15(fvec2) ConvertSToF 255 403 258: 6(float) CompositeExtract 256 0 404 259: 6(float) CompositeExtract 256 1 405 260: 7(fvec4) CompositeConstruct 258 259 257 257 406 261: 7(fvec4) FAdd 254 260 407 Store 253(FragData) 261 408 Return 409 FunctionEnd 410