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