Skip to content

Instantly share code, notes, and snippets.

@shaderjp
Created January 6, 2018 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shaderjp/95e59d7df99498bbc0cb6b356e1bac9c to your computer and use it in GitHub Desktop.
Save shaderjp/95e59d7df99498bbc0cb6b356e1bac9c to your computer and use it in GitHub Desktop.
testPS.spv
// Module Version 10000
// Generated by (magic number): 80003
// Id's are bound by 1113
Capability Shader
Capability SampleRateShading
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 1081 1085 1089 1092 1095 1098 1101 1104 1108
ExecutionMode 4 OriginUpperLeft
Source HLSL 500
Name 4 "main"
Name 14 "GetTilePos(vf2;vf2;"
Name 12 "pos"
Name 13 "invTileDim"
Name 21 "GetTileIndex(vu2;u1;"
Name 19 "tilePos"
Name 20 "tileCountX"
Name 25 "GetTileOffset(u1;"
Name 24 "tileIndex"
Name 33 "AntiAliasSpecular(vf3;f1;"
Name 31 "texNormal"
Name 32 "gloss"
Name 40 "FSchlick(vf3;vf3;vf3;vf3;"
Name 36 "specular"
Name 37 "diffuse"
Name 38 "lightDir"
Name 39 "halfVec"
Name 46 "ApplyAmbientLight(vf3;f1;vf3;"
Name 43 "diffuse"
Name 44 "ao"
Name 45 "lightColor"
Name 50 "GetShadow(vf3;"
Name 49 "ShadowCoord"
Name 55 "GetShadowConeLight(u1;vf3;"
Name 53 "lightIndex"
Name 54 "shadowCoord"
Name 66 "ApplyLightCommon(vf3;vf3;f1;f1;vf3;vf3;vf3;vf3;"
Name 58 "diffuseColor"
Name 59 "specularColor"
Name 60 "specularMask"
Name 61 "gloss"
Name 62 "normal"
Name 63 "viewDir"
Name 64 "lightDir"
Name 65 "lightColor"
Name 78 "ApplyDirectionalLight(vf3;vf3;f1;f1;vf3;vf3;vf3;vf3;vf3;"
Name 69 "diffuseColor"
Name 70 "specularColor"
Name 71 "specularMask"
Name 72 "gloss"
Name 73 "normal"
Name 74 "viewDir"
Name 75 "lightDir"
Name 76 "lightColor"
Name 77 "shadowCoord"
Name 91 "ApplyPointLight(vf3;vf3;f1;f1;vf3;vf3;vf3;vf3;f1;vf3;"
Name 81 "diffuseColor"
Name 82 "specularColor"
Name 83 "specularMask"
Name 84 "gloss"
Name 85 "normal"
Name 86 "viewDir"
Name 87 "worldPos"
Name 88 "lightPos"
Name 89 "lightRadiusSq"
Name 90 "lightColor"
Name 106 "ApplyConeLight(vf3;vf3;f1;f1;vf3;vf3;vf3;vf3;f1;vf3;vf3;vf2;"
Name 94 "diffuseColor"
Name 95 "specularColor"
Name 96 "specularMask"
Name 97 "gloss"
Name 98 "normal"
Name 99 "viewDir"
Name 100 "worldPos"
Name 101 "lightPos"
Name 102 "lightRadiusSq"
Name 103 "lightColor"
Name 104 "coneDir"
Name 105 "coneAngles"
Name 126 "ApplyConeShadowedLight(vf3;vf3;f1;f1;vf3;vf3;vf3;vf3;f1;vf3;vf3;vf2;mf44;u1;"
Name 112 "diffuseColor"
Name 113 "specularColor"
Name 114 "specularMask"
Name 115 "gloss"
Name 116 "normal"
Name 117 "viewDir"
Name 118 "worldPos"
Name 119 "lightPos"
Name 120 "lightRadiusSq"
Name 121 "lightColor"
Name 122 "coneDir"
Name 123 "coneAngles"
Name 124 "shadowTextureMatrix"
Name 125 "lightIndex"
Name 128 "VSOutput"
MemberName 128(VSOutput) 0 "position"
MemberName 128(VSOutput) 1 "worldPos"
MemberName 128(VSOutput) 2 "uv"
MemberName 128(VSOutput) 3 "viewDir"
MemberName 128(VSOutput) 4 "shadowCoord"
MemberName 128(VSOutput) 5 "normal"
MemberName 128(VSOutput) 6 "tangent"
MemberName 128(VSOutput) 7 "bitangent"
Name 132 "@main(struct-VSOutput-vf4-vf3-vf2-vf3-vf3-vf3-vf3-vf31;"
Name 131 "vsOutput"
Name 156 "normalLenSq"
Name 160 "invNormalLen"
Name 171 "fresnel"
Name 197 "d1"
Name 200 "PSConstants"
MemberName 200(PSConstants) 0 "SunDirection"
MemberName 200(PSConstants) 1 "SunColor"
MemberName 200(PSConstants) 2 "AmbientColor"
MemberName 200(PSConstants) 3 "ShadowTexelSize"
MemberName 200(PSConstants) 4 "InvTileDim"
MemberName 200(PSConstants) 5 "TileCount"
MemberName 200(PSConstants) 6 "FirstLightIndex"
Name 202 ""
Name 211 "d2"
Name 217 "d3"
Name 223 "d4"
Name 229 "result"
Name 232 "texShadow"
Name 236 "shadowSampler"
Name 402 "result"
Name 405 "lightShadowArrayTex"
Name 430 "halfVec"
Name 435 "nDotH"
Name 440 "param"
Name 442 "param"
Name 444 "param"
Name 446 "param"
Name 451 "specularFactor"
Name 462 "nDotL"
Name 478 "shadow"
Name 479 "param"
Name 483 "param"
Name 485 "param"
Name 487 "param"
Name 489 "param"
Name 491 "param"
Name 493 "param"
Name 495 "param"
Name 497 "param"
Name 503 "lightDir"
Name 507 "lightDistSq"
Name 511 "invLightDist"
Name 517 "distanceFalloff"
Name 529 "param"
Name 531 "param"
Name 533 "param"
Name 535 "param"
Name 537 "param"
Name 539 "param"
Name 541 "param"
Name 543 "param"
Name 549 "lightDir"
Name 553 "lightDistSq"
Name 557 "invLightDist"
Name 563 "distanceFalloff"
Name 574 "coneFalloff"
Name 590 "param"
Name 592 "param"
Name 594 "param"
Name 596 "param"
Name 598 "param"
Name 600 "param"
Name 602 "param"
Name 604 "param"
Name 611 "shadowCoord"
Name 628 "shadow"
Name 629 "param"
Name 631 "param"
Name 636 "param"
Name 638 "param"
Name 640 "param"
Name 642 "param"
Name 644 "param"
Name 646 "param"
Name 648 "param"
Name 650 "param"
Name 652 "param"
Name 654 "param"
Name 656 "param"
Name 658 "param"
Name 664 "pixelPos"
Name 670 "diffuseAlbedo"
Name 673 "texDiffuse"
Name 675 "sampler0"
Name 687 "colorSum"
Name 688 "ao"
Name 689 "texSSAO"
Name 693 "param"
Name 695 "param"
Name 697 "param"
Name 704 "gloss"
Name 706 "normal"
Name 707 "texNormal"
Name 721 "param"
Name 723 "param"
Name 730 "tbn"
Name 760 "specularAlbedo"
Name 763 "specularMask"
Name 764 "texSpecular"
Name 776 "viewDir"
Name 782 "param"
Name 784 "param"
Name 786 "param"
Name 788 "param"
Name 790 "param"
Name 792 "param"
Name 794 "param"
Name 797 "param"
Name 800 "param"
Name 806 "tilePos"
Name 809 "param"
Name 810 "param"
Name 816 "tileIndex"
Name 817 "param"
Name 819 "param"
Name 824 "tileOffset"
Name 825 "param"
Name 831 "lightBitMaskGroups"
Name 833 "tileLightCount"
Name 835 "lightGrid"
MemberName 835(lightGrid) 0 "@data"
Name 837 "lightGrid"
Name 843 "tileLightCountSphere"
Name 848 "tileLightCountCone"
Name 853 "tileLightCountConeShadowed"
Name 858 "tileLightLoadOffset"
Name 861 "n"
Name 871 "lightIndex"
Name 876 "LightData"
MemberName 876(LightData) 0 "pos"
MemberName 876(LightData) 1 "radiusSq"
MemberName 876(LightData) 2 "color"
MemberName 876(LightData) 3 "type"
MemberName 876(LightData) 4 "coneDir"
MemberName 876(LightData) 5 "coneAngles"
MemberName 876(LightData) 6 "shadowTextureMatrix"
Name 878 "lightData"
Name 879 "LightData"
MemberName 879(LightData) 0 "pos"
MemberName 879(LightData) 1 "radiusSq"
MemberName 879(LightData) 2 "color"
MemberName 879(LightData) 3 "type"
MemberName 879(LightData) 4 "coneDir"
MemberName 879(LightData) 5 "coneAngles"
MemberName 879(LightData) 6 "shadowTextureMatrix"
Name 881 "lightBuffer"
MemberName 881(lightBuffer) 0 "@data"
Name 883 "lightBuffer"
Name 902 "param"
Name 904 "param"
Name 906 "param"
Name 908 "param"
Name 910 "param"
Name 912 "param"
Name 914 "param"
Name 917 "param"
Name 920 "param"
Name 923 "param"
Name 933 "n"
Name 942 "lightIndex"
Name 947 "lightData"
Name 965 "param"
Name 967 "param"
Name 969 "param"
Name 971 "param"
Name 973 "param"
Name 975 "param"
Name 977 "param"
Name 980 "param"
Name 983 "param"
Name 986 "param"
Name 989 "param"
Name 992 "param"
Name 1002 "n"
Name 1011 "lightIndex"
Name 1016 "lightData"
Name 1034 "param"
Name 1036 "param"
Name 1038 "param"
Name 1040 "param"
Name 1042 "param"
Name 1044 "param"
Name 1046 "param"
Name 1049 "param"
Name 1052 "param"
Name 1055 "param"
Name 1058 "param"
Name 1061 "param"
Name 1064 "param"
Name 1067 "param"
Name 1079 "vsOutput"
Name 1081 "vsOutput.position"
Name 1085 "vsOutput.worldPos"
Name 1089 "vsOutput.uv"
Name 1092 "vsOutput.viewDir"
Name 1095 "vsOutput.shadowCoord"
Name 1098 "vsOutput.normal"
Name 1101 "vsOutput.tangent"
Name 1104 "vsOutput.bitangent"
Name 1108 "@entryPointOutput"
Name 1109 "param"
Name 1112 "lightGridBitMask"
MemberDecorate 200(PSConstants) 0 Offset 0
MemberDecorate 200(PSConstants) 1 Offset 16
MemberDecorate 200(PSConstants) 2 Offset 32
MemberDecorate 200(PSConstants) 3 Offset 48
MemberDecorate 200(PSConstants) 4 Offset 64
MemberDecorate 200(PSConstants) 5 Offset 80
MemberDecorate 200(PSConstants) 6 Offset 96
Decorate 200(PSConstants) Block
Decorate 202 DescriptorSet 0
Decorate 202 Binding 0
Decorate 232(texShadow) DescriptorSet 0
Decorate 232(texShadow) Binding 65
Decorate 236(shadowSampler) DescriptorSet 0
Decorate 236(shadowSampler) Binding 1
Decorate 405(lightShadowArrayTex) DescriptorSet 0
Decorate 405(lightShadowArrayTex) Binding 67
Decorate 673(texDiffuse) DescriptorSet 0
Decorate 673(texDiffuse) Binding 0
Decorate 675(sampler0) DescriptorSet 0
Decorate 675(sampler0) Binding 0
Decorate 689(texSSAO) DescriptorSet 0
Decorate 689(texSSAO) Binding 64
Decorate 707(texNormal) DescriptorSet 0
Decorate 707(texNormal) Binding 3
Decorate 764(texSpecular) DescriptorSet 0
Decorate 764(texSpecular) Binding 1
Decorate 834 ArrayStride 4
MemberDecorate 835(lightGrid) 0 NonWritable
MemberDecorate 835(lightGrid) 0 Offset 0
Decorate 835(lightGrid) BufferBlock
Decorate 837(lightGrid) DescriptorSet 0
Decorate 837(lightGrid) Binding 68
MemberDecorate 879(LightData) 0 Offset 0
MemberDecorate 879(LightData) 1 Offset 12
MemberDecorate 879(LightData) 2 Offset 16
MemberDecorate 879(LightData) 3 Offset 28
MemberDecorate 879(LightData) 4 Offset 32
MemberDecorate 879(LightData) 5 Offset 48
MemberDecorate 879(LightData) 6 RowMajor
MemberDecorate 879(LightData) 6 Offset 64
MemberDecorate 879(LightData) 6 MatrixStride 16
Decorate 880 ArrayStride 128
MemberDecorate 881(lightBuffer) 0 NonWritable
MemberDecorate 881(lightBuffer) 0 Offset 0
Decorate 881(lightBuffer) BufferBlock
Decorate 883(lightBuffer) DescriptorSet 0
Decorate 883(lightBuffer) Binding 66
Decorate 1081(vsOutput.position) Sample
Decorate 1081(vsOutput.position) BuiltIn FragCoord
Decorate 1085(vsOutput.worldPos) Sample
Decorate 1085(vsOutput.worldPos) Location 0
Decorate 1089(vsOutput.uv) Sample
Decorate 1089(vsOutput.uv) Location 1
Decorate 1092(vsOutput.viewDir) Sample
Decorate 1092(vsOutput.viewDir) Location 2
Decorate 1095(vsOutput.shadowCoord) Sample
Decorate 1095(vsOutput.shadowCoord) Location 3
Decorate 1098(vsOutput.normal) Sample
Decorate 1098(vsOutput.normal) Location 4
Decorate 1101(vsOutput.tangent) Sample
Decorate 1101(vsOutput.tangent) Location 5
Decorate 1104(vsOutput.bitangent) Sample
Decorate 1104(vsOutput.bitangent) Location 6
Decorate 1108(@entryPointOutput) Location 0
Decorate 1112(lightGridBitMask) DescriptorSet 0
Decorate 1112(lightGridBitMask) Binding 69
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
7: TypeVector 6(float) 2
8: TypePointer Function 7(fvec2)
9: TypeInt 32 0
10: TypeVector 9(int) 2
11: TypeFunction 10(ivec2) 8(ptr) 8(ptr)
16: TypePointer Function 10(ivec2)
17: TypePointer Function 9(int)
18: TypeFunction 9(int) 16(ptr) 17(ptr)
23: TypeFunction 9(int) 17(ptr)
27: TypeVector 6(float) 3
28: TypePointer Function 27(fvec3)
29: TypePointer Function 6(float)
30: TypeFunction 2 28(ptr) 29(ptr)
35: TypeFunction 2 28(ptr) 28(ptr) 28(ptr) 28(ptr)
42: TypeFunction 27(fvec3) 28(ptr) 29(ptr) 28(ptr)
48: TypeFunction 6(float) 28(ptr)
52: TypeFunction 6(float) 17(ptr) 28(ptr)
57: TypeFunction 27(fvec3) 28(ptr) 28(ptr) 29(ptr) 29(ptr) 28(ptr) 28(ptr) 28(ptr) 28(ptr)
68: TypeFunction 27(fvec3) 28(ptr) 28(ptr) 29(ptr) 29(ptr) 28(ptr) 28(ptr) 28(ptr) 28(ptr) 28(ptr)
80: TypeFunction 27(fvec3) 28(ptr) 28(ptr) 29(ptr) 29(ptr) 28(ptr) 28(ptr) 28(ptr) 28(ptr) 29(ptr) 28(ptr)
93: TypeFunction 27(fvec3) 28(ptr) 28(ptr) 29(ptr) 29(ptr) 28(ptr) 28(ptr) 28(ptr) 28(ptr) 29(ptr) 28(ptr) 28(ptr) 8(ptr)
108: TypeVector 6(float) 4
109: TypeMatrix 108(fvec4) 4
110: TypePointer Function 109
111: TypeFunction 27(fvec3) 28(ptr) 28(ptr) 29(ptr) 29(ptr) 28(ptr) 28(ptr) 28(ptr) 28(ptr) 29(ptr) 28(ptr) 28(ptr) 8(ptr) 110(ptr) 17(ptr)
128(VSOutput): TypeStruct 108(fvec4) 27(fvec3) 7(fvec2) 27(fvec3) 27(fvec3) 27(fvec3) 27(fvec3) 27(fvec3)
129: TypePointer Function 128(VSOutput)
130: TypeFunction 27(fvec3) 129(ptr)
140: 9(int) Constant 1
145: 9(int) Constant 0
152: 9(int) Constant 516
166: 6(float) Constant 1065353216
175: 6(float) Constant 0
178: 6(float) Constant 1084227584
181: 27(fvec3) ConstantComposite 166 166 166
186: 27(fvec3) ConstantComposite 175 175 175
198: 6(float) Constant 1073741824
199: TypeVector 9(int) 4
200(PSConstants): TypeStruct 27(fvec3) 27(fvec3) 27(fvec3) 108(fvec4) 108(fvec4) 199(ivec4) 199(ivec4)
201: TypePointer Uniform 200(PSConstants)
202: 201(ptr) Variable Uniform
203: TypeInt 32 1
204: 203(int) Constant 3
205: TypePointer Uniform 6(float)
209: 6(float) Constant 1040187392
215: 6(float) Constant 1063256064
221: 6(float) Constant 1059061760
227: 6(float) Constant 1052770304
230: TypeImage 6(float) 2D depth sampled format:Unknown
231: TypePointer UniformConstant 230
232(texShadow): 231(ptr) Variable UniformConstant
234: TypeSampler
235: TypePointer UniformConstant 234
236(shadowSampler): 235(ptr) Variable UniformConstant
238: TypeSampledImage 230
242: 9(int) Constant 2
395: 6(float) Constant 1092616192
403: TypeImage 6(float) 2D depth array sampled format:Unknown
404: TypePointer UniformConstant 403
405(lightShadowArrayTex): 404(ptr) Variable UniformConstant
408: TypeSampledImage 403
460: 6(float) Constant 1090519040
610: TypePointer Function 108(fvec4)
619: 9(int) Constant 3
665: 203(int) Constant 0
671: TypeImage 6(float) 2D sampled format:Unknown
672: TypePointer UniformConstant 671
673(texDiffuse): 672(ptr) Variable UniformConstant
675(sampler0): 235(ptr) Variable UniformConstant
677: TypeSampledImage 671
679: 203(int) Constant 2
689(texSSAO): 672(ptr) Variable UniformConstant
698: TypePointer Uniform 27(fvec3)
705: 6(float) Constant 1124073472
707(texNormal): 672(ptr) Variable UniformConstant
728: TypeMatrix 27(fvec3) 3
729: TypePointer Function 728
731: 203(int) Constant 6
735: 203(int) Constant 7
739: 203(int) Constant 5
761: 6(float) Constant 1057971241
762: 27(fvec3) ConstantComposite 761 761 761
764(texSpecular): 672(ptr) Variable UniformConstant
780: 203(int) Constant 1
781: 203(int) Constant 4
811: TypePointer Uniform 108(fvec4)
820: TypePointer Uniform 9(int)
828: 9(int) Constant 4
829: TypeArray 9(int) 828
830: TypePointer Function 829
832: 829 ConstantComposite 145 145 145 145
834: TypeRuntimeArray 9(int)
835(lightGrid): TypeStruct 834
836: TypePointer Uniform 835(lightGrid)
837(lightGrid): 836(ptr) Variable Uniform
846: 9(int) Constant 255
850: 203(int) Constant 8
855: 203(int) Constant 16
869: TypeBool
876(LightData): TypeStruct 27(fvec3) 6(float) 27(fvec3) 9(int) 27(fvec3) 7(fvec2) 109
877: TypePointer Function 876(LightData)
879(LightData): TypeStruct 27(fvec3) 6(float) 27(fvec3) 9(int) 27(fvec3) 7(fvec2) 109
880: TypeRuntimeArray 879(LightData)
881(lightBuffer): TypeStruct 880
882: TypePointer Uniform 881(lightBuffer)
883(lightBuffer): 882(ptr) Variable Uniform
885: TypePointer Uniform 879(LightData)
1080: TypePointer Input 108(fvec4)
1081(vsOutput.position): 1080(ptr) Variable Input
1084: TypePointer Input 27(fvec3)
1085(vsOutput.worldPos): 1084(ptr) Variable Input
1088: TypePointer Input 7(fvec2)
1089(vsOutput.uv): 1088(ptr) Variable Input
1092(vsOutput.viewDir): 1084(ptr) Variable Input
1095(vsOutput.shadowCoord): 1084(ptr) Variable Input
1098(vsOutput.normal): 1084(ptr) Variable Input
1101(vsOutput.tangent): 1084(ptr) Variable Input
1104(vsOutput.bitangent): 1084(ptr) Variable Input
1107: TypePointer Output 27(fvec3)
1108(@entryPointOutput): 1107(ptr) Variable Output
1112(lightGridBitMask): 836(ptr) Variable Uniform
4(main): 2 Function None 3
5: Label
1079(vsOutput): 129(ptr) Variable Function
1109(param): 129(ptr) Variable Function
1082: 108(fvec4) Load 1081(vsOutput.position)
1083: 610(ptr) AccessChain 1079(vsOutput) 665
Store 1083 1082
1086: 27(fvec3) Load 1085(vsOutput.worldPos)
1087: 28(ptr) AccessChain 1079(vsOutput) 780
Store 1087 1086
1090: 7(fvec2) Load 1089(vsOutput.uv)
1091: 8(ptr) AccessChain 1079(vsOutput) 679
Store 1091 1090
1093: 27(fvec3) Load 1092(vsOutput.viewDir)
1094: 28(ptr) AccessChain 1079(vsOutput) 204
Store 1094 1093
1096: 27(fvec3) Load 1095(vsOutput.shadowCoord)
1097: 28(ptr) AccessChain 1079(vsOutput) 781
Store 1097 1096
1099: 27(fvec3) Load 1098(vsOutput.normal)
1100: 28(ptr) AccessChain 1079(vsOutput) 739
Store 1100 1099
1102: 27(fvec3) Load 1101(vsOutput.tangent)
1103: 28(ptr) AccessChain 1079(vsOutput) 731
Store 1103 1102
1105: 27(fvec3) Load 1104(vsOutput.bitangent)
1106: 28(ptr) AccessChain 1079(vsOutput) 735
Store 1106 1105
1110:128(VSOutput) Load 1079(vsOutput)
Store 1109(param) 1110
1111: 27(fvec3) FunctionCall 132(@main(struct-VSOutput-vf4-vf3-vf2-vf3-vf3-vf3-vf3-vf31;) 1109(param)
Store 1108(@entryPointOutput) 1111
Return
FunctionEnd
14(GetTilePos(vf2;vf2;): 10(ivec2) Function None 11
12(pos): 8(ptr) FunctionParameter
13(invTileDim): 8(ptr) FunctionParameter
15: Label
134: 7(fvec2) Load 12(pos)
135: 7(fvec2) Load 13(invTileDim)
136: 7(fvec2) FMul 134 135
137: 10(ivec2) ConvertFToU 136
ReturnValue 137
FunctionEnd
21(GetTileIndex(vu2;u1;): 9(int) Function None 18
19(tilePos): 16(ptr) FunctionParameter
20(tileCountX): 17(ptr) FunctionParameter
22: Label
141: 17(ptr) AccessChain 19(tilePos) 140
142: 9(int) Load 141
143: 9(int) Load 20(tileCountX)
144: 9(int) IMul 142 143
146: 17(ptr) AccessChain 19(tilePos) 145
147: 9(int) Load 146
148: 9(int) IAdd 144 147
ReturnValue 148
FunctionEnd
25(GetTileOffset(u1;): 9(int) Function None 23
24(tileIndex): 17(ptr) FunctionParameter
26: Label
151: 9(int) Load 24(tileIndex)
153: 9(int) IMul 151 152
ReturnValue 153
FunctionEnd
33(AntiAliasSpecular(vf3;f1;): 2 Function None 30
31(texNormal): 28(ptr) FunctionParameter
32(gloss): 29(ptr) FunctionParameter
34: Label
156(normalLenSq): 29(ptr) Variable Function
160(invNormalLen): 29(ptr) Variable Function
157: 27(fvec3) Load 31(texNormal)
158: 27(fvec3) Load 31(texNormal)
159: 6(float) Dot 157 158
Store 156(normalLenSq) 159
161: 6(float) Load 156(normalLenSq)
162: 6(float) ExtInst 1(GLSL.std.450) 32(InverseSqrt) 161
Store 160(invNormalLen) 162
163: 6(float) Load 160(invNormalLen)
164: 27(fvec3) Load 31(texNormal)
165: 27(fvec3) VectorTimesScalar 164 163
Store 31(texNormal) 165
167: 6(float) Load 32(gloss)
168: 6(float) Load 160(invNormalLen)
169: 6(float) FDiv 166 168
170: 6(float) ExtInst 1(GLSL.std.450) 46(FMix) 166 167 169
Store 32(gloss) 170
Return
FunctionEnd
40(FSchlick(vf3;vf3;vf3;vf3;): 2 Function None 35
36(specular): 28(ptr) FunctionParameter
37(diffuse): 28(ptr) FunctionParameter
38(lightDir): 28(ptr) FunctionParameter
39(halfVec): 28(ptr) FunctionParameter
41: Label
171(fresnel): 29(ptr) Variable Function
172: 27(fvec3) Load 38(lightDir)
173: 27(fvec3) Load 39(halfVec)
174: 6(float) Dot 172 173
176: 6(float) ExtInst 1(GLSL.std.450) 43(FClamp) 174 175 166
177: 6(float) FSub 166 176
179: 6(float) ExtInst 1(GLSL.std.450) 26(Pow) 177 178
Store 171(fresnel) 179
180: 27(fvec3) Load 36(specular)
182: 6(float) Load 171(fresnel)
183: 27(fvec3) CompositeConstruct 182 182 182
184: 27(fvec3) ExtInst 1(GLSL.std.450) 46(FMix) 180 181 183
Store 36(specular) 184
185: 27(fvec3) Load 37(diffuse)
187: 6(float) Load 171(fresnel)
188: 27(fvec3) CompositeConstruct 187 187 187
189: 27(fvec3) ExtInst 1(GLSL.std.450) 46(FMix) 185 186 188
Store 37(diffuse) 189
Return
FunctionEnd
46(ApplyAmbientLight(vf3;f1;vf3;): 27(fvec3) Function None 42
43(diffuse): 28(ptr) FunctionParameter
44(ao): 29(ptr) FunctionParameter
45(lightColor): 28(ptr) FunctionParameter
47: Label
190: 6(float) Load 44(ao)
191: 27(fvec3) Load 43(diffuse)
192: 27(fvec3) VectorTimesScalar 191 190
193: 27(fvec3) Load 45(lightColor)
194: 27(fvec3) FMul 192 193
ReturnValue 194
FunctionEnd
50(GetShadow(vf3;): 6(float) Function None 48
49(ShadowCoord): 28(ptr) FunctionParameter
51: Label
197(d1): 29(ptr) Variable Function
211(d2): 29(ptr) Variable Function
217(d3): 29(ptr) Variable Function
223(d4): 29(ptr) Variable Function
229(result): 29(ptr) Variable Function
206: 205(ptr) AccessChain 202 204 145
207: 6(float) Load 206
208: 6(float) FMul 198 207
210: 6(float) FMul 208 209
Store 197(d1) 210
212: 205(ptr) AccessChain 202 204 145
213: 6(float) Load 212
214: 6(float) FMul 198 213
216: 6(float) FMul 214 215
Store 211(d2) 216
218: 205(ptr) AccessChain 202 204 145
219: 6(float) Load 218
220: 6(float) FMul 198 219
222: 6(float) FMul 220 221
Store 217(d3) 222
224: 205(ptr) AccessChain 202 204 145
225: 6(float) Load 224
226: 6(float) FMul 198 225
228: 6(float) FMul 226 227
Store 223(d4) 228
233: 230 Load 232(texShadow)
237: 234 Load 236(shadowSampler)
239: 238 SampledImage 233 237
240: 27(fvec3) Load 49(ShadowCoord)
241: 7(fvec2) VectorShuffle 240 240 0 1
243: 29(ptr) AccessChain 49(ShadowCoord) 242
244: 6(float) Load 243
245: 6(float) CompositeExtract 241 0
246: 6(float) CompositeExtract 241 1
247: 27(fvec3) CompositeConstruct 245 246 244
248: 6(float) CompositeExtract 247 2
249: 6(float) ImageSampleDrefExplicitLod 239 247 248 Lod 175
250: 6(float) FMul 198 249
251: 230 Load 232(texShadow)
252: 234 Load 236(shadowSampler)
253: 238 SampledImage 251 252
254: 27(fvec3) Load 49(ShadowCoord)
255: 7(fvec2) VectorShuffle 254 254 0 1
256: 6(float) Load 211(d2)
257: 6(float) FNegate 256
258: 6(float) Load 197(d1)
259: 7(fvec2) CompositeConstruct 257 258
260: 7(fvec2) FAdd 255 259
261: 29(ptr) AccessChain 49(ShadowCoord) 242
262: 6(float) Load 261
263: 6(float) CompositeExtract 260 0
264: 6(float) CompositeExtract 260 1
265: 27(fvec3) CompositeConstruct 263 264 262
266: 6(float) CompositeExtract 265 2
267: 6(float) ImageSampleDrefExplicitLod 253 265 266 Lod 175
268: 6(float) FAdd 250 267
269: 230 Load 232(texShadow)
270: 234 Load 236(shadowSampler)
271: 238 SampledImage 269 270
272: 27(fvec3) Load 49(ShadowCoord)
273: 7(fvec2) VectorShuffle 272 272 0 1
274: 6(float) Load 197(d1)
275: 6(float) FNegate 274
276: 6(float) Load 211(d2)
277: 6(float) FNegate 276
278: 7(fvec2) CompositeConstruct 275 277
279: 7(fvec2) FAdd 273 278
280: 29(ptr) AccessChain 49(ShadowCoord) 242
281: 6(float) Load 280
282: 6(float) CompositeExtract 279 0
283: 6(float) CompositeExtract 279 1
284: 27(fvec3) CompositeConstruct 282 283 281
285: 6(float) CompositeExtract 284 2
286: 6(float) ImageSampleDrefExplicitLod 271 284 285 Lod 175
287: 6(float) FAdd 268 286
288: 230 Load 232(texShadow)
289: 234 Load 236(shadowSampler)
290: 238 SampledImage 288 289
291: 27(fvec3) Load 49(ShadowCoord)
292: 7(fvec2) VectorShuffle 291 291 0 1
293: 6(float) Load 211(d2)
294: 6(float) Load 197(d1)
295: 6(float) FNegate 294
296: 7(fvec2) CompositeConstruct 293 295
297: 7(fvec2) FAdd 292 296
298: 29(ptr) AccessChain 49(ShadowCoord) 242
299: 6(float) Load 298
300: 6(float) CompositeExtract 297 0
301: 6(float) CompositeExtract 297 1
302: 27(fvec3) CompositeConstruct 300 301 299
303: 6(float) CompositeExtract 302 2
304: 6(float) ImageSampleDrefExplicitLod 290 302 303 Lod 175
305: 6(float) FAdd 287 304
306: 230 Load 232(texShadow)
307: 234 Load 236(shadowSampler)
308: 238 SampledImage 306 307
309: 27(fvec3) Load 49(ShadowCoord)
310: 7(fvec2) VectorShuffle 309 309 0 1
311: 6(float) Load 197(d1)
312: 6(float) Load 211(d2)
313: 7(fvec2) CompositeConstruct 311 312
314: 7(fvec2) FAdd 310 313
315: 29(ptr) AccessChain 49(ShadowCoord) 242
316: 6(float) Load 315
317: 6(float) CompositeExtract 314 0
318: 6(float) CompositeExtract 314 1
319: 27(fvec3) CompositeConstruct 317 318 316
320: 6(float) CompositeExtract 319 2
321: 6(float) ImageSampleDrefExplicitLod 308 319 320 Lod 175
322: 6(float) FAdd 305 321
323: 230 Load 232(texShadow)
324: 234 Load 236(shadowSampler)
325: 238 SampledImage 323 324
326: 27(fvec3) Load 49(ShadowCoord)
327: 7(fvec2) VectorShuffle 326 326 0 1
328: 6(float) Load 223(d4)
329: 6(float) FNegate 328
330: 6(float) Load 217(d3)
331: 7(fvec2) CompositeConstruct 329 330
332: 7(fvec2) FAdd 327 331
333: 29(ptr) AccessChain 49(ShadowCoord) 242
334: 6(float) Load 333
335: 6(float) CompositeExtract 332 0
336: 6(float) CompositeExtract 332 1
337: 27(fvec3) CompositeConstruct 335 336 334
338: 6(float) CompositeExtract 337 2
339: 6(float) ImageSampleDrefExplicitLod 325 337 338 Lod 175
340: 6(float) FAdd 322 339
341: 230 Load 232(texShadow)
342: 234 Load 236(shadowSampler)
343: 238 SampledImage 341 342
344: 27(fvec3) Load 49(ShadowCoord)
345: 7(fvec2) VectorShuffle 344 344 0 1
346: 6(float) Load 217(d3)
347: 6(float) FNegate 346
348: 6(float) Load 223(d4)
349: 6(float) FNegate 348
350: 7(fvec2) CompositeConstruct 347 349
351: 7(fvec2) FAdd 345 350
352: 29(ptr) AccessChain 49(ShadowCoord) 242
353: 6(float) Load 352
354: 6(float) CompositeExtract 351 0
355: 6(float) CompositeExtract 351 1
356: 27(fvec3) CompositeConstruct 354 355 353
357: 6(float) CompositeExtract 356 2
358: 6(float) ImageSampleDrefExplicitLod 343 356 357 Lod 175
359: 6(float) FAdd 340 358
360: 230 Load 232(texShadow)
361: 234 Load 236(shadowSampler)
362: 238 SampledImage 360 361
363: 27(fvec3) Load 49(ShadowCoord)
364: 7(fvec2) VectorShuffle 363 363 0 1
365: 6(float) Load 223(d4)
366: 6(float) Load 217(d3)
367: 6(float) FNegate 366
368: 7(fvec2) CompositeConstruct 365 367
369: 7(fvec2) FAdd 364 368
370: 29(ptr) AccessChain 49(ShadowCoord) 242
371: 6(float) Load 370
372: 6(float) CompositeExtract 369 0
373: 6(float) CompositeExtract 369 1
374: 27(fvec3) CompositeConstruct 372 373 371
375: 6(float) CompositeExtract 374 2
376: 6(float) ImageSampleDrefExplicitLod 362 374 375 Lod 175
377: 6(float) FAdd 359 376
378: 230 Load 232(texShadow)
379: 234 Load 236(shadowSampler)
380: 238 SampledImage 378 379
381: 27(fvec3) Load 49(ShadowCoord)
382: 7(fvec2) VectorShuffle 381 381 0 1
383: 6(float) Load 217(d3)
384: 6(float) Load 223(d4)
385: 7(fvec2) CompositeConstruct 383 384
386: 7(fvec2) FAdd 382 385
387: 29(ptr) AccessChain 49(ShadowCoord) 242
388: 6(float) Load 387
389: 6(float) CompositeExtract 386 0
390: 6(float) CompositeExtract 386 1
391: 27(fvec3) CompositeConstruct 389 390 388
392: 6(float) CompositeExtract 391 2
393: 6(float) ImageSampleDrefExplicitLod 380 391 392 Lod 175
394: 6(float) FAdd 377 393
396: 6(float) FDiv 394 395
Store 229(result) 396
397: 6(float) Load 229(result)
398: 6(float) Load 229(result)
399: 6(float) FMul 397 398
ReturnValue 399
FunctionEnd
55(GetShadowConeLight(u1;vf3;): 6(float) Function None 52
53(lightIndex): 17(ptr) FunctionParameter
54(shadowCoord): 28(ptr) FunctionParameter
56: Label
402(result): 29(ptr) Variable Function
406: 403 Load 405(lightShadowArrayTex)
407: 234 Load 236(shadowSampler)
409: 408 SampledImage 406 407
410: 27(fvec3) Load 54(shadowCoord)
411: 7(fvec2) VectorShuffle 410 410 0 1
412: 9(int) Load 53(lightIndex)
413: 6(float) ConvertUToF 412
414: 6(float) CompositeExtract 411 0
415: 6(float) CompositeExtract 411 1
416: 27(fvec3) CompositeConstruct 414 415 413
417: 29(ptr) AccessChain 54(shadowCoord) 242
418: 6(float) Load 417
419: 6(float) CompositeExtract 416 0
420: 6(float) CompositeExtract 416 1
421: 6(float) CompositeExtract 416 2
422: 108(fvec4) CompositeConstruct 419 420 421 418
423: 6(float) CompositeExtract 422 3
424: 6(float) ImageSampleDrefExplicitLod 409 422 423 Lod 175
Store 402(result) 424
425: 6(float) Load 402(result)
426: 6(float) Load 402(result)
427: 6(float) FMul 425 426
ReturnValue 427
FunctionEnd
66(ApplyLightCommon(vf3;vf3;f1;f1;vf3;vf3;vf3;vf3;): 27(fvec3) Function None 57
58(diffuseColor): 28(ptr) FunctionParameter
59(specularColor): 28(ptr) FunctionParameter
60(specularMask): 29(ptr) FunctionParameter
61(gloss): 29(ptr) FunctionParameter
62(normal): 28(ptr) FunctionParameter
63(viewDir): 28(ptr) FunctionParameter
64(lightDir): 28(ptr) FunctionParameter
65(lightColor): 28(ptr) FunctionParameter
67: Label
430(halfVec): 28(ptr) Variable Function
435(nDotH): 29(ptr) Variable Function
440(param): 28(ptr) Variable Function
442(param): 28(ptr) Variable Function
444(param): 28(ptr) Variable Function
446(param): 28(ptr) Variable Function
451(specularFactor): 29(ptr) Variable Function
462(nDotL): 29(ptr) Variable Function
431: 27(fvec3) Load 64(lightDir)
432: 27(fvec3) Load 63(viewDir)
433: 27(fvec3) FSub 431 432
434: 27(fvec3) ExtInst 1(GLSL.std.450) 69(Normalize) 433
Store 430(halfVec) 434
436: 27(fvec3) Load 430(halfVec)
437: 27(fvec3) Load 62(normal)
438: 6(float) Dot 436 437
439: 6(float) ExtInst 1(GLSL.std.450) 43(FClamp) 438 175 166
Store 435(nDotH) 439
441: 27(fvec3) Load 58(diffuseColor)
Store 440(param) 441
443: 27(fvec3) Load 59(specularColor)
Store 442(param) 443
445: 27(fvec3) Load 64(lightDir)
Store 444(param) 445
447: 27(fvec3) Load 430(halfVec)
Store 446(param) 447
448: 2 FunctionCall 40(FSchlick(vf3;vf3;vf3;vf3;) 440(param) 442(param) 444(param) 446(param)
449: 27(fvec3) Load 440(param)
Store 58(diffuseColor) 449
450: 27(fvec3) Load 442(param)
Store 59(specularColor) 450
452: 6(float) Load 60(specularMask)
453: 6(float) Load 435(nDotH)
454: 6(float) Load 61(gloss)
455: 6(float) ExtInst 1(GLSL.std.450) 26(Pow) 453 454
456: 6(float) FMul 452 455
457: 6(float) Load 61(gloss)
458: 6(float) FAdd 457 198
459: 6(float) FMul 456 458
461: 6(float) FDiv 459 460
Store 451(specularFactor) 461
463: 27(fvec3) Load 62(normal)
464: 27(fvec3) Load 64(lightDir)
465: 6(float) Dot 463 464
466: 6(float) ExtInst 1(GLSL.std.450) 43(FClamp) 465 175 166
Store 462(nDotL) 466
467: 6(float) Load 462(nDotL)
468: 27(fvec3) Load 65(lightColor)
469: 27(fvec3) VectorTimesScalar 468 467
470: 27(fvec3) Load 58(diffuseColor)
471: 6(float) Load 451(specularFactor)
472: 27(fvec3) Load 59(specularColor)
473: 27(fvec3) VectorTimesScalar 472 471
474: 27(fvec3) FAdd 470 473
475: 27(fvec3) FMul 469 474
ReturnValue 475
FunctionEnd
78(ApplyDirectionalLight(vf3;vf3;f1;f1;vf3;vf3;vf3;vf3;vf3;): 27(fvec3) Function None 68
69(diffuseColor): 28(ptr) FunctionParameter
70(specularColor): 28(ptr) FunctionParameter
71(specularMask): 29(ptr) FunctionParameter
72(gloss): 29(ptr) FunctionParameter
73(normal): 28(ptr) FunctionParameter
74(viewDir): 28(ptr) FunctionParameter
75(lightDir): 28(ptr) FunctionParameter
76(lightColor): 28(ptr) FunctionParameter
77(shadowCoord): 28(ptr) FunctionParameter
79: Label
478(shadow): 29(ptr) Variable Function
479(param): 28(ptr) Variable Function
483(param): 28(ptr) Variable Function
485(param): 28(ptr) Variable Function
487(param): 29(ptr) Variable Function
489(param): 29(ptr) Variable Function
491(param): 28(ptr) Variable Function
493(param): 28(ptr) Variable Function
495(param): 28(ptr) Variable Function
497(param): 28(ptr) Variable Function
480: 27(fvec3) Load 77(shadowCoord)
Store 479(param) 480
481: 6(float) FunctionCall 50(GetShadow(vf3;) 479(param)
Store 478(shadow) 481
482: 6(float) Load 478(shadow)
484: 27(fvec3) Load 69(diffuseColor)
Store 483(param) 484
486: 27(fvec3) Load 70(specularColor)
Store 485(param) 486
488: 6(float) Load 71(specularMask)
Store 487(param) 488
490: 6(float) Load 72(gloss)
Store 489(param) 490
492: 27(fvec3) Load 73(normal)
Store 491(param) 492
494: 27(fvec3) Load 74(viewDir)
Store 493(param) 494
496: 27(fvec3) Load 75(lightDir)
Store 495(param) 496
498: 27(fvec3) Load 76(lightColor)
Store 497(param) 498
499: 27(fvec3) FunctionCall 66(ApplyLightCommon(vf3;vf3;f1;f1;vf3;vf3;vf3;vf3;) 483(param) 485(param) 487(param) 489(param) 491(param) 493(param) 495(param) 497(param)
500: 27(fvec3) VectorTimesScalar 499 482
ReturnValue 500
FunctionEnd
91(ApplyPointLight(vf3;vf3;f1;f1;vf3;vf3;vf3;vf3;f1;vf3;): 27(fvec3) Function None 80
81(diffuseColor): 28(ptr) FunctionParameter
82(specularColor): 28(ptr) FunctionParameter
83(specularMask): 29(ptr) FunctionParameter
84(gloss): 29(ptr) FunctionParameter
85(normal): 28(ptr) FunctionParameter
86(viewDir): 28(ptr) FunctionParameter
87(worldPos): 28(ptr) FunctionParameter
88(lightPos): 28(ptr) FunctionParameter
89(lightRadiusSq): 29(ptr) FunctionParameter
90(lightColor): 28(ptr) FunctionParameter
92: Label
503(lightDir): 28(ptr) Variable Function
507(lightDistSq): 29(ptr) Variable Function
511(invLightDist): 29(ptr) Variable Function
517(distanceFalloff): 29(ptr) Variable Function
529(param): 28(ptr) Variable Function
531(param): 28(ptr) Variable Function
533(param): 29(ptr) Variable Function
535(param): 29(ptr) Variable Function
537(param): 28(ptr) Variable Function
539(param): 28(ptr) Variable Function
541(param): 28(ptr) Variable Function
543(param): 28(ptr) Variable Function
504: 27(fvec3) Load 88(lightPos)
505: 27(fvec3) Load 87(worldPos)
506: 27(fvec3) FSub 504 505
Store 503(lightDir) 506
508: 27(fvec3) Load 503(lightDir)
509: 27(fvec3) Load 503(lightDir)
510: 6(float) Dot 508 509
Store 507(lightDistSq) 510
512: 6(float) Load 507(lightDistSq)
513: 6(float) ExtInst 1(GLSL.std.450) 32(InverseSqrt) 512
Store 511(invLightDist) 513
514: 6(float) Load 511(invLightDist)
515: 27(fvec3) Load 503(lightDir)
516: 27(fvec3) VectorTimesScalar 515 514
Store 503(lightDir) 516
518: 6(float) Load 89(lightRadiusSq)
519: 6(float) Load 511(invLightDist)
520: 6(float) Load 511(invLightDist)
521: 6(float) FMul 519 520
522: 6(float) FMul 518 521
Store 517(distanceFalloff) 522
523: 6(float) Load 517(distanceFalloff)
524: 6(float) Load 517(distanceFalloff)
525: 6(float) ExtInst 1(GLSL.std.450) 32(InverseSqrt) 524
526: 6(float) FSub 523 525
527: 6(float) ExtInst 1(GLSL.std.450) 40(FMax) 175 526
Store 517(distanceFalloff) 527
528: 6(float) Load 517(distanceFalloff)
530: 27(fvec3) Load 81(diffuseColor)
Store 529(param) 530
532: 27(fvec3) Load 82(specularColor)
Store 531(param) 532
534: 6(float) Load 83(specularMask)
Store 533(param) 534
536: 6(float) Load 84(gloss)
Store 535(param) 536
538: 27(fvec3) Load 85(normal)
Store 537(param) 538
540: 27(fvec3) Load 86(viewDir)
Store 539(param) 540
542: 27(fvec3) Load 503(lightDir)
Store 541(param) 542
544: 27(fvec3) Load 90(lightColor)
Store 543(param) 544
545: 27(fvec3) FunctionCall 66(ApplyLightCommon(vf3;vf3;f1;f1;vf3;vf3;vf3;vf3;) 529(param) 531(param) 533(param) 535(param) 537(param) 539(param) 541(param) 543(param)
546: 27(fvec3) VectorTimesScalar 545 528
ReturnValue 546
FunctionEnd
106(ApplyConeLight(vf3;vf3;f1;f1;vf3;vf3;vf3;vf3;f1;vf3;vf3;vf2;): 27(fvec3) Function None 93
94(diffuseColor): 28(ptr) FunctionParameter
95(specularColor): 28(ptr) FunctionParameter
96(specularMask): 29(ptr) FunctionParameter
97(gloss): 29(ptr) FunctionParameter
98(normal): 28(ptr) FunctionParameter
99(viewDir): 28(ptr) FunctionParameter
100(worldPos): 28(ptr) FunctionParameter
101(lightPos): 28(ptr) FunctionParameter
102(lightRadiusSq): 29(ptr) FunctionParameter
103(lightColor): 28(ptr) FunctionParameter
104(coneDir): 28(ptr) FunctionParameter
105(coneAngles): 8(ptr) FunctionParameter
107: Label
549(lightDir): 28(ptr) Variable Function
553(lightDistSq): 29(ptr) Variable Function
557(invLightDist): 29(ptr) Variable Function
563(distanceFalloff): 29(ptr) Variable Function
574(coneFalloff): 29(ptr) Variable Function
590(param): 28(ptr) Variable Function
592(param): 28(ptr) Variable Function
594(param): 29(ptr) Variable Function
596(param): 29(ptr) Variable Function
598(param): 28(ptr) Variable Function
600(param): 28(ptr) Variable Function
602(param): 28(ptr) Variable Function
604(param): 28(ptr) Variable Function
550: 27(fvec3) Load 101(lightPos)
551: 27(fvec3) Load 100(worldPos)
552: 27(fvec3) FSub 550 551
Store 549(lightDir) 552
554: 27(fvec3) Load 549(lightDir)
555: 27(fvec3) Load 549(lightDir)
556: 6(float) Dot 554 555
Store 553(lightDistSq) 556
558: 6(float) Load 553(lightDistSq)
559: 6(float) ExtInst 1(GLSL.std.450) 32(InverseSqrt) 558
Store 557(invLightDist) 559
560: 6(float) Load 557(invLightDist)
561: 27(fvec3) Load 549(lightDir)
562: 27(fvec3) VectorTimesScalar 561 560
Store 549(lightDir) 562
564: 6(float) Load 102(lightRadiusSq)
565: 6(float) Load 557(invLightDist)
566: 6(float) Load 557(invLightDist)
567: 6(float) FMul 565 566
568: 6(float) FMul 564 567
Store 563(distanceFalloff) 568
569: 6(float) Load 563(distanceFalloff)
570: 6(float) Load 563(distanceFalloff)
571: 6(float) ExtInst 1(GLSL.std.450) 32(InverseSqrt) 570
572: 6(float) FSub 569 571
573: 6(float) ExtInst 1(GLSL.std.450) 40(FMax) 175 572
Store 563(distanceFalloff) 573
575: 27(fvec3) Load 549(lightDir)
576: 27(fvec3) FNegate 575
577: 27(fvec3) Load 104(coneDir)
578: 6(float) Dot 576 577
Store 574(coneFalloff) 578
579: 6(float) Load 574(coneFalloff)
580: 29(ptr) AccessChain 105(coneAngles) 140
581: 6(float) Load 580
582: 6(float) FSub 579 581
583: 29(ptr) AccessChain 105(coneAngles) 145
584: 6(float) Load 583
585: 6(float) FMul 582 584
586: 6(float) ExtInst 1(GLSL.std.450) 43(FClamp) 585 175 166
Store 574(coneFalloff) 586
587: 6(float) Load 574(coneFalloff)
588: 6(float) Load 563(distanceFalloff)
589: 6(float) FMul 587 588
591: 27(fvec3) Load 94(diffuseColor)
Store 590(param) 591
593: 27(fvec3) Load 95(specularColor)
Store 592(param) 593
595: 6(float) Load 96(specularMask)
Store 594(param) 595
597: 6(float) Load 97(gloss)
Store 596(param) 597
599: 27(fvec3) Load 98(normal)
Store 598(param) 599
601: 27(fvec3) Load 99(viewDir)
Store 600(param) 601
603: 27(fvec3) Load 549(lightDir)
Store 602(param) 603
605: 27(fvec3) Load 103(lightColor)
Store 604(param) 605
606: 27(fvec3) FunctionCall 66(ApplyLightCommon(vf3;vf3;f1;f1;vf3;vf3;vf3;vf3;) 590(param) 592(param) 594(param) 596(param) 598(param) 600(param) 602(param) 604(param)
607: 27(fvec3) VectorTimesScalar 606 589
ReturnValue 607
FunctionEnd
126(ApplyConeShadowedLight(vf3;vf3;f1;f1;vf3;vf3;vf3;vf3;f1;vf3;vf3;vf2;mf44;u1;): 27(fvec3) Function None 111
112(diffuseColor): 28(ptr) FunctionParameter
113(specularColor): 28(ptr) FunctionParameter
114(specularMask): 29(ptr) FunctionParameter
115(gloss): 29(ptr) FunctionParameter
116(normal): 28(ptr) FunctionParameter
117(viewDir): 28(ptr) FunctionParameter
118(worldPos): 28(ptr) FunctionParameter
119(lightPos): 28(ptr) FunctionParameter
120(lightRadiusSq): 29(ptr) FunctionParameter
121(lightColor): 28(ptr) FunctionParameter
122(coneDir): 28(ptr) FunctionParameter
123(coneAngles): 8(ptr) FunctionParameter
124(shadowTextureMatrix): 110(ptr) FunctionParameter
125(lightIndex): 17(ptr) FunctionParameter
127: Label
611(shadowCoord): 610(ptr) Variable Function
628(shadow): 29(ptr) Variable Function
629(param): 17(ptr) Variable Function
631(param): 28(ptr) Variable Function
636(param): 28(ptr) Variable Function
638(param): 28(ptr) Variable Function
640(param): 29(ptr) Variable Function
642(param): 29(ptr) Variable Function
644(param): 28(ptr) Variable Function
646(param): 28(ptr) Variable Function
648(param): 28(ptr) Variable Function
650(param): 28(ptr) Variable Function
652(param): 29(ptr) Variable Function
654(param): 28(ptr) Variable Function
656(param): 28(ptr) Variable Function
658(param): 8(ptr) Variable Function
612: 27(fvec3) Load 118(worldPos)
613: 6(float) CompositeExtract 612 0
614: 6(float) CompositeExtract 612 1
615: 6(float) CompositeExtract 612 2
616: 108(fvec4) CompositeConstruct 613 614 615 166
617: 109 Load 124(shadowTextureMatrix)
618: 108(fvec4) VectorTimesMatrix 616 617
Store 611(shadowCoord) 618
620: 29(ptr) AccessChain 611(shadowCoord) 619
621: 6(float) Load 620
622: 6(float) FDiv 166 621
623: 108(fvec4) Load 611(shadowCoord)
624: 27(fvec3) VectorShuffle 623 623 0 1 2
625: 27(fvec3) VectorTimesScalar 624 622
626: 108(fvec4) Load 611(shadowCoord)
627: 108(fvec4) VectorShuffle 626 625 4 5 6 3
Store 611(shadowCoord) 627
630: 9(int) Load 125(lightIndex)
Store 629(param) 630
632: 108(fvec4) Load 611(shadowCoord)
633: 27(fvec3) VectorShuffle 632 632 0 1 2
Store 631(param) 633
634: 6(float) FunctionCall 55(GetShadowConeLight(u1;vf3;) 629(param) 631(param)
Store 628(shadow) 634
635: 6(float) Load 628(shadow)
637: 27(fvec3) Load 112(diffuseColor)
Store 636(param) 637
639: 27(fvec3) Load 113(specularColor)
Store 638(param) 639
641: 6(float) Load 114(specularMask)
Store 640(param) 641
643: 6(float) Load 115(gloss)
Store 642(param) 643
645: 27(fvec3) Load 116(normal)
Store 644(param) 645
647: 27(fvec3) Load 117(viewDir)
Store 646(param) 647
649: 27(fvec3) Load 118(worldPos)
Store 648(param) 649
651: 27(fvec3) Load 119(lightPos)
Store 650(param) 651
653: 6(float) Load 120(lightRadiusSq)
Store 652(param) 653
655: 27(fvec3) Load 121(lightColor)
Store 654(param) 655
657: 27(fvec3) Load 122(coneDir)
Store 656(param) 657
659: 7(fvec2) Load 123(coneAngles)
Store 658(param) 659
660: 27(fvec3) FunctionCall 106(ApplyConeLight(vf3;vf3;f1;f1;vf3;vf3;vf3;vf3;f1;vf3;vf3;vf2;) 636(param) 638(param) 640(param) 642(param) 644(param) 646(param) 648(param) 650(param) 652(param) 654(param) 656(param) 658(param)
661: 27(fvec3) VectorTimesScalar 660 635
ReturnValue 661
FunctionEnd
132(@main(struct-VSOutput-vf4-vf3-vf2-vf3-vf3-vf3-vf3-vf31;): 27(fvec3) Function None 130
131(vsOutput): 129(ptr) FunctionParameter
133: Label
664(pixelPos): 16(ptr) Variable Function
670(diffuseAlbedo): 28(ptr) Variable Function
687(colorSum): 28(ptr) Variable Function
688(ao): 29(ptr) Variable Function
693(param): 28(ptr) Variable Function
695(param): 29(ptr) Variable Function
697(param): 28(ptr) Variable Function
704(gloss): 29(ptr) Variable Function
706(normal): 28(ptr) Variable Function
721(param): 28(ptr) Variable Function
723(param): 29(ptr) Variable Function
730(tbn): 729(ptr) Variable Function
760(specularAlbedo): 28(ptr) Variable Function
763(specularMask): 29(ptr) Variable Function
776(viewDir): 28(ptr) Variable Function
782(param): 28(ptr) Variable Function
784(param): 28(ptr) Variable Function
786(param): 29(ptr) Variable Function
788(param): 29(ptr) Variable Function
790(param): 28(ptr) Variable Function
792(param): 28(ptr) Variable Function
794(param): 28(ptr) Variable Function
797(param): 28(ptr) Variable Function
800(param): 28(ptr) Variable Function
806(tilePos): 16(ptr) Variable Function
809(param): 8(ptr) Variable Function
810(param): 8(ptr) Variable Function
816(tileIndex): 17(ptr) Variable Function
817(param): 16(ptr) Variable Function
819(param): 17(ptr) Variable Function
824(tileOffset): 17(ptr) Variable Function
825(param): 17(ptr) Variable Function
831(lightBitMaskGroups): 830(ptr) Variable Function
833(tileLightCount): 17(ptr) Variable Function
843(tileLightCountSphere): 17(ptr) Variable Function
848(tileLightCountCone): 17(ptr) Variable Function
853(tileLightCountConeShadowed): 17(ptr) Variable Function
858(tileLightLoadOffset): 17(ptr) Variable Function
861(n): 17(ptr) Variable Function
871(lightIndex): 17(ptr) Variable Function
878(lightData): 877(ptr) Variable Function
902(param): 28(ptr) Variable Function
904(param): 28(ptr) Variable Function
906(param): 29(ptr) Variable Function
908(param): 29(ptr) Variable Function
910(param): 28(ptr) Variable Function
912(param): 28(ptr) Variable Function
914(param): 28(ptr) Variable Function
917(param): 28(ptr) Variable Function
920(param): 29(ptr) Variable Function
923(param): 28(ptr) Variable Function
933(n): 17(ptr) Variable Function
942(lightIndex): 17(ptr) Variable Function
947(lightData): 877(ptr) Variable Function
965(param): 28(ptr) Variable Function
967(param): 28(ptr) Variable Function
969(param): 29(ptr) Variable Function
971(param): 29(ptr) Variable Function
973(param): 28(ptr) Variable Function
975(param): 28(ptr) Variable Function
977(param): 28(ptr) Variable Function
980(param): 28(ptr) Variable Function
983(param): 29(ptr) Variable Function
986(param): 28(ptr) Variable Function
989(param): 28(ptr) Variable Function
992(param): 8(ptr) Variable Function
1002(n): 17(ptr) Variable Function
1011(lightIndex): 17(ptr) Variable Function
1016(lightData): 877(ptr) Variable Function
1034(param): 28(ptr) Variable Function
1036(param): 28(ptr) Variable Function
1038(param): 29(ptr) Variable Function
1040(param): 29(ptr) Variable Function
1042(param): 28(ptr) Variable Function
1044(param): 28(ptr) Variable Function
1046(param): 28(ptr) Variable Function
1049(param): 28(ptr) Variable Function
1052(param): 29(ptr) Variable Function
1055(param): 28(ptr) Variable Function
1058(param): 28(ptr) Variable Function
1061(param): 8(ptr) Variable Function
1064(param): 110(ptr) Variable Function
1067(param): 17(ptr) Variable Function
666: 610(ptr) AccessChain 131(vsOutput) 665
667: 108(fvec4) Load 666
668: 7(fvec2) VectorShuffle 667 667 0 1
669: 10(ivec2) ConvertFToU 668
Store 664(pixelPos) 669
674: 671 Load 673(texDiffuse)
676: 234 Load 675(sampler0)
678: 677 SampledImage 674 676
680: 8(ptr) AccessChain 131(vsOutput) 679
681: 7(fvec2) Load 680
682: 108(fvec4) ImageSampleImplicitLod 678 681
683: 6(float) CompositeExtract 682 0
684: 6(float) CompositeExtract 682 1
685: 6(float) CompositeExtract 682 2
686: 27(fvec3) CompositeConstruct 683 684 685
Store 670(diffuseAlbedo) 686
Store 687(colorSum) 186
690: 671 Load 689(texSSAO)
691: 10(ivec2) Load 664(pixelPos)
692: 6(float) ImageFetch 690 691 Lod 665
Store 688(ao) 692
694: 27(fvec3) Load 670(diffuseAlbedo)
Store 693(param) 694
696: 6(float) Load 688(ao)
Store 695(param) 696
699: 698(ptr) AccessChain 202 679
700: 27(fvec3) Load 699
Store 697(param) 700
701: 27(fvec3) FunctionCall 46(ApplyAmbientLight(vf3;f1;vf3;) 693(param) 695(param) 697(param)
702: 27(fvec3) Load 687(colorSum)
703: 27(fvec3) FAdd 702 701
Store 687(colorSum) 703
Store 704(gloss) 705
708: 671 Load 707(texNormal)
709: 234 Load 675(sampler0)
710: 677 SampledImage 708 709
711: 8(ptr) AccessChain 131(vsOutput) 679
712: 7(fvec2) Load 711
713: 108(fvec4) ImageSampleImplicitLod 710 712
714: 6(float) CompositeExtract 713 0
715: 6(float) CompositeExtract 713 1
716: 6(float) CompositeExtract 713 2
717: 27(fvec3) CompositeConstruct 714 715 716
718: 27(fvec3) VectorTimesScalar 717 198
719: 27(fvec3) CompositeConstruct 166 166 166
720: 27(fvec3) FSub 718 719
Store 706(normal) 720
722: 27(fvec3) Load 706(normal)
Store 721(param) 722
724: 6(float) Load 704(gloss)
Store 723(param) 724
725: 2 FunctionCall 33(AntiAliasSpecular(vf3;f1;) 721(param) 723(param)
726: 27(fvec3) Load 721(param)
Store 706(normal) 726
727: 6(float) Load 723(param)
Store 704(gloss) 727
732: 28(ptr) AccessChain 131(vsOutput) 731
733: 27(fvec3) Load 732
734: 27(fvec3) ExtInst 1(GLSL.std.450) 69(Normalize) 733
736: 28(ptr) AccessChain 131(vsOutput) 735
737: 27(fvec3) Load 736
738: 27(fvec3) ExtInst 1(GLSL.std.450) 69(Normalize) 737
740: 28(ptr) AccessChain 131(vsOutput) 739
741: 27(fvec3) Load 740
742: 27(fvec3) ExtInst 1(GLSL.std.450) 69(Normalize) 741
743: 6(float) CompositeExtract 734 0
744: 6(float) CompositeExtract 734 1
745: 6(float) CompositeExtract 734 2
746: 6(float) CompositeExtract 738 0
747: 6(float) CompositeExtract 738 1
748: 6(float) CompositeExtract 738 2
749: 6(float) CompositeExtract 742 0
750: 6(float) CompositeExtract 742 1
751: 6(float) CompositeExtract 742 2
752: 27(fvec3) CompositeConstruct 743 744 745
753: 27(fvec3) CompositeConstruct 746 747 748
754: 27(fvec3) CompositeConstruct 749 750 751
755: 728 CompositeConstruct 752 753 754
Store 730(tbn) 755
756: 728 Load 730(tbn)
757: 27(fvec3) Load 706(normal)
758: 27(fvec3) MatrixTimesVector 756 757
759: 27(fvec3) ExtInst 1(GLSL.std.450) 69(Normalize) 758
Store 706(normal) 759
Store 760(specularAlbedo) 762
765: 671 Load 764(texSpecular)
766: 234 Load 675(sampler0)
767: 677 SampledImage 765 766
768: 8(ptr) AccessChain 131(vsOutput) 679
769: 7(fvec2) Load 768
770: 108(fvec4) ImageSampleImplicitLod 767 769
771: 6(float) CompositeExtract 770 0
772: 6(float) CompositeExtract 770 1
773: 6(float) CompositeExtract 770 2
774: 27(fvec3) CompositeConstruct 771 772 773
775: 6(float) CompositeExtract 774 1
Store 763(specularMask) 775
777: 28(ptr) AccessChain 131(vsOutput) 204
778: 27(fvec3) Load 777
779: 27(fvec3) ExtInst 1(GLSL.std.450) 69(Normalize) 778
Store 776(viewDir) 779
783: 27(fvec3) Load 670(diffuseAlbedo)
Store 782(param) 783
785: 27(fvec3) Load 760(specularAlbedo)
Store 784(param) 785
787: 6(float) Load 763(specularMask)
Store 786(param) 787
789: 6(float) Load 704(gloss)
Store 788(param) 789
791: 27(fvec3) Load 706(normal)
Store 790(param) 791
793: 27(fvec3) Load 776(viewDir)
Store 792(param) 793
795: 698(ptr) AccessChain 202 665
796: 27(fvec3) Load 795
Store 794(param) 796
798: 698(ptr) AccessChain 202 780
799: 27(fvec3) Load 798
Store 797(param) 799
801: 28(ptr) AccessChain 131(vsOutput) 781
802: 27(fvec3) Load 801
Store 800(param) 802
803: 27(fvec3) FunctionCall 78(ApplyDirectionalLight(vf3;vf3;f1;f1;vf3;vf3;vf3;vf3;vf3;) 782(param) 784(param) 786(param) 788(param) 790(param) 792(param) 794(param) 797(param) 800(param)
804: 27(fvec3) Load 687(colorSum)
805: 27(fvec3) FAdd 804 803
Store 687(colorSum) 805
807: 10(ivec2) Load 664(pixelPos)
808: 7(fvec2) ConvertUToF 807
Store 809(param) 808
812: 811(ptr) AccessChain 202 781
813: 108(fvec4) Load 812
814: 7(fvec2) VectorShuffle 813 813 0 1
Store 810(param) 814
815: 10(ivec2) FunctionCall 14(GetTilePos(vf2;vf2;) 809(param) 810(param)
Store 806(tilePos) 815
818: 10(ivec2) Load 806(tilePos)
Store 817(param) 818
821: 820(ptr) AccessChain 202 739 145
822: 9(int) Load 821
Store 819(param) 822
823: 9(int) FunctionCall 21(GetTileIndex(vu2;u1;) 817(param) 819(param)
Store 816(tileIndex) 823
826: 9(int) Load 816(tileIndex)
Store 825(param) 826
827: 9(int) FunctionCall 25(GetTileOffset(u1;) 825(param)
Store 824(tileOffset) 827
Store 831(lightBitMaskGroups) 832
838: 9(int) Load 824(tileOffset)
839: 9(int) IAdd 838 145
840: 203(int) ShiftRightLogical 839 679
841: 820(ptr) AccessChain 837(lightGrid) 665 840
842: 9(int) Load 841
Store 833(tileLightCount) 842
844: 9(int) Load 833(tileLightCount)
845: 9(int) ShiftRightLogical 844 665
847: 9(int) BitwiseAnd 845 846
Store 843(tileLightCountSphere) 847
849: 9(int) Load 833(tileLightCount)
851: 9(int) ShiftRightLogical 849 850
852: 9(int) BitwiseAnd 851 846
Store 848(tileLightCountCone) 852
854: 9(int) Load 833(tileLightCount)
856: 9(int) ShiftRightLogical 854 855
857: 9(int) BitwiseAnd 856 846
Store 853(tileLightCountConeShadowed) 857
859: 9(int) Load 824(tileOffset)
860: 9(int) IAdd 859 828
Store 858(tileLightLoadOffset) 860
Store 861(n) 145
Branch 862
862: Label
LoopMerge 864 865 None
Branch 866
866: Label
867: 9(int) Load 861(n)
868: 9(int) Load 843(tileLightCountSphere)
870: 869(bool) ULessThan 867 868
BranchConditional 870 863 864
863: Label
872: 9(int) Load 858(tileLightLoadOffset)
873: 203(int) ShiftRightLogical 872 679
874: 820(ptr) AccessChain 837(lightGrid) 665 873
875: 9(int) Load 874
Store 871(lightIndex) 875
884: 9(int) Load 871(lightIndex)
886: 885(ptr) AccessChain 883(lightBuffer) 665 884
887:879(LightData) Load 886
888: 27(fvec3) CompositeExtract 887 0
889: 28(ptr) AccessChain 878(lightData) 665
Store 889 888
890: 6(float) CompositeExtract 887 1
891: 29(ptr) AccessChain 878(lightData) 780
Store 891 890
892: 27(fvec3) CompositeExtract 887 2
893: 28(ptr) AccessChain 878(lightData) 679
Store 893 892
894: 9(int) CompositeExtract 887 3
895: 17(ptr) AccessChain 878(lightData) 204
Store 895 894
896: 27(fvec3) CompositeExtract 887 4
897: 28(ptr) AccessChain 878(lightData) 781
Store 897 896
898: 7(fvec2) CompositeExtract 887 5
899: 8(ptr) AccessChain 878(lightData) 739
Store 899 898
900: 109 CompositeExtract 887 6
901: 110(ptr) AccessChain 878(lightData) 731
Store 901 900
903: 27(fvec3) Load 670(diffuseAlbedo)
Store 902(param) 903
905: 27(fvec3) Load 760(specularAlbedo)
Store 904(param) 905
907: 6(float) Load 763(specularMask)
Store 906(param) 907
909: 6(float) Load 704(gloss)
Store 908(param) 909
911: 27(fvec3) Load 706(normal)
Store 910(param) 911
913: 27(fvec3) Load 776(viewDir)
Store 912(param) 913
915: 28(ptr) AccessChain 131(vsOutput) 780
916: 27(fvec3) Load 915
Store 914(param) 916
918: 28(ptr) AccessChain 878(lightData) 665
919: 27(fvec3) Load 918
Store 917(param) 919
921: 29(ptr) AccessChain 878(lightData) 780
922: 6(float) Load 921
Store 920(param) 922
924: 28(ptr) AccessChain 878(lightData) 679
925: 27(fvec3) Load 924
Store 923(param) 925
926: 27(fvec3) FunctionCall 91(ApplyPointLight(vf3;vf3;f1;f1;vf3;vf3;vf3;vf3;f1;vf3;) 902(param) 904(param) 906(param) 908(param) 910(param) 912(param) 914(param) 917(param) 920(param) 923(param)
927: 27(fvec3) Load 687(colorSum)
928: 27(fvec3) FAdd 927 926
Store 687(colorSum) 928
Branch 865
865: Label
929: 9(int) Load 861(n)
930: 9(int) IAdd 929 780
Store 861(n) 930
931: 9(int) Load 858(tileLightLoadOffset)
932: 9(int) IAdd 931 828
Store 858(tileLightLoadOffset) 932
Branch 862
864: Label
Store 933(n) 145
Branch 934
934: Label
LoopMerge 936 937 None
Branch 938
938: Label
939: 9(int) Load 933(n)
940: 9(int) Load 848(tileLightCountCone)
941: 869(bool) ULessThan 939 940
BranchConditional 941 935 936
935: Label
943: 9(int) Load 858(tileLightLoadOffset)
944: 203(int) ShiftRightLogical 943 679
945: 820(ptr) AccessChain 837(lightGrid) 665 944
946: 9(int) Load 945
Store 942(lightIndex) 946
948: 9(int) Load 942(lightIndex)
949: 885(ptr) AccessChain 883(lightBuffer) 665 948
950:879(LightData) Load 949
951: 27(fvec3) CompositeExtract 950 0
952: 28(ptr) AccessChain 947(lightData) 665
Store 952 951
953: 6(float) CompositeExtract 950 1
954: 29(ptr) AccessChain 947(lightData) 780
Store 954 953
955: 27(fvec3) CompositeExtract 950 2
956: 28(ptr) AccessChain 947(lightData) 679
Store 956 955
957: 9(int) CompositeExtract 950 3
958: 17(ptr) AccessChain 947(lightData) 204
Store 958 957
959: 27(fvec3) CompositeExtract 950 4
960: 28(ptr) AccessChain 947(lightData) 781
Store 960 959
961: 7(fvec2) CompositeExtract 950 5
962: 8(ptr) AccessChain 947(lightData) 739
Store 962 961
963: 109 CompositeExtract 950 6
964: 110(ptr) AccessChain 947(lightData) 731
Store 964 963
966: 27(fvec3) Load 670(diffuseAlbedo)
Store 965(param) 966
968: 27(fvec3) Load 760(specularAlbedo)
Store 967(param) 968
970: 6(float) Load 763(specularMask)
Store 969(param) 970
972: 6(float) Load 704(gloss)
Store 971(param) 972
974: 27(fvec3) Load 706(normal)
Store 973(param) 974
976: 27(fvec3) Load 776(viewDir)
Store 975(param) 976
978: 28(ptr) AccessChain 131(vsOutput) 780
979: 27(fvec3) Load 978
Store 977(param) 979
981: 28(ptr) AccessChain 947(lightData) 665
982: 27(fvec3) Load 981
Store 980(param) 982
984: 29(ptr) AccessChain 947(lightData) 780
985: 6(float) Load 984
Store 983(param) 985
987: 28(ptr) AccessChain 947(lightData) 679
988: 27(fvec3) Load 987
Store 986(param) 988
990: 28(ptr) AccessChain 947(lightData) 781
991: 27(fvec3) Load 990
Store 989(param) 991
993: 8(ptr) AccessChain 947(lightData) 739
994: 7(fvec2) Load 993
Store 992(param) 994
995: 27(fvec3) FunctionCall 106(ApplyConeLight(vf3;vf3;f1;f1;vf3;vf3;vf3;vf3;f1;vf3;vf3;vf2;) 965(param) 967(param) 969(param) 971(param) 973(param) 975(param) 977(param) 980(param) 983(param) 986(param) 989(param) 992(param)
996: 27(fvec3) Load 687(colorSum)
997: 27(fvec3) FAdd 996 995
Store 687(colorSum) 997
Branch 937
937: Label
998: 9(int) Load 933(n)
999: 9(int) IAdd 998 780
Store 933(n) 999
1000: 9(int) Load 858(tileLightLoadOffset)
1001: 9(int) IAdd 1000 828
Store 858(tileLightLoadOffset) 1001
Branch 934
936: Label
Store 1002(n) 145
Branch 1003
1003: Label
LoopMerge 1005 1006 None
Branch 1007
1007: Label
1008: 9(int) Load 1002(n)
1009: 9(int) Load 853(tileLightCountConeShadowed)
1010: 869(bool) ULessThan 1008 1009
BranchConditional 1010 1004 1005
1004: Label
1012: 9(int) Load 858(tileLightLoadOffset)
1013: 203(int) ShiftRightLogical 1012 679
1014: 820(ptr) AccessChain 837(lightGrid) 665 1013
1015: 9(int) Load 1014
Store 1011(lightIndex) 1015
1017: 9(int) Load 1011(lightIndex)
1018: 885(ptr) AccessChain 883(lightBuffer) 665 1017
1019:879(LightData) Load 1018
1020: 27(fvec3) CompositeExtract 1019 0
1021: 28(ptr) AccessChain 1016(lightData) 665
Store 1021 1020
1022: 6(float) CompositeExtract 1019 1
1023: 29(ptr) AccessChain 1016(lightData) 780
Store 1023 1022
1024: 27(fvec3) CompositeExtract 1019 2
1025: 28(ptr) AccessChain 1016(lightData) 679
Store 1025 1024
1026: 9(int) CompositeExtract 1019 3
1027: 17(ptr) AccessChain 1016(lightData) 204
Store 1027 1026
1028: 27(fvec3) CompositeExtract 1019 4
1029: 28(ptr) AccessChain 1016(lightData) 781
Store 1029 1028
1030: 7(fvec2) CompositeExtract 1019 5
1031: 8(ptr) AccessChain 1016(lightData) 739
Store 1031 1030
1032: 109 CompositeExtract 1019 6
1033: 110(ptr) AccessChain 1016(lightData) 731
Store 1033 1032
1035: 27(fvec3) Load 670(diffuseAlbedo)
Store 1034(param) 1035
1037: 27(fvec3) Load 760(specularAlbedo)
Store 1036(param) 1037
1039: 6(float) Load 763(specularMask)
Store 1038(param) 1039
1041: 6(float) Load 704(gloss)
Store 1040(param) 1041
1043: 27(fvec3) Load 706(normal)
Store 1042(param) 1043
1045: 27(fvec3) Load 776(viewDir)
Store 1044(param) 1045
1047: 28(ptr) AccessChain 131(vsOutput) 780
1048: 27(fvec3) Load 1047
Store 1046(param) 1048
1050: 28(ptr) AccessChain 1016(lightData) 665
1051: 27(fvec3) Load 1050
Store 1049(param) 1051
1053: 29(ptr) AccessChain 1016(lightData) 780
1054: 6(float) Load 1053
Store 1052(param) 1054
1056: 28(ptr) AccessChain 1016(lightData) 679
1057: 27(fvec3) Load 1056
Store 1055(param) 1057
1059: 28(ptr) AccessChain 1016(lightData) 781
1060: 27(fvec3) Load 1059
Store 1058(param) 1060
1062: 8(ptr) AccessChain 1016(lightData) 739
1063: 7(fvec2) Load 1062
Store 1061(param) 1063
1065: 110(ptr) AccessChain 1016(lightData) 731
1066: 109 Load 1065
Store 1064(param) 1066
1068: 9(int) Load 1011(lightIndex)
Store 1067(param) 1068
1069: 27(fvec3) FunctionCall 126(ApplyConeShadowedLight(vf3;vf3;f1;f1;vf3;vf3;vf3;vf3;f1;vf3;vf3;vf2;mf44;u1;) 1034(param) 1036(param) 1038(param) 1040(param) 1042(param) 1044(param) 1046(param) 1049(param) 1052(param) 1055(param) 1058(param) 1061(param) 1064(param) 1067(param)
1070: 27(fvec3) Load 687(colorSum)
1071: 27(fvec3) FAdd 1070 1069
Store 687(colorSum) 1071
Branch 1006
1006: Label
1072: 9(int) Load 1002(n)
1073: 9(int) IAdd 1072 780
Store 1002(n) 1073
1074: 9(int) Load 858(tileLightLoadOffset)
1075: 9(int) IAdd 1074 828
Store 858(tileLightLoadOffset) 1075
Branch 1003
1005: Label
1076: 27(fvec3) Load 687(colorSum)
ReturnValue 1076
FunctionEnd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment