| spv.debuginfo.hlsl.frag |
| Validation failed |
| // Module Version 10000 |
| // Generated by (magic number): 8000a |
| // Id's are bound by 743 |
| |
| Capability Shader |
| Capability ImageQuery |
| Extension "SPV_KHR_non_semantic_info" |
| 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" |
| 2: ExtInstImport "GLSL.std.450" |
| MemoryModel Logical GLSL450 |
| EntryPoint Fragment 5 "main" 736 739 |
| ExecutionMode 5 OriginUpperLeft |
| 9: String "float" |
| 12: String "uint" |
| 32: String "textureProj" |
| 35: String "" |
| 43: String "P" |
| 47: String "layer" |
| 50: String "offset" |
| 57: String "filterPCF" |
| 63: String "sc" |
| 75: String "shadow" |
| 81: String "fragcolor" |
| 84: String "fragPos" |
| 90: String "@main" |
| 96: String "inUV" |
| 106: String "shadowCoord" |
| 128: String "bool" |
| 141: String "dist" |
| 146: String "type.2d.image" |
| 147: String "@type.2d.image" |
| 152: String "textureShadowMap" |
| 157: String "type.sampler" |
| 158: String "@type.sampler" |
| 162: String "samplerShadowMap" |
| 166: String "type.sampled.image" |
| 167: String "@type.sampled.image" |
| 203: String "sizeQueryTemp" |
| 209: String "int" |
| 216: String "texDim" |
| 230: String "elements" |
| 237: String "levels" |
| 244: String "scale" |
| 250: String "dx" |
| 261: String "dy" |
| 272: String "shadowFactor" |
| 277: String "count" |
| 283: String "range" |
| 289: String "x" |
| 305: String "y" |
| 351: String "i" |
| 365: String "shadowClip" |
| 378: String "color" |
| 384: String "viewMatrix" |
| 388: String "Light" |
| 394: String "lights" |
| 397: String "displayDebugTarget" |
| 402: String "UBO" |
| 405: String "ubo" |
| 445: String "textureposition" |
| 450: String "samplerposition" |
| 460: String "normal" |
| 465: String "textureNormal" |
| 470: String "samplerNormal" |
| 478: String "albedo" |
| 483: String "textureAlbedo" |
| 488: String "samplerAlbedo" |
| 541: String "N" |
| 560: String "L" |
| 580: String "V" |
| 592: String "lightCosInnerAngle" |
| 598: String "lightCosOuterAngle" |
| 604: String "lightRange" |
| 610: String "dir" |
| 625: String "cosDir" |
| 633: String "spotEffect" |
| 642: String "heightAttenuation" |
| 650: String "NdotL" |
| 659: String "diff" |
| 666: String "R" |
| 675: String "NdotR" |
| 684: String "spec" |
| Name 5 "main" |
| Name 31 "textureProj(vf4;f1;vf2;" |
| Name 28 "P" |
| Name 29 "layer" |
| Name 30 "offset" |
| Name 56 "filterPCF(vf4;f1;" |
| Name 54 "sc" |
| Name 55 "layer" |
| Name 74 "shadow(vf3;vf3;" |
| Name 72 "fragcolor" |
| Name 73 "fragPos" |
| Name 89 "@main(vf2;" |
| Name 88 "inUV" |
| Name 99 "shadow" |
| Name 104 "shadowCoord" |
| Name 139 "dist" |
| Name 150 "textureShadowMap" |
| Name 160 "samplerShadowMap" |
| Name 201 "sizeQueryTemp" |
| Name 214 "texDim" |
| Name 228 "elements" |
| Name 235 "levels" |
| Name 242 "scale" |
| Name 248 "dx" |
| Name 259 "dy" |
| Name 270 "shadowFactor" |
| Name 275 "count" |
| Name 281 "range" |
| Name 287 "x" |
| Name 303 "y" |
| Name 328 "param" |
| Name 330 "param" |
| Name 332 "param" |
| Name 349 "i" |
| Name 363 "shadowClip" |
| Name 376 "Light" |
| MemberName 376(Light) 0 "position" |
| MemberName 376(Light) 1 "target" |
| MemberName 376(Light) 2 "color" |
| MemberName 376(Light) 3 "viewMatrix" |
| Name 391 "UBO" |
| MemberName 391(UBO) 0 "viewPos" |
| MemberName 391(UBO) 1 "lights" |
| MemberName 391(UBO) 2 "useShadows" |
| MemberName 391(UBO) 3 "displayDebugTarget" |
| Name 403 "ubo" |
| MemberName 403(ubo) 0 "ubo" |
| Name 410 "" |
| Name 417 "shadowFactor" |
| Name 423 "param" |
| Name 425 "param" |
| Name 436 "fragPos" |
| Name 443 "textureposition" |
| Name 448 "samplerposition" |
| Name 458 "normal" |
| Name 463 "textureNormal" |
| Name 468 "samplerNormal" |
| Name 476 "albedo" |
| Name 481 "textureAlbedo" |
| Name 486 "samplerAlbedo" |
| Name 508 "fragcolor" |
| Name 513 "param" |
| Name 514 "param" |
| Name 539 "N" |
| Name 546 "i" |
| Name 558 "L" |
| Name 570 "dist" |
| Name 578 "V" |
| Name 590 "lightCosInnerAngle" |
| Name 596 "lightCosOuterAngle" |
| Name 602 "lightRange" |
| Name 608 "dir" |
| Name 623 "cosDir" |
| Name 631 "spotEffect" |
| Name 640 "heightAttenuation" |
| Name 648 "NdotL" |
| Name 657 "diff" |
| Name 664 "R" |
| Name 673 "NdotR" |
| Name 682 "spec" |
| Name 722 "param" |
| Name 724 "param" |
| Name 734 "inUV" |
| Name 736 "inUV" |
| Name 739 "@entryPointOutput" |
| Name 740 "param" |
| Decorate 150(textureShadowMap) DescriptorSet 0 |
| Decorate 150(textureShadowMap) Binding 5 |
| Decorate 160(samplerShadowMap) DescriptorSet 0 |
| Decorate 160(samplerShadowMap) Binding 5 |
| MemberDecorate 376(Light) 0 Offset 0 |
| MemberDecorate 376(Light) 1 Offset 16 |
| MemberDecorate 376(Light) 2 Offset 32 |
| MemberDecorate 376(Light) 3 RowMajor |
| MemberDecorate 376(Light) 3 Offset 48 |
| MemberDecorate 376(Light) 3 MatrixStride 16 |
| Decorate 389 ArrayStride 112 |
| MemberDecorate 391(UBO) 0 Offset 0 |
| MemberDecorate 391(UBO) 1 Offset 16 |
| MemberDecorate 391(UBO) 2 Offset 352 |
| MemberDecorate 391(UBO) 3 Offset 356 |
| MemberDecorate 403(ubo) 0 Offset 0 |
| Decorate 403(ubo) Block |
| Decorate 410 DescriptorSet 0 |
| Decorate 410 Binding 4 |
| Decorate 443(textureposition) DescriptorSet 0 |
| Decorate 443(textureposition) Binding 1 |
| Decorate 448(samplerposition) DescriptorSet 0 |
| Decorate 448(samplerposition) Binding 1 |
| Decorate 463(textureNormal) DescriptorSet 0 |
| Decorate 463(textureNormal) Binding 2 |
| Decorate 468(samplerNormal) DescriptorSet 0 |
| Decorate 468(samplerNormal) Binding 2 |
| Decorate 481(textureAlbedo) DescriptorSet 0 |
| Decorate 481(textureAlbedo) Binding 3 |
| Decorate 486(samplerAlbedo) DescriptorSet 0 |
| Decorate 486(samplerAlbedo) Binding 3 |
| Decorate 736(inUV) Location 0 |
| Decorate 739(@entryPointOutput) Location 0 |
| 3: TypeVoid |
| 4: TypeFunction 3 |
| 7: TypeFloat 32 |
| 10: TypeInt 32 0 |
| 13: 10(int) Constant 32 |
| 14: 10(int) Constant 6 |
| 15: 10(int) Constant 0 |
| 11: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 12 13 14 15 |
| 16: 10(int) Constant 3 |
| 8: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 9 13 16 15 |
| 17: TypeVector 7(float) 4 |
| 18: 10(int) Constant 4 |
| 19: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(FSign) 8 18 |
| 20: TypePointer Function 17(fvec4) |
| 21: TypePointer Function 7(float) |
| 22: TypeVector 7(float) 2 |
| 23: 10(int) Constant 2 |
| 24: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(FSign) 8 23 |
| 25: TypePointer Function 22(fvec2) |
| 26: TypeFunction 7(float) 20(ptr) 21(ptr) 25(ptr) |
| 27: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(Floor) 16 8 19 8 24 |
| 34: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(Modf) 0 35 |
| 37: 10(int) Constant 1 |
| 38: 10(int) Constant 5 |
| 36: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(Round) 37 18 34 38 |
| 33: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(Cosh) 32 27 34 15 15 36 32 16 15 |
| 42: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 43 19 34 15 15 33 18 37 |
| 45: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(Sqrt) |
| 46: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 47 8 34 15 15 33 18 23 |
| 49: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 50 24 34 15 15 33 18 16 |
| 52: TypeFunction 7(float) 20(ptr) 21(ptr) |
| 53: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(Floor) 16 8 19 8 |
| 58: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(Cosh) 57 53 34 15 15 36 57 16 15 |
| 62: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 63 19 34 15 15 58 18 37 |
| 65: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 47 8 34 15 15 58 18 23 |
| 67: TypeVector 7(float) 3 |
| 68: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(FSign) 8 16 |
| 69: TypePointer Function 67(fvec3) |
| 70: TypeFunction 67(fvec3) 69(ptr) 69(ptr) |
| 71: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(Floor) 16 68 68 68 |
| 76: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(Cosh) 75 71 34 15 15 36 75 16 15 |
| 80: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 81 68 34 15 15 76 18 37 |
| 83: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 84 68 34 15 15 76 18 23 |
| 86: TypeFunction 17(fvec4) 25(ptr) |
| 87: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(Floor) 16 19 24 |
| 91: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(Cosh) 90 87 34 15 15 36 90 16 15 |
| 95: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 96 24 34 15 15 91 18 37 |
| 101: 10(int) Constant 62 |
| 100: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 75 8 34 101 15 33 18 |
| 103: 7(float) Constant 1065353216 |
| 107: 10(int) Constant 63 |
| 105: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 106 19 34 107 15 33 18 |
| 116: 7(float) Constant 1056964608 |
| 126: 7(float) Constant 3212836864 |
| 127: TypeBool |
| 129: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 128 13 23 15 |
| 133: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 128 13 23 15 |
| 135: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 128 13 23 15 |
| 142: 10(int) Constant 68 |
| 140: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 141 8 34 142 15 33 18 |
| 144: TypeImage 7(float) 2D array sampled format:Unknown |
| 148: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(Unknown) |
| 145: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 146 15 34 142 15 36 147 148 16 |
| 149: TypePointer UniformConstant 144 |
| 150(textureShadowMap): 149(ptr) Variable UniformConstant |
| 153: 10(int) Constant 8 |
| 151: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 152 145 34 142 15 36 152 150(textureShadowMap) 153 |
| 155: TypeSampler |
| 156: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 157 37 34 142 15 36 158 148 16 |
| 159: TypePointer UniformConstant 155 |
| 160(samplerShadowMap): 159(ptr) Variable UniformConstant |
| 161: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 162 156 34 142 15 36 162 160(samplerShadowMap) 153 |
| 164: TypeSampledImage 144 |
| 165: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 166 15 34 142 15 36 167 148 16 |
| 181: 7(float) Constant 0 |
| 182: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 128 13 23 15 |
| 187: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 128 13 23 15 |
| 189: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 128 13 23 15 |
| 193: 7(float) Constant 1048576000 |
| 198: TypeVector 10(int) 3 |
| 199: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(FSign) 11 16 |
| 200: TypePointer Function 198(ivec3) |
| 204: 10(int) Constant 80 |
| 202: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 203 199 34 204 15 58 18 |
| 208: TypeInt 32 1 |
| 210: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 209 13 18 15 |
| 211: TypeVector 208(int) 2 |
| 212: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(FSign) 210 23 |
| 213: TypePointer Function 211(ivec2) |
| 215: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 216 212 34 204 15 58 18 |
| 218: TypePointer Function 10(int) |
| 222: TypePointer Function 208(int) |
| 229: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 230 210 34 204 15 58 18 |
| 236: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 237 210 34 204 15 58 18 |
| 245: 10(int) Constant 81 |
| 243: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 244 8 34 245 15 58 18 |
| 247: 7(float) Constant 1069547520 |
| 251: 10(int) Constant 82 |
| 249: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 250 8 34 251 15 58 18 |
| 262: 10(int) Constant 83 |
| 260: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 261 8 34 262 15 58 18 |
| 273: 10(int) Constant 85 |
| 271: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 272 8 34 273 15 58 18 |
| 278: 10(int) Constant 86 |
| 276: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 277 210 34 278 15 58 18 |
| 280: 208(int) Constant 0 |
| 284: 10(int) Constant 87 |
| 282: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 283 210 34 284 15 58 18 |
| 286: 208(int) Constant 1 |
| 290: 10(int) Constant 89 |
| 288: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 289 210 34 290 15 58 18 |
| 301: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 128 13 23 15 |
| 306: 10(int) Constant 91 |
| 304: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 305 210 34 306 15 58 18 |
| 317: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 128 13 23 15 |
| 352: 10(int) Constant 102 |
| 350: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 351 210 34 352 15 76 18 |
| 360: 208(int) Constant 3 |
| 361: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 128 13 23 15 |
| 366: 10(int) Constant 104 |
| 364: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 365 19 34 366 15 76 18 |
| 373: TypeMatrix 17(fvec4) 4 |
| 375: 127(bool) ConstantTrue |
| 374: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108 19 18 375 |
| 376(Light): TypeStruct 17(fvec4) 17(fvec4) 17(fvec4) 373 |
| 379: 10(int) Constant 46 |
| 380: 10(int) Constant 14 |
| 377: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 378 19 34 379 380 15 15 16 |
| 381: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 378 19 34 379 380 15 15 16 |
| 382: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 378 19 34 379 380 15 15 16 |
| 385: 10(int) Constant 47 |
| 386: 10(int) Constant 21 |
| 383: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 384 374 34 385 386 15 15 16 |
| 387: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 388 37 34 366 15 36 388 15 16 377 381 382 383 |
| 389: TypeArray 376(Light) 16 |
| 390: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 387 16 |
| 391(UBO): TypeStruct 17(fvec4) 389 208(int) 208(int) |
| 392: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 378 19 34 379 380 15 15 16 |
| 395: 10(int) Constant 53 |
| 393: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 394 390 34 395 380 15 15 16 |
| 398: 10(int) Constant 55 |
| 399: 10(int) Constant 24 |
| 396: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 397 210 34 398 399 15 15 16 |
| 400: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 397 210 34 398 399 15 15 16 |
| 401: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 402 37 34 366 15 36 402 15 16 392 393 396 400 |
| 403(ubo): TypeStruct 391(UBO) |
| 406: 10(int) Constant 58 |
| 407: 10(int) Constant 37 |
| 404: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 405 401 34 406 407 15 15 16 |
| 408: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 405 37 34 366 15 36 405 15 16 404 |
| 409: TypePointer Uniform 403(ubo) |
| 410: 409(ptr) Variable Uniform |
| 411: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 35 408 34 366 15 36 35 410 153 |
| 413: TypePointer Uniform 373 |
| 419: 10(int) Constant 108 |
| 418: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 272 8 34 419 15 76 18 |
| 438: 10(int) Constant 121 |
| 437: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 84 68 34 438 15 91 18 |
| 440: TypeImage 7(float) 2D sampled format:Unknown |
| 441: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 146 15 34 438 15 36 147 148 16 |
| 442: TypePointer UniformConstant 440 |
| 443(textureposition): 442(ptr) Variable UniformConstant |
| 444: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 445 441 34 438 15 36 445 443(textureposition) 153 |
| 447: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 157 37 34 438 15 36 158 148 16 |
| 448(samplerposition): 159(ptr) Variable UniformConstant |
| 449: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 450 447 34 438 15 36 450 448(samplerposition) 153 |
| 452: TypeSampledImage 440 |
| 453: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 166 15 34 438 15 36 167 148 16 |
| 461: 10(int) Constant 122 |
| 459: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 460 68 34 461 15 91 18 |
| 463(textureNormal): 442(ptr) Variable UniformConstant |
| 464: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 465 441 34 461 15 36 465 463(textureNormal) 153 |
| 467: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 157 37 34 461 15 36 158 148 16 |
| 468(samplerNormal): 159(ptr) Variable UniformConstant |
| 469: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 470 467 34 461 15 36 470 468(samplerNormal) 153 |
| 479: 10(int) Constant 123 |
| 477: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 478 19 34 479 15 91 18 |
| 481(textureAlbedo): 442(ptr) Variable UniformConstant |
| 482: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 483 441 34 479 15 36 483 481(textureAlbedo) 153 |
| 485: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 157 37 34 479 15 36 158 148 16 |
| 486(samplerAlbedo): 159(ptr) Variable UniformConstant |
| 487: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 488 485 34 479 15 36 488 486(samplerAlbedo) 153 |
| 493: TypePointer Uniform 208(int) |
| 496: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 128 13 23 15 |
| 510: 10(int) Constant 131 |
| 509: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 81 68 34 510 15 91 18 |
| 512: 67(fvec3) ConstantComposite 103 103 103 |
| 537: 7(float) Constant 1036831949 |
| 542: 10(int) Constant 152 |
| 540: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 541 68 34 542 15 91 18 |
| 548: 10(int) Constant 154 |
| 547: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 351 210 34 548 15 91 18 |
| 556: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 128 13 23 15 |
| 561: 10(int) Constant 157 |
| 559: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 560 68 34 561 15 91 18 |
| 564: TypePointer Uniform 17(fvec4) |
| 572: 10(int) Constant 159 |
| 571: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 141 8 34 572 15 91 18 |
| 581: 10(int) Constant 163 |
| 579: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 580 68 34 581 15 91 18 |
| 593: 10(int) Constant 166 |
| 591: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 592 8 34 593 15 91 18 |
| 595: 7(float) Constant 1064781546 |
| 599: 10(int) Constant 167 |
| 597: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 598 8 34 599 15 91 18 |
| 601: 7(float) Constant 1063781322 |
| 605: 10(int) Constant 168 |
| 603: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 604 8 34 605 15 91 18 |
| 607: 7(float) Constant 1120403456 |
| 611: 10(int) Constant 171 |
| 609: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 610 68 34 611 15 91 18 |
| 626: 10(int) Constant 174 |
| 624: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 625 8 34 626 15 91 18 |
| 634: 10(int) Constant 175 |
| 632: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 633 8 34 634 15 91 18 |
| 643: 10(int) Constant 176 |
| 641: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 642 8 34 643 15 91 18 |
| 651: 10(int) Constant 179 |
| 649: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 650 8 34 651 15 91 18 |
| 660: 10(int) Constant 180 |
| 658: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 659 68 34 660 15 91 18 |
| 667: 10(int) Constant 183 |
| 665: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 666 68 34 667 15 91 18 |
| 676: 10(int) Constant 184 |
| 674: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 675 8 34 676 15 91 18 |
| 685: 10(int) Constant 185 |
| 683: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 684 68 34 685 15 91 18 |
| 688: 7(float) Constant 1098907648 |
| 693: 7(float) Constant 1075838976 |
| 704: 208(int) Constant 2 |
| 718: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 128 13 23 15 |
| 735: TypePointer Input 22(fvec2) |
| 736(inUV): 735(ptr) Variable Input |
| 738: TypePointer Output 17(fvec4) |
| 739(@entryPointOutput): 738(ptr) Variable Output |
| 5(main): 3 Function None 4 |
| 6: Label |
| 734(inUV): 25(ptr) Variable Function |
| 740(param): 25(ptr) Variable Function |
| 737: 22(fvec2) Load 736(inUV) |
| Store 734(inUV) 737 |
| 741: 22(fvec2) Load 734(inUV) |
| Store 740(param) 741 |
| 742: 17(fvec4) FunctionCall 89(@main(vf2;) 740(param) |
| Store 739(@entryPointOutput) 742 |
| Return |
| FunctionEnd |
| 31(textureProj(vf4;f1;vf2;): 7(float) Function None 26 |
| 28(P): 20(ptr) FunctionParameter |
| 29(layer): 21(ptr) FunctionParameter |
| 30(offset): 25(ptr) FunctionParameter |
| 39: Label |
| 99(shadow): 21(ptr) Variable Function |
| 104(shadowCoord): 20(ptr) Variable Function |
| 139(dist): 21(ptr) Variable Function |
| 40: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(Acosh) 33 |
| 41: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103 34 15 15 15 15 |
| 44: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 42 28(P) 45 |
| 48: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 46 29(layer) 45 |
| 51: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 49 30(offset) 45 |
| 98: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101 33 31(textureProj(vf4;f1;vf2;) |
| 102: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 100 99(shadow) 45 |
| Store 99(shadow) 103 |
| 108: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 105 104(shadowCoord) 45 |
| 109: 17(fvec4) Load 28(P) |
| 110: 21(ptr) AccessChain 28(P) 16 |
| 111: 7(float) Load 110 |
| 112: 17(fvec4) CompositeConstruct 111 111 111 111 |
| 113: 17(fvec4) FDiv 109 112 |
| Store 104(shadowCoord) 113 |
| 114: 17(fvec4) Load 104(shadowCoord) |
| 115: 22(fvec2) VectorShuffle 114 114 0 1 |
| 117: 22(fvec2) VectorTimesScalar 115 116 |
| 118: 22(fvec2) CompositeConstruct 116 116 |
| 119: 22(fvec2) FAdd 117 118 |
| 120: 21(ptr) AccessChain 104(shadowCoord) 15 |
| 121: 7(float) CompositeExtract 119 0 |
| Store 120 121 |
| 122: 21(ptr) AccessChain 104(shadowCoord) 37 |
| 123: 7(float) CompositeExtract 119 1 |
| Store 122 123 |
| 124: 21(ptr) AccessChain 104(shadowCoord) 23 |
| 125: 7(float) Load 124 |
| 130: 127(bool) FOrdGreaterThan 125 126 |
| 131: 21(ptr) AccessChain 104(shadowCoord) 23 |
| 132: 7(float) Load 131 |
| 134: 127(bool) FOrdLessThan 132 103 |
| 136: 127(bool) LogicalAnd 130 134 |
| SelectionMerge 138 None |
| BranchConditional 136 137 138 |
| 137: Label |
| 143: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 140 139(dist) 45 |
| 154: 144 Load 150(textureShadowMap) |
| 163: 155 Load 160(samplerShadowMap) |
| 168: 164 SampledImage 154 163 |
| 169: 17(fvec4) Load 104(shadowCoord) |
| 170: 22(fvec2) VectorShuffle 169 169 0 1 |
| 171: 22(fvec2) Load 30(offset) |
| 172: 22(fvec2) FAdd 170 171 |
| 173: 7(float) Load 29(layer) |
| 174: 7(float) CompositeExtract 172 0 |
| 175: 7(float) CompositeExtract 172 1 |
| 176: 67(fvec3) CompositeConstruct 174 175 173 |
| 177: 17(fvec4) ImageSampleImplicitLod 168 176 |
| 178: 7(float) CompositeExtract 177 0 |
| Store 139(dist) 178 |
| 179: 21(ptr) AccessChain 104(shadowCoord) 16 |
| 180: 7(float) Load 179 |
| 183: 127(bool) FOrdGreaterThan 180 181 |
| 184: 7(float) Load 139(dist) |
| 185: 21(ptr) AccessChain 104(shadowCoord) 23 |
| 186: 7(float) Load 185 |
| 188: 127(bool) FOrdLessThan 184 186 |
| 190: 127(bool) LogicalAnd 183 188 |
| SelectionMerge 192 None |
| BranchConditional 190 191 192 |
| 191: Label |
| Store 99(shadow) 193 |
| Branch 192 |
| 192: Label |
| Branch 138 |
| 138: Label |
| 194: 7(float) Load 99(shadow) |
| ReturnValue 194 |
| FunctionEnd |
| 56(filterPCF(vf4;f1;): 7(float) Function None 52 |
| 54(sc): 20(ptr) FunctionParameter |
| 55(layer): 21(ptr) FunctionParameter |
| 59: Label |
| 201(sizeQueryTemp): 200(ptr) Variable Function |
| 214(texDim): 213(ptr) Variable Function |
| 228(elements): 222(ptr) Variable Function |
| 235(levels): 222(ptr) Variable Function |
| 242(scale): 21(ptr) Variable Function |
| 248(dx): 21(ptr) Variable Function |
| 259(dy): 21(ptr) Variable Function |
| 270(shadowFactor): 21(ptr) Variable Function |
| 275(count): 222(ptr) Variable Function |
| 281(range): 222(ptr) Variable Function |
| 287(x): 222(ptr) Variable Function |
| 303(y): 222(ptr) Variable Function |
| 328(param): 20(ptr) Variable Function |
| 330(param): 21(ptr) Variable Function |
| 332(param): 25(ptr) Variable Function |
| 60: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(Acosh) 58 |
| 61: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103 34 15 15 15 15 |
| 64: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 62 54(sc) 45 |
| 66: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 65 55(layer) 45 |
| 197: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101 58 56(filterPCF(vf4;f1;) |
| 205: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 202 201(sizeQueryTemp) 45 |
| 206: 144 Load 150(textureShadowMap) |
| 207: 198(ivec3) ImageQuerySizeLod 206 15 |
| Store 201(sizeQueryTemp) 207 |
| 217: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 215 214(texDim) 45 |
| 219: 218(ptr) AccessChain 201(sizeQueryTemp) 15 |
| 220: 10(int) Load 219 |
| 221: 208(int) Bitcast 220 |
| 223: 222(ptr) AccessChain 214(texDim) 15 |
| Store 223 221 |
| 224: 218(ptr) AccessChain 201(sizeQueryTemp) 37 |
| 225: 10(int) Load 224 |
| 226: 208(int) Bitcast 225 |
| 227: 222(ptr) AccessChain 214(texDim) 37 |
| Store 227 226 |
| 231: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 229 228(elements) 45 |
| 232: 218(ptr) AccessChain 201(sizeQueryTemp) 23 |
| 233: 10(int) Load 232 |
| 234: 208(int) Bitcast 233 |
| Store 228(elements) 234 |
| 238: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 236 235(levels) 45 |
| 239: 144 Load 150(textureShadowMap) |
| 240: 10(int) ImageQueryLevels 239 |
| 241: 208(int) Bitcast 240 |
| Store 235(levels) 241 |
| 246: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 243 242(scale) 45 |
| Store 242(scale) 247 |
| 252: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 249 248(dx) 45 |
| 253: 7(float) Load 242(scale) |
| 254: 7(float) FMul 253 103 |
| 255: 222(ptr) AccessChain 214(texDim) 15 |
| 256: 208(int) Load 255 |
| 257: 7(float) ConvertSToF 256 |
| 258: 7(float) FDiv 254 257 |
| Store 248(dx) 258 |
| 263: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 260 259(dy) 45 |
| 264: 7(float) Load 242(scale) |
| 265: 7(float) FMul 264 103 |
| 266: 222(ptr) AccessChain 214(texDim) 37 |
| 267: 208(int) Load 266 |
| 268: 7(float) ConvertSToF 267 |
| 269: 7(float) FDiv 265 268 |
| Store 259(dy) 269 |
| 274: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 271 270(shadowFactor) 45 |
| Store 270(shadowFactor) 181 |
| 279: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 276 275(count) 45 |
| Store 275(count) 280 |
| 285: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 282 281(range) 45 |
| Store 281(range) 286 |
| 291: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 288 287(x) 45 |
| 292: 208(int) Load 281(range) |
| 293: 208(int) SNegate 292 |
| Store 287(x) 293 |
| Branch 294 |
| 294: Label |
| LoopMerge 296 297 None |
| Branch 298 |
| 298: Label |
| 299: 208(int) Load 287(x) |
| 300: 208(int) Load 281(range) |
| 302: 127(bool) SLessThanEqual 299 300 |
| BranchConditional 302 295 296 |
| 295: Label |
| 307: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 304 303(y) 45 |
| 308: 208(int) Load 281(range) |
| 309: 208(int) SNegate 308 |
| Store 303(y) 309 |
| Branch 310 |
| 310: Label |
| LoopMerge 312 313 None |
| Branch 314 |
| 314: Label |
| 315: 208(int) Load 303(y) |
| 316: 208(int) Load 281(range) |
| 318: 127(bool) SLessThanEqual 315 316 |
| BranchConditional 318 311 312 |
| 311: Label |
| 319: 7(float) Load 248(dx) |
| 320: 208(int) Load 287(x) |
| 321: 7(float) ConvertSToF 320 |
| 322: 7(float) FMul 319 321 |
| 323: 7(float) Load 259(dy) |
| 324: 208(int) Load 303(y) |
| 325: 7(float) ConvertSToF 324 |
| 326: 7(float) FMul 323 325 |
| 327: 22(fvec2) CompositeConstruct 322 326 |
| 329: 17(fvec4) Load 54(sc) |
| Store 328(param) 329 |
| 331: 7(float) Load 55(layer) |
| Store 330(param) 331 |
| Store 332(param) 327 |
| 333: 7(float) FunctionCall 31(textureProj(vf4;f1;vf2;) 328(param) 330(param) 332(param) |
| 334: 7(float) Load 270(shadowFactor) |
| 335: 7(float) FAdd 334 333 |
| Store 270(shadowFactor) 335 |
| 336: 208(int) Load 275(count) |
| 337: 208(int) IAdd 336 286 |
| Store 275(count) 337 |
| Branch 313 |
| 313: Label |
| 338: 208(int) Load 303(y) |
| 339: 208(int) IAdd 338 286 |
| Store 303(y) 339 |
| Branch 310 |
| 312: Label |
| Branch 297 |
| 297: Label |
| 340: 208(int) Load 287(x) |
| 341: 208(int) IAdd 340 286 |
| Store 287(x) 341 |
| Branch 294 |
| 296: Label |
| 342: 7(float) Load 270(shadowFactor) |
| 343: 208(int) Load 275(count) |
| 344: 7(float) ConvertSToF 343 |
| 345: 7(float) FDiv 342 344 |
| ReturnValue 345 |
| FunctionEnd |
| 74(shadow(vf3;vf3;): 67(fvec3) Function None 70 |
| 72(fragcolor): 69(ptr) FunctionParameter |
| 73(fragPos): 69(ptr) FunctionParameter |
| 77: Label |
| 349(i): 222(ptr) Variable Function |
| 363(shadowClip): 20(ptr) Variable Function |
| 417(shadowFactor): 21(ptr) Variable Function |
| 423(param): 20(ptr) Variable Function |
| 425(param): 21(ptr) Variable Function |
| 78: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(Acosh) 76 |
| 79: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103 34 15 15 15 15 |
| 82: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 80 72(fragcolor) 45 |
| 85: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 83 73(fragPos) 45 |
| 348: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101 76 74(shadow(vf3;vf3;) |
| 353: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 350 349(i) 45 |
| Store 349(i) 280 |
| Branch 354 |
| 354: Label |
| LoopMerge 356 357 None |
| Branch 358 |
| 358: Label |
| 359: 208(int) Load 349(i) |
| 362: 127(bool) SLessThan 359 360 |
| BranchConditional 362 355 356 |
| 355: Label |
| 367: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 364 363(shadowClip) 45 |
| 368: 67(fvec3) Load 73(fragPos) |
| 369: 7(float) CompositeExtract 368 0 |
| 370: 7(float) CompositeExtract 368 1 |
| 371: 7(float) CompositeExtract 368 2 |
| 372: 17(fvec4) CompositeConstruct 369 370 371 103 |
| 412: 208(int) Load 349(i) |
| 414: 413(ptr) AccessChain 410 280 286 412 360 |
| 415: 373 Load 414 |
| 416: 17(fvec4) VectorTimesMatrix 372 415 |
| Store 363(shadowClip) 416 |
| 420: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 418 417(shadowFactor) 45 |
| 421: 208(int) Load 349(i) |
| 422: 7(float) ConvertSToF 421 |
| 424: 17(fvec4) Load 363(shadowClip) |
| Store 423(param) 424 |
| Store 425(param) 422 |
| 426: 7(float) FunctionCall 56(filterPCF(vf4;f1;) 423(param) 425(param) |
| Store 417(shadowFactor) 426 |
| 427: 7(float) Load 417(shadowFactor) |
| 428: 67(fvec3) Load 72(fragcolor) |
| 429: 67(fvec3) VectorTimesScalar 428 427 |
| Store 72(fragcolor) 429 |
| Branch 357 |
| 357: Label |
| 430: 208(int) Load 349(i) |
| 431: 208(int) IAdd 430 286 |
| Store 349(i) 431 |
| Branch 354 |
| 356: Label |
| 432: 67(fvec3) Load 72(fragcolor) |
| ReturnValue 432 |
| FunctionEnd |
| 89(@main(vf2;): 17(fvec4) Function None 86 |
| 88(inUV): 25(ptr) FunctionParameter |
| 92: Label |
| 436(fragPos): 69(ptr) Variable Function |
| 458(normal): 69(ptr) Variable Function |
| 476(albedo): 20(ptr) Variable Function |
| 508(fragcolor): 69(ptr) Variable Function |
| 513(param): 69(ptr) Variable Function |
| 514(param): 69(ptr) Variable Function |
| 539(N): 69(ptr) Variable Function |
| 546(i): 222(ptr) Variable Function |
| 558(L): 69(ptr) Variable Function |
| 570(dist): 21(ptr) Variable Function |
| 578(V): 69(ptr) Variable Function |
| 590(lightCosInnerAngle): 21(ptr) Variable Function |
| 596(lightCosOuterAngle): 21(ptr) Variable Function |
| 602(lightRange): 21(ptr) Variable Function |
| 608(dir): 69(ptr) Variable Function |
| 623(cosDir): 21(ptr) Variable Function |
| 631(spotEffect): 21(ptr) Variable Function |
| 640(heightAttenuation): 21(ptr) Variable Function |
| 648(NdotL): 21(ptr) Variable Function |
| 657(diff): 69(ptr) Variable Function |
| 664(R): 69(ptr) Variable Function |
| 673(NdotR): 21(ptr) Variable Function |
| 682(spec): 69(ptr) Variable Function |
| 722(param): 69(ptr) Variable Function |
| 724(param): 69(ptr) Variable Function |
| 93: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(Acosh) 91 |
| 94: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103 34 15 15 15 15 |
| 97: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 95 88(inUV) 45 |
| 435: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101 91 89(@main(vf2;) |
| 439: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 437 436(fragPos) 45 |
| 446: 440 Load 443(textureposition) |
| 451: 155 Load 448(samplerposition) |
| 454: 452 SampledImage 446 451 |
| 455: 22(fvec2) Load 88(inUV) |
| 456: 17(fvec4) ImageSampleImplicitLod 454 455 |
| 457: 67(fvec3) VectorShuffle 456 456 0 1 2 |
| Store 436(fragPos) 457 |
| 462: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 459 458(normal) 45 |
| 466: 440 Load 463(textureNormal) |
| 471: 155 Load 468(samplerNormal) |
| 472: 452 SampledImage 466 471 |
| 473: 22(fvec2) Load 88(inUV) |
| 474: 17(fvec4) ImageSampleImplicitLod 472 473 |
| 475: 67(fvec3) VectorShuffle 474 474 0 1 2 |
| Store 458(normal) 475 |
| 480: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 477 476(albedo) 45 |
| 484: 440 Load 481(textureAlbedo) |
| 489: 155 Load 486(samplerAlbedo) |
| 490: 452 SampledImage 484 489 |
| 491: 22(fvec2) Load 88(inUV) |
| 492: 17(fvec4) ImageSampleImplicitLod 490 491 |
| Store 476(albedo) 492 |
| 494: 493(ptr) AccessChain 410 280 360 |
| 495: 208(int) Load 494 |
| 497: 127(bool) SGreaterThan 495 280 |
| SelectionMerge 499 None |
| BranchConditional 497 498 499 |
| 498: Label |
| 500: 493(ptr) AccessChain 410 280 360 |
| 501: 208(int) Load 500 |
| SelectionMerge 507 None |
| Switch 501 507 |
| case 1: 502 |
| case 2: 503 |
| case 3: 504 |
| case 4: 505 |
| case 5: 506 |
| 502: Label |
| 511: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 509 508(fragcolor) 45 |
| Store 513(param) 512 |
| 515: 67(fvec3) Load 436(fragPos) |
| Store 514(param) 515 |
| 516: 67(fvec3) FunctionCall 74(shadow(vf3;vf3;) 513(param) 514(param) |
| Store 508(fragcolor) 516 |
| Branch 507 |
| 503: Label |
| 518: 67(fvec3) Load 436(fragPos) |
| Store 508(fragcolor) 518 |
| Branch 507 |
| 504: Label |
| 520: 67(fvec3) Load 458(normal) |
| Store 508(fragcolor) 520 |
| Branch 507 |
| 505: Label |
| 522: 17(fvec4) Load 476(albedo) |
| 523: 67(fvec3) VectorShuffle 522 522 0 1 2 |
| Store 508(fragcolor) 523 |
| Branch 507 |
| 506: Label |
| 525: 17(fvec4) Load 476(albedo) |
| 526: 67(fvec3) VectorShuffle 525 525 3 3 3 |
| Store 508(fragcolor) 526 |
| Branch 507 |
| 507: Label |
| 529: 67(fvec3) Load 508(fragcolor) |
| 530: 7(float) CompositeExtract 529 0 |
| 531: 7(float) CompositeExtract 529 1 |
| 532: 7(float) CompositeExtract 529 2 |
| 533: 17(fvec4) CompositeConstruct 530 531 532 103 |
| ReturnValue 533 |
| 499: Label |
| 535: 17(fvec4) Load 476(albedo) |
| 536: 67(fvec3) VectorShuffle 535 535 0 1 2 |
| 538: 67(fvec3) VectorTimesScalar 536 537 |
| Store 508(fragcolor) 538 |
| 543: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 540 539(N) 45 |
| 544: 67(fvec3) Load 458(normal) |
| 545: 67(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 544 |
| Store 539(N) 545 |
| 549: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 547 546(i) 45 |
| Store 546(i) 280 |
| Branch 550 |
| 550: Label |
| LoopMerge 552 553 None |
| Branch 554 |
| 554: Label |
| 555: 208(int) Load 546(i) |
| 557: 127(bool) SLessThan 555 360 |
| BranchConditional 557 551 552 |
| 551: Label |
| 562: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 559 558(L) 45 |
| 563: 208(int) Load 546(i) |
| 565: 564(ptr) AccessChain 410 280 286 563 280 |
| 566: 17(fvec4) Load 565 |
| 567: 67(fvec3) VectorShuffle 566 566 0 1 2 |
| 568: 67(fvec3) Load 436(fragPos) |
| 569: 67(fvec3) FSub 567 568 |
| Store 558(L) 569 |
| 573: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 571 570(dist) 45 |
| 574: 67(fvec3) Load 558(L) |
| 575: 7(float) ExtInst 2(GLSL.std.450) 66(Length) 574 |
| Store 570(dist) 575 |
| 576: 67(fvec3) Load 558(L) |
| 577: 67(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 576 |
| Store 558(L) 577 |
| 582: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 579 578(V) 45 |
| 583: 564(ptr) AccessChain 410 280 280 |
| 584: 17(fvec4) Load 583 |
| 585: 67(fvec3) VectorShuffle 584 584 0 1 2 |
| 586: 67(fvec3) Load 436(fragPos) |
| 587: 67(fvec3) FSub 585 586 |
| Store 578(V) 587 |
| 588: 67(fvec3) Load 578(V) |
| 589: 67(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 588 |
| Store 578(V) 589 |
| 594: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 591 590(lightCosInnerAngle) 45 |
| Store 590(lightCosInnerAngle) 595 |
| 600: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 597 596(lightCosOuterAngle) 45 |
| Store 596(lightCosOuterAngle) 601 |
| 606: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 603 602(lightRange) 45 |
| Store 602(lightRange) 607 |
| 612: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 609 608(dir) 45 |
| 613: 208(int) Load 546(i) |
| 614: 564(ptr) AccessChain 410 280 286 613 280 |
| 615: 17(fvec4) Load 614 |
| 616: 67(fvec3) VectorShuffle 615 615 0 1 2 |
| 617: 208(int) Load 546(i) |
| 618: 564(ptr) AccessChain 410 280 286 617 286 |
| 619: 17(fvec4) Load 618 |
| 620: 67(fvec3) VectorShuffle 619 619 0 1 2 |
| 621: 67(fvec3) FSub 616 620 |
| 622: 67(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 621 |
| Store 608(dir) 622 |
| 627: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 624 623(cosDir) 45 |
| 628: 67(fvec3) Load 558(L) |
| 629: 67(fvec3) Load 608(dir) |
| 630: 7(float) Dot 628 629 |
| Store 623(cosDir) 630 |
| 635: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 632 631(spotEffect) 45 |
| 636: 7(float) Load 596(lightCosOuterAngle) |
| 637: 7(float) Load 590(lightCosInnerAngle) |
| 638: 7(float) Load 623(cosDir) |
| 639: 7(float) ExtInst 2(GLSL.std.450) 49(SmoothStep) 636 637 638 |
| Store 631(spotEffect) 639 |
| 644: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 641 640(heightAttenuation) 45 |
| 645: 7(float) Load 602(lightRange) |
| 646: 7(float) Load 570(dist) |
| 647: 7(float) ExtInst 2(GLSL.std.450) 49(SmoothStep) 645 181 646 |
| Store 640(heightAttenuation) 647 |
| 652: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 649 648(NdotL) 45 |
| 653: 67(fvec3) Load 539(N) |
| 654: 67(fvec3) Load 558(L) |
| 655: 7(float) Dot 653 654 |
| 656: 7(float) ExtInst 2(GLSL.std.450) 40(FMax) 181 655 |
| Store 648(NdotL) 656 |
| 661: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 658 657(diff) 45 |
| 662: 7(float) Load 648(NdotL) |
| 663: 67(fvec3) CompositeConstruct 662 662 662 |
| Store 657(diff) 663 |
| 668: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 665 664(R) 45 |
| 669: 67(fvec3) Load 558(L) |
| 670: 67(fvec3) FNegate 669 |
| 671: 67(fvec3) Load 539(N) |
| 672: 67(fvec3) ExtInst 2(GLSL.std.450) 71(Reflect) 670 671 |
| Store 664(R) 672 |
| 677: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 674 673(NdotR) 45 |
| 678: 67(fvec3) Load 664(R) |
| 679: 67(fvec3) Load 578(V) |
| 680: 7(float) Dot 678 679 |
| 681: 7(float) ExtInst 2(GLSL.std.450) 40(FMax) 181 680 |
| Store 673(NdotR) 681 |
| 686: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 683 682(spec) 45 |
| 687: 7(float) Load 673(NdotR) |
| 689: 7(float) ExtInst 2(GLSL.std.450) 26(Pow) 687 688 |
| 690: 21(ptr) AccessChain 476(albedo) 16 |
| 691: 7(float) Load 690 |
| 692: 7(float) FMul 689 691 |
| 694: 7(float) FMul 692 693 |
| 695: 67(fvec3) CompositeConstruct 694 694 694 |
| Store 682(spec) 695 |
| 696: 67(fvec3) Load 657(diff) |
| 697: 67(fvec3) Load 682(spec) |
| 698: 67(fvec3) FAdd 696 697 |
| 699: 7(float) Load 631(spotEffect) |
| 700: 67(fvec3) VectorTimesScalar 698 699 |
| 701: 7(float) Load 640(heightAttenuation) |
| 702: 67(fvec3) VectorTimesScalar 700 701 |
| 703: 208(int) Load 546(i) |
| 705: 564(ptr) AccessChain 410 280 286 703 704 |
| 706: 17(fvec4) Load 705 |
| 707: 67(fvec3) VectorShuffle 706 706 0 1 2 |
| 708: 67(fvec3) FMul 702 707 |
| 709: 17(fvec4) Load 476(albedo) |
| 710: 67(fvec3) VectorShuffle 709 709 0 1 2 |
| 711: 67(fvec3) FMul 708 710 |
| 712: 67(fvec3) Load 508(fragcolor) |
| 713: 67(fvec3) FAdd 712 711 |
| Store 508(fragcolor) 713 |
| Branch 553 |
| 553: Label |
| 714: 208(int) Load 546(i) |
| 715: 208(int) IAdd 714 286 |
| Store 546(i) 715 |
| Branch 550 |
| 552: Label |
| 716: 493(ptr) AccessChain 410 280 704 |
| 717: 208(int) Load 716 |
| 719: 127(bool) SGreaterThan 717 280 |
| SelectionMerge 721 None |
| BranchConditional 719 720 721 |
| 720: Label |
| 723: 67(fvec3) Load 508(fragcolor) |
| Store 722(param) 723 |
| 725: 67(fvec3) Load 436(fragPos) |
| Store 724(param) 725 |
| 726: 67(fvec3) FunctionCall 74(shadow(vf3;vf3;) 722(param) 724(param) |
| Store 508(fragcolor) 726 |
| Branch 721 |
| 721: Label |
| 727: 67(fvec3) Load 508(fragcolor) |
| 728: 7(float) CompositeExtract 727 0 |
| 729: 7(float) CompositeExtract 727 1 |
| 730: 7(float) CompositeExtract 727 2 |
| 731: 17(fvec4) CompositeConstruct 728 729 730 103 |
| ReturnValue 731 |
| FunctionEnd |