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