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