spv.debuginfo.glsl.vert // Module Version 10000 // Generated by (magic number): 8000b // Id's are bound by 469 Capability Shader Extension "SPV_KHR_non_semantic_info" 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" 3: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 EntryPoint Vertex 14 "main" 32 37 45 49 53 57 63 72 111 115 119 123 127 387 2: String "spv.debuginfo.glsl.vert" 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 // Vertex attributes layout (location = 0) in vec3 inPos; layout (location = 1) in vec3 inNormal; layout (location = 2) in vec2 inUV; layout (location = 3) in vec3 inColor; // Instanced attributes layout (location = 4) in vec3 instancePos; layout (location = 5) in vec3 instanceRot; layout (location = 6) in float instanceScale; layout (location = 7) in int instanceTexIndex; layout (binding = 0) uniform UBO { mat4 projection; mat4 modelview; vec4 lightPos; float locSpeed; float globSpeed; } ubo; layout (location = 0) out vec3 outNormal; layout (location = 1) out vec3 outColor; layout (location = 2) out vec3 outUV; layout (location = 3) out vec3 outViewVec; layout (location = 4) out vec3 outLightVec; void main() { outColor = inColor; outUV = vec3(inUV, instanceTexIndex); mat3 mx, my, mz; // rotate around x float s = sin(instanceRot.x + ubo.locSpeed); float c = cos(instanceRot.x + ubo.locSpeed); mx[0] = vec3(c, s, 0.0); mx[1] = vec3(-s, c, 0.0); mx[2] = vec3(0.0, 0.0, 1.0); // rotate around y s = sin(instanceRot.y + ubo.locSpeed); c = cos(instanceRot.y + ubo.locSpeed); my[0] = vec3(c, 0.0, s); my[1] = vec3(0.0, 1.0, 0.0); my[2] = vec3(-s, 0.0, c); // rot around z s = sin(instanceRot.z + ubo.locSpeed); c = cos(instanceRot.z + ubo.locSpeed); mz[0] = vec3(1.0, 0.0, 0.0); mz[1] = vec3(0.0, c, s); mz[2] = vec3(0.0, -s, c); mat3 rotMat = mz * my * mx; mat4 gRotMat; s = sin(instanceRot.y + ubo.globSpeed); c = cos(instanceRot.y + ubo.globSpeed); gRotMat[0] = vec4(c, 0.0, s, 0.0); gRotMat[1] = vec4(0.0, 1.0, 0.0, 0.0); gRotMat[2] = vec4(-s, 0.0, c, 0.0); gRotMat[3] = vec4(0.0, 0.0, 0.0, 1.0); vec4 locPos = vec4(inPos.xyz * rotMat, 1.0); vec4 pos = vec4((locPos.xyz * instanceScale) + instancePos, 1.0); gl_Position = ubo.projection * ubo.modelview * gRotMat * pos; outNormal = mat3(ubo.modelview * gRotMat) * inverse(rotMat) * inNormal; pos = ubo.modelview * vec4(inPos.xyz + instancePos, 1.0); vec3 lPos = mat3(ubo.modelview) * ubo.lightPos.xyz; outLightVec = lPos - pos.xyz; outViewVec = -pos.xyz; } " 26: String "float" 34: String "inPos" 39: String "inNormal" 47: String "inUV" 51: String "inColor" 55: String "instancePos" 59: String "instanceRot" 65: String "instanceScale" 68: String "int" 74: String "instanceTexIndex" 81: String "bool" 86: String "projection" 90: String "modelview" 93: String "lightPos" 96: String "locSpeed" 99: String "globSpeed" 102: String "UBO" 108: String "ubo" 113: String "outNormal" 117: String "outColor" 121: String "outUV" 125: String "outViewVec" 129: String "outLightVec" 151: String "mx" 158: String "my" 162: String "mz" 168: String "s" 183: String "c" 285: String "rotMat" 298: String "gRotMat" 344: String "locPos" 357: String "pos" 375: String "gl_Position" 377: String "gl_PointSize" 379: String "gl_ClipDistance" 381: String "gl_CullDistance" 383: String "gl_PerVertex" 389: String "" 437: String "lPos" Name 14 "main" Name 32 "inPos" Name 37 "inNormal" Name 45 "inUV" Name 49 "inColor" Name 53 "instancePos" Name 57 "instanceRot" Name 63 "instanceScale" Name 72 "instanceTexIndex" Name 84 "UBO" MemberName 84(UBO) 0 "projection" MemberName 84(UBO) 1 "modelview" MemberName 84(UBO) 2 "lightPos" MemberName 84(UBO) 3 "locSpeed" MemberName 84(UBO) 4 "globSpeed" Name 106 "ubo" Name 111 "outNormal" Name 115 "outColor" Name 119 "outUV" Name 123 "outViewVec" Name 127 "outLightVec" Name 149 "mx" Name 156 "my" Name 160 "mz" Name 166 "s" Name 181 "c" Name 283 "rotMat" Name 296 "gRotMat" Name 342 "locPos" Name 355 "pos" Name 373 "gl_PerVertex" MemberName 373(gl_PerVertex) 0 "gl_Position" MemberName 373(gl_PerVertex) 1 "gl_PointSize" MemberName 373(gl_PerVertex) 2 "gl_ClipDistance" MemberName 373(gl_PerVertex) 3 "gl_CullDistance" Name 387 "" Name 435 "lPos" Decorate 32(inPos) Location 0 Decorate 37(inNormal) Location 1 Decorate 45(inUV) Location 2 Decorate 49(inColor) Location 3 Decorate 53(instancePos) Location 4 Decorate 57(instanceRot) Location 5 Decorate 63(instanceScale) Location 6 Decorate 72(instanceTexIndex) Location 7 Decorate 84(UBO) Block MemberDecorate 84(UBO) 0 ColMajor MemberDecorate 84(UBO) 0 MatrixStride 16 MemberDecorate 84(UBO) 0 Offset 0 MemberDecorate 84(UBO) 1 ColMajor MemberDecorate 84(UBO) 1 MatrixStride 16 MemberDecorate 84(UBO) 1 Offset 64 MemberDecorate 84(UBO) 2 Offset 128 MemberDecorate 84(UBO) 3 Offset 144 MemberDecorate 84(UBO) 4 Offset 148 Decorate 106(ubo) Binding 0 Decorate 106(ubo) DescriptorSet 0 Decorate 111(outNormal) Location 0 Decorate 115(outColor) Location 1 Decorate 119(outUV) Location 2 Decorate 123(outViewVec) Location 3 Decorate 127(outLightVec) Location 4 Decorate 373(gl_PerVertex) Block MemberDecorate 373(gl_PerVertex) 0 BuiltIn Position MemberDecorate 373(gl_PerVertex) 1 BuiltIn PointSize MemberDecorate 373(gl_PerVertex) 2 BuiltIn ClipDistance MemberDecorate 373(gl_PerVertex) 3 BuiltIn CullDistance 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 54 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) 3 29: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 27 13 30: TypePointer Input 28(fvec3) 31: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 22 12 32(inPos): 30(ptr) Variable Input 35: 7(int) Constant 28 36: 7(int) Constant 8 33: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 34 29 18 35 12 21 34 32(inPos) 36 37(inNormal): 30(ptr) Variable Input 40: 7(int) Constant 29 38: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 39 29 18 40 12 21 39 37(inNormal) 36 41: TypeVector 25(float) 2 42: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 27 24 43: TypePointer Input 41(fvec2) 44: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 42 22 12 45(inUV): 43(ptr) Variable Input 48: 7(int) Constant 30 46: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 47 42 18 48 12 21 47 45(inUV) 36 49(inColor): 30(ptr) Variable Input 52: 7(int) Constant 31 50: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 51 29 18 52 12 21 51 49(inColor) 36 53(instancePos): 30(ptr) Variable Input 56: 7(int) Constant 34 54: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 55 29 18 56 12 21 55 53(instancePos) 36 57(instanceRot): 30(ptr) Variable Input 60: 7(int) Constant 35 58: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 59 29 18 60 12 21 59 57(instanceRot) 36 61: TypePointer Input 25(float) 62: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 27 22 12 63(instanceScale): 61(ptr) Variable Input 66: 7(int) Constant 36 64: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 65 27 18 66 12 21 65 63(instanceScale) 36 67: TypeInt 32 1 69: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 68 10 23 12 70: TypePointer Input 67(int) 71: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 69 22 12 72(instanceTexIndex): 70(ptr) Variable Input 75: 7(int) Constant 37 73: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 74 69 18 75 12 21 74 72(instanceTexIndex) 36 76: TypeVector 25(float) 4 77: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 27 23 78: TypeMatrix 76(fvec4) 4 80: TypeBool 82: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 81 10 24 12 83: 80(bool) ConstantTrue 79: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 77 23 83 84(UBO): TypeStruct 78 78 76(fvec4) 25(float) 25(float) 87: 7(int) Constant 41 88: 7(int) Constant 7 85: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 86 79 18 87 88 12 12 13 91: 7(int) Constant 42 89: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 90 79 18 91 88 12 12 13 94: 7(int) Constant 43 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 93 77 18 94 88 12 12 13 97: 7(int) Constant 44 95: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 96 27 18 97 36 12 12 13 100: 7(int) Constant 45 98: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 99 27 18 100 36 12 12 13 103: 7(int) Constant 39 101: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 102 22 18 103 12 21 102 12 13 85 89 92 95 98 104: TypePointer Uniform 84(UBO) 105: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 101 24 12 106(ubo): 104(ptr) Variable Uniform 107: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 108 101 18 103 12 21 108 106(ubo) 36 109: TypePointer Output 28(fvec3) 110: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 13 12 111(outNormal): 109(ptr) Variable Output 114: 7(int) Constant 48 112: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 113 29 18 114 12 21 113 111(outNormal) 36 115(outColor): 109(ptr) Variable Output 118: 7(int) Constant 49 116: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 117 29 18 118 12 21 117 115(outColor) 36 119(outUV): 109(ptr) Variable Output 122: 7(int) Constant 50 120: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 121 29 18 122 12 21 121 119(outUV) 36 123(outViewVec): 109(ptr) Variable Output 126: 7(int) Constant 51 124: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 125 29 18 126 12 21 125 123(outViewVec) 36 127(outLightVec): 109(ptr) Variable Output 130: 7(int) Constant 52 128: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 129 29 18 130 12 21 129 127(outLightVec) 36 136: 7(int) Constant 56 139: 7(int) Constant 57 145: TypeMatrix 28(fvec3) 3 146: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 29 13 83 147: TypePointer Function 145 148: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 146 88 12 152: 7(int) Constant 59 150: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 151 146 18 152 12 17 23 154: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) 157: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 158 146 18 152 12 17 23 161: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 162 146 18 152 12 17 23 164: TypePointer Function 25(float) 165: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 27 88 12 169: 7(int) Constant 62 167: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 168 27 18 169 12 17 23 174: 67(int) Constant 3 175: TypePointer Uniform 25(float) 176: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 27 24 12 184: 7(int) Constant 63 182: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 183 27 18 184 12 17 23 193: 67(int) Constant 0 196: 7(int) Constant 65 198: 25(float) Constant 0 200: TypePointer Function 28(fvec3) 201: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 88 12 203: 67(int) Constant 1 206: 7(int) Constant 66 211: 67(int) Constant 2 212: 25(float) Constant 1065353216 213: 28(fvec3) ConstantComposite 198 198 212 216: 7(int) Constant 67 219: 7(int) Constant 70 227: 7(int) Constant 71 235: 7(int) Constant 73 239: 28(fvec3) ConstantComposite 198 212 198 242: 7(int) Constant 74 245: 7(int) Constant 75 252: 7(int) Constant 78 260: 7(int) Constant 79 266: 28(fvec3) ConstantComposite 212 198 198 269: 7(int) Constant 81 272: 7(int) Constant 82 278: 7(int) Constant 83 286: 7(int) Constant 85 284: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 285 146 18 286 12 17 23 294: TypePointer Function 78 295: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 79 88 12 299: 7(int) Constant 87 297: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 298 79 18 299 12 17 23 304: 7(int) Constant 88 306: 67(int) Constant 4 313: 7(int) Constant 89 321: 7(int) Constant 90 324: TypePointer Function 76(fvec4) 325: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 77 88 12 327: 76(fvec4) ConstantComposite 198 212 198 198 330: 7(int) Constant 91 333: 7(int) Constant 92 338: 76(fvec4) ConstantComposite 198 198 198 212 341: 7(int) Constant 93 345: 7(int) Constant 95 343: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 344 77 18 345 12 17 23 358: 7(int) Constant 96 356: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 357 77 18 358 12 17 23 371: TypeArray 25(float) 22 372: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 27 22 373(gl_PerVertex): TypeStruct 76(fvec4) 25(float) 371 371 374: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 375 77 18 12 12 12 12 13 376: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 377 27 18 12 12 12 12 13 378: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 379 372 18 12 12 12 12 13 380: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 381 372 18 12 12 12 12 13 384: 7(int) Constant 98 382: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 383 22 18 384 12 21 383 12 13 374 376 378 380 385: TypePointer Output 373(gl_PerVertex) 386: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 382 13 12 387: 385(ptr) Variable Output 388: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 389 382 18 384 12 21 389 387 36 390: TypePointer Uniform 78 391: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 79 24 12 402: TypePointer Output 76(fvec4) 403: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 77 13 12 407: 7(int) Constant 99 425: 7(int) Constant 101 438: 7(int) Constant 102 436: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 437 29 18 438 12 17 23 450: TypePointer Uniform 76(fvec4) 451: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 77 24 12 458: 7(int) Constant 103 464: 7(int) Constant 104 468: 7(int) Constant 105 14(main): 4 Function None 5 15: Label 149(mx): 147(ptr) Variable Function 156(my): 147(ptr) Variable Function 160(mz): 147(ptr) Variable Function 166(s): 164(ptr) Variable Function 181(c): 164(ptr) Variable Function 283(rotMat): 147(ptr) Variable Function 296(gRotMat): 294(ptr) Variable Function 342(locPos): 324(ptr) Variable Function 355(pos): 324(ptr) Variable Function 435(lPos): 200(ptr) Variable Function 132: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17 133: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 20 20 12 12 131: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main) 135: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 136 136 12 12 134: 28(fvec3) Load 49(inColor) Store 115(outColor) 134 138: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 139 139 12 12 137: 41(fvec2) Load 45(inUV) 140: 67(int) Load 72(instanceTexIndex) 141: 25(float) ConvertSToF 140 142: 25(float) CompositeExtract 137 0 143: 25(float) CompositeExtract 137 1 144: 28(fvec3) CompositeConstruct 142 143 141 Store 119(outUV) 144 155: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 152 152 12 12 153: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 150 149(mx) 154 159: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 157 156(my) 154 163: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 161 160(mz) 154 171: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 169 169 12 12 170: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 167 166(s) 154 172: 61(ptr) AccessChain 57(instanceRot) 12 173: 25(float) Load 172 177: 175(ptr) AccessChain 106(ubo) 174 178: 25(float) Load 177 179: 25(float) FAdd 173 178 180: 25(float) ExtInst 3(GLSL.std.450) 13(Sin) 179 Store 166(s) 180 186: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 184 184 12 12 185: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 182 181(c) 154 187: 61(ptr) AccessChain 57(instanceRot) 12 188: 25(float) Load 187 189: 175(ptr) AccessChain 106(ubo) 174 190: 25(float) Load 189 191: 25(float) FAdd 188 190 192: 25(float) ExtInst 3(GLSL.std.450) 14(Cos) 191 Store 181(c) 192 195: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 196 196 12 12 194: 25(float) Load 181(c) 197: 25(float) Load 166(s) 199: 28(fvec3) CompositeConstruct 194 197 198 202: 200(ptr) AccessChain 149(mx) 193 Store 202 199 205: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 206 206 12 12 204: 25(float) Load 166(s) 207: 25(float) FNegate 204 208: 25(float) Load 181(c) 209: 28(fvec3) CompositeConstruct 207 208 198 210: 200(ptr) AccessChain 149(mx) 203 Store 210 209 215: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 216 216 12 12 214: 200(ptr) AccessChain 149(mx) 211 Store 214 213 218: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 219 219 12 12 217: 61(ptr) AccessChain 57(instanceRot) 22 220: 25(float) Load 217 221: 175(ptr) AccessChain 106(ubo) 174 222: 25(float) Load 221 223: 25(float) FAdd 220 222 224: 25(float) ExtInst 3(GLSL.std.450) 13(Sin) 223 Store 166(s) 224 226: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 227 227 12 12 225: 61(ptr) AccessChain 57(instanceRot) 22 228: 25(float) Load 225 229: 175(ptr) AccessChain 106(ubo) 174 230: 25(float) Load 229 231: 25(float) FAdd 228 230 232: 25(float) ExtInst 3(GLSL.std.450) 14(Cos) 231 Store 181(c) 232 234: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 235 235 12 12 233: 25(float) Load 181(c) 236: 25(float) Load 166(s) 237: 28(fvec3) CompositeConstruct 233 198 236 238: 200(ptr) AccessChain 156(my) 193 Store 238 237 241: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 242 242 12 12 240: 200(ptr) AccessChain 156(my) 203 Store 240 239 244: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 245 245 12 12 243: 25(float) Load 166(s) 246: 25(float) FNegate 243 247: 25(float) Load 181(c) 248: 28(fvec3) CompositeConstruct 246 198 247 249: 200(ptr) AccessChain 156(my) 211 Store 249 248 251: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 252 252 12 12 250: 61(ptr) AccessChain 57(instanceRot) 24 253: 25(float) Load 250 254: 175(ptr) AccessChain 106(ubo) 174 255: 25(float) Load 254 256: 25(float) FAdd 253 255 257: 25(float) ExtInst 3(GLSL.std.450) 13(Sin) 256 Store 166(s) 257 259: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 260 260 12 12 258: 61(ptr) AccessChain 57(instanceRot) 24 261: 25(float) Load 258 262: 175(ptr) AccessChain 106(ubo) 174 263: 25(float) Load 262 264: 25(float) FAdd 261 263 265: 25(float) ExtInst 3(GLSL.std.450) 14(Cos) 264 Store 181(c) 265 268: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 269 269 12 12 267: 200(ptr) AccessChain 160(mz) 193 Store 267 266 271: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 272 272 12 12 270: 25(float) Load 181(c) 273: 25(float) Load 166(s) 274: 28(fvec3) CompositeConstruct 198 270 273 275: 200(ptr) AccessChain 160(mz) 203 Store 275 274 277: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 278 278 12 12 276: 25(float) Load 166(s) 279: 25(float) FNegate 276 280: 25(float) Load 181(c) 281: 28(fvec3) CompositeConstruct 198 279 280 282: 200(ptr) AccessChain 160(mz) 211 Store 282 281 288: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 286 286 12 12 287: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 284 283(rotMat) 154 289: 145 Load 160(mz) 290: 145 Load 156(my) 291: 145 MatrixTimesMatrix 289 290 292: 145 Load 149(mx) 293: 145 MatrixTimesMatrix 291 292 Store 283(rotMat) 293 301: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 299 299 12 12 300: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 297 296(gRotMat) 154 303: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 304 304 12 12 302: 61(ptr) AccessChain 57(instanceRot) 22 305: 25(float) Load 302 307: 175(ptr) AccessChain 106(ubo) 306 308: 25(float) Load 307 309: 25(float) FAdd 305 308 310: 25(float) ExtInst 3(GLSL.std.450) 13(Sin) 309 Store 166(s) 310 312: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 313 313 12 12 311: 61(ptr) AccessChain 57(instanceRot) 22 314: 25(float) Load 311 315: 175(ptr) AccessChain 106(ubo) 306 316: 25(float) Load 315 317: 25(float) FAdd 314 316 318: 25(float) ExtInst 3(GLSL.std.450) 14(Cos) 317 Store 181(c) 318 320: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 321 321 12 12 319: 25(float) Load 181(c) 322: 25(float) Load 166(s) 323: 76(fvec4) CompositeConstruct 319 198 322 198 326: 324(ptr) AccessChain 296(gRotMat) 193 Store 326 323 329: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 330 330 12 12 328: 324(ptr) AccessChain 296(gRotMat) 203 Store 328 327 332: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 333 333 12 12 331: 25(float) Load 166(s) 334: 25(float) FNegate 331 335: 25(float) Load 181(c) 336: 76(fvec4) CompositeConstruct 334 198 335 198 337: 324(ptr) AccessChain 296(gRotMat) 211 Store 337 336 340: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 341 341 12 12 339: 324(ptr) AccessChain 296(gRotMat) 174 Store 339 338 347: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 345 345 12 12 346: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 343 342(locPos) 154 348: 28(fvec3) Load 32(inPos) 349: 145 Load 283(rotMat) 350: 28(fvec3) VectorTimesMatrix 348 349 351: 25(float) CompositeExtract 350 0 352: 25(float) CompositeExtract 350 1 353: 25(float) CompositeExtract 350 2 354: 76(fvec4) CompositeConstruct 351 352 353 212 Store 342(locPos) 354 360: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 358 358 12 12 359: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 356 355(pos) 154 361: 76(fvec4) Load 342(locPos) 362: 28(fvec3) VectorShuffle 361 361 0 1 2 363: 25(float) Load 63(instanceScale) 364: 28(fvec3) VectorTimesScalar 362 363 365: 28(fvec3) Load 53(instancePos) 366: 28(fvec3) FAdd 364 365 367: 25(float) CompositeExtract 366 0 368: 25(float) CompositeExtract 366 1 369: 25(float) CompositeExtract 366 2 370: 76(fvec4) CompositeConstruct 367 368 369 212 Store 355(pos) 370 393: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 384 384 12 12 392: 390(ptr) AccessChain 106(ubo) 193 394: 78 Load 392 395: 390(ptr) AccessChain 106(ubo) 203 396: 78 Load 395 397: 78 MatrixTimesMatrix 394 396 398: 78 Load 296(gRotMat) 399: 78 MatrixTimesMatrix 397 398 400: 76(fvec4) Load 355(pos) 401: 76(fvec4) MatrixTimesVector 399 400 404: 402(ptr) AccessChain 387 193 Store 404 401 406: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 407 407 12 12 405: 390(ptr) AccessChain 106(ubo) 203 408: 78 Load 405 409: 78 Load 296(gRotMat) 410: 78 MatrixTimesMatrix 408 409 411: 76(fvec4) CompositeExtract 410 0 412: 28(fvec3) VectorShuffle 411 411 0 1 2 413: 76(fvec4) CompositeExtract 410 1 414: 28(fvec3) VectorShuffle 413 413 0 1 2 415: 76(fvec4) CompositeExtract 410 2 416: 28(fvec3) VectorShuffle 415 415 0 1 2 417: 145 CompositeConstruct 412 414 416 418: 145 Load 283(rotMat) 419: 145 ExtInst 3(GLSL.std.450) 34(MatrixInverse) 418 420: 145 MatrixTimesMatrix 417 419 421: 28(fvec3) Load 37(inNormal) 422: 28(fvec3) MatrixTimesVector 420 421 Store 111(outNormal) 422 424: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 425 425 12 12 423: 390(ptr) AccessChain 106(ubo) 203 426: 78 Load 423 427: 28(fvec3) Load 32(inPos) 428: 28(fvec3) Load 53(instancePos) 429: 28(fvec3) FAdd 427 428 430: 25(float) CompositeExtract 429 0 431: 25(float) CompositeExtract 429 1 432: 25(float) CompositeExtract 429 2 433: 76(fvec4) CompositeConstruct 430 431 432 212 434: 76(fvec4) MatrixTimesVector 426 433 Store 355(pos) 434 440: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 438 438 12 12 439: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 436 435(lPos) 154 441: 390(ptr) AccessChain 106(ubo) 203 442: 78 Load 441 443: 76(fvec4) CompositeExtract 442 0 444: 28(fvec3) VectorShuffle 443 443 0 1 2 445: 76(fvec4) CompositeExtract 442 1 446: 28(fvec3) VectorShuffle 445 445 0 1 2 447: 76(fvec4) CompositeExtract 442 2 448: 28(fvec3) VectorShuffle 447 447 0 1 2 449: 145 CompositeConstruct 444 446 448 452: 450(ptr) AccessChain 106(ubo) 211 453: 76(fvec4) Load 452 454: 28(fvec3) VectorShuffle 453 453 0 1 2 455: 28(fvec3) MatrixTimesVector 449 454 Store 435(lPos) 455 457: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 458 458 12 12 456: 28(fvec3) Load 435(lPos) 459: 76(fvec4) Load 355(pos) 460: 28(fvec3) VectorShuffle 459 459 0 1 2 461: 28(fvec3) FSub 456 460 Store 127(outLightVec) 461 463: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 464 464 12 12 462: 76(fvec4) Load 355(pos) 465: 28(fvec3) VectorShuffle 462 462 0 1 2 466: 28(fvec3) FNegate 465 Store 123(outViewVec) 466 467: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 468 468 12 12 Return FunctionEnd