spv.debuginfo.hlsl.vert // Module Version 10000 // Generated by (magic number): 8000b // Id's are bound by 534 Capability Shader Extension "SPV_KHR_non_semantic_info" 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" 3: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 EntryPoint Vertex 6 "main" 483 486 490 493 496 499 503 507 515 519 522 525 528 531 2: String "spv.debuginfo.hlsl.vert" 9: String "float" 12: String "uint" 24: String "int" 29: String "Pos" 31: String "/* The MIT License (MIT) Copyright (c) 2022 Google LLC 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. */ struct VSInput { [[vk::location(0)]] float3 Pos : POSITION0; [[vk::location(1)]] float3 Normal : NORMAL0; [[vk::location(2)]] float2 UV : TEXCOORD0; [[vk::location(3)]] float3 Color : COLOR0; // Instanced attributes [[vk::location(4)]] float3 instancePos : POSITION1; [[vk::location(5)]] float3 instanceRot : TEXCOORD1; [[vk::location(6)]] float instanceScale : TEXCOORD2; [[vk::location(7)]] int instanceTexIndex : TEXCOORD3; }; struct UBO { float4x4 projection; float4x4 modelview; float4 lightPos; float locSpeed; float globSpeed; }; cbuffer ubo : register(b0) { UBO ubo; } struct VSOutput { float4 Pos : SV_POSITION; [[vk::location(0)]] float3 Normal : NORMAL0; [[vk::location(1)]] float3 Color : COLOR0; [[vk::location(2)]] float3 UV : TEXCOORD0; [[vk::location(3)]] float3 ViewVec : TEXCOORD1; [[vk::location(4)]] float3 LightVec : TEXCOORD2; }; VSOutput main(VSInput input) { VSOutput output = (VSOutput)0; output.Color = input.Color; output.UV = float3(input.UV, input.instanceTexIndex); // rotate around x float s = sin(input.instanceRot.x + ubo.locSpeed); float c = cos(input.instanceRot.x + ubo.locSpeed); float3x3 mx = { c, -s, 0.0, s, c, 0.0, 0.0, 0.0, 1.0 }; // rotate around y s = sin(input.instanceRot.y + ubo.locSpeed); c = cos(input.instanceRot.y + ubo.locSpeed); float3x3 my = { c, 0.0, -s, 0.0, 1.0, 0.0, s, 0.0, c }; // rot around z s = sin(input.instanceRot.z + ubo.locSpeed); c = cos(input.instanceRot.z + ubo.locSpeed); float3x3 mz = { 1.0, 0.0, 0.0, 0.0, c, -s, 0.0, s, c }; float3x3 rotMat = mul(mz, mul(my, mx)); float4x4 gRotMat; s = sin(input.instanceRot.y + ubo.globSpeed); c = cos(input.instanceRot.y + ubo.globSpeed); gRotMat[0] = float4(c, 0.0, -s, 0.0); gRotMat[1] = float4(0.0, 1.0, 0.0, 0.0); gRotMat[2] = float4(s, 0.0, c, 0.0); gRotMat[3] = float4(0.0, 0.0, 0.0, 1.0); float4 locPos = float4(mul(rotMat, input.Pos.xyz), 1.0); float4 pos = float4((locPos.xyz * input.instanceScale) + input.instancePos, 1.0); output.Pos = mul(ubo.projection, mul(ubo.modelview, mul(gRotMat, pos))); output.Normal = mul((float3x3)mul(ubo.modelview, gRotMat), mul(rotMat, input.Normal)); pos = mul(ubo.modelview, float4(input.Pos.xyz + input.instancePos, 1.0)); float3 lPos = mul((float3x3)ubo.modelview, ubo.lightPos.xyz); output.LightVec = lPos - pos.xyz; output.ViewVec = -pos.xyz; return output; } " 34: String "Normal" 38: String "UV" 42: String "Color" 45: String "instancePos" 48: String "instanceRot" 50: String "instanceScale" 54: String "instanceTexIndex" 58: String "VSInput" 79: String "ViewVec" 82: String "LightVec" 85: String "VSOutput" 91: String "@main" 94: String "input" 105: String "output" 143: String "s" 153: String "bool" 158: String "projection" 161: String "modelview" 165: String "lightPos" 169: String "locSpeed" 173: String "globSpeed" 176: String "UBO" 179: String "ubo" 186: String "" 197: String "c" 213: String "mx" 248: String "my" 282: String "mz" 302: String "rotMat" 315: String "gRotMat" 362: String "locPos" 376: String "pos" 442: String "lPos" Name 6 "main" Name 27 "VSInput" MemberName 27(VSInput) 0 "Pos" MemberName 27(VSInput) 1 "Normal" MemberName 27(VSInput) 2 "UV" MemberName 27(VSInput) 3 "Color" MemberName 27(VSInput) 4 "instancePos" MemberName 27(VSInput) 5 "instanceRot" MemberName 27(VSInput) 6 "instanceScale" MemberName 27(VSInput) 7 "instanceTexIndex" Name 68 "VSOutput" MemberName 68(VSOutput) 0 "Pos" MemberName 68(VSOutput) 1 "Normal" MemberName 68(VSOutput) 2 "Color" MemberName 68(VSOutput) 3 "UV" MemberName 68(VSOutput) 4 "ViewVec" MemberName 68(VSOutput) 5 "LightVec" Name 89 "@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;" Name 88 "input" Name 103 "output" Name 141 "s" Name 156 "UBO" MemberName 156(UBO) 0 "projection" MemberName 156(UBO) 1 "modelview" MemberName 156(UBO) 2 "lightPos" MemberName 156(UBO) 3 "locSpeed" MemberName 156(UBO) 4 "globSpeed" Name 177 "ubo" MemberName 177(ubo) 0 "ubo" Name 184 "" Name 195 "c" Name 211 "mx" Name 246 "my" Name 280 "mz" Name 300 "rotMat" Name 313 "gRotMat" Name 360 "locPos" Name 374 "pos" Name 440 "lPos" Name 481 "input" Name 483 "input.Pos" Name 486 "input.Normal" Name 490 "input.UV" Name 493 "input.Color" Name 496 "input.instancePos" Name 499 "input.instanceRot" Name 503 "input.instanceScale" Name 507 "input.instanceTexIndex" Name 510 "flattenTemp" Name 511 "param" Name 515 "@entryPointOutput.Pos" Name 519 "@entryPointOutput.Normal" Name 522 "@entryPointOutput.Color" Name 525 "@entryPointOutput.UV" Name 528 "@entryPointOutput.ViewVec" Name 531 "@entryPointOutput.LightVec" MemberDecorate 156(UBO) 0 RowMajor MemberDecorate 156(UBO) 0 MatrixStride 16 MemberDecorate 156(UBO) 0 Offset 0 MemberDecorate 156(UBO) 1 RowMajor MemberDecorate 156(UBO) 1 MatrixStride 16 MemberDecorate 156(UBO) 1 Offset 64 MemberDecorate 156(UBO) 2 Offset 128 MemberDecorate 156(UBO) 3 Offset 144 MemberDecorate 156(UBO) 4 Offset 148 Decorate 177(ubo) Block MemberDecorate 177(ubo) 0 Offset 0 Decorate 184 Binding 0 Decorate 184 DescriptorSet 0 Decorate 483(input.Pos) Location 0 Decorate 486(input.Normal) Location 1 Decorate 490(input.UV) Location 2 Decorate 493(input.Color) Location 3 Decorate 496(input.instancePos) Location 4 Decorate 499(input.instanceRot) Location 5 Decorate 503(input.instanceScale) Location 6 Decorate 507(input.instanceTexIndex) Location 7 Decorate 515(@entryPointOutput.Pos) BuiltIn Position Decorate 519(@entryPointOutput.Normal) Location 0 Decorate 522(@entryPointOutput.Color) Location 1 Decorate 525(@entryPointOutput.UV) Location 2 Decorate 528(@entryPointOutput.ViewVec) Location 3 Decorate 531(@entryPointOutput.LightVec) Location 4 4: TypeVoid 5: TypeFunction 4 8: TypeFloat 32 11: TypeInt 32 0 14: 11(int) Constant 32 15: 11(int) Constant 6 16: 11(int) Constant 0 13: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 12 14 15 16 17: 11(int) Constant 3 10: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 14 17 16 18: TypeVector 8(float) 3 19: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 17 20: TypeVector 8(float) 2 21: 11(int) Constant 2 22: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 21 23: TypeInt 32 1 26: 11(int) Constant 4 25: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 24 14 26 16 27(VSInput): TypeStruct 18(fvec3) 18(fvec3) 20(fvec2) 18(fvec3) 18(fvec3) 18(fvec3) 8(float) 23(int) 30: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 31 32: 11(int) Constant 28 28: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 29 19 30 32 14 16 16 17 35: 11(int) Constant 29 36: 11(int) Constant 35 33: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 34 19 30 35 36 16 16 17 39: 11(int) Constant 30 40: 11(int) Constant 31 37: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 38 22 30 39 40 16 16 17 43: 11(int) Constant 34 41: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 42 19 30 40 43 16 16 17 46: 11(int) Constant 40 44: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 45 19 30 43 46 16 16 17 47: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 48 19 30 36 46 16 16 17 51: 11(int) Constant 36 52: 11(int) Constant 41 49: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 50 10 30 51 52 16 16 17 55: 11(int) Constant 37 56: 11(int) Constant 42 53: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 54 25 30 55 56 16 16 17 59: 11(int) Constant 1 60: 11(int) Constant 62 62: 11(int) Constant 5 61: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 59 26 30 62 57: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 58 59 30 60 16 61 58 16 17 28 33 37 41 44 47 49 53 63: TypePointer Function 27(VSInput) 64: 11(int) Constant 7 65: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 57 64 16 66: TypeVector 8(float) 4 67: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 26 68(VSOutput): TypeStruct 66(fvec4) 18(fvec3) 18(fvec3) 18(fvec3) 18(fvec3) 18(fvec3) 70: 11(int) Constant 53 71: 11(int) Constant 13 69: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 29 67 30 70 71 16 16 17 73: 11(int) Constant 54 72: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 34 19 30 73 36 16 16 17 75: 11(int) Constant 55 74: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 42 19 30 75 43 16 16 17 77: 11(int) Constant 56 76: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 38 19 30 77 40 16 16 17 80: 11(int) Constant 57 78: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 79 19 30 80 51 16 16 17 83: 11(int) Constant 58 81: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 82 19 30 83 55 16 16 17 84: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 85 59 30 60 16 61 85 16 17 69 72 74 76 78 81 86: TypeFunction 68(VSOutput) 63(ptr) 87: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 84 57 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 91 87 30 60 16 61 91 17 60 93: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 94 57 30 60 16 92 26 59 96: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) 100: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 30 16 16 92 101: TypePointer Function 68(VSOutput) 102: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 84 64 16 106: 11(int) Constant 63 104: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 105 84 30 106 16 100 26 110: 8(float) Constant 0 111: 66(fvec4) ConstantComposite 110 110 110 110 112: 18(fvec3) ConstantComposite 110 110 110 113:68(VSOutput) ConstantComposite 111 112 112 112 112 112 114: 23(int) Constant 2 115: 23(int) Constant 3 116: TypePointer Function 18(fvec3) 117: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 19 64 16 120: 11(int) Constant 64 123: TypePointer Function 20(fvec2) 124: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 22 64 16 127: 11(int) Constant 65 129: 23(int) Constant 7 130: TypePointer Function 23(int) 131: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 25 64 16 139: TypePointer Function 8(float) 140: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 64 16 144: 11(int) Constant 68 142: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 143 10 30 144 16 100 26 147: 23(int) Constant 5 150: TypeMatrix 66(fvec4) 4 152: TypeBool 154: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 153 14 21 16 155: 152(bool) ConstantTrue 151: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 67 26 155 156(UBO): TypeStruct 150 150 66(fvec4) 8(float) 8(float) 159: 11(int) Constant 21 157: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 158 151 30 56 159 16 16 17 162: 11(int) Constant 43 163: 11(int) Constant 20 160: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 161 151 30 162 163 16 16 17 166: 11(int) Constant 44 167: 11(int) Constant 17 164: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 165 67 30 166 167 16 16 17 170: 11(int) Constant 45 171: 11(int) Constant 16 168: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 169 10 30 170 171 16 16 17 174: 11(int) Constant 46 172: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 173 10 30 174 167 16 16 17 175: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 176 59 30 144 16 61 176 16 17 157 160 164 168 172 177(ubo): TypeStruct 156(UBO) 180: 11(int) Constant 49 178: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 179 175 30 180 55 16 16 17 181: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 179 59 30 144 16 61 179 16 17 178 182: TypePointer Uniform 177(ubo) 183: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 181 21 16 184: 182(ptr) Variable Uniform 187: 11(int) Constant 8 185: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 186 181 30 144 16 61 186 184 187 188: 23(int) Constant 0 189: TypePointer Uniform 8(float) 190: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 21 16 198: 11(int) Constant 69 196: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 197 10 30 198 16 100 26 207: TypeMatrix 18(fvec3) 3 208: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 19 17 155 209: TypePointer Function 207 210: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 208 64 16 214: 11(int) Constant 71 212: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 213 208 30 214 16 100 26 222: 11(int) Constant 72 224: 8(float) Constant 1065353216 232: 11(int) Constant 76 240: 11(int) Constant 77 249: 11(int) Constant 79 247: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 248 208 30 249 16 100 26 257: 11(int) Constant 81 266: 11(int) Constant 84 274: 11(int) Constant 85 283: 11(int) Constant 87 281: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 282 208 30 283 16 100 26 288: 11(int) Constant 88 293: 11(int) Constant 89 303: 11(int) Constant 91 301: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 302 208 30 303 16 100 26 311: TypePointer Function 150 312: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 151 64 16 316: 11(int) Constant 93 314: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 315 151 30 316 16 100 26 321: 11(int) Constant 94 323: 23(int) Constant 4 330: 11(int) Constant 95 338: 11(int) Constant 96 342: TypePointer Function 66(fvec4) 343: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 67 64 16 345: 23(int) Constant 1 346: 66(fvec4) ConstantComposite 110 224 110 110 349: 11(int) Constant 97 352: 11(int) Constant 98 356: 66(fvec4) ConstantComposite 110 110 110 224 359: 11(int) Constant 99 363: 11(int) Constant 101 361: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 362 67 30 363 16 100 26 377: 11(int) Constant 102 375: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 376 67 30 377 16 100 26 382: 23(int) Constant 6 395: 11(int) Constant 104 398: TypePointer Uniform 150 399: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 151 21 16 409: 11(int) Constant 105 428: 11(int) Constant 107 443: 11(int) Constant 108 441: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 442 19 30 443 16 100 26 446: TypePointer Uniform 66(fvec4) 447: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 67 21 16 463: 11(int) Constant 109 470: 11(int) Constant 110 476: 11(int) Constant 111 482: TypePointer Input 18(fvec3) 483(input.Pos): 482(ptr) Variable Input 486(input.Normal): 482(ptr) Variable Input 489: TypePointer Input 20(fvec2) 490(input.UV): 489(ptr) Variable Input 493(input.Color): 482(ptr) Variable Input 496(input.instancePos): 482(ptr) Variable Input 499(input.instanceRot): 482(ptr) Variable Input 502: TypePointer Input 8(float) 503(input.instanceScale): 502(ptr) Variable Input 506: TypePointer Input 23(int) 507(input.instanceTexIndex): 506(ptr) Variable Input 514: TypePointer Output 66(fvec4) 515(@entryPointOutput.Pos): 514(ptr) Variable Output 518: TypePointer Output 18(fvec3) 519(@entryPointOutput.Normal): 518(ptr) Variable Output 522(@entryPointOutput.Color): 518(ptr) Variable Output 525(@entryPointOutput.UV): 518(ptr) Variable Output 528(@entryPointOutput.ViewVec): 518(ptr) Variable Output 531(@entryPointOutput.LightVec): 518(ptr) Variable Output 6(main): 4 Function None 5 7: Label 481(input): 63(ptr) Variable Function 510(flattenTemp): 101(ptr) Variable Function 511(param): 63(ptr) Variable Function 484: 18(fvec3) Load 483(input.Pos) 485: 116(ptr) AccessChain 481(input) 188 Store 485 484 487: 18(fvec3) Load 486(input.Normal) 488: 116(ptr) AccessChain 481(input) 345 Store 488 487 491: 20(fvec2) Load 490(input.UV) 492: 123(ptr) AccessChain 481(input) 114 Store 492 491 494: 18(fvec3) Load 493(input.Color) 495: 116(ptr) AccessChain 481(input) 115 Store 495 494 497: 18(fvec3) Load 496(input.instancePos) 498: 116(ptr) AccessChain 481(input) 323 Store 498 497 500: 18(fvec3) Load 499(input.instanceRot) 501: 116(ptr) AccessChain 481(input) 147 Store 501 500 504: 8(float) Load 503(input.instanceScale) 505: 139(ptr) AccessChain 481(input) 382 Store 505 504 508: 23(int) Load 507(input.instanceTexIndex) 509: 130(ptr) AccessChain 481(input) 129 Store 509 508 512: 27(VSInput) Load 481(input) Store 511(param) 512 513:68(VSOutput) FunctionCall 89(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;) 511(param) Store 510(flattenTemp) 513 516: 342(ptr) AccessChain 510(flattenTemp) 188 517: 66(fvec4) Load 516 Store 515(@entryPointOutput.Pos) 517 520: 116(ptr) AccessChain 510(flattenTemp) 345 521: 18(fvec3) Load 520 Store 519(@entryPointOutput.Normal) 521 523: 116(ptr) AccessChain 510(flattenTemp) 114 524: 18(fvec3) Load 523 Store 522(@entryPointOutput.Color) 524 526: 116(ptr) AccessChain 510(flattenTemp) 115 527: 18(fvec3) Load 526 Store 525(@entryPointOutput.UV) 527 529: 116(ptr) AccessChain 510(flattenTemp) 323 530: 18(fvec3) Load 529 Store 528(@entryPointOutput.ViewVec) 530 532: 116(ptr) AccessChain 510(flattenTemp) 147 533: 18(fvec3) Load 532 Store 531(@entryPointOutput.LightVec) 533 Return FunctionEnd 89(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;):68(VSOutput) Function None 86 88(input): 63(ptr) FunctionParameter 90: Label 103(output): 101(ptr) Variable Function 141(s): 139(ptr) Variable Function 195(c): 139(ptr) Variable Function 211(mx): 209(ptr) Variable Function 246(my): 209(ptr) Variable Function 280(mz): 209(ptr) Variable Function 300(rotMat): 209(ptr) Variable Function 313(gRotMat): 311(ptr) Variable Function 360(locPos): 342(ptr) Variable Function 374(pos): 342(ptr) Variable Function 440(lPos): 116(ptr) Variable Function 97: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 92 98: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 60 60 16 16 95: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 93 88(input) 96 99: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 92 89(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;) 108: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 100 109: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 106 106 16 16 107: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 104 103(output) 96 Store 103(output) 113 119: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 120 120 16 16 118: 116(ptr) AccessChain 88(input) 115 121: 18(fvec3) Load 118 122: 116(ptr) AccessChain 103(output) 114 Store 122 121 126: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 127 127 16 16 125: 123(ptr) AccessChain 88(input) 114 128: 20(fvec2) Load 125 132: 130(ptr) AccessChain 88(input) 129 133: 23(int) Load 132 134: 8(float) ConvertSToF 133 135: 8(float) CompositeExtract 128 0 136: 8(float) CompositeExtract 128 1 137: 18(fvec3) CompositeConstruct 135 136 134 138: 116(ptr) AccessChain 103(output) 115 Store 138 137 146: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 144 144 16 16 145: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 142 141(s) 96 148: 139(ptr) AccessChain 88(input) 147 16 149: 8(float) Load 148 191: 189(ptr) AccessChain 184 188 115 192: 8(float) Load 191 193: 8(float) FAdd 149 192 194: 8(float) ExtInst 3(GLSL.std.450) 13(Sin) 193 Store 141(s) 194 200: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 198 198 16 16 199: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 196 195(c) 96 201: 139(ptr) AccessChain 88(input) 147 16 202: 8(float) Load 201 203: 189(ptr) AccessChain 184 188 115 204: 8(float) Load 203 205: 8(float) FAdd 202 204 206: 8(float) ExtInst 3(GLSL.std.450) 14(Cos) 205 Store 195(c) 206 216: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 214 214 16 16 215: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 212 211(mx) 96 217: 8(float) Load 195(c) 218: 8(float) Load 141(s) 219: 8(float) FNegate 218 221: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 222 222 16 16 220: 8(float) Load 141(s) 223: 8(float) Load 195(c) 226: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 214 214 16 16 225: 18(fvec3) CompositeConstruct 217 219 110 227: 18(fvec3) CompositeConstruct 220 223 110 228: 18(fvec3) CompositeConstruct 110 110 224 229: 207 CompositeConstruct 225 227 228 Store 211(mx) 229 231: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 232 232 16 16 230: 139(ptr) AccessChain 88(input) 147 59 233: 8(float) Load 230 234: 189(ptr) AccessChain 184 188 115 235: 8(float) Load 234 236: 8(float) FAdd 233 235 237: 8(float) ExtInst 3(GLSL.std.450) 13(Sin) 236 Store 141(s) 237 239: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 240 240 16 16 238: 139(ptr) AccessChain 88(input) 147 59 241: 8(float) Load 238 242: 189(ptr) AccessChain 184 188 115 243: 8(float) Load 242 244: 8(float) FAdd 241 243 245: 8(float) ExtInst 3(GLSL.std.450) 14(Cos) 244 Store 195(c) 245 251: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 249 249 16 16 250: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 247 246(my) 96 252: 8(float) Load 195(c) 253: 8(float) Load 141(s) 254: 8(float) FNegate 253 256: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 257 257 16 16 255: 8(float) Load 141(s) 258: 8(float) Load 195(c) 260: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 249 249 16 16 259: 18(fvec3) CompositeConstruct 252 110 254 261: 18(fvec3) CompositeConstruct 110 224 110 262: 18(fvec3) CompositeConstruct 255 110 258 263: 207 CompositeConstruct 259 261 262 Store 246(my) 263 265: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 266 266 16 16 264: 139(ptr) AccessChain 88(input) 147 21 267: 8(float) Load 264 268: 189(ptr) AccessChain 184 188 115 269: 8(float) Load 268 270: 8(float) FAdd 267 269 271: 8(float) ExtInst 3(GLSL.std.450) 13(Sin) 270 Store 141(s) 271 273: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 274 274 16 16 272: 139(ptr) AccessChain 88(input) 147 21 275: 8(float) Load 272 276: 189(ptr) AccessChain 184 188 115 277: 8(float) Load 276 278: 8(float) FAdd 275 277 279: 8(float) ExtInst 3(GLSL.std.450) 14(Cos) 278 Store 195(c) 279 285: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 283 283 16 16 284: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 281 280(mz) 96 287: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 288 288 16 16 286: 8(float) Load 195(c) 289: 8(float) Load 141(s) 290: 8(float) FNegate 289 292: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 293 293 16 16 291: 8(float) Load 141(s) 294: 8(float) Load 195(c) 296: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 283 283 16 16 295: 18(fvec3) CompositeConstruct 224 110 110 297: 18(fvec3) CompositeConstruct 110 286 290 298: 18(fvec3) CompositeConstruct 110 291 294 299: 207 CompositeConstruct 295 297 298 Store 280(mz) 299 305: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 303 303 16 16 304: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 301 300(rotMat) 96 306: 207 Load 211(mx) 307: 207 Load 246(my) 308: 207 MatrixTimesMatrix 306 307 309: 207 Load 280(mz) 310: 207 MatrixTimesMatrix 308 309 Store 300(rotMat) 310 318: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 316 316 16 16 317: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 314 313(gRotMat) 96 320: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 321 321 16 16 319: 139(ptr) AccessChain 88(input) 147 59 322: 8(float) Load 319 324: 189(ptr) AccessChain 184 188 323 325: 8(float) Load 324 326: 8(float) FAdd 322 325 327: 8(float) ExtInst 3(GLSL.std.450) 13(Sin) 326 Store 141(s) 327 329: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 330 330 16 16 328: 139(ptr) AccessChain 88(input) 147 59 331: 8(float) Load 328 332: 189(ptr) AccessChain 184 188 323 333: 8(float) Load 332 334: 8(float) FAdd 331 333 335: 8(float) ExtInst 3(GLSL.std.450) 14(Cos) 334 Store 195(c) 335 337: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 338 338 16 16 336: 8(float) Load 195(c) 339: 8(float) Load 141(s) 340: 8(float) FNegate 339 341: 66(fvec4) CompositeConstruct 336 110 340 110 344: 342(ptr) AccessChain 313(gRotMat) 188 Store 344 341 348: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 349 349 16 16 347: 342(ptr) AccessChain 313(gRotMat) 345 Store 347 346 351: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 352 352 16 16 350: 8(float) Load 141(s) 353: 8(float) Load 195(c) 354: 66(fvec4) CompositeConstruct 350 110 353 110 355: 342(ptr) AccessChain 313(gRotMat) 114 Store 355 354 358: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 359 359 16 16 357: 342(ptr) AccessChain 313(gRotMat) 115 Store 357 356 365: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 363 363 16 16 364: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 361 360(locPos) 96 366: 116(ptr) AccessChain 88(input) 188 367: 18(fvec3) Load 366 368: 207 Load 300(rotMat) 369: 18(fvec3) VectorTimesMatrix 367 368 370: 8(float) CompositeExtract 369 0 371: 8(float) CompositeExtract 369 1 372: 8(float) CompositeExtract 369 2 373: 66(fvec4) CompositeConstruct 370 371 372 224 Store 360(locPos) 373 379: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 377 377 16 16 378: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 375 374(pos) 96 380: 66(fvec4) Load 360(locPos) 381: 18(fvec3) VectorShuffle 380 380 0 1 2 383: 139(ptr) AccessChain 88(input) 382 384: 8(float) Load 383 385: 18(fvec3) VectorTimesScalar 381 384 386: 116(ptr) AccessChain 88(input) 323 387: 18(fvec3) Load 386 388: 18(fvec3) FAdd 385 387 389: 8(float) CompositeExtract 388 0 390: 8(float) CompositeExtract 388 1 391: 8(float) CompositeExtract 388 2 392: 66(fvec4) CompositeConstruct 389 390 391 224 Store 374(pos) 392 394: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 395 395 16 16 393: 66(fvec4) Load 374(pos) 396: 150 Load 313(gRotMat) 397: 66(fvec4) VectorTimesMatrix 393 396 400: 398(ptr) AccessChain 184 188 345 401: 150 Load 400 402: 66(fvec4) VectorTimesMatrix 397 401 403: 398(ptr) AccessChain 184 188 188 404: 150 Load 403 405: 66(fvec4) VectorTimesMatrix 402 404 406: 342(ptr) AccessChain 103(output) 188 Store 406 405 408: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 409 409 16 16 407: 116(ptr) AccessChain 88(input) 345 410: 18(fvec3) Load 407 411: 207 Load 300(rotMat) 412: 18(fvec3) VectorTimesMatrix 410 411 413: 150 Load 313(gRotMat) 414: 398(ptr) AccessChain 184 188 345 415: 150 Load 414 416: 150 MatrixTimesMatrix 413 415 417: 66(fvec4) CompositeExtract 416 0 418: 18(fvec3) VectorShuffle 417 417 0 1 2 419: 66(fvec4) CompositeExtract 416 1 420: 18(fvec3) VectorShuffle 419 419 0 1 2 421: 66(fvec4) CompositeExtract 416 2 422: 18(fvec3) VectorShuffle 421 421 0 1 2 423: 207 CompositeConstruct 418 420 422 424: 18(fvec3) VectorTimesMatrix 412 423 425: 116(ptr) AccessChain 103(output) 345 Store 425 424 427: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 428 428 16 16 426: 116(ptr) AccessChain 88(input) 188 429: 18(fvec3) Load 426 430: 116(ptr) AccessChain 88(input) 323 431: 18(fvec3) Load 430 432: 18(fvec3) FAdd 429 431 433: 8(float) CompositeExtract 432 0 434: 8(float) CompositeExtract 432 1 435: 8(float) CompositeExtract 432 2 436: 66(fvec4) CompositeConstruct 433 434 435 224 437: 398(ptr) AccessChain 184 188 345 438: 150 Load 437 439: 66(fvec4) VectorTimesMatrix 436 438 Store 374(pos) 439 445: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 443 443 16 16 444: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 441 440(lPos) 96 448: 446(ptr) AccessChain 184 188 114 449: 66(fvec4) Load 448 450: 18(fvec3) VectorShuffle 449 449 0 1 2 451: 398(ptr) AccessChain 184 188 345 452: 150 Load 451 453: 66(fvec4) CompositeExtract 452 0 454: 18(fvec3) VectorShuffle 453 453 0 1 2 455: 66(fvec4) CompositeExtract 452 1 456: 18(fvec3) VectorShuffle 455 455 0 1 2 457: 66(fvec4) CompositeExtract 452 2 458: 18(fvec3) VectorShuffle 457 457 0 1 2 459: 207 CompositeConstruct 454 456 458 460: 18(fvec3) VectorTimesMatrix 450 459 Store 440(lPos) 460 462: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 463 463 16 16 461: 18(fvec3) Load 440(lPos) 464: 66(fvec4) Load 374(pos) 465: 18(fvec3) VectorShuffle 464 464 0 1 2 466: 18(fvec3) FSub 461 465 467: 116(ptr) AccessChain 103(output) 147 Store 467 466 469: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 470 470 16 16 468: 66(fvec4) Load 374(pos) 471: 18(fvec3) VectorShuffle 468 468 0 1 2 472: 18(fvec3) FNegate 471 473: 116(ptr) AccessChain 103(output) 323 Store 473 472 475: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 476 476 16 16 474:68(VSOutput) Load 103(output) ReturnValue 474 FunctionEnd