yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
7fb81fa4
main
1spv.debuginfo.glsl.geom 2// Module Version 10000 3// Generated by (magic number): 8000b 4// Id's are bound by 280 5 6 Capability Geometry 7 Capability MultiViewport 8 Extension "SPV_KHR_non_semantic_info" 9 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" 10 3: ExtInstImport "GLSL.std.450" 11 MemoryModel Logical GLSL450 12 EntryPoint Geometry 14 "main" 65 69 75 79 83 87 124 180 240 254 260 264 13 ExecutionMode 14 Triangles 14 ExecutionMode 14 Invocations 2 15 ExecutionMode 14 OutputTriangleStrip 16 ExecutionMode 14 OutputVertices 3 17 2: String "spv.debuginfo.glsl.geom" 18 8: String "uint" 19 16: String "main" 20 19: String "/* 21The MIT License (MIT) 22 23Copyright (c) 2022 Sascha Willems 24 25Permission is hereby granted, free of charge, to any person obtaining a copy 26of this software and associated documentation files (the "Software"), to deal 27in the Software without restriction, including without limitation the rights 28to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 29copies of the Software, and to permit persons to whom the Software is 30furnished to do so, subject to the following conditions: 31 32The above copyright notice and this permission notice shall be included in all 33copies or substantial portions of the Software. 34 35THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 36IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 37FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 38AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 39LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 40OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 41SOFTWARE. 42*/ 43 44#version 450 45 46#extension GL_ARB_viewport_array : enable 47 48layout (triangles, invocations = 2) in; 49layout (triangle_strip, max_vertices = 3) out; 50 51layout (binding = 0) uniform UBO 52{ 53 mat4 projection[2]; 54 mat4 modelview[2]; 55 vec4 lightPos; 56} ubo; 57 58layout (location = 0) in vec3 inNormal[]; 59layout (location = 1) in vec3 inColor[]; 60 61layout (location = 0) out vec3 outNormal; 62layout (location = 1) out vec3 outColor; 63layout (location = 2) out vec3 outViewVec; 64layout (location = 3) out vec3 outLightVec; 65 66void main(void) 67{ 68 for(int i = 0; i < gl_in.length(); i++) 69 { 70 outNormal = mat3(ubo.modelview[gl_InvocationID]) * inNormal[i]; 71 outColor = inColor[i]; 72 73 vec4 pos = gl_in[i].gl_Position; 74 vec4 worldPos = (ubo.modelview[gl_InvocationID] * pos); 75 76 vec3 lPos = vec3(ubo.modelview[gl_InvocationID] * ubo.lightPos); 77 outLightVec = lPos - worldPos.xyz; 78 outViewVec = -worldPos.xyz; 79 80 gl_Position = ubo.projection[gl_InvocationID] * worldPos; 81 82 // Set the viewport index that the vertex will be emitted to 83 gl_ViewportIndex = gl_InvocationID; 84 gl_PrimitiveID = gl_PrimitiveIDIn; 85 EmitVertex(); 86 } 87 EndPrimitive(); 88} 89" 90 26: String "float" 91 33: String "bool" 92 42: String "projection" 93 46: String "modelview" 94 49: String "lightPos" 95 52: String "UBO" 96 57: String "ubo" 97 67: String "inNormal" 98 71: String "inColor" 99 77: String "outNormal" 100 81: String "outColor" 101 85: String "outViewVec" 102 89: String "outLightVec" 103 97: String "int" 104 103: String "i" 105 126: String "gl_InvocationID" 106 159: String "pos" 107 167: String "gl_Position" 108 169: String "gl_PointSize" 109 171: String "gl_ClipDistance" 110 173: String "gl_CullDistance" 111 175: String "gl_PerVertex" 112 182: String "gl_in" 113 190: String "worldPos" 114 203: String "lPos" 115 242: String "" 116 256: String "gl_ViewportIndex" 117 262: String "gl_PrimitiveID" 118 266: String "gl_PrimitiveIDIn" 119 SourceExtension "GL_ARB_viewport_array" 120 Name 14 "main" 121 Name 40 "UBO" 122 MemberName 40(UBO) 0 "projection" 123 MemberName 40(UBO) 1 "modelview" 124 MemberName 40(UBO) 2 "lightPos" 125 Name 55 "ubo" 126 Name 65 "inNormal" 127 Name 69 "inColor" 128 Name 75 "outNormal" 129 Name 79 "outColor" 130 Name 83 "outViewVec" 131 Name 87 "outLightVec" 132 Name 101 "i" 133 Name 124 "gl_InvocationID" 134 Name 157 "pos" 135 Name 165 "gl_PerVertex" 136 MemberName 165(gl_PerVertex) 0 "gl_Position" 137 MemberName 165(gl_PerVertex) 1 "gl_PointSize" 138 MemberName 165(gl_PerVertex) 2 "gl_ClipDistance" 139 MemberName 165(gl_PerVertex) 3 "gl_CullDistance" 140 Name 180 "gl_in" 141 Name 188 "worldPos" 142 Name 201 "lPos" 143 Name 231 "gl_PerVertex" 144 MemberName 231(gl_PerVertex) 0 "gl_Position" 145 MemberName 231(gl_PerVertex) 1 "gl_PointSize" 146 MemberName 231(gl_PerVertex) 2 "gl_ClipDistance" 147 MemberName 231(gl_PerVertex) 3 "gl_CullDistance" 148 Name 240 "" 149 Name 254 "gl_ViewportIndex" 150 Name 260 "gl_PrimitiveID" 151 Name 264 "gl_PrimitiveIDIn" 152 Decorate 36 ArrayStride 64 153 Decorate 38 ArrayStride 64 154 Decorate 40(UBO) Block 155 MemberDecorate 40(UBO) 0 ColMajor 156 MemberDecorate 40(UBO) 0 MatrixStride 16 157 MemberDecorate 40(UBO) 0 Offset 0 158 MemberDecorate 40(UBO) 1 ColMajor 159 MemberDecorate 40(UBO) 1 MatrixStride 16 160 MemberDecorate 40(UBO) 1 Offset 128 161 MemberDecorate 40(UBO) 2 Offset 256 162 Decorate 55(ubo) Binding 0 163 Decorate 55(ubo) DescriptorSet 0 164 Decorate 65(inNormal) Location 0 165 Decorate 69(inColor) Location 1 166 Decorate 75(outNormal) Location 0 167 Decorate 79(outColor) Location 1 168 Decorate 83(outViewVec) Location 2 169 Decorate 87(outLightVec) Location 3 170 Decorate 124(gl_InvocationID) BuiltIn InvocationId 171 Decorate 165(gl_PerVertex) Block 172 MemberDecorate 165(gl_PerVertex) 0 BuiltIn Position 173 MemberDecorate 165(gl_PerVertex) 1 BuiltIn PointSize 174 MemberDecorate 165(gl_PerVertex) 2 BuiltIn ClipDistance 175 MemberDecorate 165(gl_PerVertex) 3 BuiltIn CullDistance 176 Decorate 231(gl_PerVertex) Block 177 MemberDecorate 231(gl_PerVertex) 0 BuiltIn Position 178 MemberDecorate 231(gl_PerVertex) 1 BuiltIn PointSize 179 MemberDecorate 231(gl_PerVertex) 2 BuiltIn ClipDistance 180 MemberDecorate 231(gl_PerVertex) 3 BuiltIn CullDistance 181 Decorate 254(gl_ViewportIndex) BuiltIn ViewportIndex 182 Decorate 260(gl_PrimitiveID) BuiltIn PrimitiveId 183 Decorate 264(gl_PrimitiveIDIn) BuiltIn PrimitiveId 184 4: TypeVoid 185 5: TypeFunction 4 186 7: TypeInt 32 0 187 10: 7(int) Constant 32 188 11: 7(int) Constant 6 189 12: 7(int) Constant 0 190 9: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12 191 13: 7(int) Constant 3 192 6: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 193 18: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 19 194 20: 7(int) Constant 47 195 22: 7(int) Constant 1 196 23: 7(int) Constant 4 197 24: 7(int) Constant 2 198 21: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 22 23 18 24 199 17: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 16 6 18 20 12 21 16 13 20 200 25: TypeFloat 32 201 27: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 26 10 13 12 202 28: TypeVector 25(float) 4 203 29: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 27 23 204 30: TypeMatrix 28(fvec4) 4 205 32: TypeBool 206 34: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 33 10 24 12 207 35: 32(bool) ConstantTrue 208 31: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 29 23 35 209 36: TypeArray 30 24 210 37: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 31 24 211 38: TypeArray 30 24 212 39: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 31 24 213 40(UBO): TypeStruct 36 38 28(fvec4) 214 43: 7(int) Constant 34 215 44: 7(int) Constant 7 216 41: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 42 37 18 43 44 12 12 13 217 47: 7(int) Constant 35 218 45: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 46 39 18 47 44 12 12 13 219 50: 7(int) Constant 36 220 48: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 49 29 18 50 44 12 12 13 221 51: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 52 22 18 10 12 21 52 12 13 41 45 48 222 53: TypePointer Uniform 40(UBO) 223 54: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 51 24 12 224 55(ubo): 53(ptr) Variable Uniform 225 58: 7(int) Constant 8 226 56: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 57 51 18 10 12 21 57 55(ubo) 58 227 59: TypeVector 25(float) 3 228 60: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 27 13 229 61: TypeArray 59(fvec3) 13 230 62: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 60 13 231 63: TypePointer Input 61 232 64: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 62 22 12 233 65(inNormal): 63(ptr) Variable Input 234 68: 7(int) Constant 39 235 66: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 67 62 18 68 12 21 67 65(inNormal) 58 236 69(inColor): 63(ptr) Variable Input 237 72: 7(int) Constant 40 238 70: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 71 62 18 72 12 21 71 69(inColor) 58 239 73: TypePointer Output 59(fvec3) 240 74: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 60 13 12 241 75(outNormal): 73(ptr) Variable Output 242 78: 7(int) Constant 42 243 76: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 77 60 18 78 12 21 77 75(outNormal) 58 244 79(outColor): 73(ptr) Variable Output 245 82: 7(int) Constant 43 246 80: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 81 60 18 82 12 21 81 79(outColor) 58 247 83(outViewVec): 73(ptr) Variable Output 248 86: 7(int) Constant 44 249 84: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 85 60 18 86 12 21 85 83(outViewVec) 58 250 87(outLightVec): 73(ptr) Variable Output 251 90: 7(int) Constant 45 252 88: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 89 60 18 90 12 21 89 87(outLightVec) 58 253 95: 7(int) Constant 49 254 94: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 18 95 24 17 255 96: TypeInt 32 1 256 98: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 97 10 23 12 257 99: TypePointer Function 96(int) 258 100: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 98 44 12 259 102: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 103 98 18 95 12 94 23 260 105: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) 261 108: 96(int) Constant 0 262 119: 96(int) Constant 3 263 121: 96(int) Constant 1 264 122: TypePointer Input 96(int) 265 123: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 98 22 12 266124(gl_InvocationID): 122(ptr) Variable Input 267 127: 7(int) Constant 51 268 125: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 126 98 18 127 12 21 126 124(gl_InvocationID) 58 269 131: TypePointer Uniform 30 270 132: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 31 24 12 271 135: TypeMatrix 59(fvec3) 3 272 136: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 60 13 35 273 145: TypePointer Input 59(fvec3) 274 146: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 60 22 12 275 152: 7(int) Constant 52 276 155: TypePointer Function 28(fvec4) 277 156: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 44 12 278 160: 7(int) Constant 54 279 158: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 159 29 18 160 12 94 23 280 163: TypeArray 25(float) 22 281 164: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 27 22 282165(gl_PerVertex): TypeStruct 28(fvec4) 25(float) 163 163 283 166: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 167 29 18 12 12 12 12 13 284 168: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 169 27 18 12 12 12 12 13 285 170: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 171 164 18 12 12 12 12 13 286 172: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 173 164 18 12 12 12 12 13 287 174: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 175 22 18 160 12 21 175 12 13 166 168 170 172 288 176: TypeArray 165(gl_PerVertex) 13 289 177: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 174 13 290 178: TypePointer Input 176 291 179: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 177 22 12 292 180(gl_in): 178(ptr) Variable Input 293 181: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 182 177 18 160 12 21 182 180(gl_in) 58 294 184: TypePointer Input 28(fvec4) 295 185: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 22 12 296 191: 7(int) Constant 55 297 189: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 190 29 18 191 12 94 23 298 199: TypePointer Function 59(fvec3) 299 200: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 60 44 12 300 204: 7(int) Constant 57 301 202: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 203 60 18 204 12 94 23 302 210: 96(int) Constant 2 303 211: TypePointer Uniform 28(fvec4) 304 212: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 24 12 305 222: 7(int) Constant 58 306 228: 7(int) Constant 59 307231(gl_PerVertex): TypeStruct 28(fvec4) 25(float) 163 163 308 232: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 167 29 18 12 12 12 12 13 309 233: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 169 27 18 12 12 12 12 13 310 234: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 171 164 18 12 12 12 12 13 311 235: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 173 164 18 12 12 12 12 13 312 237: 7(int) Constant 61 313 236: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 175 22 18 237 12 21 175 12 13 232 233 234 235 314 238: TypePointer Output 231(gl_PerVertex) 315 239: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 236 13 12 316 240: 238(ptr) Variable Output 317 241: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 242 236 18 237 12 21 242 240 58 318 249: TypePointer Output 28(fvec4) 319 250: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 13 12 320 252: TypePointer Output 96(int) 321 253: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 98 13 12 322254(gl_ViewportIndex): 252(ptr) Variable Output 323 257: 7(int) Constant 64 324 255: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 256 98 18 257 12 21 256 254(gl_ViewportIndex) 58 325260(gl_PrimitiveID): 252(ptr) Variable Output 326 263: 7(int) Constant 65 327 261: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 262 98 18 263 12 21 262 260(gl_PrimitiveID) 58 328264(gl_PrimitiveIDIn): 122(ptr) Variable Input 329 265: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 266 98 18 263 12 21 266 264(gl_PrimitiveIDIn) 58 330 270: 7(int) Constant 66 331 277: 7(int) Constant 68 332 279: 7(int) Constant 69 333 14(main): 4 Function None 5 334 15: Label 335 101(i): 99(ptr) Variable Function 336 157(pos): 155(ptr) Variable Function 337 188(worldPos): 155(ptr) Variable Function 338 201(lPos): 199(ptr) Variable Function 339 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17 340 93: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 20 20 12 12 341 91: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main) 342 106: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 343 107: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 95 95 12 12 344 104: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 102 101(i) 105 345 Store 101(i) 108 346 Branch 109 347 109: Label 348 113: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 349 114: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 95 95 12 12 350 LoopMerge 111 112 None 351 Branch 115 352 115: Label 353 117: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 354 118: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 95 95 12 12 355 116: 96(int) Load 101(i) 356 120: 32(bool) SLessThan 116 119 357 BranchConditional 120 110 111 358 110: Label 359 129: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 360 130: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 127 127 12 12 361 128: 96(int) Load 124(gl_InvocationID) 362 133: 131(ptr) AccessChain 55(ubo) 121 128 363 134: 30 Load 133 364 137: 28(fvec4) CompositeExtract 134 0 365 138: 59(fvec3) VectorShuffle 137 137 0 1 2 366 139: 28(fvec4) CompositeExtract 134 1 367 140: 59(fvec3) VectorShuffle 139 139 0 1 2 368 141: 28(fvec4) CompositeExtract 134 2 369 142: 59(fvec3) VectorShuffle 141 141 0 1 2 370 143: 135 CompositeConstruct 138 140 142 371 144: 96(int) Load 101(i) 372 147: 145(ptr) AccessChain 65(inNormal) 144 373 148: 59(fvec3) Load 147 374 149: 59(fvec3) MatrixTimesVector 143 148 375 Store 75(outNormal) 149 376 151: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 152 152 12 12 377 150: 96(int) Load 101(i) 378 153: 145(ptr) AccessChain 69(inColor) 150 379 154: 59(fvec3) Load 153 380 Store 79(outColor) 154 381 162: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 160 160 12 12 382 161: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 158 157(pos) 105 383 183: 96(int) Load 101(i) 384 186: 184(ptr) AccessChain 180(gl_in) 183 108 385 187: 28(fvec4) Load 186 386 Store 157(pos) 187 387 193: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 191 191 12 12 388 192: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 189 188(worldPos) 105 389 194: 96(int) Load 124(gl_InvocationID) 390 195: 131(ptr) AccessChain 55(ubo) 121 194 391 196: 30 Load 195 392 197: 28(fvec4) Load 157(pos) 393 198: 28(fvec4) MatrixTimesVector 196 197 394 Store 188(worldPos) 198 395 206: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 204 204 12 12 396 205: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 202 201(lPos) 105 397 207: 96(int) Load 124(gl_InvocationID) 398 208: 131(ptr) AccessChain 55(ubo) 121 207 399 209: 30 Load 208 400 213: 211(ptr) AccessChain 55(ubo) 210 401 214: 28(fvec4) Load 213 402 215: 28(fvec4) MatrixTimesVector 209 214 403 216: 25(float) CompositeExtract 215 0 404 217: 25(float) CompositeExtract 215 1 405 218: 25(float) CompositeExtract 215 2 406 219: 59(fvec3) CompositeConstruct 216 217 218 407 Store 201(lPos) 219 408 221: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 222 222 12 12 409 220: 59(fvec3) Load 201(lPos) 410 223: 28(fvec4) Load 188(worldPos) 411 224: 59(fvec3) VectorShuffle 223 223 0 1 2 412 225: 59(fvec3) FSub 220 224 413 Store 87(outLightVec) 225 414 227: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 228 228 12 12 415 226: 28(fvec4) Load 188(worldPos) 416 229: 59(fvec3) VectorShuffle 226 226 0 1 2 417 230: 59(fvec3) FNegate 229 418 Store 83(outViewVec) 230 419 244: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 237 237 12 12 420 243: 96(int) Load 124(gl_InvocationID) 421 245: 131(ptr) AccessChain 55(ubo) 108 243 422 246: 30 Load 245 423 247: 28(fvec4) Load 188(worldPos) 424 248: 28(fvec4) MatrixTimesVector 246 247 425 251: 249(ptr) AccessChain 240 108 426 Store 251 248 427 259: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 257 257 12 12 428 258: 96(int) Load 124(gl_InvocationID) 429 Store 254(gl_ViewportIndex) 258 430 268: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 263 263 12 12 431 267: 96(int) Load 264(gl_PrimitiveIDIn) 432 Store 260(gl_PrimitiveID) 267 433 269: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 270 270 12 12 434 EmitVertex 435 Branch 112 436 112: Label 437 272: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 438 273: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 95 95 12 12 439 271: 96(int) Load 101(i) 440 274: 96(int) IAdd 271 121 441 Store 101(i) 274 442 Branch 109 443 111: Label 444 275: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17 445 276: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 277 277 12 12 446 EndPrimitive 447 278: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 279 279 12 12 448 Return 449 FunctionEnd