yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
7fb81fa4
main
1spv.debuginfo.glsl.vert 2// Module Version 10000 3// Generated by (magic number): 8000b 4// Id's are bound by 469 5 6 Capability Shader 7 Extension "SPV_KHR_non_semantic_info" 8 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" 9 3: ExtInstImport "GLSL.std.450" 10 MemoryModel Logical GLSL450 11 EntryPoint Vertex 14 "main" 32 37 45 49 53 57 63 72 111 115 119 123 127 387 12 2: String "spv.debuginfo.glsl.vert" 13 8: String "uint" 14 16: String "main" 15 19: String "/* 16The MIT License (MIT) 17 18Copyright (c) 2022 Sascha Willems 19 20Permission is hereby granted, free of charge, to any person obtaining a copy 21of this software and associated documentation files (the "Software"), to deal 22in the Software without restriction, including without limitation the rights 23to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 24copies of the Software, and to permit persons to whom the Software is 25furnished to do so, subject to the following conditions: 26 27The above copyright notice and this permission notice shall be included in all 28copies or substantial portions of the Software. 29 30THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 31IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 32FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 33AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 34LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 35OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 36SOFTWARE. 37*/ 38 39#version 450 40 41// Vertex attributes 42layout (location = 0) in vec3 inPos; 43layout (location = 1) in vec3 inNormal; 44layout (location = 2) in vec2 inUV; 45layout (location = 3) in vec3 inColor; 46 47// Instanced attributes 48layout (location = 4) in vec3 instancePos; 49layout (location = 5) in vec3 instanceRot; 50layout (location = 6) in float instanceScale; 51layout (location = 7) in int instanceTexIndex; 52 53layout (binding = 0) uniform UBO 54{ 55 mat4 projection; 56 mat4 modelview; 57 vec4 lightPos; 58 float locSpeed; 59 float globSpeed; 60} ubo; 61 62layout (location = 0) out vec3 outNormal; 63layout (location = 1) out vec3 outColor; 64layout (location = 2) out vec3 outUV; 65layout (location = 3) out vec3 outViewVec; 66layout (location = 4) out vec3 outLightVec; 67 68void main() 69{ 70 outColor = inColor; 71 outUV = vec3(inUV, instanceTexIndex); 72 73 mat3 mx, my, mz; 74 75 // rotate around x 76 float s = sin(instanceRot.x + ubo.locSpeed); 77 float c = cos(instanceRot.x + ubo.locSpeed); 78 79 mx[0] = vec3(c, s, 0.0); 80 mx[1] = vec3(-s, c, 0.0); 81 mx[2] = vec3(0.0, 0.0, 1.0); 82 83 // rotate around y 84 s = sin(instanceRot.y + ubo.locSpeed); 85 c = cos(instanceRot.y + ubo.locSpeed); 86 87 my[0] = vec3(c, 0.0, s); 88 my[1] = vec3(0.0, 1.0, 0.0); 89 my[2] = vec3(-s, 0.0, c); 90 91 // rot around z 92 s = sin(instanceRot.z + ubo.locSpeed); 93 c = cos(instanceRot.z + ubo.locSpeed); 94 95 mz[0] = vec3(1.0, 0.0, 0.0); 96 mz[1] = vec3(0.0, c, s); 97 mz[2] = vec3(0.0, -s, c); 98 99 mat3 rotMat = mz * my * mx; 100 101 mat4 gRotMat; 102 s = sin(instanceRot.y + ubo.globSpeed); 103 c = cos(instanceRot.y + ubo.globSpeed); 104 gRotMat[0] = vec4(c, 0.0, s, 0.0); 105 gRotMat[1] = vec4(0.0, 1.0, 0.0, 0.0); 106 gRotMat[2] = vec4(-s, 0.0, c, 0.0); 107 gRotMat[3] = vec4(0.0, 0.0, 0.0, 1.0); 108 109 vec4 locPos = vec4(inPos.xyz * rotMat, 1.0); 110 vec4 pos = vec4((locPos.xyz * instanceScale) + instancePos, 1.0); 111 112 gl_Position = ubo.projection * ubo.modelview * gRotMat * pos; 113 outNormal = mat3(ubo.modelview * gRotMat) * inverse(rotMat) * inNormal; 114 115 pos = ubo.modelview * vec4(inPos.xyz + instancePos, 1.0); 116 vec3 lPos = mat3(ubo.modelview) * ubo.lightPos.xyz; 117 outLightVec = lPos - pos.xyz; 118 outViewVec = -pos.xyz; 119} 120" 121 26: String "float" 122 34: String "inPos" 123 39: String "inNormal" 124 47: String "inUV" 125 51: String "inColor" 126 55: String "instancePos" 127 59: String "instanceRot" 128 65: String "instanceScale" 129 68: String "int" 130 74: String "instanceTexIndex" 131 81: String "bool" 132 86: String "projection" 133 90: String "modelview" 134 93: String "lightPos" 135 96: String "locSpeed" 136 99: String "globSpeed" 137 102: String "UBO" 138 108: String "ubo" 139 113: String "outNormal" 140 117: String "outColor" 141 121: String "outUV" 142 125: String "outViewVec" 143 129: String "outLightVec" 144 151: String "mx" 145 158: String "my" 146 162: String "mz" 147 168: String "s" 148 183: String "c" 149 285: String "rotMat" 150 298: String "gRotMat" 151 344: String "locPos" 152 357: String "pos" 153 375: String "gl_Position" 154 377: String "gl_PointSize" 155 379: String "gl_ClipDistance" 156 381: String "gl_CullDistance" 157 383: String "gl_PerVertex" 158 389: String "" 159 437: String "lPos" 160 Name 14 "main" 161 Name 32 "inPos" 162 Name 37 "inNormal" 163 Name 45 "inUV" 164 Name 49 "inColor" 165 Name 53 "instancePos" 166 Name 57 "instanceRot" 167 Name 63 "instanceScale" 168 Name 72 "instanceTexIndex" 169 Name 84 "UBO" 170 MemberName 84(UBO) 0 "projection" 171 MemberName 84(UBO) 1 "modelview" 172 MemberName 84(UBO) 2 "lightPos" 173 MemberName 84(UBO) 3 "locSpeed" 174 MemberName 84(UBO) 4 "globSpeed" 175 Name 106 "ubo" 176 Name 111 "outNormal" 177 Name 115 "outColor" 178 Name 119 "outUV" 179 Name 123 "outViewVec" 180 Name 127 "outLightVec" 181 Name 149 "mx" 182 Name 156 "my" 183 Name 160 "mz" 184 Name 166 "s" 185 Name 181 "c" 186 Name 283 "rotMat" 187 Name 296 "gRotMat" 188 Name 342 "locPos" 189 Name 355 "pos" 190 Name 373 "gl_PerVertex" 191 MemberName 373(gl_PerVertex) 0 "gl_Position" 192 MemberName 373(gl_PerVertex) 1 "gl_PointSize" 193 MemberName 373(gl_PerVertex) 2 "gl_ClipDistance" 194 MemberName 373(gl_PerVertex) 3 "gl_CullDistance" 195 Name 387 "" 196 Name 435 "lPos" 197 Decorate 32(inPos) Location 0 198 Decorate 37(inNormal) Location 1 199 Decorate 45(inUV) Location 2 200 Decorate 49(inColor) Location 3 201 Decorate 53(instancePos) Location 4 202 Decorate 57(instanceRot) Location 5 203 Decorate 63(instanceScale) Location 6 204 Decorate 72(instanceTexIndex) Location 7 205 Decorate 84(UBO) Block 206 MemberDecorate 84(UBO) 0 ColMajor 207 MemberDecorate 84(UBO) 0 MatrixStride 16 208 MemberDecorate 84(UBO) 0 Offset 0 209 MemberDecorate 84(UBO) 1 ColMajor 210 MemberDecorate 84(UBO) 1 MatrixStride 16 211 MemberDecorate 84(UBO) 1 Offset 64 212 MemberDecorate 84(UBO) 2 Offset 128 213 MemberDecorate 84(UBO) 3 Offset 144 214 MemberDecorate 84(UBO) 4 Offset 148 215 Decorate 106(ubo) Binding 0 216 Decorate 106(ubo) DescriptorSet 0 217 Decorate 111(outNormal) Location 0 218 Decorate 115(outColor) Location 1 219 Decorate 119(outUV) Location 2 220 Decorate 123(outViewVec) Location 3 221 Decorate 127(outLightVec) Location 4 222 Decorate 373(gl_PerVertex) Block 223 MemberDecorate 373(gl_PerVertex) 0 BuiltIn Position 224 MemberDecorate 373(gl_PerVertex) 1 BuiltIn PointSize 225 MemberDecorate 373(gl_PerVertex) 2 BuiltIn ClipDistance 226 MemberDecorate 373(gl_PerVertex) 3 BuiltIn CullDistance 227 4: TypeVoid 228 5: TypeFunction 4 229 7: TypeInt 32 0 230 10: 7(int) Constant 32 231 11: 7(int) Constant 6 232 12: 7(int) Constant 0 233 9: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12 234 13: 7(int) Constant 3 235 6: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 236 18: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 19 237 20: 7(int) Constant 54 238 22: 7(int) Constant 1 239 23: 7(int) Constant 4 240 24: 7(int) Constant 2 241 21: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 22 23 18 24 242 17: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 16 6 18 20 12 21 16 13 20 243 25: TypeFloat 32 244 27: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 26 10 13 12 245 28: TypeVector 25(float) 3 246 29: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 27 13 247 30: TypePointer Input 28(fvec3) 248 31: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 22 12 249 32(inPos): 30(ptr) Variable Input 250 35: 7(int) Constant 28 251 36: 7(int) Constant 8 252 33: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 34 29 18 35 12 21 34 32(inPos) 36 253 37(inNormal): 30(ptr) Variable Input 254 40: 7(int) Constant 29 255 38: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 39 29 18 40 12 21 39 37(inNormal) 36 256 41: TypeVector 25(float) 2 257 42: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 27 24 258 43: TypePointer Input 41(fvec2) 259 44: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 42 22 12 260 45(inUV): 43(ptr) Variable Input 261 48: 7(int) Constant 30 262 46: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 47 42 18 48 12 21 47 45(inUV) 36 263 49(inColor): 30(ptr) Variable Input 264 52: 7(int) Constant 31 265 50: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 51 29 18 52 12 21 51 49(inColor) 36 266 53(instancePos): 30(ptr) Variable Input 267 56: 7(int) Constant 34 268 54: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 55 29 18 56 12 21 55 53(instancePos) 36 269 57(instanceRot): 30(ptr) Variable Input 270 60: 7(int) Constant 35 271 58: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 59 29 18 60 12 21 59 57(instanceRot) 36 272 61: TypePointer Input 25(float) 273 62: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 27 22 12 27463(instanceScale): 61(ptr) Variable Input 275 66: 7(int) Constant 36 276 64: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 65 27 18 66 12 21 65 63(instanceScale) 36 277 67: TypeInt 32 1 278 69: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 68 10 23 12 279 70: TypePointer Input 67(int) 280 71: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 69 22 12 28172(instanceTexIndex): 70(ptr) Variable Input 282 75: 7(int) Constant 37 283 73: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 74 69 18 75 12 21 74 72(instanceTexIndex) 36 284 76: TypeVector 25(float) 4 285 77: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 27 23 286 78: TypeMatrix 76(fvec4) 4 287 80: TypeBool 288 82: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 81 10 24 12 289 83: 80(bool) ConstantTrue 290 79: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 77 23 83 291 84(UBO): TypeStruct 78 78 76(fvec4) 25(float) 25(float) 292 87: 7(int) Constant 41 293 88: 7(int) Constant 7 294 85: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 86 79 18 87 88 12 12 13 295 91: 7(int) Constant 42 296 89: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 90 79 18 91 88 12 12 13 297 94: 7(int) Constant 43 298 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 93 77 18 94 88 12 12 13 299 97: 7(int) Constant 44 300 95: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 96 27 18 97 36 12 12 13 301 100: 7(int) Constant 45 302 98: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 99 27 18 100 36 12 12 13 303 103: 7(int) Constant 39 304 101: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 102 22 18 103 12 21 102 12 13 85 89 92 95 98 305 104: TypePointer Uniform 84(UBO) 306 105: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 101 24 12 307 106(ubo): 104(ptr) Variable Uniform 308 107: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 108 101 18 103 12 21 108 106(ubo) 36 309 109: TypePointer Output 28(fvec3) 310 110: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 13 12 311 111(outNormal): 109(ptr) Variable Output 312 114: 7(int) Constant 48 313 112: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 113 29 18 114 12 21 113 111(outNormal) 36 314 115(outColor): 109(ptr) Variable Output 315 118: 7(int) Constant 49 316 116: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 117 29 18 118 12 21 117 115(outColor) 36 317 119(outUV): 109(ptr) Variable Output 318 122: 7(int) Constant 50 319 120: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 121 29 18 122 12 21 121 119(outUV) 36 320 123(outViewVec): 109(ptr) Variable Output 321 126: 7(int) Constant 51 322 124: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 125 29 18 126 12 21 125 123(outViewVec) 36 323127(outLightVec): 109(ptr) Variable Output 324 130: 7(int) Constant 52 325 128: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 129 29 18 130 12 21 129 127(outLightVec) 36 326 136: 7(int) Constant 56 327 139: 7(int) Constant 57 328 145: TypeMatrix 28(fvec3) 3 329 146: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 29 13 83 330 147: TypePointer Function 145 331 148: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 146 88 12 332 152: 7(int) Constant 59 333 150: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 151 146 18 152 12 17 23 334 154: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) 335 157: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 158 146 18 152 12 17 23 336 161: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 162 146 18 152 12 17 23 337 164: TypePointer Function 25(float) 338 165: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 27 88 12 339 169: 7(int) Constant 62 340 167: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 168 27 18 169 12 17 23 341 174: 67(int) Constant 3 342 175: TypePointer Uniform 25(float) 343 176: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 27 24 12 344 184: 7(int) Constant 63 345 182: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 183 27 18 184 12 17 23 346 193: 67(int) Constant 0 347 196: 7(int) Constant 65 348 198: 25(float) Constant 0 349 200: TypePointer Function 28(fvec3) 350 201: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 88 12 351 203: 67(int) Constant 1 352 206: 7(int) Constant 66 353 211: 67(int) Constant 2 354 212: 25(float) Constant 1065353216 355 213: 28(fvec3) ConstantComposite 198 198 212 356 216: 7(int) Constant 67 357 219: 7(int) Constant 70 358 227: 7(int) Constant 71 359 235: 7(int) Constant 73 360 239: 28(fvec3) ConstantComposite 198 212 198 361 242: 7(int) Constant 74 362 245: 7(int) Constant 75 363 252: 7(int) Constant 78 364 260: 7(int) Constant 79 365 266: 28(fvec3) ConstantComposite 212 198 198 366 269: 7(int) Constant 81 367 272: 7(int) Constant 82 368 278: 7(int) Constant 83 369 286: 7(int) Constant 85 370 284: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 285 146 18 286 12 17 23 371 294: TypePointer Function 78 372 295: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 79 88 12 373 299: 7(int) Constant 87 374 297: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 298 79 18 299 12 17 23 375 304: 7(int) Constant 88 376 306: 67(int) Constant 4 377 313: 7(int) Constant 89 378 321: 7(int) Constant 90 379 324: TypePointer Function 76(fvec4) 380 325: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 77 88 12 381 327: 76(fvec4) ConstantComposite 198 212 198 198 382 330: 7(int) Constant 91 383 333: 7(int) Constant 92 384 338: 76(fvec4) ConstantComposite 198 198 198 212 385 341: 7(int) Constant 93 386 345: 7(int) Constant 95 387 343: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 344 77 18 345 12 17 23 388 358: 7(int) Constant 96 389 356: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 357 77 18 358 12 17 23 390 371: TypeArray 25(float) 22 391 372: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 27 22 392373(gl_PerVertex): TypeStruct 76(fvec4) 25(float) 371 371 393 374: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 375 77 18 12 12 12 12 13 394 376: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 377 27 18 12 12 12 12 13 395 378: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 379 372 18 12 12 12 12 13 396 380: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 381 372 18 12 12 12 12 13 397 384: 7(int) Constant 98 398 382: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 383 22 18 384 12 21 383 12 13 374 376 378 380 399 385: TypePointer Output 373(gl_PerVertex) 400 386: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 382 13 12 401 387: 385(ptr) Variable Output 402 388: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 389 382 18 384 12 21 389 387 36 403 390: TypePointer Uniform 78 404 391: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 79 24 12 405 402: TypePointer Output 76(fvec4) 406 403: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 77 13 12 407 407: 7(int) Constant 99 408 425: 7(int) Constant 101 409 438: 7(int) Constant 102 410 436: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 437 29 18 438 12 17 23 411 450: TypePointer Uniform 76(fvec4) 412 451: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 77 24 12 413 458: 7(int) Constant 103 414 464: 7(int) Constant 104 415 468: 7(int) Constant 105 416 14(main): 4 Function None 5 417 15: Label 418 149(mx): 147(ptr) Variable Function 419 156(my): 147(ptr) Variable Function 420 160(mz): 147(ptr) Variable Function 421 166(s): 164(ptr) Variable Function 422 181(c): 164(ptr) Variable Function 423 283(rotMat): 147(ptr) Variable Function 424 296(gRotMat): 294(ptr) Variable Function 425 342(locPos): 324(ptr) Variable Function 426 355(pos): 324(ptr) Variable Function 427 435(lPos): 200(ptr) Variable Function 428 132: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17 429 133: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 20 20 12 12 430 131: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main) 431 135: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 136 136 12 12 432 134: 28(fvec3) Load 49(inColor) 433 Store 115(outColor) 134 434 138: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 139 139 12 12 435 137: 41(fvec2) Load 45(inUV) 436 140: 67(int) Load 72(instanceTexIndex) 437 141: 25(float) ConvertSToF 140 438 142: 25(float) CompositeExtract 137 0 439 143: 25(float) CompositeExtract 137 1 440 144: 28(fvec3) CompositeConstruct 142 143 141 441 Store 119(outUV) 144 442 155: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 152 152 12 12 443 153: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 150 149(mx) 154 444 159: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 157 156(my) 154 445 163: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 161 160(mz) 154 446 171: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 169 169 12 12 447 170: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 167 166(s) 154 448 172: 61(ptr) AccessChain 57(instanceRot) 12 449 173: 25(float) Load 172 450 177: 175(ptr) AccessChain 106(ubo) 174 451 178: 25(float) Load 177 452 179: 25(float) FAdd 173 178 453 180: 25(float) ExtInst 3(GLSL.std.450) 13(Sin) 179 454 Store 166(s) 180 455 186: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 184 184 12 12 456 185: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 182 181(c) 154 457 187: 61(ptr) AccessChain 57(instanceRot) 12 458 188: 25(float) Load 187 459 189: 175(ptr) AccessChain 106(ubo) 174 460 190: 25(float) Load 189 461 191: 25(float) FAdd 188 190 462 192: 25(float) ExtInst 3(GLSL.std.450) 14(Cos) 191 463 Store 181(c) 192 464 195: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 196 196 12 12 465 194: 25(float) Load 181(c) 466 197: 25(float) Load 166(s) 467 199: 28(fvec3) CompositeConstruct 194 197 198 468 202: 200(ptr) AccessChain 149(mx) 193 469 Store 202 199 470 205: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 206 206 12 12 471 204: 25(float) Load 166(s) 472 207: 25(float) FNegate 204 473 208: 25(float) Load 181(c) 474 209: 28(fvec3) CompositeConstruct 207 208 198 475 210: 200(ptr) AccessChain 149(mx) 203 476 Store 210 209 477 215: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 216 216 12 12 478 214: 200(ptr) AccessChain 149(mx) 211 479 Store 214 213 480 218: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 219 219 12 12 481 217: 61(ptr) AccessChain 57(instanceRot) 22 482 220: 25(float) Load 217 483 221: 175(ptr) AccessChain 106(ubo) 174 484 222: 25(float) Load 221 485 223: 25(float) FAdd 220 222 486 224: 25(float) ExtInst 3(GLSL.std.450) 13(Sin) 223 487 Store 166(s) 224 488 226: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 227 227 12 12 489 225: 61(ptr) AccessChain 57(instanceRot) 22 490 228: 25(float) Load 225 491 229: 175(ptr) AccessChain 106(ubo) 174 492 230: 25(float) Load 229 493 231: 25(float) FAdd 228 230 494 232: 25(float) ExtInst 3(GLSL.std.450) 14(Cos) 231 495 Store 181(c) 232 496 234: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 235 235 12 12 497 233: 25(float) Load 181(c) 498 236: 25(float) Load 166(s) 499 237: 28(fvec3) CompositeConstruct 233 198 236 500 238: 200(ptr) AccessChain 156(my) 193 501 Store 238 237 502 241: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 242 242 12 12 503 240: 200(ptr) AccessChain 156(my) 203 504 Store 240 239 505 244: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 245 245 12 12 506 243: 25(float) Load 166(s) 507 246: 25(float) FNegate 243 508 247: 25(float) Load 181(c) 509 248: 28(fvec3) CompositeConstruct 246 198 247 510 249: 200(ptr) AccessChain 156(my) 211 511 Store 249 248 512 251: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 252 252 12 12 513 250: 61(ptr) AccessChain 57(instanceRot) 24 514 253: 25(float) Load 250 515 254: 175(ptr) AccessChain 106(ubo) 174 516 255: 25(float) Load 254 517 256: 25(float) FAdd 253 255 518 257: 25(float) ExtInst 3(GLSL.std.450) 13(Sin) 256 519 Store 166(s) 257 520 259: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 260 260 12 12 521 258: 61(ptr) AccessChain 57(instanceRot) 24 522 261: 25(float) Load 258 523 262: 175(ptr) AccessChain 106(ubo) 174 524 263: 25(float) Load 262 525 264: 25(float) FAdd 261 263 526 265: 25(float) ExtInst 3(GLSL.std.450) 14(Cos) 264 527 Store 181(c) 265 528 268: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 269 269 12 12 529 267: 200(ptr) AccessChain 160(mz) 193 530 Store 267 266 531 271: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 272 272 12 12 532 270: 25(float) Load 181(c) 533 273: 25(float) Load 166(s) 534 274: 28(fvec3) CompositeConstruct 198 270 273 535 275: 200(ptr) AccessChain 160(mz) 203 536 Store 275 274 537 277: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 278 278 12 12 538 276: 25(float) Load 166(s) 539 279: 25(float) FNegate 276 540 280: 25(float) Load 181(c) 541 281: 28(fvec3) CompositeConstruct 198 279 280 542 282: 200(ptr) AccessChain 160(mz) 211 543 Store 282 281 544 288: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 286 286 12 12 545 287: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 284 283(rotMat) 154 546 289: 145 Load 160(mz) 547 290: 145 Load 156(my) 548 291: 145 MatrixTimesMatrix 289 290 549 292: 145 Load 149(mx) 550 293: 145 MatrixTimesMatrix 291 292 551 Store 283(rotMat) 293 552 301: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 299 299 12 12 553 300: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 297 296(gRotMat) 154 554 303: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 304 304 12 12 555 302: 61(ptr) AccessChain 57(instanceRot) 22 556 305: 25(float) Load 302 557 307: 175(ptr) AccessChain 106(ubo) 306 558 308: 25(float) Load 307 559 309: 25(float) FAdd 305 308 560 310: 25(float) ExtInst 3(GLSL.std.450) 13(Sin) 309 561 Store 166(s) 310 562 312: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 313 313 12 12 563 311: 61(ptr) AccessChain 57(instanceRot) 22 564 314: 25(float) Load 311 565 315: 175(ptr) AccessChain 106(ubo) 306 566 316: 25(float) Load 315 567 317: 25(float) FAdd 314 316 568 318: 25(float) ExtInst 3(GLSL.std.450) 14(Cos) 317 569 Store 181(c) 318 570 320: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 321 321 12 12 571 319: 25(float) Load 181(c) 572 322: 25(float) Load 166(s) 573 323: 76(fvec4) CompositeConstruct 319 198 322 198 574 326: 324(ptr) AccessChain 296(gRotMat) 193 575 Store 326 323 576 329: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 330 330 12 12 577 328: 324(ptr) AccessChain 296(gRotMat) 203 578 Store 328 327 579 332: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 333 333 12 12 580 331: 25(float) Load 166(s) 581 334: 25(float) FNegate 331 582 335: 25(float) Load 181(c) 583 336: 76(fvec4) CompositeConstruct 334 198 335 198 584 337: 324(ptr) AccessChain 296(gRotMat) 211 585 Store 337 336 586 340: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 341 341 12 12 587 339: 324(ptr) AccessChain 296(gRotMat) 174 588 Store 339 338 589 347: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 345 345 12 12 590 346: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 343 342(locPos) 154 591 348: 28(fvec3) Load 32(inPos) 592 349: 145 Load 283(rotMat) 593 350: 28(fvec3) VectorTimesMatrix 348 349 594 351: 25(float) CompositeExtract 350 0 595 352: 25(float) CompositeExtract 350 1 596 353: 25(float) CompositeExtract 350 2 597 354: 76(fvec4) CompositeConstruct 351 352 353 212 598 Store 342(locPos) 354 599 360: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 358 358 12 12 600 359: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 356 355(pos) 154 601 361: 76(fvec4) Load 342(locPos) 602 362: 28(fvec3) VectorShuffle 361 361 0 1 2 603 363: 25(float) Load 63(instanceScale) 604 364: 28(fvec3) VectorTimesScalar 362 363 605 365: 28(fvec3) Load 53(instancePos) 606 366: 28(fvec3) FAdd 364 365 607 367: 25(float) CompositeExtract 366 0 608 368: 25(float) CompositeExtract 366 1 609 369: 25(float) CompositeExtract 366 2 610 370: 76(fvec4) CompositeConstruct 367 368 369 212 611 Store 355(pos) 370 612 393: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 384 384 12 12 613 392: 390(ptr) AccessChain 106(ubo) 193 614 394: 78 Load 392 615 395: 390(ptr) AccessChain 106(ubo) 203 616 396: 78 Load 395 617 397: 78 MatrixTimesMatrix 394 396 618 398: 78 Load 296(gRotMat) 619 399: 78 MatrixTimesMatrix 397 398 620 400: 76(fvec4) Load 355(pos) 621 401: 76(fvec4) MatrixTimesVector 399 400 622 404: 402(ptr) AccessChain 387 193 623 Store 404 401 624 406: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 407 407 12 12 625 405: 390(ptr) AccessChain 106(ubo) 203 626 408: 78 Load 405 627 409: 78 Load 296(gRotMat) 628 410: 78 MatrixTimesMatrix 408 409 629 411: 76(fvec4) CompositeExtract 410 0 630 412: 28(fvec3) VectorShuffle 411 411 0 1 2 631 413: 76(fvec4) CompositeExtract 410 1 632 414: 28(fvec3) VectorShuffle 413 413 0 1 2 633 415: 76(fvec4) CompositeExtract 410 2 634 416: 28(fvec3) VectorShuffle 415 415 0 1 2 635 417: 145 CompositeConstruct 412 414 416 636 418: 145 Load 283(rotMat) 637 419: 145 ExtInst 3(GLSL.std.450) 34(MatrixInverse) 418 638 420: 145 MatrixTimesMatrix 417 419 639 421: 28(fvec3) Load 37(inNormal) 640 422: 28(fvec3) MatrixTimesVector 420 421 641 Store 111(outNormal) 422 642 424: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 425 425 12 12 643 423: 390(ptr) AccessChain 106(ubo) 203 644 426: 78 Load 423 645 427: 28(fvec3) Load 32(inPos) 646 428: 28(fvec3) Load 53(instancePos) 647 429: 28(fvec3) FAdd 427 428 648 430: 25(float) CompositeExtract 429 0 649 431: 25(float) CompositeExtract 429 1 650 432: 25(float) CompositeExtract 429 2 651 433: 76(fvec4) CompositeConstruct 430 431 432 212 652 434: 76(fvec4) MatrixTimesVector 426 433 653 Store 355(pos) 434 654 440: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 438 438 12 12 655 439: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 436 435(lPos) 154 656 441: 390(ptr) AccessChain 106(ubo) 203 657 442: 78 Load 441 658 443: 76(fvec4) CompositeExtract 442 0 659 444: 28(fvec3) VectorShuffle 443 443 0 1 2 660 445: 76(fvec4) CompositeExtract 442 1 661 446: 28(fvec3) VectorShuffle 445 445 0 1 2 662 447: 76(fvec4) CompositeExtract 442 2 663 448: 28(fvec3) VectorShuffle 447 447 0 1 2 664 449: 145 CompositeConstruct 444 446 448 665 452: 450(ptr) AccessChain 106(ubo) 211 666 453: 76(fvec4) Load 452 667 454: 28(fvec3) VectorShuffle 453 453 0 1 2 668 455: 28(fvec3) MatrixTimesVector 449 454 669 Store 435(lPos) 455 670 457: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 458 458 12 12 671 456: 28(fvec3) Load 435(lPos) 672 459: 76(fvec4) Load 355(pos) 673 460: 28(fvec3) VectorShuffle 459 459 0 1 2 674 461: 28(fvec3) FSub 456 460 675 Store 127(outLightVec) 461 676 463: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 464 464 12 12 677 462: 76(fvec4) Load 355(pos) 678 465: 28(fvec3) VectorShuffle 462 462 0 1 2 679 466: 28(fvec3) FNegate 465 680 Store 123(outViewVec) 466 681 467: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 468 468 12 12 682 Return 683 FunctionEnd