spv.debuginfo.hlsl.frag // Module Version 10000 // Generated by (magic number): 8000b // Id's are bound by 903 Capability Shader Capability ImageQuery Extension "SPV_KHR_non_semantic_info" 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" 3: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 EntryPoint Fragment 6 "main" 896 899 ExecutionMode 6 OriginUpperLeft 2: String "" 9: String "float" 12: String "uint" 38: String "textureProj" 41: String "// OpModuleProcessed auto-map-locations // OpModuleProcessed auto-map-bindings // OpModuleProcessed entry-point main // OpModuleProcessed client vulkan100 // OpModuleProcessed target-env vulkan1.0 // OpModuleProcessed keep-uncalled // OpModuleProcessed hlsl-offsets #line 1 " 47: String "P" 53: String "layer" 56: String "offset" 64: String "filterPCF" 68: String "sc" 84: String "shadow" 88: String "fragcolor" 93: String "fragPos" 100: String "@main" 104: String "inUV" 117: String "shadowCoord" 144: String "bool" 155: String "dist" 162: String "type.2d.image" 163: String "@type.2d.image" 169: String "textureShadowMap" 174: String "type.sampler" 175: String "@type.sampler" 180: String "samplerShadowMap" 184: String "type.sampled.image" 185: String "@type.sampled.image" 229: String "sizeQueryTemp" 236: String "int" 244: String "texDim" 260: String "elements" 267: String "levels" 274: String "scale" 281: String "dx" 293: String "dy" 305: String "shadowFactor" 311: String "count" 318: String "range" 325: String "x" 345: String "y" 410: String "i" 428: String "shadowClip" 443: String "color" 449: String "viewMatrix" 453: String "Light" 459: String "lights" 462: String "displayDebugTarget" 467: String "UBO" 470: String "ubo" 523: String "textureposition" 528: String "samplerposition" 538: String "normal" 544: String "textureNormal" 549: String "samplerNormal" 557: String "albedo" 563: String "textureAlbedo" 568: String "samplerAlbedo" 662: String "N" 686: String "L" 712: String "V" 727: String "lightCosInnerAngle" 734: String "lightCosOuterAngle" 741: String "lightRange" 748: String "dir" 764: String "cosDir" 773: String "spotEffect" 783: String "heightAttenuation" 792: String "NdotL" 802: String "diff" 810: String "R" 820: String "NdotR" 830: String "spec" Name 6 "main" Name 36 "textureProj(vf4;f1;vf2;" Name 33 "P" Name 34 "layer" Name 35 "offset" Name 62 "filterPCF(vf4;f1;" Name 60 "sc" Name 61 "layer" Name 82 "shadow(vf3;vf3;" Name 80 "fragcolor" Name 81 "fragPos" Name 98 "@main(vf2;" Name 97 "inUV" Name 109 "shadow" Name 115 "shadowCoord" Name 153 "dist" Name 167 "textureShadowMap" Name 178 "samplerShadowMap" Name 227 "sizeQueryTemp" Name 242 "texDim" Name 258 "elements" Name 265 "levels" Name 272 "scale" Name 279 "dx" Name 291 "dy" Name 303 "shadowFactor" Name 309 "count" Name 316 "range" Name 323 "x" Name 343 "y" Name 376 "param" Name 378 "param" Name 380 "param" Name 408 "i" Name 426 "shadowClip" Name 441 "Light" MemberName 441(Light) 0 "position" MemberName 441(Light) 1 "target" MemberName 441(Light) 2 "color" MemberName 441(Light) 3 "viewMatrix" Name 456 "UBO" MemberName 456(UBO) 0 "viewPos" MemberName 456(UBO) 1 "lights" MemberName 456(UBO) 2 "useShadows" MemberName 456(UBO) 3 "displayDebugTarget" Name 468 "ubo" MemberName 468(ubo) 0 "ubo" Name 476 "" Name 484 "shadowFactor" Name 491 "param" Name 493 "param" Name 512 "fragPos" Name 521 "textureposition" Name 526 "samplerposition" Name 536 "normal" Name 542 "textureNormal" Name 547 "samplerNormal" Name 555 "albedo" Name 561 "textureAlbedo" Name 566 "samplerAlbedo" Name 593 "fragcolor" Name 600 "param" Name 601 "param" Name 660 "N" Name 668 "i" Name 684 "L" Name 699 "dist" Name 710 "V" Name 725 "lightCosInnerAngle" Name 732 "lightCosOuterAngle" Name 739 "lightRange" Name 746 "dir" Name 762 "cosDir" Name 771 "spotEffect" Name 781 "heightAttenuation" Name 790 "NdotL" Name 800 "diff" Name 808 "R" Name 818 "NdotR" Name 828 "spec" Name 875 "param" Name 880 "param" Name 894 "inUV" Name 896 "inUV" Name 899 "@entryPointOutput" Name 900 "param" Decorate 167(textureShadowMap) Binding 5 Decorate 167(textureShadowMap) DescriptorSet 0 Decorate 178(samplerShadowMap) Binding 5 Decorate 178(samplerShadowMap) DescriptorSet 0 MemberDecorate 441(Light) 0 Offset 0 MemberDecorate 441(Light) 1 Offset 16 MemberDecorate 441(Light) 2 Offset 32 MemberDecorate 441(Light) 3 RowMajor MemberDecorate 441(Light) 3 MatrixStride 16 MemberDecorate 441(Light) 3 Offset 48 Decorate 454 ArrayStride 112 MemberDecorate 456(UBO) 0 Offset 0 MemberDecorate 456(UBO) 1 Offset 16 MemberDecorate 456(UBO) 2 Offset 352 MemberDecorate 456(UBO) 3 Offset 356 Decorate 468(ubo) Block MemberDecorate 468(ubo) 0 Offset 0 Decorate 476 Binding 4 Decorate 476 DescriptorSet 0 Decorate 521(textureposition) Binding 1 Decorate 521(textureposition) DescriptorSet 0 Decorate 526(samplerposition) Binding 1 Decorate 526(samplerposition) DescriptorSet 0 Decorate 542(textureNormal) Binding 2 Decorate 542(textureNormal) DescriptorSet 0 Decorate 547(samplerNormal) Binding 2 Decorate 547(samplerNormal) DescriptorSet 0 Decorate 561(textureAlbedo) Binding 3 Decorate 561(textureAlbedo) DescriptorSet 0 Decorate 566(samplerAlbedo) Binding 3 Decorate 566(samplerAlbedo) DescriptorSet 0 Decorate 896(inUV) Location 0 Decorate 899(@entryPointOutput) Location 0 4: TypeVoid 5: TypeFunction 4 8: TypeFloat 32 11: TypeInt 32 0 14: 11(int) Constant 32 15: 11(int) Constant 6 16: 11(int) Constant 0 13: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 12 14 15 16 17: 11(int) Constant 3 10: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 14 17 16 18: TypeVector 8(float) 4 19: 11(int) Constant 4 20: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 19 21: TypePointer Function 18(fvec4) 22: 11(int) Constant 7 23: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 20 22 16 24: TypePointer Function 8(float) 25: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 22 16 26: TypeVector 8(float) 2 27: 11(int) Constant 2 28: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 27 29: TypePointer Function 26(fvec2) 30: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 28 22 16 31: TypeFunction 8(float) 21(ptr) 24(ptr) 29(ptr) 32: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 10 20 10 28 40: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 41 42: 11(int) Constant 61 44: 11(int) Constant 1 45: 11(int) Constant 5 43: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 44 19 40 45 39: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 38 32 40 42 16 43 38 17 42 46: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 47 20 40 42 16 39 19 44 49: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) 52: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 53 10 40 42 16 39 19 27 55: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 56 28 40 42 16 39 19 17 58: TypeFunction 8(float) 21(ptr) 24(ptr) 59: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 10 20 10 66: 11(int) Constant 78 65: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 64 59 40 66 16 43 64 17 66 67: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 68 20 40 66 16 65 19 44 72: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 53 10 40 66 16 65 19 27 74: TypeVector 8(float) 3 75: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 17 76: TypePointer Function 74(fvec3) 77: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 75 22 16 78: TypeFunction 74(fvec3) 76(ptr) 76(ptr) 79: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 75 75 75 86: 11(int) Constant 101 85: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 84 79 40 86 16 43 84 17 86 87: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 88 75 40 86 16 85 19 44 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 93 75 40 86 16 85 19 27 95: TypeFunction 18(fvec4) 29(ptr) 96: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 20 28 102: 11(int) Constant 119 101: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 100 96 40 102 16 43 100 17 102 103: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 104 28 40 102 16 101 19 44 111: 11(int) Constant 62 110: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 84 10 40 111 16 39 19 114: 8(float) Constant 1065353216 118: 11(int) Constant 63 116: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 117 20 40 118 16 39 19 128: 11(int) Constant 64 130: 8(float) Constant 1056964608 140: 11(int) Constant 66 142: 8(float) Constant 3212836864 143: TypeBool 145: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 144 14 27 16 156: 11(int) Constant 68 154: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 155 10 40 156 16 39 19 160: TypeImage 8(float) 2D array sampled format:Unknown 164: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) 161: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 162 16 40 156 16 43 163 164 17 165: TypePointer UniformConstant 160 166: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 161 16 16 167(textureShadowMap): 165(ptr) Variable UniformConstant 170: 11(int) Constant 8 168: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 169 161 40 156 16 43 169 167(textureShadowMap) 170 172: TypeSampler 173: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 174 44 40 156 16 43 175 164 17 176: TypePointer UniformConstant 172 177: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 173 16 16 178(samplerShadowMap): 176(ptr) Variable UniformConstant 179: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 180 173 40 156 16 43 180 178(samplerShadowMap) 170 182: TypeSampledImage 160 183: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 184 16 40 156 16 43 185 164 17 199: 11(int) Constant 69 201: 8(float) Constant 0 210: 8(float) Constant 1048576000 213: 11(int) Constant 71 218: 11(int) Constant 74 223: TypeVector 11(int) 3 224: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 13 17 225: TypePointer Function 223(ivec3) 226: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 224 22 16 230: 11(int) Constant 80 228: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 229 224 40 230 16 65 19 235: TypeInt 32 1 237: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 236 14 19 16 238: TypeVector 235(int) 2 239: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 237 27 240: TypePointer Function 238(ivec2) 241: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 239 22 16 243: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 244 239 40 230 16 65 19 246: TypePointer Function 11(int) 247: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 13 22 16 251: TypePointer Function 235(int) 252: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 237 22 16 259: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 260 237 40 230 16 65 19 266: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 267 237 40 230 16 65 19 275: 11(int) Constant 81 273: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 274 10 40 275 16 65 19 278: 8(float) Constant 1069547520 282: 11(int) Constant 82 280: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 281 10 40 282 16 65 19 294: 11(int) Constant 83 292: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 293 10 40 294 16 65 19 306: 11(int) Constant 85 304: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 305 10 40 306 16 65 19 312: 11(int) Constant 86 310: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 311 237 40 312 16 65 19 315: 235(int) Constant 0 319: 11(int) Constant 87 317: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 318 237 40 319 16 65 19 322: 235(int) Constant 1 326: 11(int) Constant 89 324: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 325 237 40 326 16 65 19 346: 11(int) Constant 91 344: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 345 237 40 346 16 65 19 367: 11(int) Constant 93 386: 11(int) Constant 94 400: 11(int) Constant 98 411: 11(int) Constant 102 409: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 410 237 40 411 16 85 19 424: 235(int) Constant 3 429: 11(int) Constant 104 427: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 428 20 40 429 16 85 19 438: TypeMatrix 18(fvec4) 4 440: 143(bool) ConstantTrue 439: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 20 19 440 441(Light): TypeStruct 18(fvec4) 18(fvec4) 18(fvec4) 438 444: 11(int) Constant 46 445: 11(int) Constant 14 442: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 443 20 40 444 445 16 16 17 446: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 443 20 40 444 445 16 16 17 447: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 443 20 40 444 445 16 16 17 450: 11(int) Constant 47 451: 11(int) Constant 21 448: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 449 439 40 450 451 16 16 17 452: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 453 44 40 429 16 43 453 16 17 442 446 447 448 454: TypeArray 441(Light) 17 455: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 452 17 456(UBO): TypeStruct 18(fvec4) 454 235(int) 235(int) 457: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 443 20 40 444 445 16 16 17 460: 11(int) Constant 53 458: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 459 455 40 460 445 16 16 17 463: 11(int) Constant 55 464: 11(int) Constant 24 461: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 462 237 40 463 464 16 16 17 465: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 462 237 40 463 464 16 16 17 466: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 467 44 40 429 16 43 467 16 17 457 458 461 465 468(ubo): TypeStruct 456(UBO) 471: 11(int) Constant 58 472: 11(int) Constant 37 469: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 470 466 40 471 472 16 16 17 473: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 470 44 40 429 16 43 470 16 17 469 474: TypePointer Uniform 468(ubo) 475: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 473 27 16 476: 474(ptr) Variable Uniform 477: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 2 473 40 429 16 43 2 476 170 479: TypePointer Uniform 438 480: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 439 27 16 486: 11(int) Constant 108 485: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 305 10 40 486 16 85 19 497: 11(int) Constant 113 507: 11(int) Constant 115 514: 11(int) Constant 121 513: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 93 75 40 514 16 101 19 517: TypeImage 8(float) 2D sampled format:Unknown 518: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 162 16 40 514 16 43 163 164 17 519: TypePointer UniformConstant 517 520: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 518 16 16 521(textureposition): 519(ptr) Variable UniformConstant 522: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 523 518 40 514 16 43 523 521(textureposition) 170 525: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 174 44 40 514 16 43 175 164 17 526(samplerposition): 176(ptr) Variable UniformConstant 527: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 528 525 40 514 16 43 528 526(samplerposition) 170 530: TypeSampledImage 517 531: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 184 16 40 514 16 43 185 164 17 539: 11(int) Constant 122 537: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 538 75 40 539 16 101 19 542(textureNormal): 519(ptr) Variable UniformConstant 543: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 544 518 40 539 16 43 544 542(textureNormal) 170 546: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 174 44 40 539 16 43 175 164 17 547(samplerNormal): 176(ptr) Variable UniformConstant 548: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 549 546 40 539 16 43 549 547(samplerNormal) 170 558: 11(int) Constant 123 556: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 557 20 40 558 16 101 19 561(textureAlbedo): 519(ptr) Variable UniformConstant 562: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 563 518 40 558 16 43 563 561(textureAlbedo) 170 565: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 174 44 40 558 16 43 175 164 17 566(samplerAlbedo): 176(ptr) Variable UniformConstant 567: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 568 565 40 558 16 43 568 566(samplerAlbedo) 170 573: TypePointer Uniform 235(int) 574: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 237 27 16 577: 11(int) Constant 128 585: 11(int) Constant 129 595: 11(int) Constant 131 594: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 88 75 40 595 16 101 19 599: 74(fvec3) ConstantComposite 114 114 114 605: 11(int) Constant 132 611: 11(int) Constant 134 613: 11(int) Constant 135 619: 11(int) Constant 137 621: 11(int) Constant 138 627: 11(int) Constant 140 630: 11(int) Constant 141 636: 11(int) Constant 143 639: 11(int) Constant 144 646: 11(int) Constant 146 656: 11(int) Constant 150 658: 8(float) Constant 1036831949 663: 11(int) Constant 152 661: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 662 75 40 663 16 101 19 670: 11(int) Constant 154 669: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 410 237 40 670 16 101 19 687: 11(int) Constant 157 685: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 686 75 40 687 16 101 19 692: TypePointer Uniform 18(fvec4) 693: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 20 27 16 701: 11(int) Constant 159 700: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 155 10 40 701 16 101 19 708: 11(int) Constant 160 713: 11(int) Constant 163 711: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 712 75 40 713 16 101 19 723: 11(int) Constant 164 728: 11(int) Constant 166 726: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 727 10 40 728 16 101 19 731: 8(float) Constant 1064781546 735: 11(int) Constant 167 733: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 734 10 40 735 16 101 19 738: 8(float) Constant 1063781322 742: 11(int) Constant 168 740: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 741 10 40 742 16 101 19 745: 8(float) Constant 1120403456 749: 11(int) Constant 171 747: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 748 75 40 749 16 101 19 765: 11(int) Constant 174 763: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 764 10 40 765 16 101 19 774: 11(int) Constant 175 772: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 773 10 40 774 16 101 19 784: 11(int) Constant 176 782: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 783 10 40 784 16 101 19 793: 11(int) Constant 179 791: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 792 10 40 793 16 101 19 803: 11(int) Constant 180 801: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 802 75 40 803 16 101 19 811: 11(int) Constant 183 809: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 810 75 40 811 16 101 19 821: 11(int) Constant 184 819: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 820 10 40 821 16 101 19 831: 11(int) Constant 185 829: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 830 75 40 831 16 101 19 835: 8(float) Constant 1098907648 840: 8(float) Constant 1075838976 845: 11(int) Constant 187 853: 235(int) Constant 2 870: 11(int) Constant 191 879: 11(int) Constant 193 886: 11(int) Constant 196 895: TypePointer Input 26(fvec2) 896(inUV): 895(ptr) Variable Input 898: TypePointer Output 18(fvec4) 899(@entryPointOutput): 898(ptr) Variable Output 6(main): 4 Function None 5 7: Label 894(inUV): 29(ptr) Variable Function 900(param): 29(ptr) Variable Function 897: 26(fvec2) Load 896(inUV) Store 894(inUV) 897 901: 26(fvec2) Load 894(inUV) Store 900(param) 901 902: 18(fvec4) FunctionCall 98(@main(vf2;) 900(param) Store 899(@entryPointOutput) 902 Return FunctionEnd 36(textureProj(vf4;f1;vf2;): 8(float) Function None 31 33(P): 21(ptr) FunctionParameter 34(layer): 24(ptr) FunctionParameter 35(offset): 29(ptr) FunctionParameter 37: Label 109(shadow): 24(ptr) Variable Function 115(shadowCoord): 21(ptr) Variable Function 153(dist): 24(ptr) Variable Function 50: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 39 51: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 42 42 16 16 48: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 46 33(P) 49 54: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 52 34(layer) 49 57: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 55 35(offset) 49 108: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 39 36(textureProj(vf4;f1;vf2;) 113: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 111 111 16 16 112: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 110 109(shadow) 49 Store 109(shadow) 114 120: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 118 118 16 16 119: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 116 115(shadowCoord) 49 121: 18(fvec4) Load 33(P) 122: 24(ptr) AccessChain 33(P) 17 123: 8(float) Load 122 124: 18(fvec4) CompositeConstruct 123 123 123 123 125: 18(fvec4) FDiv 121 124 Store 115(shadowCoord) 125 127: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 128 128 16 16 126: 18(fvec4) Load 115(shadowCoord) 129: 26(fvec2) VectorShuffle 126 126 0 1 131: 26(fvec2) VectorTimesScalar 129 130 132: 26(fvec2) CompositeConstruct 130 130 133: 26(fvec2) FAdd 131 132 134: 24(ptr) AccessChain 115(shadowCoord) 16 135: 8(float) CompositeExtract 133 0 Store 134 135 136: 24(ptr) AccessChain 115(shadowCoord) 44 137: 8(float) CompositeExtract 133 1 Store 136 137 139: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 140 140 16 16 138: 24(ptr) AccessChain 115(shadowCoord) 27 141: 8(float) Load 138 146: 143(bool) FOrdGreaterThan 141 142 147: 24(ptr) AccessChain 115(shadowCoord) 27 148: 8(float) Load 147 149: 143(bool) FOrdLessThan 148 114 150: 143(bool) LogicalAnd 146 149 SelectionMerge 152 None BranchConditional 150 151 152 151: Label 158: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 39 159: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 156 156 16 16 157: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 154 153(dist) 49 171: 160 Load 167(textureShadowMap) 181: 172 Load 178(samplerShadowMap) 186: 182 SampledImage 171 181 187: 18(fvec4) Load 115(shadowCoord) 188: 26(fvec2) VectorShuffle 187 187 0 1 189: 26(fvec2) Load 35(offset) 190: 26(fvec2) FAdd 188 189 191: 8(float) Load 34(layer) 192: 8(float) CompositeExtract 190 0 193: 8(float) CompositeExtract 190 1 194: 74(fvec3) CompositeConstruct 192 193 191 195: 18(fvec4) ImageSampleImplicitLod 186 194 196: 8(float) CompositeExtract 195 0 Store 153(dist) 196 198: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 199 199 16 16 197: 24(ptr) AccessChain 115(shadowCoord) 17 200: 8(float) Load 197 202: 143(bool) FOrdGreaterThan 200 201 203: 8(float) Load 153(dist) 204: 24(ptr) AccessChain 115(shadowCoord) 27 205: 8(float) Load 204 206: 143(bool) FOrdLessThan 203 205 207: 143(bool) LogicalAnd 202 206 SelectionMerge 209 None BranchConditional 207 208 209 208: Label 211: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 39 212: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 213 213 16 16 Store 109(shadow) 210 Branch 209 209: Label 214: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 39 Branch 152 152: Label 216: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 39 217: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 218 218 16 16 215: 8(float) Load 109(shadow) ReturnValue 215 FunctionEnd 62(filterPCF(vf4;f1;): 8(float) Function None 58 60(sc): 21(ptr) FunctionParameter 61(layer): 24(ptr) FunctionParameter 63: Label 227(sizeQueryTemp): 225(ptr) Variable Function 242(texDim): 240(ptr) Variable Function 258(elements): 251(ptr) Variable Function 265(levels): 251(ptr) Variable Function 272(scale): 24(ptr) Variable Function 279(dx): 24(ptr) Variable Function 291(dy): 24(ptr) Variable Function 303(shadowFactor): 24(ptr) Variable Function 309(count): 251(ptr) Variable Function 316(range): 251(ptr) Variable Function 323(x): 251(ptr) Variable Function 343(y): 251(ptr) Variable Function 376(param): 21(ptr) Variable Function 378(param): 24(ptr) Variable Function 380(param): 29(ptr) Variable Function 70: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 71: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 66 66 16 16 69: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 67 60(sc) 49 73: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 72 61(layer) 49 222: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 65 62(filterPCF(vf4;f1;) 232: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 230 230 16 16 231: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 228 227(sizeQueryTemp) 49 233: 160 Load 167(textureShadowMap) 234: 223(ivec3) ImageQuerySizeLod 233 16 Store 227(sizeQueryTemp) 234 245: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 243 242(texDim) 49 248: 246(ptr) AccessChain 227(sizeQueryTemp) 16 249: 11(int) Load 248 250: 235(int) Bitcast 249 253: 251(ptr) AccessChain 242(texDim) 16 Store 253 250 254: 246(ptr) AccessChain 227(sizeQueryTemp) 44 255: 11(int) Load 254 256: 235(int) Bitcast 255 257: 251(ptr) AccessChain 242(texDim) 44 Store 257 256 261: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 259 258(elements) 49 262: 246(ptr) AccessChain 227(sizeQueryTemp) 27 263: 11(int) Load 262 264: 235(int) Bitcast 263 Store 258(elements) 264 268: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 266 265(levels) 49 269: 160 Load 167(textureShadowMap) 270: 11(int) ImageQueryLevels 269 271: 235(int) Bitcast 270 Store 265(levels) 271 277: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 275 275 16 16 276: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 273 272(scale) 49 Store 272(scale) 278 284: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 282 282 16 16 283: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 280 279(dx) 49 285: 8(float) Load 272(scale) 286: 8(float) FMul 285 114 287: 251(ptr) AccessChain 242(texDim) 16 288: 235(int) Load 287 289: 8(float) ConvertSToF 288 290: 8(float) FDiv 286 289 Store 279(dx) 290 296: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 294 294 16 16 295: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 292 291(dy) 49 297: 8(float) Load 272(scale) 298: 8(float) FMul 297 114 299: 251(ptr) AccessChain 242(texDim) 44 300: 235(int) Load 299 301: 8(float) ConvertSToF 300 302: 8(float) FDiv 298 301 Store 291(dy) 302 308: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 306 306 16 16 307: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 304 303(shadowFactor) 49 Store 303(shadowFactor) 201 314: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 312 312 16 16 313: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 310 309(count) 49 Store 309(count) 315 321: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 319 319 16 16 320: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 317 316(range) 49 Store 316(range) 322 328: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 326 326 16 16 327: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 324 323(x) 49 329: 235(int) Load 316(range) 330: 235(int) SNegate 329 Store 323(x) 330 Branch 331 331: Label 335: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 336: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 326 326 16 16 LoopMerge 333 334 None Branch 337 337: Label 339: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 340: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 326 326 16 16 338: 235(int) Load 323(x) 341: 235(int) Load 316(range) 342: 143(bool) SLessThanEqual 338 341 BranchConditional 342 332 333 332: Label 348: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 349: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 346 346 16 16 347: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 344 343(y) 49 350: 235(int) Load 316(range) 351: 235(int) SNegate 350 Store 343(y) 351 Branch 352 352: Label 356: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 357: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 346 346 16 16 LoopMerge 354 355 None Branch 358 358: Label 360: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 361: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 346 346 16 16 359: 235(int) Load 343(y) 362: 235(int) Load 316(range) 363: 143(bool) SLessThanEqual 359 362 BranchConditional 363 353 354 353: Label 365: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 366: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 367 367 16 16 364: 8(float) Load 279(dx) 368: 235(int) Load 323(x) 369: 8(float) ConvertSToF 368 370: 8(float) FMul 364 369 371: 8(float) Load 291(dy) 372: 235(int) Load 343(y) 373: 8(float) ConvertSToF 372 374: 8(float) FMul 371 373 375: 26(fvec2) CompositeConstruct 370 374 377: 18(fvec4) Load 60(sc) Store 376(param) 377 379: 8(float) Load 61(layer) Store 378(param) 379 Store 380(param) 375 381: 8(float) FunctionCall 36(textureProj(vf4;f1;vf2;) 376(param) 378(param) 380(param) 382: 8(float) Load 303(shadowFactor) 383: 8(float) FAdd 382 381 Store 303(shadowFactor) 383 385: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 386 386 16 16 384: 235(int) Load 309(count) 387: 235(int) IAdd 384 322 Store 309(count) 387 Branch 355 355: Label 389: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 390: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 346 346 16 16 388: 235(int) Load 343(y) 391: 235(int) IAdd 388 322 Store 343(y) 391 Branch 352 354: Label 392: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 Branch 334 334: Label 394: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 395: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 326 326 16 16 393: 235(int) Load 323(x) 396: 235(int) IAdd 393 322 Store 323(x) 396 Branch 331 333: Label 398: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 399: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 400 400 16 16 397: 8(float) Load 303(shadowFactor) 401: 235(int) Load 309(count) 402: 8(float) ConvertSToF 401 403: 8(float) FDiv 397 402 ReturnValue 403 FunctionEnd 82(shadow(vf3;vf3;): 74(fvec3) Function None 78 80(fragcolor): 76(ptr) FunctionParameter 81(fragPos): 76(ptr) FunctionParameter 83: Label 408(i): 251(ptr) Variable Function 426(shadowClip): 21(ptr) Variable Function 484(shadowFactor): 24(ptr) Variable Function 491(param): 21(ptr) Variable Function 493(param): 24(ptr) Variable Function 90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85 91: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 86 86 16 16 89: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 87 80(fragcolor) 49 94: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 92 81(fragPos) 49 407: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 85 82(shadow(vf3;vf3;) 413: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 411 411 16 16 412: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 409 408(i) 49 Store 408(i) 315 Branch 414 414: Label 418: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85 419: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 411 411 16 16 LoopMerge 416 417 None Branch 420 420: Label 422: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85 423: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 411 411 16 16 421: 235(int) Load 408(i) 425: 143(bool) SLessThan 421 424 BranchConditional 425 415 416 415: Label 431: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85 432: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 429 429 16 16 430: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 427 426(shadowClip) 49 433: 74(fvec3) Load 81(fragPos) 434: 8(float) CompositeExtract 433 0 435: 8(float) CompositeExtract 433 1 436: 8(float) CompositeExtract 433 2 437: 18(fvec4) CompositeConstruct 434 435 436 114 478: 235(int) Load 408(i) 481: 479(ptr) AccessChain 476 315 322 478 424 482: 438 Load 481 483: 18(fvec4) VectorTimesMatrix 437 482 Store 426(shadowClip) 483 488: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 486 486 16 16 487: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 485 484(shadowFactor) 49 489: 235(int) Load 408(i) 490: 8(float) ConvertSToF 489 492: 18(fvec4) Load 426(shadowClip) Store 491(param) 492 Store 493(param) 490 494: 8(float) FunctionCall 62(filterPCF(vf4;f1;) 491(param) 493(param) Store 484(shadowFactor) 494 496: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 497 497 16 16 495: 8(float) Load 484(shadowFactor) 498: 74(fvec3) Load 80(fragcolor) 499: 74(fvec3) VectorTimesScalar 498 495 Store 80(fragcolor) 499 Branch 417 417: Label 501: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85 502: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 411 411 16 16 500: 235(int) Load 408(i) 503: 235(int) IAdd 500 322 Store 408(i) 503 Branch 414 416: Label 505: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85 506: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 507 507 16 16 504: 74(fvec3) Load 80(fragcolor) ReturnValue 504 FunctionEnd 98(@main(vf2;): 18(fvec4) Function None 95 97(inUV): 29(ptr) FunctionParameter 99: Label 512(fragPos): 76(ptr) Variable Function 536(normal): 76(ptr) Variable Function 555(albedo): 21(ptr) Variable Function 593(fragcolor): 76(ptr) Variable Function 600(param): 76(ptr) Variable Function 601(param): 76(ptr) Variable Function 660(N): 76(ptr) Variable Function 668(i): 251(ptr) Variable Function 684(L): 76(ptr) Variable Function 699(dist): 24(ptr) Variable Function 710(V): 76(ptr) Variable Function 725(lightCosInnerAngle): 24(ptr) Variable Function 732(lightCosOuterAngle): 24(ptr) Variable Function 739(lightRange): 24(ptr) Variable Function 746(dir): 76(ptr) Variable Function 762(cosDir): 24(ptr) Variable Function 771(spotEffect): 24(ptr) Variable Function 781(heightAttenuation): 24(ptr) Variable Function 790(NdotL): 24(ptr) Variable Function 800(diff): 76(ptr) Variable Function 808(R): 76(ptr) Variable Function 818(NdotR): 24(ptr) Variable Function 828(spec): 76(ptr) Variable Function 875(param): 76(ptr) Variable Function 880(param): 76(ptr) Variable Function 106: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 107: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 102 102 16 16 105: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 103 97(inUV) 49 511: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 101 98(@main(vf2;) 516: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 514 514 16 16 515: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 513 512(fragPos) 49 524: 517 Load 521(textureposition) 529: 172 Load 526(samplerposition) 532: 530 SampledImage 524 529 533: 26(fvec2) Load 97(inUV) 534: 18(fvec4) ImageSampleImplicitLod 532 533 535: 74(fvec3) VectorShuffle 534 534 0 1 2 Store 512(fragPos) 535 541: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 539 539 16 16 540: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 537 536(normal) 49 545: 517 Load 542(textureNormal) 550: 172 Load 547(samplerNormal) 551: 530 SampledImage 545 550 552: 26(fvec2) Load 97(inUV) 553: 18(fvec4) ImageSampleImplicitLod 551 552 554: 74(fvec3) VectorShuffle 553 553 0 1 2 Store 536(normal) 554 560: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 558 558 16 16 559: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 556 555(albedo) 49 564: 517 Load 561(textureAlbedo) 569: 172 Load 566(samplerAlbedo) 570: 530 SampledImage 564 569 571: 26(fvec2) Load 97(inUV) 572: 18(fvec4) ImageSampleImplicitLod 570 571 Store 555(albedo) 572 576: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 577 577 16 16 575: 573(ptr) AccessChain 476 315 424 578: 235(int) Load 575 579: 143(bool) SGreaterThan 578 315 SelectionMerge 581 None BranchConditional 579 580 581 580: Label 583: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 584: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 585 585 16 16 582: 573(ptr) AccessChain 476 315 424 586: 235(int) Load 582 SelectionMerge 592 None Switch 586 592 case 1: 587 case 2: 588 case 3: 589 case 4: 590 case 5: 591 587: Label 597: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 598: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 595 595 16 16 596: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 594 593(fragcolor) 49 Store 600(param) 599 602: 74(fvec3) Load 512(fragPos) Store 601(param) 602 603: 74(fvec3) FunctionCall 82(shadow(vf3;vf3;) 600(param) 601(param) Store 593(fragcolor) 603 604: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 605 605 16 16 Branch 592 588: Label 609: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 610: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 611 611 16 16 608: 74(fvec3) Load 512(fragPos) Store 593(fragcolor) 608 612: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 613 613 16 16 Branch 592 589: Label 617: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 618: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 619 619 16 16 616: 74(fvec3) Load 536(normal) Store 593(fragcolor) 616 620: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 621 621 16 16 Branch 592 590: Label 625: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 626: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 627 627 16 16 624: 18(fvec4) Load 555(albedo) 628: 74(fvec3) VectorShuffle 624 624 0 1 2 Store 593(fragcolor) 628 629: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 630 630 16 16 Branch 592 591: Label 634: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 635: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 636 636 16 16 633: 18(fvec4) Load 555(albedo) 637: 74(fvec3) VectorShuffle 633 633 3 3 3 Store 593(fragcolor) 637 638: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 639 639 16 16 Branch 592 592: Label 644: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 645: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 646 646 16 16 643: 74(fvec3) Load 593(fragcolor) 647: 8(float) CompositeExtract 643 0 648: 8(float) CompositeExtract 643 1 649: 8(float) CompositeExtract 643 2 650: 18(fvec4) CompositeConstruct 647 648 649 114 ReturnValue 650 581: Label 654: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 655: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 656 656 16 16 653: 18(fvec4) Load 555(albedo) 657: 74(fvec3) VectorShuffle 653 653 0 1 2 659: 74(fvec3) VectorTimesScalar 657 658 Store 593(fragcolor) 659 665: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 663 663 16 16 664: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 661 660(N) 49 666: 74(fvec3) Load 536(normal) 667: 74(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 666 Store 660(N) 667 672: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 670 670 16 16 671: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 669 668(i) 49 Store 668(i) 315 Branch 673 673: Label 677: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 678: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 670 670 16 16 LoopMerge 675 676 None Branch 679 679: Label 681: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 682: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 670 670 16 16 680: 235(int) Load 668(i) 683: 143(bool) SLessThan 680 424 BranchConditional 683 674 675 674: Label 689: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 690: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 687 687 16 16 688: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 685 684(L) 49 691: 235(int) Load 668(i) 694: 692(ptr) AccessChain 476 315 322 691 315 695: 18(fvec4) Load 694 696: 74(fvec3) VectorShuffle 695 695 0 1 2 697: 74(fvec3) Load 512(fragPos) 698: 74(fvec3) FSub 696 697 Store 684(L) 698 703: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 701 701 16 16 702: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 700 699(dist) 49 704: 74(fvec3) Load 684(L) 705: 8(float) ExtInst 3(GLSL.std.450) 66(Length) 704 Store 699(dist) 705 707: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 708 708 16 16 706: 74(fvec3) Load 684(L) 709: 74(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 706 Store 684(L) 709 715: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 713 713 16 16 714: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 711 710(V) 49 716: 692(ptr) AccessChain 476 315 315 717: 18(fvec4) Load 716 718: 74(fvec3) VectorShuffle 717 717 0 1 2 719: 74(fvec3) Load 512(fragPos) 720: 74(fvec3) FSub 718 719 Store 710(V) 720 722: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 723 723 16 16 721: 74(fvec3) Load 710(V) 724: 74(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 721 Store 710(V) 724 730: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 728 728 16 16 729: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 726 725(lightCosInnerAngle) 49 Store 725(lightCosInnerAngle) 731 737: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 735 735 16 16 736: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 733 732(lightCosOuterAngle) 49 Store 732(lightCosOuterAngle) 738 744: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 742 742 16 16 743: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 740 739(lightRange) 49 Store 739(lightRange) 745 751: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 749 749 16 16 750: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 747 746(dir) 49 752: 235(int) Load 668(i) 753: 692(ptr) AccessChain 476 315 322 752 315 754: 18(fvec4) Load 753 755: 74(fvec3) VectorShuffle 754 754 0 1 2 756: 235(int) Load 668(i) 757: 692(ptr) AccessChain 476 315 322 756 322 758: 18(fvec4) Load 757 759: 74(fvec3) VectorShuffle 758 758 0 1 2 760: 74(fvec3) FSub 755 759 761: 74(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 760 Store 746(dir) 761 767: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 765 765 16 16 766: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 763 762(cosDir) 49 768: 74(fvec3) Load 684(L) 769: 74(fvec3) Load 746(dir) 770: 8(float) Dot 768 769 Store 762(cosDir) 770 776: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 774 774 16 16 775: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 772 771(spotEffect) 49 777: 8(float) Load 732(lightCosOuterAngle) 778: 8(float) Load 725(lightCosInnerAngle) 779: 8(float) Load 762(cosDir) 780: 8(float) ExtInst 3(GLSL.std.450) 49(SmoothStep) 777 778 779 Store 771(spotEffect) 780 786: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 784 784 16 16 785: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 782 781(heightAttenuation) 49 787: 8(float) Load 739(lightRange) 788: 8(float) Load 699(dist) 789: 8(float) ExtInst 3(GLSL.std.450) 49(SmoothStep) 787 201 788 Store 781(heightAttenuation) 789 795: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 793 793 16 16 794: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 791 790(NdotL) 49 796: 74(fvec3) Load 660(N) 797: 74(fvec3) Load 684(L) 798: 8(float) Dot 796 797 799: 8(float) ExtInst 3(GLSL.std.450) 40(FMax) 201 798 Store 790(NdotL) 799 805: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 803 803 16 16 804: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 801 800(diff) 49 806: 8(float) Load 790(NdotL) 807: 74(fvec3) CompositeConstruct 806 806 806 Store 800(diff) 807 813: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 811 811 16 16 812: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 809 808(R) 49 814: 74(fvec3) Load 684(L) 815: 74(fvec3) FNegate 814 816: 74(fvec3) Load 660(N) 817: 74(fvec3) ExtInst 3(GLSL.std.450) 71(Reflect) 815 816 Store 808(R) 817 823: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 821 821 16 16 822: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 819 818(NdotR) 49 824: 74(fvec3) Load 808(R) 825: 74(fvec3) Load 710(V) 826: 8(float) Dot 824 825 827: 8(float) ExtInst 3(GLSL.std.450) 40(FMax) 201 826 Store 818(NdotR) 827 833: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 831 831 16 16 832: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 829 828(spec) 49 834: 8(float) Load 818(NdotR) 836: 8(float) ExtInst 3(GLSL.std.450) 26(Pow) 834 835 837: 24(ptr) AccessChain 555(albedo) 17 838: 8(float) Load 837 839: 8(float) FMul 836 838 841: 8(float) FMul 839 840 842: 74(fvec3) CompositeConstruct 841 841 841 Store 828(spec) 842 844: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 845 845 16 16 843: 74(fvec3) Load 800(diff) 846: 74(fvec3) Load 828(spec) 847: 74(fvec3) FAdd 843 846 848: 8(float) Load 771(spotEffect) 849: 74(fvec3) VectorTimesScalar 847 848 850: 8(float) Load 781(heightAttenuation) 851: 74(fvec3) VectorTimesScalar 849 850 852: 235(int) Load 668(i) 854: 692(ptr) AccessChain 476 315 322 852 853 855: 18(fvec4) Load 854 856: 74(fvec3) VectorShuffle 855 855 0 1 2 857: 74(fvec3) FMul 851 856 858: 18(fvec4) Load 555(albedo) 859: 74(fvec3) VectorShuffle 858 858 0 1 2 860: 74(fvec3) FMul 857 859 861: 74(fvec3) Load 593(fragcolor) 862: 74(fvec3) FAdd 861 860 Store 593(fragcolor) 862 Branch 676 676: Label 864: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 865: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 670 670 16 16 863: 235(int) Load 668(i) 866: 235(int) IAdd 863 322 Store 668(i) 866 Branch 673 675: Label 868: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 869: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 870 870 16 16 867: 573(ptr) AccessChain 476 315 853 871: 235(int) Load 867 872: 143(bool) SGreaterThan 871 315 SelectionMerge 874 None BranchConditional 872 873 874 873: Label 877: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 878: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 879 879 16 16 876: 74(fvec3) Load 593(fragcolor) Store 875(param) 876 881: 74(fvec3) Load 512(fragPos) Store 880(param) 881 882: 74(fvec3) FunctionCall 82(shadow(vf3;vf3;) 875(param) 880(param) Store 593(fragcolor) 882 Branch 874 874: Label 884: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 885: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 886 886 16 16 883: 74(fvec3) Load 593(fragcolor) 887: 8(float) CompositeExtract 883 0 888: 8(float) CompositeExtract 883 1 889: 8(float) CompositeExtract 883 2 890: 18(fvec4) CompositeConstruct 887 888 889 114 ReturnValue 890 FunctionEnd