spv.debuginfo.glsl.geom // Module Version 10000 // Generated by (magic number): 8000b // Id's are bound by 280 Capability Geometry Capability MultiViewport Extension "SPV_KHR_non_semantic_info" 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" 3: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 EntryPoint Geometry 14 "main" 65 69 75 79 83 87 124 180 240 254 260 264 ExecutionMode 14 Triangles ExecutionMode 14 Invocations 2 ExecutionMode 14 OutputTriangleStrip ExecutionMode 14 OutputVertices 3 2: String "spv.debuginfo.glsl.geom" 8: String "uint" 16: String "main" 19: String "/* The MIT License (MIT) Copyright (c) 2022 Sascha Willems Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #version 450 #extension GL_ARB_viewport_array : enable layout (triangles, invocations = 2) in; layout (triangle_strip, max_vertices = 3) out; layout (binding = 0) uniform UBO { mat4 projection[2]; mat4 modelview[2]; vec4 lightPos; } ubo; layout (location = 0) in vec3 inNormal[]; layout (location = 1) in vec3 inColor[]; layout (location = 0) out vec3 outNormal; layout (location = 1) out vec3 outColor; layout (location = 2) out vec3 outViewVec; layout (location = 3) out vec3 outLightVec; void main(void) { for(int i = 0; i < gl_in.length(); i++) { outNormal = mat3(ubo.modelview[gl_InvocationID]) * inNormal[i]; outColor = inColor[i]; vec4 pos = gl_in[i].gl_Position; vec4 worldPos = (ubo.modelview[gl_InvocationID] * pos); vec3 lPos = vec3(ubo.modelview[gl_InvocationID] * ubo.lightPos); outLightVec = lPos - worldPos.xyz; outViewVec = -worldPos.xyz; gl_Position = ubo.projection[gl_InvocationID] * worldPos; // Set the viewport index that the vertex will be emitted to gl_ViewportIndex = gl_InvocationID; gl_PrimitiveID = gl_PrimitiveIDIn; EmitVertex(); } EndPrimitive(); } " 26: String "float" 33: String "bool" 42: String "projection" 46: String "modelview" 49: String "lightPos" 52: String "UBO" 57: String "ubo" 67: String "inNormal" 71: String "inColor" 77: String "outNormal" 81: String "outColor" 85: String "outViewVec" 89: String "outLightVec" 97: String "int" 103: String "i" 126: String "gl_InvocationID" 159: String "pos" 167: String "gl_Position" 169: String "gl_PointSize" 171: String "gl_ClipDistance" 173: String "gl_CullDistance" 175: String "gl_PerVertex" 182: String "gl_in" 190: String "worldPos" 203: String "lPos" 242: String "" 256: String "gl_ViewportIndex" 262: String "gl_PrimitiveID" 266: String "gl_PrimitiveIDIn" SourceExtension "GL_ARB_viewport_array" Name 14 "main" Name 40 "UBO" MemberName 40(UBO) 0 "projection" MemberName 40(UBO) 1 "modelview" MemberName 40(UBO) 2 "lightPos" Name 55 "ubo" Name 65 "inNormal" Name 69 "inColor" Name 75 "outNormal" Name 79 "outColor" Name 83 "outViewVec" Name 87 "outLightVec" Name 101 "i" Name 124 "gl_InvocationID" Name 157 "pos" Name 165 "gl_PerVertex" MemberName 165(gl_PerVertex) 0 "gl_Position" MemberName 165(gl_PerVertex) 1 "gl_PointSize" MemberName 165(gl_PerVertex) 2 "gl_ClipDistance" MemberName 165(gl_PerVertex) 3 "gl_CullDistance" Name 180 "gl_in" Name 188 "worldPos" Name 201 "lPos" Name 231 "gl_PerVertex" MemberName 231(gl_PerVertex) 0 "gl_Position" MemberName 231(gl_PerVertex) 1 "gl_PointSize" MemberName 231(gl_PerVertex) 2 "gl_ClipDistance" MemberName 231(gl_PerVertex) 3 "gl_CullDistance" Name 240 "" Name 254 "gl_ViewportIndex" Name 260 "gl_PrimitiveID" Name 264 "gl_PrimitiveIDIn" Decorate 36 ArrayStride 64 Decorate 38 ArrayStride 64 Decorate 40(UBO) Block MemberDecorate 40(UBO) 0 ColMajor MemberDecorate 40(UBO) 0 MatrixStride 16 MemberDecorate 40(UBO) 0 Offset 0 MemberDecorate 40(UBO) 1 ColMajor MemberDecorate 40(UBO) 1 MatrixStride 16 MemberDecorate 40(UBO) 1 Offset 128 MemberDecorate 40(UBO) 2 Offset 256 Decorate 55(ubo) Binding 0 Decorate 55(ubo) DescriptorSet 0 Decorate 65(inNormal) Location 0 Decorate 69(inColor) Location 1 Decorate 75(outNormal) Location 0 Decorate 79(outColor) Location 1 Decorate 83(outViewVec) Location 2 Decorate 87(outLightVec) Location 3 Decorate 124(gl_InvocationID) BuiltIn InvocationId Decorate 165(gl_PerVertex) Block MemberDecorate 165(gl_PerVertex) 0 BuiltIn Position MemberDecorate 165(gl_PerVertex) 1 BuiltIn PointSize MemberDecorate 165(gl_PerVertex) 2 BuiltIn ClipDistance MemberDecorate 165(gl_PerVertex) 3 BuiltIn CullDistance Decorate 231(gl_PerVertex) Block MemberDecorate 231(gl_PerVertex) 0 BuiltIn Position MemberDecorate 231(gl_PerVertex) 1 BuiltIn PointSize MemberDecorate 231(gl_PerVertex) 2 BuiltIn ClipDistance MemberDecorate 231(gl_PerVertex) 3 BuiltIn CullDistance Decorate 254(gl_ViewportIndex) BuiltIn ViewportIndex Decorate 260(gl_PrimitiveID) BuiltIn PrimitiveId Decorate 264(gl_PrimitiveIDIn) BuiltIn PrimitiveId 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 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12 13: 7(int) Constant 3 6: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 18: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 19 20: 7(int) Constant 47 22: 7(int) Constant 1 23: 7(int) Constant 4 24: 7(int) Constant 2 21: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 22 23 18 24 17: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 16 6 18 20 12 21 16 13 20 25: TypeFloat 32 27: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 26 10 13 12 28: TypeVector 25(float) 4 29: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 27 23 30: TypeMatrix 28(fvec4) 4 32: TypeBool 34: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 33 10 24 12 35: 32(bool) ConstantTrue 31: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 29 23 35 36: TypeArray 30 24 37: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 31 24 38: TypeArray 30 24 39: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 31 24 40(UBO): TypeStruct 36 38 28(fvec4) 43: 7(int) Constant 34 44: 7(int) Constant 7 41: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 42 37 18 43 44 12 12 13 47: 7(int) Constant 35 45: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 46 39 18 47 44 12 12 13 50: 7(int) Constant 36 48: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 49 29 18 50 44 12 12 13 51: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 52 22 18 10 12 21 52 12 13 41 45 48 53: TypePointer Uniform 40(UBO) 54: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 51 24 12 55(ubo): 53(ptr) Variable Uniform 58: 7(int) Constant 8 56: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 57 51 18 10 12 21 57 55(ubo) 58 59: TypeVector 25(float) 3 60: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 27 13 61: TypeArray 59(fvec3) 13 62: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 60 13 63: TypePointer Input 61 64: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 62 22 12 65(inNormal): 63(ptr) Variable Input 68: 7(int) Constant 39 66: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 67 62 18 68 12 21 67 65(inNormal) 58 69(inColor): 63(ptr) Variable Input 72: 7(int) Constant 40 70: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 71 62 18 72 12 21 71 69(inColor) 58 73: TypePointer Output 59(fvec3) 74: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 60 13 12 75(outNormal): 73(ptr) Variable Output 78: 7(int) Constant 42 76: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 77 60 18 78 12 21 77 75(outNormal) 58 79(outColor): 73(ptr) Variable Output 82: 7(int) Constant 43 80: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 81 60 18 82 12 21 81 79(outColor) 58 83(outViewVec): 73(ptr) Variable Output 86: 7(int) Constant 44 84: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 85 60 18 86 12 21 85 83(outViewVec) 58 87(outLightVec): 73(ptr) Variable Output 90: 7(int) Constant 45 88: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 89 60 18 90 12 21 89 87(outLightVec) 58 95: 7(int) Constant 49 94: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 18 95 24 17 96: TypeInt 32 1 98: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 97 10 23 12 99: TypePointer Function 96(int) 100: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 98 44 12 102: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 103 98 18 95 12 94 23 105: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) 108: 96(int) Constant 0 119: 96(int) Constant 3 121: 96(int) Constant 1 122: TypePointer Input 96(int) 123: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 98 22 12 124(gl_InvocationID): 122(ptr) Variable Input 127: 7(int) Constant 51 125: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 126 98 18 127 12 21 126 124(gl_InvocationID) 58 131: TypePointer Uniform 30 132: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 31 24 12 135: TypeMatrix 59(fvec3) 3 136: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 60 13 35 145: TypePointer Input 59(fvec3) 146: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 60 22 12 152: 7(int) Constant 52 155: TypePointer Function 28(fvec4) 156: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 44 12 160: 7(int) Constant 54 158: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 159 29 18 160 12 94 23 163: TypeArray 25(float) 22 164: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 27 22 165(gl_PerVertex): TypeStruct 28(fvec4) 25(float) 163 163 166: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 167 29 18 12 12 12 12 13 168: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 169 27 18 12 12 12 12 13 170: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 171 164 18 12 12 12 12 13 172: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 173 164 18 12 12 12 12 13 174: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 175 22 18 160 12 21 175 12 13 166 168 170 172 176: TypeArray 165(gl_PerVertex) 13 177: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 174 13 178: TypePointer Input 176 179: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 177 22 12 180(gl_in): 178(ptr) Variable Input 181: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 182 177 18 160 12 21 182 180(gl_in) 58 184: TypePointer Input 28(fvec4) 185: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 22 12 191: 7(int) Constant 55 189: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 190 29 18 191 12 94 23 199: TypePointer Function 59(fvec3) 200: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 60 44 12 204: 7(int) Constant 57 202: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 203 60 18 204 12 94 23 210: 96(int) Constant 2 211: TypePointer Uniform 28(fvec4) 212: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 24 12 222: 7(int) Constant 58 228: 7(int) Constant 59 231(gl_PerVertex): TypeStruct 28(fvec4) 25(float) 163 163 232: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 167 29 18 12 12 12 12 13 233: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 169 27 18 12 12 12 12 13 234: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 171 164 18 12 12 12 12 13 235: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 173 164 18 12 12 12 12 13 237: 7(int) Constant 61 236: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 175 22 18 237 12 21 175 12 13 232 233 234 235 238: TypePointer Output 231(gl_PerVertex) 239: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 236 13 12 240: 238(ptr) Variable Output 241: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 242 236 18 237 12 21 242 240 58 249: TypePointer Output 28(fvec4) 250: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 13 12 252: TypePointer Output 96(int) 253: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 98 13 12 254(gl_ViewportIndex): 252(ptr) Variable Output 257: 7(int) Constant 64 255: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 256 98 18 257 12 21 256 254(gl_ViewportIndex) 58 260(gl_PrimitiveID): 252(ptr) Variable Output 263: 7(int) Constant 65 261: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 262 98 18 263 12 21 262 260(gl_PrimitiveID) 58 264(gl_PrimitiveIDIn): 122(ptr) Variable Input 265: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 266 98 18 263 12 21 266 264(gl_PrimitiveIDIn) 58 270: 7(int) Constant 66 277: 7(int) Constant 68 279: 7(int) Constant 69 14(main): 4 Function None 5 15: Label 101(i): 99(ptr) Variable Function 157(pos): 155(ptr) Variable Function 188(worldPos): 155(ptr) Variable Function 201(lPos): 199(ptr) Variable Function 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17 93: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 20 20 12 12 91: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main) 106: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 107: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 95 95 12 12 104: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 102 101(i) 105 Store 101(i) 108 Branch 109 109: Label 113: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 114: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 95 95 12 12 LoopMerge 111 112 None Branch 115 115: Label 117: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 118: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 95 95 12 12 116: 96(int) Load 101(i) 120: 32(bool) SLessThan 116 119 BranchConditional 120 110 111 110: Label 129: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 130: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 127 127 12 12 128: 96(int) Load 124(gl_InvocationID) 133: 131(ptr) AccessChain 55(ubo) 121 128 134: 30 Load 133 137: 28(fvec4) CompositeExtract 134 0 138: 59(fvec3) VectorShuffle 137 137 0 1 2 139: 28(fvec4) CompositeExtract 134 1 140: 59(fvec3) VectorShuffle 139 139 0 1 2 141: 28(fvec4) CompositeExtract 134 2 142: 59(fvec3) VectorShuffle 141 141 0 1 2 143: 135 CompositeConstruct 138 140 142 144: 96(int) Load 101(i) 147: 145(ptr) AccessChain 65(inNormal) 144 148: 59(fvec3) Load 147 149: 59(fvec3) MatrixTimesVector 143 148 Store 75(outNormal) 149 151: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 152 152 12 12 150: 96(int) Load 101(i) 153: 145(ptr) AccessChain 69(inColor) 150 154: 59(fvec3) Load 153 Store 79(outColor) 154 162: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 160 160 12 12 161: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 158 157(pos) 105 183: 96(int) Load 101(i) 186: 184(ptr) AccessChain 180(gl_in) 183 108 187: 28(fvec4) Load 186 Store 157(pos) 187 193: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 191 191 12 12 192: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 189 188(worldPos) 105 194: 96(int) Load 124(gl_InvocationID) 195: 131(ptr) AccessChain 55(ubo) 121 194 196: 30 Load 195 197: 28(fvec4) Load 157(pos) 198: 28(fvec4) MatrixTimesVector 196 197 Store 188(worldPos) 198 206: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 204 204 12 12 205: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 202 201(lPos) 105 207: 96(int) Load 124(gl_InvocationID) 208: 131(ptr) AccessChain 55(ubo) 121 207 209: 30 Load 208 213: 211(ptr) AccessChain 55(ubo) 210 214: 28(fvec4) Load 213 215: 28(fvec4) MatrixTimesVector 209 214 216: 25(float) CompositeExtract 215 0 217: 25(float) CompositeExtract 215 1 218: 25(float) CompositeExtract 215 2 219: 59(fvec3) CompositeConstruct 216 217 218 Store 201(lPos) 219 221: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 222 222 12 12 220: 59(fvec3) Load 201(lPos) 223: 28(fvec4) Load 188(worldPos) 224: 59(fvec3) VectorShuffle 223 223 0 1 2 225: 59(fvec3) FSub 220 224 Store 87(outLightVec) 225 227: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 228 228 12 12 226: 28(fvec4) Load 188(worldPos) 229: 59(fvec3) VectorShuffle 226 226 0 1 2 230: 59(fvec3) FNegate 229 Store 83(outViewVec) 230 244: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 237 237 12 12 243: 96(int) Load 124(gl_InvocationID) 245: 131(ptr) AccessChain 55(ubo) 108 243 246: 30 Load 245 247: 28(fvec4) Load 188(worldPos) 248: 28(fvec4) MatrixTimesVector 246 247 251: 249(ptr) AccessChain 240 108 Store 251 248 259: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 257 257 12 12 258: 96(int) Load 124(gl_InvocationID) Store 254(gl_ViewportIndex) 258 268: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 263 263 12 12 267: 96(int) Load 264(gl_PrimitiveIDIn) Store 260(gl_PrimitiveID) 267 269: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 270 270 12 12 EmitVertex Branch 112 112: Label 272: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 273: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 95 95 12 12 271: 96(int) Load 101(i) 274: 96(int) IAdd 271 121 Store 101(i) 274 Branch 109 111: Label 275: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17 276: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 277 277 12 12 EndPrimitive 278: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 279 279 12 12 Return FunctionEnd