glslang-zig/Test/baseResults/spv.debuginfo.glsl.frag.out
Chao Chen 979423d84f Add correct line number to OpDebugFunction and OpDebugScope for function:
1. Pull OpDebugFunction, OpDebugScope and OpDebugVariable for params out
   of makeFunctionEntry.
2. Put above in a separate function called setupDebugFunctionEntry,
   which also accept line number and set it correctly in builder.
3. Call setupDebugFunctionEntry in makeFunction. Also special case
   handle entry function since it's created ealier elsewhere.
2023-10-24 13:37:19 -07:00

1108 lines
70 KiB
Text

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