glslang-zig/Test/baseResults/spv.debuginfo.glsl.frag.out

1115 lines
71 KiB
Text

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