diff --git a/SPIRV/GlslangToSpv.cpp b/SPIRV/GlslangToSpv.cpp index 2b5333ab..fc80d453 100755 --- a/SPIRV/GlslangToSpv.cpp +++ b/SPIRV/GlslangToSpv.cpp @@ -1580,7 +1580,12 @@ TGlslangToSpvTraverser::TGlslangToSpvTraverser(unsigned int spvVersion, builder.setSource(TranslateSourceLanguage(glslangIntermediate->getSource(), glslangIntermediate->getProfile()), glslangIntermediate->getVersion()); - if (options.generateDebugInfo) { + if (options.emitNonSemanticShaderDebugSource) + this->options.emitNonSemanticShaderDebugInfo = true; + if (options.emitNonSemanticShaderDebugInfo) + this->options.generateDebugInfo = true; + + if (this->options.generateDebugInfo) { builder.setEmitOpLines(); builder.setSourceFile(glslangIntermediate->getSourceFile()); @@ -1607,8 +1612,8 @@ TGlslangToSpvTraverser::TGlslangToSpvTraverser(unsigned int spvVersion, builder.addInclude(iItr->first, iItr->second); } - builder.setEmitNonSemanticShaderDebugInfo(options.emitNonSemanticShaderDebugInfo); - builder.setEmitNonSemanticShaderDebugSource(options.emitNonSemanticShaderDebugSource); + builder.setEmitNonSemanticShaderDebugInfo(this->options.emitNonSemanticShaderDebugInfo); + builder.setEmitNonSemanticShaderDebugSource(this->options.emitNonSemanticShaderDebugSource); stdBuiltins = builder.import("GLSL.std.450"); diff --git a/Test/baseResults/spv.debuginfo.const_params.glsl.comp.out b/Test/baseResults/spv.debuginfo.const_params.glsl.comp.out index a315f6de..ad431a47 100644 --- a/Test/baseResults/spv.debuginfo.const_params.glsl.comp.out +++ b/Test/baseResults/spv.debuginfo.const_params.glsl.comp.out @@ -1,84 +1,96 @@ spv.debuginfo.const_params.glsl.comp -Validation failed // Module Version 10000 // Generated by (magic number): 8000b -// Id's are bound by 64 +// Id's are bound by 68 Capability Shader Extension "SPV_KHR_non_semantic_info" - 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" - 2: ExtInstImport "GLSL.std.450" + 2: ExtInstImport "NonSemantic.Shader.DebugInfo.100" + 3: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 - EntryPoint GLCompute 13 "main" - ExecutionMode 13 LocalSize 1 1 1 - 8: String "uint" - 14: String "main" - 17: String "" - 24: String "float" - 39: String "function" - 45: String "f" - 49: String "f2" - 52: String "f3" - 55: String "f4" - Name 13 "main" - Name 38 "function(f1;vf2;vf3;vf4;" - Name 34 "f" - Name 35 "f2" - Name 36 "f3" - Name 37 "f4" - 3: TypeVoid - 4: TypeFunction 3 - 6: TypeInt 32 0 - 9: 6(int) Constant 32 - 10: 6(int) Constant 6 - 11: 6(int) Constant 0 - 7: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 9 10 11 - 12: 6(int) Constant 3 - 5: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 12 3 - 16: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 0 17 - 19: 6(int) Constant 1 - 20: 6(int) Constant 4 - 21: 6(int) Constant 2 - 18: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 19 20 16 21 - 15: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 14 5 16 11 11 18 14 12 11 - 23: TypeFloat 32 - 25: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 24 9 12 11 - 26: TypeVector 23(float) 2 - 27: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 25 21 - 28: TypeVector 23(float) 3 - 29: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 25 12 - 30: TypeVector 23(float) 4 - 31: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 25 20 - 32: TypeFunction 3 23(float) 26(fvec2) 28(fvec3) 30(fvec4) - 33: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 12 3 25 27 29 31 - 40: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 39 33 16 11 11 18 39 12 11 - 44: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 45 25 16 11 11 40 20 19 - 47: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) - 48: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 49 27 16 11 11 40 20 21 - 51: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 52 29 16 11 11 40 20 12 - 54: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 55 31 16 11 11 40 20 20 - 59: 23(float) Constant 0 - 60: 26(fvec2) ConstantComposite 59 59 - 61: 28(fvec3) ConstantComposite 59 59 59 - 62: 30(fvec4) ConstantComposite 59 59 59 59 - 13(main): 3 Function None 4 - 22: Label - 58: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 15 13(main) - 63: 3 FunctionCall 38(function(f1;vf2;vf3;vf4;) 59 60 61 62 + EntryPoint GLCompute 14 "main" + ExecutionMode 14 LocalSize 1 1 1 + 1: String "" + 9: String "uint" + 15: String "main" + 18: String "// OpModuleProcessed auto-map-locations +// OpModuleProcessed auto-map-bindings +// OpModuleProcessed client vulkan100 +// OpModuleProcessed target-env vulkan1.0 +// OpModuleProcessed keep-uncalled +// OpModuleProcessed entry-point main +#line 1 +" + 25: String "float" + 40: String "function" + 46: String "f" + 50: String "f2" + 53: String "f3" + 56: String "f4" + Name 14 "main" + Name 39 "function(f1;vf2;vf3;vf4;" + Name 35 "f" + Name 36 "f2" + Name 37 "f3" + Name 38 "f4" + 4: TypeVoid + 5: TypeFunction 4 + 7: TypeInt 32 0 + 10: 7(int) Constant 32 + 11: 7(int) Constant 6 + 12: 7(int) Constant 0 + 8: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 10 11 12 + 13: 7(int) Constant 3 + 6: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 + 17: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 18 + 20: 7(int) Constant 1 + 21: 7(int) Constant 4 + 22: 7(int) Constant 2 + 19: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 20 21 17 22 + 16: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 15 6 17 12 12 19 15 13 12 + 24: TypeFloat 32 + 26: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 25 10 13 12 + 27: TypeVector 24(float) 2 + 28: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 22 + 29: TypeVector 24(float) 3 + 30: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 13 + 31: TypeVector 24(float) 4 + 32: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 21 + 33: TypeFunction 4 24(float) 27(fvec2) 29(fvec3) 31(fvec4) + 34: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 26 28 30 32 + 41: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 40 34 17 12 12 19 40 13 12 + 45: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 46 26 17 12 12 41 21 20 + 48: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) + 49: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 50 28 17 12 12 41 21 22 + 52: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 53 30 17 12 12 41 21 13 + 55: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 56 32 17 12 12 41 21 21 + 62: 7(int) Constant 13 + 63: 24(float) Constant 0 + 64: 27(fvec2) ConstantComposite 63 63 + 65: 29(fvec3) ConstantComposite 63 63 63 + 66: 31(fvec4) ConstantComposite 63 63 63 63 + Line 1 11 11 + 14(main): 4 Function None 5 + 23: Label + 59: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 16 14(main) + 60: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 61: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 62 62 12 12 + 67: 4 FunctionCall 39(function(f1;vf2;vf3;vf4;) 63 64 65 66 Return FunctionEnd -38(function(f1;vf2;vf3;vf4;): 3 Function None 32 - 34(f): 23(float) FunctionParameter - 35(f2): 26(fvec2) FunctionParameter - 36(f3): 28(fvec3) FunctionParameter - 37(f4): 30(fvec4) FunctionParameter - 41: Label - 42: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 - 43: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 16 11 11 11 11 - 46: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 44 34(f) 47 - 50: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 48 35(f2) 47 - 53: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 51 36(f3) 47 - 56: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 54 37(f4) 47 - 57: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 40 38(function(f1;vf2;vf3;vf4;) + Line 1 7 18 +39(function(f1;vf2;vf3;vf4;): 4 Function None 33 + 35(f): 24(float) FunctionParameter + 36(f2): 27(fvec2) FunctionParameter + 37(f3): 29(fvec3) FunctionParameter + 38(f4): 31(fvec4) FunctionParameter + 42: Label + 43: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 41 + 44: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 12 12 12 12 + 47: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 45 35(f) 48 + 51: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 49 36(f2) 48 + 54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 52 37(f3) 48 + 57: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 55 38(f4) 48 + 58: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 41 39(function(f1;vf2;vf3;vf4;) Return FunctionEnd diff --git a/Test/baseResults/spv.debuginfo.glsl.comp.out b/Test/baseResults/spv.debuginfo.glsl.comp.out index 820d12b8..234878f5 100644 --- a/Test/baseResults/spv.debuginfo.glsl.comp.out +++ b/Test/baseResults/spv.debuginfo.glsl.comp.out @@ -1,1063 +1,1223 @@ spv.debuginfo.glsl.comp -Validation failed // Module Version 10000 // Generated by (magic number): 8000b -// Id's are bound by 817 +// Id's are bound by 969 Capability Shader Extension "SPV_KHR_non_semantic_info" - 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" - 2: ExtInstImport "GLSL.std.450" + 2: ExtInstImport "NonSemantic.Shader.DebugInfo.100" + 3: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 - EntryPoint GLCompute 13 "main" 118 - ExecutionMode 13 LocalSize 10 10 1 - 8: String "uint" - 14: String "main" - 17: String "" - 24: String "float" - 36: String "springForce" - 42: String "p0" - 46: String "p1" - 49: String "restDist" - 54: String "dist" - 65: String "int" - 71: String "sphereRadius" - 82: String "gravity" - 87: String "particleCount" - 90: String "UBO" - 95: String "params" - 114: String "id" - 120: String "gl_GlobalInvocationID" - 125: String "index" - 147: String "bool" - 155: String "normal" - 161: String "pinned" - 163: String "Particle" - 169: String "particleIn" - 173: String "ParticleIn" - 191: String "particleOut" - 194: String "ParticleOut" - 213: String "force" - 225: String "pos" - 234: String "vel" - 487: String "f" - 531: String "sphereDist" - 575: String "calculateNormals" - 578: String "PushConsts" - 583: String "pushConsts" - 610: String "a" - 622: String "b" - 638: String "c" - Name 13 "main" - Name 35 "springForce(vf3;vf3;f1;" - Name 32 "p0" - Name 33 "p1" - Name 34 "restDist" - Name 52 "dist" - Name 69 "UBO" - MemberName 69(UBO) 0 "deltaT" - MemberName 69(UBO) 1 "particleMass" - MemberName 69(UBO) 2 "springStiffness" - MemberName 69(UBO) 3 "damping" - MemberName 69(UBO) 4 "restDistH" - MemberName 69(UBO) 5 "restDistV" - MemberName 69(UBO) 6 "restDistD" - MemberName 69(UBO) 7 "sphereRadius" - MemberName 69(UBO) 8 "spherePos" - MemberName 69(UBO) 9 "gravity" - MemberName 69(UBO) 10 "particleCount" - Name 93 "params" - Name 112 "id" - Name 118 "gl_GlobalInvocationID" - Name 123 "index" - Name 153 "Particle" - MemberName 153(Particle) 0 "pos" - MemberName 153(Particle) 1 "vel" - MemberName 153(Particle) 2 "uv" - MemberName 153(Particle) 3 "normal" - MemberName 153(Particle) 4 "pinned" - Name 167 "ParticleIn" - MemberName 167(ParticleIn) 0 "particleIn" - Name 175 "" - Name 189 "ParticleOut" - MemberName 189(ParticleOut) 0 "particleOut" - Name 197 "" - Name 211 "force" - Name 223 "pos" - Name 232 "vel" - Name 249 "param" - Name 253 "param" - Name 255 "param" - Name 273 "param" - Name 277 "param" - Name 279 "param" - Name 301 "param" - Name 305 "param" - Name 307 "param" - Name 324 "param" - Name 328 "param" - Name 330 "param" - Name 360 "param" - Name 364 "param" - Name 366 "param" - Name 391 "param" - Name 395 "param" - Name 397 "param" - Name 430 "param" - Name 434 "param" - Name 436 "param" - Name 465 "param" - Name 469 "param" - Name 471 "param" - Name 485 "f" - Name 529 "sphereDist" - Name 573 "PushConsts" - MemberName 573(PushConsts) 0 "calculateNormals" - Name 581 "pushConsts" - Name 591 "normal" - Name 608 "a" - Name 620 "b" - Name 636 "c" - MemberDecorate 69(UBO) 0 Offset 0 - MemberDecorate 69(UBO) 1 Offset 4 - MemberDecorate 69(UBO) 2 Offset 8 - MemberDecorate 69(UBO) 3 Offset 12 - MemberDecorate 69(UBO) 4 Offset 16 - MemberDecorate 69(UBO) 5 Offset 20 - MemberDecorate 69(UBO) 6 Offset 24 - MemberDecorate 69(UBO) 7 Offset 28 - MemberDecorate 69(UBO) 8 Offset 32 - MemberDecorate 69(UBO) 9 Offset 48 - MemberDecorate 69(UBO) 10 Offset 64 - Decorate 69(UBO) Block - Decorate 93(params) DescriptorSet 0 - Decorate 93(params) Binding 2 - Decorate 118(gl_GlobalInvocationID) BuiltIn GlobalInvocationId - MemberDecorate 153(Particle) 0 Offset 0 - MemberDecorate 153(Particle) 1 Offset 16 - MemberDecorate 153(Particle) 2 Offset 32 - MemberDecorate 153(Particle) 3 Offset 48 - MemberDecorate 153(Particle) 4 Offset 64 - Decorate 165 ArrayStride 80 - MemberDecorate 167(ParticleIn) 0 Offset 0 - Decorate 167(ParticleIn) BufferBlock - Decorate 175 DescriptorSet 0 - Decorate 175 Binding 0 - Decorate 187 ArrayStride 80 - MemberDecorate 189(ParticleOut) 0 Offset 0 - Decorate 189(ParticleOut) BufferBlock - Decorate 197 DescriptorSet 0 - Decorate 197 Binding 1 - MemberDecorate 573(PushConsts) 0 Offset 0 - Decorate 573(PushConsts) Block - Decorate 816 BuiltIn WorkgroupSize - 3: TypeVoid - 4: TypeFunction 3 - 6: TypeInt 32 0 - 9: 6(int) Constant 32 - 10: 6(int) Constant 6 - 11: 6(int) Constant 0 - 7: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 9 10 11 - 12: 6(int) Constant 3 - 5: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 12 3 - 16: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 0 17 - 19: 6(int) Constant 1 - 20: 6(int) Constant 4 - 21: 6(int) Constant 2 - 18: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 19 20 16 21 - 15: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 14 5 16 11 11 18 14 12 11 - 23: TypeFloat 32 - 25: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 24 9 12 11 - 26: TypeVector 23(float) 3 - 27: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 25 12 - 28: TypePointer Function 26(fvec3) - 29: TypePointer Function 23(float) - 30: TypeFunction 26(fvec3) 28(ptr) 28(ptr) 29(ptr) - 31: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 12 27 27 27 25 - 37: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 36 31 16 11 11 18 36 12 11 - 41: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 42 27 16 11 11 37 20 19 - 44: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) - 45: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 46 27 16 11 11 37 20 21 - 48: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 49 25 16 11 11 37 20 12 - 55: 6(int) Constant 68 - 53: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 54 27 16 55 11 37 20 - 62: TypeVector 23(float) 4 - 63: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 25 20 - 64: TypeInt 32 1 - 66: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 65 9 20 11 - 67: TypeVector 64(int) 2 - 68: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 66 21 - 69(UBO): TypeStruct 23(float) 23(float) 23(float) 23(float) 23(float) 23(float) 23(float) 23(float) 62(fvec4) 62(fvec4) 67(ivec2) - 72: 6(int) Constant 56 - 73: 6(int) Constant 8 - 70: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 25 16 72 73 11 11 12 - 74: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 25 16 72 73 11 11 12 - 75: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 25 16 72 73 11 11 12 - 76: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 25 16 72 73 11 11 12 - 77: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 25 16 72 73 11 11 12 - 78: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 25 16 72 73 11 11 12 - 79: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 25 16 72 73 11 11 12 - 80: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 25 16 72 73 11 11 12 - 83: 6(int) Constant 58 - 84: 6(int) Constant 7 - 81: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 82 63 16 83 84 11 11 12 - 85: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 82 63 16 83 84 11 11 12 - 88: 6(int) Constant 59 - 86: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 87 68 16 88 73 11 11 12 - 91: 6(int) Constant 69 - 89: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 90 19 16 91 11 18 90 11 12 70 74 75 76 77 78 79 80 81 85 86 - 92: TypePointer Uniform 69(UBO) - 93(params): 92(ptr) Variable Uniform - 94: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 95 89 16 91 11 18 95 93(params) 73 - 96: 64(int) Constant 2 - 97: TypePointer Uniform 23(float) - 109: TypeVector 6(int) 3 - 110: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 7 12 - 111: TypePointer Function 109(ivec3) - 115: 6(int) Constant 74 - 113: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 114 110 16 115 11 15 20 - 117: TypePointer Input 109(ivec3) -118(gl_GlobalInvocationID): 117(ptr) Variable Input - 119: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 120 110 16 115 11 18 120 118(gl_GlobalInvocationID) 73 - 122: TypePointer Function 6(int) - 126: 6(int) Constant 76 - 124: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 125 7 16 126 11 15 20 - 130: 64(int) Constant 10 - 131: TypePointer Uniform 64(int) - 146: TypeBool - 148: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 153(Particle): TypeStruct 62(fvec4) 62(fvec4) 62(fvec4) 62(fvec4) 23(float) - 156: 6(int) Constant 31 - 154: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 155 63 16 156 84 11 11 12 - 157: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 155 63 16 156 84 11 11 12 - 158: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 155 63 16 156 84 11 11 12 - 159: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 155 63 16 156 84 11 11 12 - 160: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 161 25 16 9 73 11 11 12 - 164: 6(int) Constant 81 - 162: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 163 19 16 164 11 18 163 11 12 154 157 158 159 160 - 165: TypeRuntimeArray 153(Particle) - 166: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 162 11 - 167(ParticleIn): TypeStruct 165 - 170: 6(int) Constant 36 - 171: 6(int) Constant 11 - 168: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 169 166 16 170 171 11 11 12 - 172: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 173 19 16 164 11 18 173 11 12 168 - 174: TypePointer Uniform 167(ParticleIn) - 175: 174(ptr) Variable Uniform - 176: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 17 172 16 164 11 18 17 175 73 - 177: 64(int) Constant 0 - 179: 64(int) Constant 4 - 182: 23(float) Constant 1065353216 - 183: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 187: TypeRuntimeArray 153(Particle) - 188: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 162 11 -189(ParticleOut): TypeStruct 187 - 192: 6(int) Constant 40 - 190: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 191 188 16 192 171 11 11 12 - 195: 6(int) Constant 82 - 193: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 194 19 16 195 11 18 194 11 12 190 - 196: TypePointer Uniform 189(ParticleOut) - 197: 196(ptr) Variable Uniform - 198: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 17 193 16 195 11 18 17 197 73 - 201: TypePointer Uniform 62(fvec4) - 206: 64(int) Constant 1 - 207: 23(float) Constant 0 - 208: 62(fvec4) ConstantComposite 207 207 207 207 - 214: 6(int) Constant 88 - 212: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 213 27 16 214 11 15 20 - 216: 64(int) Constant 9 - 226: 6(int) Constant 90 - 224: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 225 27 16 226 11 15 20 - 235: 6(int) Constant 91 - 233: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 234 27 16 235 11 15 20 - 243: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 267: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 291: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 300: 64(int) Constant 5 - 315: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 338: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 348: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 359: 64(int) Constant 6 - 374: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 380: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 409: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 419: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 448: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 454: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 477: 64(int) Constant 3 - 488: 6(int) Constant 130 - 486: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 487 27 16 488 11 15 20 - 502: 23(float) Constant 1056964608 - 532: 6(int) Constant 135 - 530: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 531 27 16 532 11 15 20 - 538: 64(int) Constant 8 - 545: 64(int) Constant 7 - 548: 23(float) Constant 1008981770 - 550: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 573(PushConsts): TypeStruct 6(int) - 576: 6(int) Constant 63 - 574: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 575 7 16 576 84 11 11 12 - 579: 6(int) Constant 144 - 577: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 578 19 16 579 11 18 578 11 12 574 - 580: TypePointer PushConstant 573(PushConsts) - 581(pushConsts): 580(ptr) Variable PushConstant - 582: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 583 577 16 579 11 18 583 581(pushConsts) 73 - 584: TypePointer PushConstant 6(int) - 587: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 593: 6(int) Constant 145 - 592: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 155 27 16 593 11 15 20 - 595: 26(fvec3) ConstantComposite 207 207 207 - 598: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 604: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 611: 6(int) Constant 149 - 609: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 610 27 16 611 11 15 20 - 623: 6(int) Constant 150 - 621: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 622 27 16 623 11 15 20 - 639: 6(int) Constant 151 - 637: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 638 27 16 639 11 15 20 - 666: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 713: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 719: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 766: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 147 9 21 11 - 815: 6(int) Constant 10 - 816: 109(ivec3) ConstantComposite 815 815 19 - 13(main): 3 Function None 4 - 22: Label - 112(id): 111(ptr) Variable Function - 123(index): 122(ptr) Variable Function - 211(force): 28(ptr) Variable Function - 223(pos): 28(ptr) Variable Function - 232(vel): 28(ptr) Variable Function - 249(param): 28(ptr) Variable Function - 253(param): 28(ptr) Variable Function - 255(param): 29(ptr) Variable Function - 273(param): 28(ptr) Variable Function - 277(param): 28(ptr) Variable Function - 279(param): 29(ptr) Variable Function - 301(param): 28(ptr) Variable Function - 305(param): 28(ptr) Variable Function - 307(param): 29(ptr) Variable Function - 324(param): 28(ptr) Variable Function - 328(param): 28(ptr) Variable Function - 330(param): 29(ptr) Variable Function - 360(param): 28(ptr) Variable Function - 364(param): 28(ptr) Variable Function - 366(param): 29(ptr) Variable Function - 391(param): 28(ptr) Variable Function - 395(param): 28(ptr) Variable Function - 397(param): 29(ptr) Variable Function - 430(param): 28(ptr) Variable Function - 434(param): 28(ptr) Variable Function - 436(param): 29(ptr) Variable Function - 465(param): 28(ptr) Variable Function - 469(param): 28(ptr) Variable Function - 471(param): 29(ptr) Variable Function - 485(f): 28(ptr) Variable Function - 529(sphereDist): 28(ptr) Variable Function - 591(normal): 28(ptr) Variable Function - 608(a): 28(ptr) Variable Function - 620(b): 28(ptr) Variable Function - 636(c): 28(ptr) Variable Function - 108: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 15 13(main) - 116: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 113 112(id) 44 - 121: 109(ivec3) Load 118(gl_GlobalInvocationID) - Store 112(id) 121 - 127: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 124 123(index) 44 - 128: 122(ptr) AccessChain 112(id) 19 - 129: 6(int) Load 128 - 132: 131(ptr) AccessChain 93(params) 130 11 - 133: 64(int) Load 132 - 134: 6(int) Bitcast 133 - 135: 6(int) IMul 129 134 - 136: 122(ptr) AccessChain 112(id) 11 - 137: 6(int) Load 136 - 138: 6(int) IAdd 135 137 - Store 123(index) 138 - 139: 6(int) Load 123(index) - 140: 131(ptr) AccessChain 93(params) 130 11 - 141: 64(int) Load 140 - 142: 131(ptr) AccessChain 93(params) 130 19 - 143: 64(int) Load 142 - 144: 64(int) IMul 141 143 - 145: 6(int) Bitcast 144 - 149: 146(bool) UGreaterThan 139 145 - SelectionMerge 151 None - BranchConditional 149 150 151 - 150: Label + EntryPoint GLCompute 14 "main" 124 + ExecutionMode 14 LocalSize 10 10 1 + 1: String "" + 9: String "uint" + 15: String "main" + 18: String "// OpModuleProcessed auto-map-locations +// OpModuleProcessed auto-map-bindings +// OpModuleProcessed client vulkan100 +// OpModuleProcessed target-env vulkan1.0 +// OpModuleProcessed keep-uncalled +// OpModuleProcessed entry-point main +#line 1 +" + 25: String "float" + 37: String "springForce" + 43: String "p0" + 47: String "p1" + 50: String "restDist" + 58: String "dist" + 70: String "int" + 76: String "sphereRadius" + 87: String "gravity" + 92: String "particleCount" + 95: String "UBO" + 99: String "params" + 121: String "id" + 126: String "gl_GlobalInvocationID" + 133: String "index" + 156: String "bool" + 170: String "normal" + 176: String "pinned" + 178: String "Particle" + 183: String "particleIn" + 187: String "ParticleIn" + 208: String "particleOut" + 211: String "ParticleOut" + 236: String "force" + 249: String "pos" + 259: String "vel" + 571: String "f" + 620: String "sphereDist" + 673: String "calculateNormals" + 676: String "PushConsts" + 680: String "pushConsts" + 717: String "a" + 730: String "b" + 747: String "c" + Name 14 "main" + Name 36 "springForce(vf3;vf3;f1;" + Name 33 "p0" + Name 34 "p1" + Name 35 "restDist" + Name 56 "dist" + Name 74 "UBO" + MemberName 74(UBO) 0 "deltaT" + MemberName 74(UBO) 1 "particleMass" + MemberName 74(UBO) 2 "springStiffness" + MemberName 74(UBO) 3 "damping" + MemberName 74(UBO) 4 "restDistH" + MemberName 74(UBO) 5 "restDistV" + MemberName 74(UBO) 6 "restDistD" + MemberName 74(UBO) 7 "sphereRadius" + MemberName 74(UBO) 8 "spherePos" + MemberName 74(UBO) 9 "gravity" + MemberName 74(UBO) 10 "particleCount" + Name 97 "params" + Name 119 "id" + Name 124 "gl_GlobalInvocationID" + Name 131 "index" + Name 168 "Particle" + MemberName 168(Particle) 0 "pos" + MemberName 168(Particle) 1 "vel" + MemberName 168(Particle) 2 "uv" + MemberName 168(Particle) 3 "normal" + MemberName 168(Particle) 4 "pinned" + Name 181 "ParticleIn" + MemberName 181(ParticleIn) 0 "particleIn" + Name 189 "" + Name 206 "ParticleOut" + MemberName 206(ParticleOut) 0 "particleOut" + Name 213 "" + Name 234 "force" + Name 247 "pos" + Name 257 "vel" + Name 278 "param" + Name 282 "param" + Name 284 "param" + Name 308 "param" + Name 312 "param" + Name 314 "param" + Name 342 "param" + Name 346 "param" + Name 348 "param" + Name 371 "param" + Name 375 "param" + Name 377 "param" + Name 415 "param" + Name 419 "param" + Name 421 "param" + Name 454 "param" + Name 458 "param" + Name 460 "param" + Name 501 "param" + Name 505 "param" + Name 507 "param" + Name 544 "param" + Name 548 "param" + Name 550 "param" + Name 569 "f" + Name 618 "sphereDist" + Name 671 "PushConsts" + MemberName 671(PushConsts) 0 "calculateNormals" + Name 678 "pushConsts" + Name 691 "normal" + Name 715 "a" + Name 728 "b" + Name 745 "c" + MemberDecorate 74(UBO) 0 Offset 0 + MemberDecorate 74(UBO) 1 Offset 4 + MemberDecorate 74(UBO) 2 Offset 8 + MemberDecorate 74(UBO) 3 Offset 12 + MemberDecorate 74(UBO) 4 Offset 16 + MemberDecorate 74(UBO) 5 Offset 20 + MemberDecorate 74(UBO) 6 Offset 24 + MemberDecorate 74(UBO) 7 Offset 28 + MemberDecorate 74(UBO) 8 Offset 32 + MemberDecorate 74(UBO) 9 Offset 48 + MemberDecorate 74(UBO) 10 Offset 64 + Decorate 74(UBO) Block + Decorate 97(params) DescriptorSet 0 + Decorate 97(params) Binding 2 + Decorate 124(gl_GlobalInvocationID) BuiltIn GlobalInvocationId + MemberDecorate 168(Particle) 0 Offset 0 + MemberDecorate 168(Particle) 1 Offset 16 + MemberDecorate 168(Particle) 2 Offset 32 + MemberDecorate 168(Particle) 3 Offset 48 + MemberDecorate 168(Particle) 4 Offset 64 + Decorate 179 ArrayStride 80 + MemberDecorate 181(ParticleIn) 0 Offset 0 + Decorate 181(ParticleIn) BufferBlock + Decorate 189 DescriptorSet 0 + Decorate 189 Binding 0 + Decorate 204 ArrayStride 80 + MemberDecorate 206(ParticleOut) 0 Offset 0 + Decorate 206(ParticleOut) BufferBlock + Decorate 213 DescriptorSet 0 + Decorate 213 Binding 1 + MemberDecorate 671(PushConsts) 0 Offset 0 + Decorate 671(PushConsts) Block + Decorate 968 BuiltIn WorkgroupSize + 4: TypeVoid + 5: TypeFunction 4 + 7: TypeInt 32 0 + 10: 7(int) Constant 32 + 11: 7(int) Constant 6 + 12: 7(int) Constant 0 + 8: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 10 11 12 + 13: 7(int) Constant 3 + 6: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 + 17: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 18 + 20: 7(int) Constant 1 + 21: 7(int) Constant 4 + 22: 7(int) Constant 2 + 19: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 20 21 17 22 + 16: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 15 6 17 12 12 19 15 13 12 + 24: TypeFloat 32 + 26: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 25 10 13 12 + 27: TypeVector 24(float) 3 + 28: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 13 + 29: TypePointer Function 27(fvec3) + 30: TypePointer Function 24(float) + 31: TypeFunction 27(fvec3) 29(ptr) 29(ptr) 30(ptr) + 32: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 28 28 28 26 + 38: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 37 32 17 12 12 19 37 13 12 + 42: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 43 28 17 12 12 38 21 20 + 45: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) + 46: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 47 28 17 12 12 38 21 22 + 49: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 50 26 17 12 12 38 21 13 + 55: 7(int) Constant 68 + 57: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 58 28 17 55 12 38 21 + 64: 7(int) Constant 69 + 67: TypeVector 24(float) 4 + 68: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 21 + 69: TypeInt 32 1 + 71: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 70 10 21 12 + 72: TypeVector 69(int) 2 + 73: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 71 22 + 74(UBO): TypeStruct 24(float) 24(float) 24(float) 24(float) 24(float) 24(float) 24(float) 24(float) 67(fvec4) 67(fvec4) 72(ivec2) + 77: 7(int) Constant 56 + 78: 7(int) Constant 8 + 75: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 76 26 17 77 78 12 12 13 + 79: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 76 26 17 77 78 12 12 13 + 80: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 76 26 17 77 78 12 12 13 + 81: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 76 26 17 77 78 12 12 13 + 82: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 76 26 17 77 78 12 12 13 + 83: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 76 26 17 77 78 12 12 13 + 84: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 76 26 17 77 78 12 12 13 + 85: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 76 26 17 77 78 12 12 13 + 88: 7(int) Constant 58 + 89: 7(int) Constant 7 + 86: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 87 68 17 88 89 12 12 13 + 90: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 87 68 17 88 89 12 12 13 + 93: 7(int) Constant 59 + 91: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 92 73 17 93 78 12 12 13 + 94: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 95 20 17 64 12 19 95 12 13 75 79 80 81 82 83 84 85 86 90 91 + 96: TypePointer Uniform 74(UBO) + 97(params): 96(ptr) Variable Uniform + 98: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 99 94 17 64 12 19 99 97(params) 78 + 100: 69(int) Constant 2 + 101: TypePointer Uniform 24(float) + 115: 7(int) Constant 74 + 116: TypeVector 7(int) 3 + 117: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 8 13 + 118: TypePointer Function 116(ivec3) + 120: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 121 117 17 115 12 16 21 + 123: TypePointer Input 116(ivec3) +124(gl_GlobalInvocationID): 123(ptr) Variable Input + 125: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 126 117 17 115 12 19 126 124(gl_GlobalInvocationID) 78 + 129: 7(int) Constant 76 + 130: TypePointer Function 7(int) + 132: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 133 8 17 129 12 16 21 + 137: 69(int) Constant 10 + 138: TypePointer Uniform 69(int) + 147: 7(int) Constant 77 + 155: TypeBool + 157: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 163: 7(int) Constant 78 + 167: 7(int) Constant 81 + 168(Particle): TypeStruct 67(fvec4) 67(fvec4) 67(fvec4) 67(fvec4) 24(float) + 171: 7(int) Constant 31 + 169: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 170 68 17 171 89 12 12 13 + 172: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 170 68 17 171 89 12 12 13 + 173: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 170 68 17 171 89 12 12 13 + 174: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 170 68 17 171 89 12 12 13 + 175: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 176 26 17 10 78 12 12 13 + 177: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 178 20 17 167 12 19 178 12 13 169 172 173 174 175 + 179: TypeRuntimeArray 168(Particle) + 180: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 177 12 + 181(ParticleIn): TypeStruct 179 + 184: 7(int) Constant 36 + 185: 7(int) Constant 11 + 182: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 183 180 17 184 185 12 12 13 + 186: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 187 20 17 167 12 19 187 12 13 182 + 188: TypePointer Uniform 181(ParticleIn) + 189: 188(ptr) Variable Uniform + 190: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 186 17 167 12 19 1 189 78 + 191: 69(int) Constant 0 + 193: 69(int) Constant 4 + 196: 24(float) Constant 1065353216 + 197: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 203: 7(int) Constant 82 + 204: TypeRuntimeArray 168(Particle) + 205: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 177 12 +206(ParticleOut): TypeStruct 204 + 209: 7(int) Constant 40 + 207: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 208 205 17 209 185 12 12 13 + 210: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 211 20 17 203 12 19 211 12 13 207 + 212: TypePointer Uniform 206(ParticleOut) + 213: 212(ptr) Variable Uniform + 214: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 210 17 203 12 19 1 213 78 + 217: TypePointer Uniform 67(fvec4) + 222: 7(int) Constant 83 + 224: 69(int) Constant 1 + 225: 24(float) Constant 0 + 226: 67(fvec4) ConstantComposite 225 225 225 225 + 229: 7(int) Constant 84 + 233: 7(int) Constant 88 + 235: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 236 28 17 233 12 16 21 + 238: 69(int) Constant 9 + 246: 7(int) Constant 90 + 248: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 249 28 17 246 12 16 21 + 256: 7(int) Constant 91 + 258: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 259 28 17 256 12 16 21 + 266: 7(int) Constant 95 + 269: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 275: 7(int) Constant 96 + 292: 7(int) Constant 99 + 299: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 305: 7(int) Constant 100 + 322: 7(int) Constant 103 + 329: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 335: 7(int) Constant 104 + 341: 69(int) Constant 5 + 356: 7(int) Constant 107 + 359: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 365: 7(int) Constant 108 + 385: 7(int) Constant 111 + 388: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 400: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 407: 7(int) Constant 112 + 414: 69(int) Constant 6 + 429: 7(int) Constant 115 + 432: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 440: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 447: 7(int) Constant 116 + 468: 7(int) Constant 119 + 475: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 487: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 494: 7(int) Constant 120 + 515: 7(int) Constant 123 + 522: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 530: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 537: 7(int) Constant 124 + 558: 7(int) Constant 127 + 559: 69(int) Constant 3 + 568: 7(int) Constant 130 + 570: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 571 28 17 568 12 16 21 + 579: 7(int) Constant 131 + 587: 24(float) Constant 1056964608 + 603: 7(int) Constant 132 + 617: 7(int) Constant 135 + 619: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 620 28 17 617 12 16 21 + 626: 69(int) Constant 8 + 632: 7(int) Constant 136 + 635: 69(int) Constant 7 + 638: 24(float) Constant 1008981770 + 640: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 646: 7(int) Constant 138 + 665: 7(int) Constant 140 + 670: 7(int) Constant 144 + 671(PushConsts): TypeStruct 7(int) + 674: 7(int) Constant 63 + 672: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 673 8 17 674 89 12 12 13 + 675: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 676 20 17 670 12 19 676 12 13 672 + 677: TypePointer PushConstant 671(PushConsts) + 678(pushConsts): 677(ptr) Variable PushConstant + 679: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 680 675 17 670 12 19 680 678(pushConsts) 78 + 681: TypePointer PushConstant 7(int) + 684: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 690: 7(int) Constant 145 + 692: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 170 28 17 690 12 16 21 + 694: 27(fvec3) ConstantComposite 225 225 225 + 696: 7(int) Constant 147 + 699: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 705: 7(int) Constant 148 + 708: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 714: 7(int) Constant 149 + 716: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 717 28 17 714 12 16 21 + 727: 7(int) Constant 150 + 729: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 730 28 17 727 12 16 21 + 744: 7(int) Constant 151 + 746: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 747 28 17 744 12 16 21 + 760: 7(int) Constant 152 + 772: 7(int) Constant 154 + 779: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 785: 7(int) Constant 155 + 797: 7(int) Constant 156 + 810: 7(int) Constant 157 + 819: 7(int) Constant 158 + 831: 7(int) Constant 161 + 838: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 844: 7(int) Constant 162 + 847: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 853: 7(int) Constant 163 + 865: 7(int) Constant 164 + 878: 7(int) Constant 165 + 887: 7(int) Constant 166 + 899: 7(int) Constant 168 + 906: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 156 10 22 12 + 912: 7(int) Constant 169 + 921: 7(int) Constant 170 + 934: 7(int) Constant 171 + 946: 7(int) Constant 172 + 958: 7(int) Constant 175 + 967: 7(int) Constant 10 + 968: 116(ivec3) ConstantComposite 967 967 20 + Line 1 72 11 + 14(main): 4 Function None 5 + 23: Label + 119(id): 118(ptr) Variable Function + 131(index): 130(ptr) Variable Function + 234(force): 29(ptr) Variable Function + 247(pos): 29(ptr) Variable Function + 257(vel): 29(ptr) Variable Function + 278(param): 29(ptr) Variable Function + 282(param): 29(ptr) Variable Function + 284(param): 30(ptr) Variable Function + 308(param): 29(ptr) Variable Function + 312(param): 29(ptr) Variable Function + 314(param): 30(ptr) Variable Function + 342(param): 29(ptr) Variable Function + 346(param): 29(ptr) Variable Function + 348(param): 30(ptr) Variable Function + 371(param): 29(ptr) Variable Function + 375(param): 29(ptr) Variable Function + 377(param): 30(ptr) Variable Function + 415(param): 29(ptr) Variable Function + 419(param): 29(ptr) Variable Function + 421(param): 30(ptr) Variable Function + 454(param): 29(ptr) Variable Function + 458(param): 29(ptr) Variable Function + 460(param): 30(ptr) Variable Function + 501(param): 29(ptr) Variable Function + 505(param): 29(ptr) Variable Function + 507(param): 30(ptr) Variable Function + 544(param): 29(ptr) Variable Function + 548(param): 29(ptr) Variable Function + 550(param): 30(ptr) Variable Function + 569(f): 29(ptr) Variable Function + 618(sphereDist): 29(ptr) Variable Function + 691(normal): 29(ptr) Variable Function + 715(a): 29(ptr) Variable Function + 728(b): 29(ptr) Variable Function + 745(c): 29(ptr) Variable Function + 112: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 16 14(main) + 113: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 114: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 115 115 12 12 + 122: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 120 119(id) 45 + 127: 116(ivec3) Load 124(gl_GlobalInvocationID) + Store 119(id) 127 + 128: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 129 129 12 12 + 134: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 132 131(index) 45 + 135: 130(ptr) AccessChain 119(id) 20 + 136: 7(int) Load 135 + 139: 138(ptr) AccessChain 97(params) 137 12 + 140: 69(int) Load 139 + 141: 7(int) Bitcast 140 + 142: 7(int) IMul 136 141 + 143: 130(ptr) AccessChain 119(id) 12 + 144: 7(int) Load 143 + 145: 7(int) IAdd 142 144 + Store 131(index) 145 + 146: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 147 147 12 12 + 148: 7(int) Load 131(index) + 149: 138(ptr) AccessChain 97(params) 137 12 + 150: 69(int) Load 149 + 151: 138(ptr) AccessChain 97(params) 137 20 + 152: 69(int) Load 151 + 153: 69(int) IMul 150 152 + 154: 7(int) Bitcast 153 + 158: 155(bool) UGreaterThan 148 154 + SelectionMerge 160 None + BranchConditional 158 159 160 + 159: Label + 161: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 162: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 163 163 12 12 Return - 151: Label - 178: 6(int) Load 123(index) - 180: 97(ptr) AccessChain 175 177 178 179 - 181: 23(float) Load 180 - 184: 146(bool) FOrdEqual 181 182 - SelectionMerge 186 None - BranchConditional 184 185 186 - 185: Label - 199: 6(int) Load 123(index) - 200: 6(int) Load 123(index) - 202: 201(ptr) AccessChain 197 177 200 177 - 203: 62(fvec4) Load 202 - 204: 201(ptr) AccessChain 197 177 199 177 - Store 204 203 - 205: 6(int) Load 123(index) - 209: 201(ptr) AccessChain 197 177 205 206 - Store 209 208 + 160: Label + 165: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 166: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 167 167 12 12 + 192: 7(int) Load 131(index) + 194: 101(ptr) AccessChain 189 191 192 193 + 195: 24(float) Load 194 + 198: 155(bool) FOrdEqual 195 196 + SelectionMerge 200 None + BranchConditional 198 199 200 + 199: Label + 201: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 202: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 203 203 12 12 + 215: 7(int) Load 131(index) + 216: 7(int) Load 131(index) + 218: 217(ptr) AccessChain 213 191 216 191 + 219: 67(fvec4) Load 218 + 220: 217(ptr) AccessChain 213 191 215 191 + Store 220 219 + 221: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 222 222 12 12 + 223: 7(int) Load 131(index) + 227: 217(ptr) AccessChain 213 191 223 224 + Store 227 226 + 228: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 229 229 12 12 Return - 186: Label - 215: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 212 211(force) 44 - 217: 201(ptr) AccessChain 93(params) 216 - 218: 62(fvec4) Load 217 - 219: 26(fvec3) VectorShuffle 218 218 0 1 2 - 220: 97(ptr) AccessChain 93(params) 206 - 221: 23(float) Load 220 - 222: 26(fvec3) VectorTimesScalar 219 221 - Store 211(force) 222 - 227: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 224 223(pos) 44 - 228: 6(int) Load 123(index) - 229: 201(ptr) AccessChain 175 177 228 177 - 230: 62(fvec4) Load 229 - 231: 26(fvec3) VectorShuffle 230 230 0 1 2 - Store 223(pos) 231 - 236: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 233 232(vel) 44 - 237: 6(int) Load 123(index) - 238: 201(ptr) AccessChain 175 177 237 206 - 239: 62(fvec4) Load 238 - 240: 26(fvec3) VectorShuffle 239 239 0 1 2 - Store 232(vel) 240 - 241: 122(ptr) AccessChain 112(id) 11 - 242: 6(int) Load 241 - 244: 146(bool) UGreaterThan 242 11 - SelectionMerge 246 None - BranchConditional 244 245 246 - 245: Label - 247: 6(int) Load 123(index) - 248: 6(int) ISub 247 19 - 250: 201(ptr) AccessChain 175 177 248 177 - 251: 62(fvec4) Load 250 - 252: 26(fvec3) VectorShuffle 251 251 0 1 2 - Store 249(param) 252 - 254: 26(fvec3) Load 223(pos) - Store 253(param) 254 - 256: 97(ptr) AccessChain 93(params) 179 - 257: 23(float) Load 256 - Store 255(param) 257 - 258: 26(fvec3) FunctionCall 35(springForce(vf3;vf3;f1;) 249(param) 253(param) 255(param) - 259: 26(fvec3) Load 211(force) - 260: 26(fvec3) FAdd 259 258 - Store 211(force) 260 - Branch 246 - 246: Label - 261: 122(ptr) AccessChain 112(id) 11 - 262: 6(int) Load 261 - 263: 131(ptr) AccessChain 93(params) 130 11 - 264: 64(int) Load 263 - 265: 64(int) ISub 264 206 - 266: 6(int) Bitcast 265 - 268: 146(bool) ULessThan 262 266 - SelectionMerge 270 None - BranchConditional 268 269 270 - 269: Label - 271: 6(int) Load 123(index) - 272: 6(int) IAdd 271 19 - 274: 201(ptr) AccessChain 175 177 272 177 - 275: 62(fvec4) Load 274 - 276: 26(fvec3) VectorShuffle 275 275 0 1 2 - Store 273(param) 276 - 278: 26(fvec3) Load 223(pos) - Store 277(param) 278 - 280: 97(ptr) AccessChain 93(params) 179 - 281: 23(float) Load 280 - Store 279(param) 281 - 282: 26(fvec3) FunctionCall 35(springForce(vf3;vf3;f1;) 273(param) 277(param) 279(param) - 283: 26(fvec3) Load 211(force) - 284: 26(fvec3) FAdd 283 282 - Store 211(force) 284 - Branch 270 - 270: Label - 285: 122(ptr) AccessChain 112(id) 19 - 286: 6(int) Load 285 - 287: 131(ptr) AccessChain 93(params) 130 19 - 288: 64(int) Load 287 - 289: 64(int) ISub 288 206 - 290: 6(int) Bitcast 289 - 292: 146(bool) ULessThan 286 290 - SelectionMerge 294 None - BranchConditional 292 293 294 - 293: Label - 295: 6(int) Load 123(index) - 296: 131(ptr) AccessChain 93(params) 130 11 - 297: 64(int) Load 296 - 298: 6(int) Bitcast 297 - 299: 6(int) IAdd 295 298 - 302: 201(ptr) AccessChain 175 177 299 177 - 303: 62(fvec4) Load 302 - 304: 26(fvec3) VectorShuffle 303 303 0 1 2 - Store 301(param) 304 - 306: 26(fvec3) Load 223(pos) - Store 305(param) 306 - 308: 97(ptr) AccessChain 93(params) 300 - 309: 23(float) Load 308 - Store 307(param) 309 - 310: 26(fvec3) FunctionCall 35(springForce(vf3;vf3;f1;) 301(param) 305(param) 307(param) - 311: 26(fvec3) Load 211(force) - 312: 26(fvec3) FAdd 311 310 - Store 211(force) 312 - Branch 294 - 294: Label - 313: 122(ptr) AccessChain 112(id) 19 - 314: 6(int) Load 313 - 316: 146(bool) UGreaterThan 314 11 - SelectionMerge 318 None - BranchConditional 316 317 318 - 317: Label - 319: 6(int) Load 123(index) - 320: 131(ptr) AccessChain 93(params) 130 11 - 321: 64(int) Load 320 - 322: 6(int) Bitcast 321 - 323: 6(int) ISub 319 322 - 325: 201(ptr) AccessChain 175 177 323 177 - 326: 62(fvec4) Load 325 - 327: 26(fvec3) VectorShuffle 326 326 0 1 2 - Store 324(param) 327 - 329: 26(fvec3) Load 223(pos) - Store 328(param) 329 - 331: 97(ptr) AccessChain 93(params) 300 - 332: 23(float) Load 331 - Store 330(param) 332 - 333: 26(fvec3) FunctionCall 35(springForce(vf3;vf3;f1;) 324(param) 328(param) 330(param) - 334: 26(fvec3) Load 211(force) - 335: 26(fvec3) FAdd 334 333 - Store 211(force) 335 - Branch 318 - 318: Label - 336: 122(ptr) AccessChain 112(id) 11 - 337: 6(int) Load 336 - 339: 146(bool) UGreaterThan 337 11 - SelectionMerge 341 None - BranchConditional 339 340 341 - 340: Label - 342: 122(ptr) AccessChain 112(id) 19 - 343: 6(int) Load 342 - 344: 131(ptr) AccessChain 93(params) 130 19 - 345: 64(int) Load 344 - 346: 64(int) ISub 345 206 - 347: 6(int) Bitcast 346 - 349: 146(bool) ULessThan 343 347 - Branch 341 - 341: Label - 350: 146(bool) Phi 339 318 349 340 - SelectionMerge 352 None - BranchConditional 350 351 352 - 351: Label - 353: 6(int) Load 123(index) - 354: 131(ptr) AccessChain 93(params) 130 11 - 355: 64(int) Load 354 - 356: 6(int) Bitcast 355 - 357: 6(int) IAdd 353 356 - 358: 6(int) ISub 357 19 - 361: 201(ptr) AccessChain 175 177 358 177 - 362: 62(fvec4) Load 361 - 363: 26(fvec3) VectorShuffle 362 362 0 1 2 - Store 360(param) 363 - 365: 26(fvec3) Load 223(pos) - Store 364(param) 365 - 367: 97(ptr) AccessChain 93(params) 359 - 368: 23(float) Load 367 - Store 366(param) 368 - 369: 26(fvec3) FunctionCall 35(springForce(vf3;vf3;f1;) 360(param) 364(param) 366(param) - 370: 26(fvec3) Load 211(force) - 371: 26(fvec3) FAdd 370 369 - Store 211(force) 371 - Branch 352 - 352: Label - 372: 122(ptr) AccessChain 112(id) 11 - 373: 6(int) Load 372 - 375: 146(bool) UGreaterThan 373 11 - SelectionMerge 377 None - BranchConditional 375 376 377 - 376: Label - 378: 122(ptr) AccessChain 112(id) 19 - 379: 6(int) Load 378 - 381: 146(bool) UGreaterThan 379 11 - Branch 377 - 377: Label - 382: 146(bool) Phi 375 352 381 376 - SelectionMerge 384 None - BranchConditional 382 383 384 - 383: Label - 385: 6(int) Load 123(index) - 386: 131(ptr) AccessChain 93(params) 130 11 - 387: 64(int) Load 386 - 388: 6(int) Bitcast 387 - 389: 6(int) ISub 385 388 - 390: 6(int) ISub 389 19 - 392: 201(ptr) AccessChain 175 177 390 177 - 393: 62(fvec4) Load 392 - 394: 26(fvec3) VectorShuffle 393 393 0 1 2 - Store 391(param) 394 - 396: 26(fvec3) Load 223(pos) - Store 395(param) 396 - 398: 97(ptr) AccessChain 93(params) 359 - 399: 23(float) Load 398 - Store 397(param) 399 - 400: 26(fvec3) FunctionCall 35(springForce(vf3;vf3;f1;) 391(param) 395(param) 397(param) - 401: 26(fvec3) Load 211(force) - 402: 26(fvec3) FAdd 401 400 - Store 211(force) 402 - Branch 384 - 384: Label - 403: 122(ptr) AccessChain 112(id) 11 - 404: 6(int) Load 403 - 405: 131(ptr) AccessChain 93(params) 130 11 - 406: 64(int) Load 405 - 407: 64(int) ISub 406 206 - 408: 6(int) Bitcast 407 - 410: 146(bool) ULessThan 404 408 - SelectionMerge 412 None - BranchConditional 410 411 412 - 411: Label - 413: 122(ptr) AccessChain 112(id) 19 - 414: 6(int) Load 413 - 415: 131(ptr) AccessChain 93(params) 130 19 - 416: 64(int) Load 415 - 417: 64(int) ISub 416 206 - 418: 6(int) Bitcast 417 - 420: 146(bool) ULessThan 414 418 - Branch 412 - 412: Label - 421: 146(bool) Phi 410 384 420 411 - SelectionMerge 423 None - BranchConditional 421 422 423 - 422: Label - 424: 6(int) Load 123(index) - 425: 131(ptr) AccessChain 93(params) 130 11 - 426: 64(int) Load 425 - 427: 6(int) Bitcast 426 - 428: 6(int) IAdd 424 427 - 429: 6(int) IAdd 428 19 - 431: 201(ptr) AccessChain 175 177 429 177 - 432: 62(fvec4) Load 431 - 433: 26(fvec3) VectorShuffle 432 432 0 1 2 - Store 430(param) 433 - 435: 26(fvec3) Load 223(pos) - Store 434(param) 435 - 437: 97(ptr) AccessChain 93(params) 359 - 438: 23(float) Load 437 - Store 436(param) 438 - 439: 26(fvec3) FunctionCall 35(springForce(vf3;vf3;f1;) 430(param) 434(param) 436(param) - 440: 26(fvec3) Load 211(force) - 441: 26(fvec3) FAdd 440 439 - Store 211(force) 441 - Branch 423 - 423: Label - 442: 122(ptr) AccessChain 112(id) 11 - 443: 6(int) Load 442 - 444: 131(ptr) AccessChain 93(params) 130 11 - 445: 64(int) Load 444 - 446: 64(int) ISub 445 206 - 447: 6(int) Bitcast 446 - 449: 146(bool) ULessThan 443 447 - SelectionMerge 451 None - BranchConditional 449 450 451 - 450: Label - 452: 122(ptr) AccessChain 112(id) 19 - 453: 6(int) Load 452 - 455: 146(bool) UGreaterThan 453 11 - Branch 451 - 451: Label - 456: 146(bool) Phi 449 423 455 450 - SelectionMerge 458 None - BranchConditional 456 457 458 - 457: Label - 459: 6(int) Load 123(index) - 460: 131(ptr) AccessChain 93(params) 130 11 - 461: 64(int) Load 460 - 462: 6(int) Bitcast 461 - 463: 6(int) ISub 459 462 - 464: 6(int) IAdd 463 19 - 466: 201(ptr) AccessChain 175 177 464 177 - 467: 62(fvec4) Load 466 - 468: 26(fvec3) VectorShuffle 467 467 0 1 2 - Store 465(param) 468 - 470: 26(fvec3) Load 223(pos) - Store 469(param) 470 - 472: 97(ptr) AccessChain 93(params) 359 - 473: 23(float) Load 472 - Store 471(param) 473 - 474: 26(fvec3) FunctionCall 35(springForce(vf3;vf3;f1;) 465(param) 469(param) 471(param) - 475: 26(fvec3) Load 211(force) - 476: 26(fvec3) FAdd 475 474 - Store 211(force) 476 - Branch 458 - 458: Label - 478: 97(ptr) AccessChain 93(params) 477 - 479: 23(float) Load 478 - 480: 23(float) FNegate 479 - 481: 26(fvec3) Load 232(vel) - 482: 26(fvec3) VectorTimesScalar 481 480 - 483: 26(fvec3) Load 211(force) - 484: 26(fvec3) FAdd 483 482 - Store 211(force) 484 - 489: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 486 485(f) 44 - 490: 26(fvec3) Load 211(force) - 491: 97(ptr) AccessChain 93(params) 206 - 492: 23(float) Load 491 - 493: 23(float) FDiv 182 492 - 494: 26(fvec3) VectorTimesScalar 490 493 - Store 485(f) 494 - 495: 6(int) Load 123(index) - 496: 26(fvec3) Load 223(pos) - 497: 26(fvec3) Load 232(vel) - 498: 97(ptr) AccessChain 93(params) 177 - 499: 23(float) Load 498 - 500: 26(fvec3) VectorTimesScalar 497 499 - 501: 26(fvec3) FAdd 496 500 - 503: 26(fvec3) Load 485(f) - 504: 26(fvec3) VectorTimesScalar 503 502 - 505: 97(ptr) AccessChain 93(params) 177 - 506: 23(float) Load 505 - 507: 26(fvec3) VectorTimesScalar 504 506 - 508: 97(ptr) AccessChain 93(params) 177 - 509: 23(float) Load 508 - 510: 26(fvec3) VectorTimesScalar 507 509 - 511: 26(fvec3) FAdd 501 510 - 512: 23(float) CompositeExtract 511 0 - 513: 23(float) CompositeExtract 511 1 - 514: 23(float) CompositeExtract 511 2 - 515: 62(fvec4) CompositeConstruct 512 513 514 182 - 516: 201(ptr) AccessChain 197 177 495 177 - Store 516 515 - 517: 6(int) Load 123(index) - 518: 26(fvec3) Load 232(vel) - 519: 26(fvec3) Load 485(f) - 520: 97(ptr) AccessChain 93(params) 177 - 521: 23(float) Load 520 - 522: 26(fvec3) VectorTimesScalar 519 521 - 523: 26(fvec3) FAdd 518 522 - 524: 23(float) CompositeExtract 523 0 - 525: 23(float) CompositeExtract 523 1 - 526: 23(float) CompositeExtract 523 2 - 527: 62(fvec4) CompositeConstruct 524 525 526 207 - 528: 201(ptr) AccessChain 197 177 517 206 - Store 528 527 - 533: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 530 529(sphereDist) 44 - 534: 6(int) Load 123(index) - 535: 201(ptr) AccessChain 197 177 534 177 - 536: 62(fvec4) Load 535 - 537: 26(fvec3) VectorShuffle 536 536 0 1 2 - 539: 201(ptr) AccessChain 93(params) 538 - 540: 62(fvec4) Load 539 - 541: 26(fvec3) VectorShuffle 540 540 0 1 2 - 542: 26(fvec3) FSub 537 541 - Store 529(sphereDist) 542 - 543: 26(fvec3) Load 529(sphereDist) - 544: 23(float) ExtInst 2(GLSL.std.450) 66(Length) 543 - 546: 97(ptr) AccessChain 93(params) 545 - 547: 23(float) Load 546 - 549: 23(float) FAdd 547 548 - 551: 146(bool) FOrdLessThan 544 549 - SelectionMerge 553 None - BranchConditional 551 552 553 - 552: Label - 554: 6(int) Load 123(index) - 555: 201(ptr) AccessChain 93(params) 538 - 556: 62(fvec4) Load 555 - 557: 26(fvec3) VectorShuffle 556 556 0 1 2 - 558: 26(fvec3) Load 529(sphereDist) - 559: 26(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 558 - 560: 97(ptr) AccessChain 93(params) 545 - 561: 23(float) Load 560 - 562: 23(float) FAdd 561 548 - 563: 26(fvec3) VectorTimesScalar 559 562 - 564: 26(fvec3) FAdd 557 563 - 565: 97(ptr) AccessChain 197 177 554 177 11 - 566: 23(float) CompositeExtract 564 0 - Store 565 566 - 567: 97(ptr) AccessChain 197 177 554 177 19 - 568: 23(float) CompositeExtract 564 1 - Store 567 568 - 569: 97(ptr) AccessChain 197 177 554 177 21 - 570: 23(float) CompositeExtract 564 2 - Store 569 570 - 571: 6(int) Load 123(index) - 572: 201(ptr) AccessChain 197 177 571 206 - Store 572 208 - Branch 553 - 553: Label - 585: 584(ptr) AccessChain 581(pushConsts) 177 - 586: 6(int) Load 585 - 588: 146(bool) IEqual 586 19 - SelectionMerge 590 None - BranchConditional 588 589 590 - 589: Label - 594: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 592 591(normal) 44 - Store 591(normal) 595 - 596: 122(ptr) AccessChain 112(id) 19 - 597: 6(int) Load 596 - 599: 146(bool) UGreaterThan 597 11 - SelectionMerge 601 None - BranchConditional 599 600 601 - 600: Label - 602: 122(ptr) AccessChain 112(id) 11 - 603: 6(int) Load 602 - 605: 146(bool) UGreaterThan 603 11 - SelectionMerge 607 None - BranchConditional 605 606 607 - 606: Label - 612: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 609 608(a) 44 - 613: 6(int) Load 123(index) - 614: 6(int) ISub 613 19 - 615: 201(ptr) AccessChain 175 177 614 177 - 616: 62(fvec4) Load 615 - 617: 26(fvec3) VectorShuffle 616 616 0 1 2 - 618: 26(fvec3) Load 223(pos) - 619: 26(fvec3) FSub 617 618 - Store 608(a) 619 - 624: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 621 620(b) 44 - 625: 6(int) Load 123(index) - 626: 131(ptr) AccessChain 93(params) 130 11 - 627: 64(int) Load 626 - 628: 6(int) Bitcast 627 - 629: 6(int) ISub 625 628 - 630: 6(int) ISub 629 19 - 631: 201(ptr) AccessChain 175 177 630 177 - 632: 62(fvec4) Load 631 - 633: 26(fvec3) VectorShuffle 632 632 0 1 2 - 634: 26(fvec3) Load 223(pos) - 635: 26(fvec3) FSub 633 634 - Store 620(b) 635 - 640: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 637 636(c) 44 - 641: 6(int) Load 123(index) - 642: 131(ptr) AccessChain 93(params) 130 11 - 643: 64(int) Load 642 - 644: 6(int) Bitcast 643 - 645: 6(int) ISub 641 644 - 646: 201(ptr) AccessChain 175 177 645 177 - 647: 62(fvec4) Load 646 - 648: 26(fvec3) VectorShuffle 647 647 0 1 2 - 649: 26(fvec3) Load 223(pos) - 650: 26(fvec3) FSub 648 649 - Store 636(c) 650 - 651: 26(fvec3) Load 608(a) - 652: 26(fvec3) Load 620(b) - 653: 26(fvec3) ExtInst 2(GLSL.std.450) 68(Cross) 651 652 - 654: 26(fvec3) Load 620(b) - 655: 26(fvec3) Load 636(c) - 656: 26(fvec3) ExtInst 2(GLSL.std.450) 68(Cross) 654 655 - 657: 26(fvec3) FAdd 653 656 - 658: 26(fvec3) Load 591(normal) - 659: 26(fvec3) FAdd 658 657 - Store 591(normal) 659 - Branch 607 - 607: Label - 660: 122(ptr) AccessChain 112(id) 11 - 661: 6(int) Load 660 - 662: 131(ptr) AccessChain 93(params) 130 11 - 663: 64(int) Load 662 - 664: 64(int) ISub 663 206 - 665: 6(int) Bitcast 664 - 667: 146(bool) ULessThan 661 665 - SelectionMerge 669 None - BranchConditional 667 668 669 - 668: Label - 670: 6(int) Load 123(index) - 671: 131(ptr) AccessChain 93(params) 130 11 - 672: 64(int) Load 671 - 673: 6(int) Bitcast 672 - 674: 6(int) ISub 670 673 - 675: 201(ptr) AccessChain 175 177 674 177 - 676: 62(fvec4) Load 675 - 677: 26(fvec3) VectorShuffle 676 676 0 1 2 - 678: 26(fvec3) Load 223(pos) - 679: 26(fvec3) FSub 677 678 - Store 608(a) 679 - 680: 6(int) Load 123(index) - 681: 131(ptr) AccessChain 93(params) 130 11 - 682: 64(int) Load 681 - 683: 6(int) Bitcast 682 - 684: 6(int) ISub 680 683 - 685: 6(int) IAdd 684 19 - 686: 201(ptr) AccessChain 175 177 685 177 - 687: 62(fvec4) Load 686 - 688: 26(fvec3) VectorShuffle 687 687 0 1 2 - 689: 26(fvec3) Load 223(pos) - 690: 26(fvec3) FSub 688 689 - Store 620(b) 690 - 691: 6(int) Load 123(index) - 692: 6(int) IAdd 691 19 - 693: 201(ptr) AccessChain 175 177 692 177 - 694: 62(fvec4) Load 693 - 695: 26(fvec3) VectorShuffle 694 694 0 1 2 - 696: 26(fvec3) Load 223(pos) - 697: 26(fvec3) FSub 695 696 - Store 636(c) 697 - 698: 26(fvec3) Load 608(a) - 699: 26(fvec3) Load 620(b) - 700: 26(fvec3) ExtInst 2(GLSL.std.450) 68(Cross) 698 699 - 701: 26(fvec3) Load 620(b) - 702: 26(fvec3) Load 636(c) - 703: 26(fvec3) ExtInst 2(GLSL.std.450) 68(Cross) 701 702 - 704: 26(fvec3) FAdd 700 703 - 705: 26(fvec3) Load 591(normal) - 706: 26(fvec3) FAdd 705 704 - Store 591(normal) 706 - Branch 669 - 669: Label - Branch 601 - 601: Label - 707: 122(ptr) AccessChain 112(id) 19 - 708: 6(int) Load 707 - 709: 131(ptr) AccessChain 93(params) 130 19 - 710: 64(int) Load 709 - 711: 64(int) ISub 710 206 - 712: 6(int) Bitcast 711 - 714: 146(bool) ULessThan 708 712 - SelectionMerge 716 None - BranchConditional 714 715 716 - 715: Label - 717: 122(ptr) AccessChain 112(id) 11 - 718: 6(int) Load 717 - 720: 146(bool) UGreaterThan 718 11 - SelectionMerge 722 None - BranchConditional 720 721 722 - 721: Label - 723: 6(int) Load 123(index) - 724: 131(ptr) AccessChain 93(params) 130 11 - 725: 64(int) Load 724 - 726: 6(int) Bitcast 725 - 727: 6(int) IAdd 723 726 - 728: 201(ptr) AccessChain 175 177 727 177 - 729: 62(fvec4) Load 728 - 730: 26(fvec3) VectorShuffle 729 729 0 1 2 - 731: 26(fvec3) Load 223(pos) - 732: 26(fvec3) FSub 730 731 - Store 608(a) 732 - 733: 6(int) Load 123(index) - 734: 131(ptr) AccessChain 93(params) 130 11 - 735: 64(int) Load 734 - 736: 6(int) Bitcast 735 - 737: 6(int) IAdd 733 736 - 738: 6(int) ISub 737 19 - 739: 201(ptr) AccessChain 175 177 738 177 - 740: 62(fvec4) Load 739 - 741: 26(fvec3) VectorShuffle 740 740 0 1 2 - 742: 26(fvec3) Load 223(pos) - 743: 26(fvec3) FSub 741 742 - Store 620(b) 743 - 744: 6(int) Load 123(index) - 745: 6(int) ISub 744 19 - 746: 201(ptr) AccessChain 175 177 745 177 - 747: 62(fvec4) Load 746 - 748: 26(fvec3) VectorShuffle 747 747 0 1 2 - 749: 26(fvec3) Load 223(pos) - 750: 26(fvec3) FSub 748 749 - Store 636(c) 750 - 751: 26(fvec3) Load 608(a) - 752: 26(fvec3) Load 620(b) - 753: 26(fvec3) ExtInst 2(GLSL.std.450) 68(Cross) 751 752 - 754: 26(fvec3) Load 620(b) - 755: 26(fvec3) Load 636(c) - 756: 26(fvec3) ExtInst 2(GLSL.std.450) 68(Cross) 754 755 - 757: 26(fvec3) FAdd 753 756 - 758: 26(fvec3) Load 591(normal) - 759: 26(fvec3) FAdd 758 757 - Store 591(normal) 759 - Branch 722 - 722: Label - 760: 122(ptr) AccessChain 112(id) 11 - 761: 6(int) Load 760 - 762: 131(ptr) AccessChain 93(params) 130 11 - 763: 64(int) Load 762 - 764: 64(int) ISub 763 206 - 765: 6(int) Bitcast 764 - 767: 146(bool) ULessThan 761 765 - SelectionMerge 769 None - BranchConditional 767 768 769 - 768: Label - 770: 6(int) Load 123(index) - 771: 6(int) IAdd 770 19 - 772: 201(ptr) AccessChain 175 177 771 177 - 773: 62(fvec4) Load 772 - 774: 26(fvec3) VectorShuffle 773 773 0 1 2 - 775: 26(fvec3) Load 223(pos) - 776: 26(fvec3) FSub 774 775 - Store 608(a) 776 - 777: 6(int) Load 123(index) - 778: 131(ptr) AccessChain 93(params) 130 11 - 779: 64(int) Load 778 - 780: 6(int) Bitcast 779 - 781: 6(int) IAdd 777 780 - 782: 6(int) IAdd 781 19 - 783: 201(ptr) AccessChain 175 177 782 177 - 784: 62(fvec4) Load 783 - 785: 26(fvec3) VectorShuffle 784 784 0 1 2 - 786: 26(fvec3) Load 223(pos) - 787: 26(fvec3) FSub 785 786 - Store 620(b) 787 - 788: 6(int) Load 123(index) - 789: 131(ptr) AccessChain 93(params) 130 11 - 790: 64(int) Load 789 - 791: 6(int) Bitcast 790 - 792: 6(int) IAdd 788 791 - 793: 201(ptr) AccessChain 175 177 792 177 - 794: 62(fvec4) Load 793 - 795: 26(fvec3) VectorShuffle 794 794 0 1 2 - 796: 26(fvec3) Load 223(pos) - 797: 26(fvec3) FSub 795 796 - Store 636(c) 797 - 798: 26(fvec3) Load 608(a) - 799: 26(fvec3) Load 620(b) - 800: 26(fvec3) ExtInst 2(GLSL.std.450) 68(Cross) 798 799 - 801: 26(fvec3) Load 620(b) - 802: 26(fvec3) Load 636(c) - 803: 26(fvec3) ExtInst 2(GLSL.std.450) 68(Cross) 801 802 - 804: 26(fvec3) FAdd 800 803 - 805: 26(fvec3) Load 591(normal) - 806: 26(fvec3) FAdd 805 804 - Store 591(normal) 806 - Branch 769 - 769: Label - Branch 716 - 716: Label - 807: 6(int) Load 123(index) - 808: 26(fvec3) Load 591(normal) - 809: 26(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 808 - 810: 23(float) CompositeExtract 809 0 - 811: 23(float) CompositeExtract 809 1 - 812: 23(float) CompositeExtract 809 2 - 813: 62(fvec4) CompositeConstruct 810 811 812 207 - 814: 201(ptr) AccessChain 197 177 807 477 - Store 814 813 - Branch 590 - 590: Label + 200: Label + 231: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 232: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 233 233 12 12 + 237: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 235 234(force) 45 + 239: 217(ptr) AccessChain 97(params) 238 + 240: 67(fvec4) Load 239 + 241: 27(fvec3) VectorShuffle 240 240 0 1 2 + 242: 101(ptr) AccessChain 97(params) 224 + 243: 24(float) Load 242 + 244: 27(fvec3) VectorTimesScalar 241 243 + Store 234(force) 244 + 245: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 246 246 12 12 + 250: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 248 247(pos) 45 + 251: 7(int) Load 131(index) + 252: 217(ptr) AccessChain 189 191 251 191 + 253: 67(fvec4) Load 252 + 254: 27(fvec3) VectorShuffle 253 253 0 1 2 + Store 247(pos) 254 + 255: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 256 256 12 12 + 260: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 258 257(vel) 45 + 261: 7(int) Load 131(index) + 262: 217(ptr) AccessChain 189 191 261 224 + 263: 67(fvec4) Load 262 + 264: 27(fvec3) VectorShuffle 263 263 0 1 2 + Store 257(vel) 264 + 265: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 266 266 12 12 + 267: 130(ptr) AccessChain 119(id) 12 + 268: 7(int) Load 267 + 270: 155(bool) UGreaterThan 268 12 + SelectionMerge 272 None + BranchConditional 270 271 272 + 271: Label + 273: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 274: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 275 275 12 12 + 276: 7(int) Load 131(index) + 277: 7(int) ISub 276 20 + 279: 217(ptr) AccessChain 189 191 277 191 + 280: 67(fvec4) Load 279 + 281: 27(fvec3) VectorShuffle 280 280 0 1 2 + Store 278(param) 281 + 283: 27(fvec3) Load 247(pos) + Store 282(param) 283 + 285: 101(ptr) AccessChain 97(params) 193 + 286: 24(float) Load 285 + Store 284(param) 286 + 287: 27(fvec3) FunctionCall 36(springForce(vf3;vf3;f1;) 278(param) 282(param) 284(param) + 288: 27(fvec3) Load 234(force) + 289: 27(fvec3) FAdd 288 287 + Store 234(force) 289 + Branch 272 + 272: Label + 290: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 291: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 292 292 12 12 + 293: 130(ptr) AccessChain 119(id) 12 + 294: 7(int) Load 293 + 295: 138(ptr) AccessChain 97(params) 137 12 + 296: 69(int) Load 295 + 297: 69(int) ISub 296 224 + 298: 7(int) Bitcast 297 + 300: 155(bool) ULessThan 294 298 + SelectionMerge 302 None + BranchConditional 300 301 302 + 301: Label + 303: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 304: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 305 305 12 12 + 306: 7(int) Load 131(index) + 307: 7(int) IAdd 306 20 + 309: 217(ptr) AccessChain 189 191 307 191 + 310: 67(fvec4) Load 309 + 311: 27(fvec3) VectorShuffle 310 310 0 1 2 + Store 308(param) 311 + 313: 27(fvec3) Load 247(pos) + Store 312(param) 313 + 315: 101(ptr) AccessChain 97(params) 193 + 316: 24(float) Load 315 + Store 314(param) 316 + 317: 27(fvec3) FunctionCall 36(springForce(vf3;vf3;f1;) 308(param) 312(param) 314(param) + 318: 27(fvec3) Load 234(force) + 319: 27(fvec3) FAdd 318 317 + Store 234(force) 319 + Branch 302 + 302: Label + 320: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 321: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 322 322 12 12 + 323: 130(ptr) AccessChain 119(id) 20 + 324: 7(int) Load 323 + 325: 138(ptr) AccessChain 97(params) 137 20 + 326: 69(int) Load 325 + 327: 69(int) ISub 326 224 + 328: 7(int) Bitcast 327 + 330: 155(bool) ULessThan 324 328 + SelectionMerge 332 None + BranchConditional 330 331 332 + 331: Label + 333: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 334: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 335 335 12 12 + 336: 7(int) Load 131(index) + 337: 138(ptr) AccessChain 97(params) 137 12 + 338: 69(int) Load 337 + 339: 7(int) Bitcast 338 + 340: 7(int) IAdd 336 339 + 343: 217(ptr) AccessChain 189 191 340 191 + 344: 67(fvec4) Load 343 + 345: 27(fvec3) VectorShuffle 344 344 0 1 2 + Store 342(param) 345 + 347: 27(fvec3) Load 247(pos) + Store 346(param) 347 + 349: 101(ptr) AccessChain 97(params) 341 + 350: 24(float) Load 349 + Store 348(param) 350 + 351: 27(fvec3) FunctionCall 36(springForce(vf3;vf3;f1;) 342(param) 346(param) 348(param) + 352: 27(fvec3) Load 234(force) + 353: 27(fvec3) FAdd 352 351 + Store 234(force) 353 + Branch 332 + 332: Label + 354: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 355: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 356 356 12 12 + 357: 130(ptr) AccessChain 119(id) 20 + 358: 7(int) Load 357 + 360: 155(bool) UGreaterThan 358 12 + SelectionMerge 362 None + BranchConditional 360 361 362 + 361: Label + 363: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 364: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 365 365 12 12 + 366: 7(int) Load 131(index) + 367: 138(ptr) AccessChain 97(params) 137 12 + 368: 69(int) Load 367 + 369: 7(int) Bitcast 368 + 370: 7(int) ISub 366 369 + 372: 217(ptr) AccessChain 189 191 370 191 + 373: 67(fvec4) Load 372 + 374: 27(fvec3) VectorShuffle 373 373 0 1 2 + Store 371(param) 374 + 376: 27(fvec3) Load 247(pos) + Store 375(param) 376 + 378: 101(ptr) AccessChain 97(params) 341 + 379: 24(float) Load 378 + Store 377(param) 379 + 380: 27(fvec3) FunctionCall 36(springForce(vf3;vf3;f1;) 371(param) 375(param) 377(param) + 381: 27(fvec3) Load 234(force) + 382: 27(fvec3) FAdd 381 380 + Store 234(force) 382 + Branch 362 + 362: Label + 383: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 384: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 385 385 12 12 + 386: 130(ptr) AccessChain 119(id) 12 + 387: 7(int) Load 386 + 389: 155(bool) UGreaterThan 387 12 + SelectionMerge 391 None + BranchConditional 389 390 391 + 390: Label + 392: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 393: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 385 385 12 12 + 394: 130(ptr) AccessChain 119(id) 20 + 395: 7(int) Load 394 + 396: 138(ptr) AccessChain 97(params) 137 20 + 397: 69(int) Load 396 + 398: 69(int) ISub 397 224 + 399: 7(int) Bitcast 398 + 401: 155(bool) ULessThan 395 399 + Branch 391 + 391: Label + 402: 155(bool) Phi 389 362 401 390 + SelectionMerge 404 None + BranchConditional 402 403 404 + 403: Label + 405: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 406: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 407 407 12 12 + 408: 7(int) Load 131(index) + 409: 138(ptr) AccessChain 97(params) 137 12 + 410: 69(int) Load 409 + 411: 7(int) Bitcast 410 + 412: 7(int) IAdd 408 411 + 413: 7(int) ISub 412 20 + 416: 217(ptr) AccessChain 189 191 413 191 + 417: 67(fvec4) Load 416 + 418: 27(fvec3) VectorShuffle 417 417 0 1 2 + Store 415(param) 418 + 420: 27(fvec3) Load 247(pos) + Store 419(param) 420 + 422: 101(ptr) AccessChain 97(params) 414 + 423: 24(float) Load 422 + Store 421(param) 423 + 424: 27(fvec3) FunctionCall 36(springForce(vf3;vf3;f1;) 415(param) 419(param) 421(param) + 425: 27(fvec3) Load 234(force) + 426: 27(fvec3) FAdd 425 424 + Store 234(force) 426 + Branch 404 + 404: Label + 427: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 428: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 429 429 12 12 + 430: 130(ptr) AccessChain 119(id) 12 + 431: 7(int) Load 430 + 433: 155(bool) UGreaterThan 431 12 + SelectionMerge 435 None + BranchConditional 433 434 435 + 434: Label + 436: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 437: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 429 429 12 12 + 438: 130(ptr) AccessChain 119(id) 20 + 439: 7(int) Load 438 + 441: 155(bool) UGreaterThan 439 12 + Branch 435 + 435: Label + 442: 155(bool) Phi 433 404 441 434 + SelectionMerge 444 None + BranchConditional 442 443 444 + 443: Label + 445: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 446: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 447 447 12 12 + 448: 7(int) Load 131(index) + 449: 138(ptr) AccessChain 97(params) 137 12 + 450: 69(int) Load 449 + 451: 7(int) Bitcast 450 + 452: 7(int) ISub 448 451 + 453: 7(int) ISub 452 20 + 455: 217(ptr) AccessChain 189 191 453 191 + 456: 67(fvec4) Load 455 + 457: 27(fvec3) VectorShuffle 456 456 0 1 2 + Store 454(param) 457 + 459: 27(fvec3) Load 247(pos) + Store 458(param) 459 + 461: 101(ptr) AccessChain 97(params) 414 + 462: 24(float) Load 461 + Store 460(param) 462 + 463: 27(fvec3) FunctionCall 36(springForce(vf3;vf3;f1;) 454(param) 458(param) 460(param) + 464: 27(fvec3) Load 234(force) + 465: 27(fvec3) FAdd 464 463 + Store 234(force) 465 + Branch 444 + 444: Label + 466: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 467: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 468 468 12 12 + 469: 130(ptr) AccessChain 119(id) 12 + 470: 7(int) Load 469 + 471: 138(ptr) AccessChain 97(params) 137 12 + 472: 69(int) Load 471 + 473: 69(int) ISub 472 224 + 474: 7(int) Bitcast 473 + 476: 155(bool) ULessThan 470 474 + SelectionMerge 478 None + BranchConditional 476 477 478 + 477: Label + 479: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 480: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 468 468 12 12 + 481: 130(ptr) AccessChain 119(id) 20 + 482: 7(int) Load 481 + 483: 138(ptr) AccessChain 97(params) 137 20 + 484: 69(int) Load 483 + 485: 69(int) ISub 484 224 + 486: 7(int) Bitcast 485 + 488: 155(bool) ULessThan 482 486 + Branch 478 + 478: Label + 489: 155(bool) Phi 476 444 488 477 + SelectionMerge 491 None + BranchConditional 489 490 491 + 490: Label + 492: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 493: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 494 494 12 12 + 495: 7(int) Load 131(index) + 496: 138(ptr) AccessChain 97(params) 137 12 + 497: 69(int) Load 496 + 498: 7(int) Bitcast 497 + 499: 7(int) IAdd 495 498 + 500: 7(int) IAdd 499 20 + 502: 217(ptr) AccessChain 189 191 500 191 + 503: 67(fvec4) Load 502 + 504: 27(fvec3) VectorShuffle 503 503 0 1 2 + Store 501(param) 504 + 506: 27(fvec3) Load 247(pos) + Store 505(param) 506 + 508: 101(ptr) AccessChain 97(params) 414 + 509: 24(float) Load 508 + Store 507(param) 509 + 510: 27(fvec3) FunctionCall 36(springForce(vf3;vf3;f1;) 501(param) 505(param) 507(param) + 511: 27(fvec3) Load 234(force) + 512: 27(fvec3) FAdd 511 510 + Store 234(force) 512 + Branch 491 + 491: Label + 513: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 514: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 515 515 12 12 + 516: 130(ptr) AccessChain 119(id) 12 + 517: 7(int) Load 516 + 518: 138(ptr) AccessChain 97(params) 137 12 + 519: 69(int) Load 518 + 520: 69(int) ISub 519 224 + 521: 7(int) Bitcast 520 + 523: 155(bool) ULessThan 517 521 + SelectionMerge 525 None + BranchConditional 523 524 525 + 524: Label + 526: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 527: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 515 515 12 12 + 528: 130(ptr) AccessChain 119(id) 20 + 529: 7(int) Load 528 + 531: 155(bool) UGreaterThan 529 12 + Branch 525 + 525: Label + 532: 155(bool) Phi 523 491 531 524 + SelectionMerge 534 None + BranchConditional 532 533 534 + 533: Label + 535: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 536: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 537 537 12 12 + 538: 7(int) Load 131(index) + 539: 138(ptr) AccessChain 97(params) 137 12 + 540: 69(int) Load 539 + 541: 7(int) Bitcast 540 + 542: 7(int) ISub 538 541 + 543: 7(int) IAdd 542 20 + 545: 217(ptr) AccessChain 189 191 543 191 + 546: 67(fvec4) Load 545 + 547: 27(fvec3) VectorShuffle 546 546 0 1 2 + Store 544(param) 547 + 549: 27(fvec3) Load 247(pos) + Store 548(param) 549 + 551: 101(ptr) AccessChain 97(params) 414 + 552: 24(float) Load 551 + Store 550(param) 552 + 553: 27(fvec3) FunctionCall 36(springForce(vf3;vf3;f1;) 544(param) 548(param) 550(param) + 554: 27(fvec3) Load 234(force) + 555: 27(fvec3) FAdd 554 553 + Store 234(force) 555 + Branch 534 + 534: Label + 556: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 557: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 558 558 12 12 + 560: 101(ptr) AccessChain 97(params) 559 + 561: 24(float) Load 560 + 562: 24(float) FNegate 561 + 563: 27(fvec3) Load 257(vel) + 564: 27(fvec3) VectorTimesScalar 563 562 + 565: 27(fvec3) Load 234(force) + 566: 27(fvec3) FAdd 565 564 + Store 234(force) 566 + 567: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 568 568 12 12 + 572: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 570 569(f) 45 + 573: 27(fvec3) Load 234(force) + 574: 101(ptr) AccessChain 97(params) 224 + 575: 24(float) Load 574 + 576: 24(float) FDiv 196 575 + 577: 27(fvec3) VectorTimesScalar 573 576 + Store 569(f) 577 + 578: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 579 579 12 12 + 580: 7(int) Load 131(index) + 581: 27(fvec3) Load 247(pos) + 582: 27(fvec3) Load 257(vel) + 583: 101(ptr) AccessChain 97(params) 191 + 584: 24(float) Load 583 + 585: 27(fvec3) VectorTimesScalar 582 584 + 586: 27(fvec3) FAdd 581 585 + 588: 27(fvec3) Load 569(f) + 589: 27(fvec3) VectorTimesScalar 588 587 + 590: 101(ptr) AccessChain 97(params) 191 + 591: 24(float) Load 590 + 592: 27(fvec3) VectorTimesScalar 589 591 + 593: 101(ptr) AccessChain 97(params) 191 + 594: 24(float) Load 593 + 595: 27(fvec3) VectorTimesScalar 592 594 + 596: 27(fvec3) FAdd 586 595 + 597: 24(float) CompositeExtract 596 0 + 598: 24(float) CompositeExtract 596 1 + 599: 24(float) CompositeExtract 596 2 + 600: 67(fvec4) CompositeConstruct 597 598 599 196 + 601: 217(ptr) AccessChain 213 191 580 191 + Store 601 600 + 602: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 603 603 12 12 + 604: 7(int) Load 131(index) + 605: 27(fvec3) Load 257(vel) + 606: 27(fvec3) Load 569(f) + 607: 101(ptr) AccessChain 97(params) 191 + 608: 24(float) Load 607 + 609: 27(fvec3) VectorTimesScalar 606 608 + 610: 27(fvec3) FAdd 605 609 + 611: 24(float) CompositeExtract 610 0 + 612: 24(float) CompositeExtract 610 1 + 613: 24(float) CompositeExtract 610 2 + 614: 67(fvec4) CompositeConstruct 611 612 613 225 + 615: 217(ptr) AccessChain 213 191 604 224 + Store 615 614 + 616: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 617 617 12 12 + 621: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 619 618(sphereDist) 45 + 622: 7(int) Load 131(index) + 623: 217(ptr) AccessChain 213 191 622 191 + 624: 67(fvec4) Load 623 + 625: 27(fvec3) VectorShuffle 624 624 0 1 2 + 627: 217(ptr) AccessChain 97(params) 626 + 628: 67(fvec4) Load 627 + 629: 27(fvec3) VectorShuffle 628 628 0 1 2 + 630: 27(fvec3) FSub 625 629 + Store 618(sphereDist) 630 + 631: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 632 632 12 12 + 633: 27(fvec3) Load 618(sphereDist) + 634: 24(float) ExtInst 3(GLSL.std.450) 66(Length) 633 + 636: 101(ptr) AccessChain 97(params) 635 + 637: 24(float) Load 636 + 639: 24(float) FAdd 637 638 + 641: 155(bool) FOrdLessThan 634 639 + SelectionMerge 643 None + BranchConditional 641 642 643 + 642: Label + 644: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 645: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 646 646 12 12 + 647: 7(int) Load 131(index) + 648: 217(ptr) AccessChain 97(params) 626 + 649: 67(fvec4) Load 648 + 650: 27(fvec3) VectorShuffle 649 649 0 1 2 + 651: 27(fvec3) Load 618(sphereDist) + 652: 27(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 651 + 653: 101(ptr) AccessChain 97(params) 635 + 654: 24(float) Load 653 + 655: 24(float) FAdd 654 638 + 656: 27(fvec3) VectorTimesScalar 652 655 + 657: 27(fvec3) FAdd 650 656 + 658: 101(ptr) AccessChain 213 191 647 191 12 + 659: 24(float) CompositeExtract 657 0 + Store 658 659 + 660: 101(ptr) AccessChain 213 191 647 191 20 + 661: 24(float) CompositeExtract 657 1 + Store 660 661 + 662: 101(ptr) AccessChain 213 191 647 191 22 + 663: 24(float) CompositeExtract 657 2 + Store 662 663 + 664: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 665 665 12 12 + 666: 7(int) Load 131(index) + 667: 217(ptr) AccessChain 213 191 666 224 + Store 667 226 + Branch 643 + 643: Label + 668: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 669: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 670 670 12 12 + 682: 681(ptr) AccessChain 678(pushConsts) 191 + 683: 7(int) Load 682 + 685: 155(bool) IEqual 683 20 + SelectionMerge 687 None + BranchConditional 685 686 687 + 686: Label + 688: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 689: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 690 690 12 12 + 693: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 692 691(normal) 45 + Store 691(normal) 694 + 695: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 696 696 12 12 + 697: 130(ptr) AccessChain 119(id) 20 + 698: 7(int) Load 697 + 700: 155(bool) UGreaterThan 698 12 + SelectionMerge 702 None + BranchConditional 700 701 702 + 701: Label + 703: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 704: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 705 705 12 12 + 706: 130(ptr) AccessChain 119(id) 12 + 707: 7(int) Load 706 + 709: 155(bool) UGreaterThan 707 12 + SelectionMerge 711 None + BranchConditional 709 710 711 + 710: Label + 712: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 713: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 714 714 12 12 + 718: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 716 715(a) 45 + 719: 7(int) Load 131(index) + 720: 7(int) ISub 719 20 + 721: 217(ptr) AccessChain 189 191 720 191 + 722: 67(fvec4) Load 721 + 723: 27(fvec3) VectorShuffle 722 722 0 1 2 + 724: 27(fvec3) Load 247(pos) + 725: 27(fvec3) FSub 723 724 + Store 715(a) 725 + 726: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 727 727 12 12 + 731: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 729 728(b) 45 + 732: 7(int) Load 131(index) + 733: 138(ptr) AccessChain 97(params) 137 12 + 734: 69(int) Load 733 + 735: 7(int) Bitcast 734 + 736: 7(int) ISub 732 735 + 737: 7(int) ISub 736 20 + 738: 217(ptr) AccessChain 189 191 737 191 + 739: 67(fvec4) Load 738 + 740: 27(fvec3) VectorShuffle 739 739 0 1 2 + 741: 27(fvec3) Load 247(pos) + 742: 27(fvec3) FSub 740 741 + Store 728(b) 742 + 743: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 744 744 12 12 + 748: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 746 745(c) 45 + 749: 7(int) Load 131(index) + 750: 138(ptr) AccessChain 97(params) 137 12 + 751: 69(int) Load 750 + 752: 7(int) Bitcast 751 + 753: 7(int) ISub 749 752 + 754: 217(ptr) AccessChain 189 191 753 191 + 755: 67(fvec4) Load 754 + 756: 27(fvec3) VectorShuffle 755 755 0 1 2 + 757: 27(fvec3) Load 247(pos) + 758: 27(fvec3) FSub 756 757 + Store 745(c) 758 + 759: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 760 760 12 12 + 761: 27(fvec3) Load 715(a) + 762: 27(fvec3) Load 728(b) + 763: 27(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 761 762 + 764: 27(fvec3) Load 728(b) + 765: 27(fvec3) Load 745(c) + 766: 27(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 764 765 + 767: 27(fvec3) FAdd 763 766 + 768: 27(fvec3) Load 691(normal) + 769: 27(fvec3) FAdd 768 767 + Store 691(normal) 769 + Branch 711 + 711: Label + 770: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 771: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 772 772 12 12 + 773: 130(ptr) AccessChain 119(id) 12 + 774: 7(int) Load 773 + 775: 138(ptr) AccessChain 97(params) 137 12 + 776: 69(int) Load 775 + 777: 69(int) ISub 776 224 + 778: 7(int) Bitcast 777 + 780: 155(bool) ULessThan 774 778 + SelectionMerge 782 None + BranchConditional 780 781 782 + 781: Label + 783: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 784: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 785 785 12 12 + 786: 7(int) Load 131(index) + 787: 138(ptr) AccessChain 97(params) 137 12 + 788: 69(int) Load 787 + 789: 7(int) Bitcast 788 + 790: 7(int) ISub 786 789 + 791: 217(ptr) AccessChain 189 191 790 191 + 792: 67(fvec4) Load 791 + 793: 27(fvec3) VectorShuffle 792 792 0 1 2 + 794: 27(fvec3) Load 247(pos) + 795: 27(fvec3) FSub 793 794 + Store 715(a) 795 + 796: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 797 797 12 12 + 798: 7(int) Load 131(index) + 799: 138(ptr) AccessChain 97(params) 137 12 + 800: 69(int) Load 799 + 801: 7(int) Bitcast 800 + 802: 7(int) ISub 798 801 + 803: 7(int) IAdd 802 20 + 804: 217(ptr) AccessChain 189 191 803 191 + 805: 67(fvec4) Load 804 + 806: 27(fvec3) VectorShuffle 805 805 0 1 2 + 807: 27(fvec3) Load 247(pos) + 808: 27(fvec3) FSub 806 807 + Store 728(b) 808 + 809: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 810 810 12 12 + 811: 7(int) Load 131(index) + 812: 7(int) IAdd 811 20 + 813: 217(ptr) AccessChain 189 191 812 191 + 814: 67(fvec4) Load 813 + 815: 27(fvec3) VectorShuffle 814 814 0 1 2 + 816: 27(fvec3) Load 247(pos) + 817: 27(fvec3) FSub 815 816 + Store 745(c) 817 + 818: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 819 819 12 12 + 820: 27(fvec3) Load 715(a) + 821: 27(fvec3) Load 728(b) + 822: 27(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 820 821 + 823: 27(fvec3) Load 728(b) + 824: 27(fvec3) Load 745(c) + 825: 27(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 823 824 + 826: 27(fvec3) FAdd 822 825 + 827: 27(fvec3) Load 691(normal) + 828: 27(fvec3) FAdd 827 826 + Store 691(normal) 828 + Branch 782 + 782: Label + Branch 702 + 702: Label + 829: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 830: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 831 831 12 12 + 832: 130(ptr) AccessChain 119(id) 20 + 833: 7(int) Load 832 + 834: 138(ptr) AccessChain 97(params) 137 20 + 835: 69(int) Load 834 + 836: 69(int) ISub 835 224 + 837: 7(int) Bitcast 836 + 839: 155(bool) ULessThan 833 837 + SelectionMerge 841 None + BranchConditional 839 840 841 + 840: Label + 842: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 843: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 844 844 12 12 + 845: 130(ptr) AccessChain 119(id) 12 + 846: 7(int) Load 845 + 848: 155(bool) UGreaterThan 846 12 + SelectionMerge 850 None + BranchConditional 848 849 850 + 849: Label + 851: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 852: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 853 853 12 12 + 854: 7(int) Load 131(index) + 855: 138(ptr) AccessChain 97(params) 137 12 + 856: 69(int) Load 855 + 857: 7(int) Bitcast 856 + 858: 7(int) IAdd 854 857 + 859: 217(ptr) AccessChain 189 191 858 191 + 860: 67(fvec4) Load 859 + 861: 27(fvec3) VectorShuffle 860 860 0 1 2 + 862: 27(fvec3) Load 247(pos) + 863: 27(fvec3) FSub 861 862 + Store 715(a) 863 + 864: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 865 865 12 12 + 866: 7(int) Load 131(index) + 867: 138(ptr) AccessChain 97(params) 137 12 + 868: 69(int) Load 867 + 869: 7(int) Bitcast 868 + 870: 7(int) IAdd 866 869 + 871: 7(int) ISub 870 20 + 872: 217(ptr) AccessChain 189 191 871 191 + 873: 67(fvec4) Load 872 + 874: 27(fvec3) VectorShuffle 873 873 0 1 2 + 875: 27(fvec3) Load 247(pos) + 876: 27(fvec3) FSub 874 875 + Store 728(b) 876 + 877: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 878 878 12 12 + 879: 7(int) Load 131(index) + 880: 7(int) ISub 879 20 + 881: 217(ptr) AccessChain 189 191 880 191 + 882: 67(fvec4) Load 881 + 883: 27(fvec3) VectorShuffle 882 882 0 1 2 + 884: 27(fvec3) Load 247(pos) + 885: 27(fvec3) FSub 883 884 + Store 745(c) 885 + 886: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 887 887 12 12 + 888: 27(fvec3) Load 715(a) + 889: 27(fvec3) Load 728(b) + 890: 27(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 888 889 + 891: 27(fvec3) Load 728(b) + 892: 27(fvec3) Load 745(c) + 893: 27(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 891 892 + 894: 27(fvec3) FAdd 890 893 + 895: 27(fvec3) Load 691(normal) + 896: 27(fvec3) FAdd 895 894 + Store 691(normal) 896 + Branch 850 + 850: Label + 897: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 898: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 899 899 12 12 + 900: 130(ptr) AccessChain 119(id) 12 + 901: 7(int) Load 900 + 902: 138(ptr) AccessChain 97(params) 137 12 + 903: 69(int) Load 902 + 904: 69(int) ISub 903 224 + 905: 7(int) Bitcast 904 + 907: 155(bool) ULessThan 901 905 + SelectionMerge 909 None + BranchConditional 907 908 909 + 908: Label + 910: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 911: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 912 912 12 12 + 913: 7(int) Load 131(index) + 914: 7(int) IAdd 913 20 + 915: 217(ptr) AccessChain 189 191 914 191 + 916: 67(fvec4) Load 915 + 917: 27(fvec3) VectorShuffle 916 916 0 1 2 + 918: 27(fvec3) Load 247(pos) + 919: 27(fvec3) FSub 917 918 + Store 715(a) 919 + 920: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 921 921 12 12 + 922: 7(int) Load 131(index) + 923: 138(ptr) AccessChain 97(params) 137 12 + 924: 69(int) Load 923 + 925: 7(int) Bitcast 924 + 926: 7(int) IAdd 922 925 + 927: 7(int) IAdd 926 20 + 928: 217(ptr) AccessChain 189 191 927 191 + 929: 67(fvec4) Load 928 + 930: 27(fvec3) VectorShuffle 929 929 0 1 2 + 931: 27(fvec3) Load 247(pos) + 932: 27(fvec3) FSub 930 931 + Store 728(b) 932 + 933: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 934 934 12 12 + 935: 7(int) Load 131(index) + 936: 138(ptr) AccessChain 97(params) 137 12 + 937: 69(int) Load 936 + 938: 7(int) Bitcast 937 + 939: 7(int) IAdd 935 938 + 940: 217(ptr) AccessChain 189 191 939 191 + 941: 67(fvec4) Load 940 + 942: 27(fvec3) VectorShuffle 941 941 0 1 2 + 943: 27(fvec3) Load 247(pos) + 944: 27(fvec3) FSub 942 943 + Store 745(c) 944 + 945: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 946 946 12 12 + 947: 27(fvec3) Load 715(a) + 948: 27(fvec3) Load 728(b) + 949: 27(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 947 948 + 950: 27(fvec3) Load 728(b) + 951: 27(fvec3) Load 745(c) + 952: 27(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 950 951 + 953: 27(fvec3) FAdd 949 952 + 954: 27(fvec3) Load 691(normal) + 955: 27(fvec3) FAdd 954 953 + Store 691(normal) 955 + Branch 909 + 909: Label + Branch 841 + 841: Label + 956: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 957: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 958 958 12 12 + 959: 7(int) Load 131(index) + 960: 27(fvec3) Load 691(normal) + 961: 27(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 960 + 962: 24(float) CompositeExtract 961 0 + 963: 24(float) CompositeExtract 961 1 + 964: 24(float) CompositeExtract 961 2 + 965: 67(fvec4) CompositeConstruct 962 963 964 225 + 966: 217(ptr) AccessChain 213 191 959 559 + Store 966 965 + Branch 687 + 687: Label Return FunctionEnd -35(springForce(vf3;vf3;f1;): 26(fvec3) Function None 30 - 32(p0): 28(ptr) FunctionParameter - 33(p1): 28(ptr) FunctionParameter - 34(restDist): 29(ptr) FunctionParameter - 38: Label - 52(dist): 28(ptr) Variable Function - 39: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 37 - 40: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 16 11 11 11 11 - 43: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 41 32(p0) 44 - 47: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 45 33(p1) 44 - 50: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 48 34(restDist) 44 - 51: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 37 35(springForce(vf3;vf3;f1;) - 56: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 53 52(dist) 44 - 57: 26(fvec3) Load 32(p0) - 58: 26(fvec3) Load 33(p1) - 59: 26(fvec3) FSub 57 58 - Store 52(dist) 59 - 60: 26(fvec3) Load 52(dist) - 61: 26(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 60 - 98: 97(ptr) AccessChain 93(params) 96 - 99: 23(float) Load 98 - 100: 26(fvec3) VectorTimesScalar 61 99 - 101: 26(fvec3) Load 52(dist) - 102: 23(float) ExtInst 2(GLSL.std.450) 66(Length) 101 - 103: 23(float) Load 34(restDist) - 104: 23(float) FSub 102 103 - 105: 26(fvec3) VectorTimesScalar 100 104 - ReturnValue 105 + Line 1 66 50 +36(springForce(vf3;vf3;f1;): 27(fvec3) Function None 31 + 33(p0): 29(ptr) FunctionParameter + 34(p1): 29(ptr) FunctionParameter + 35(restDist): 30(ptr) FunctionParameter + 39: Label + 56(dist): 29(ptr) Variable Function + 40: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 38 + 41: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 12 12 12 12 + 44: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 42 33(p0) 45 + 48: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 46 34(p1) 45 + 51: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 49 35(restDist) 45 + 52: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 38 36(springForce(vf3;vf3;f1;) + 53: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 38 + 54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 55 55 12 12 + 59: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 57 56(dist) 45 + 60: 27(fvec3) Load 33(p0) + 61: 27(fvec3) Load 34(p1) + 62: 27(fvec3) FSub 60 61 + Store 56(dist) 62 + 63: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 64 64 12 12 + 65: 27(fvec3) Load 56(dist) + 66: 27(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 65 + 102: 101(ptr) AccessChain 97(params) 100 + 103: 24(float) Load 102 + 104: 27(fvec3) VectorTimesScalar 66 103 + 105: 27(fvec3) Load 56(dist) + 106: 24(float) ExtInst 3(GLSL.std.450) 66(Length) 105 + 107: 24(float) Load 35(restDist) + 108: 24(float) FSub 106 107 + 109: 27(fvec3) VectorTimesScalar 104 108 + ReturnValue 109 FunctionEnd diff --git a/Test/baseResults/spv.debuginfo.glsl.frag.out b/Test/baseResults/spv.debuginfo.glsl.frag.out index 358a3bc7..72777c5f 100644 --- a/Test/baseResults/spv.debuginfo.glsl.frag.out +++ b/Test/baseResults/spv.debuginfo.glsl.frag.out @@ -1,944 +1,1104 @@ spv.debuginfo.glsl.frag -Validation failed // Module Version 10000 // Generated by (magic number): 8000b -// Id's are bound by 709 +// Id's are bound by 859 Capability Shader Capability ImageQuery Extension "SPV_KHR_non_semantic_info" - 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" - 2: ExtInstImport "GLSL.std.450" + 2: ExtInstImport "NonSemantic.Shader.DebugInfo.100" + 3: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 - EntryPoint Fragment 13 "main" 405 450 - ExecutionMode 13 OriginUpperLeft - 8: String "uint" - 14: String "main" - 17: String "" - 24: String "float" - 39: String "textureProj" - 45: String "P" - 49: String "layer" - 52: String "offset" - 59: String "filterPCF" - 65: String "sc" - 77: String "shadow" - 83: String "fragcolor" - 86: String "fragpos" - 89: String "int" - 94: String "global_var" - 106: String "shadowCoord" - 128: String "bool" - 142: String "dist" - 147: String "type.2d.image" - 148: String "@type.2d.image" - 152: String "type.sampled.image" - 153: String "@type.sampled.image" - 157: String "samplerShadowMap" - 194: String "texDim" - 205: String "scale" - 211: String "dx" - 223: String "dy" - 234: String "shadowFactor" - 239: String "count" - 244: String "range" - 250: String "x" - 266: String "y" - 312: String "i" - 326: String "shadowClip" - 334: String "color" - 340: String "viewMatrix" - 343: String "Light" - 349: String "lights" - 352: String "debugDisplayTarget" - 356: String "UBO" - 360: String "ubo" - 392: String "fragPos" - 402: String "samplerposition" - 407: String "inUV" - 413: String "normal" - 418: String "samplerNormal" - 425: String "albedo" - 430: String "samplerAlbedo" - 452: String "outFragColor" - 514: String "N" - 533: String "L" - 553: String "V" - 565: String "lightCosInnerAngle" - 571: String "lightCosOuterAngle" - 577: String "lightRange" - 583: String "dir" - 598: String "cosDir" - 606: String "spotEffect" - 615: String "heightAttenuation" - 623: String "NdotL" - 632: String "diff" - 639: String "R" - 648: String "NdotR" - 657: String "spec" - Name 13 "main" - Name 38 "textureProj(vf4;f1;vf2;" - Name 35 "P" - Name 36 "layer" - Name 37 "offset" - Name 58 "filterPCF(vf4;f1;" - Name 56 "sc" - Name 57 "layer" - Name 76 "shadow(vf3;vf3;" - Name 74 "fragcolor" - Name 75 "fragpos" - Name 92 "global_var" - Name 99 "shadow" - Name 104 "shadowCoord" - Name 140 "dist" - Name 155 "samplerShadowMap" - Name 192 "texDim" - Name 203 "scale" - Name 209 "dx" - Name 221 "dy" - Name 232 "shadowFactor" - Name 237 "count" - Name 242 "range" - Name 248 "x" - Name 264 "y" - Name 289 "param" - Name 291 "param" - Name 293 "param" - Name 310 "i" - Name 324 "shadowClip" - Name 332 "Light" - MemberName 332(Light) 0 "position" - MemberName 332(Light) 1 "target" - MemberName 332(Light) 2 "color" - MemberName 332(Light) 3 "viewMatrix" - Name 346 "UBO" - MemberName 346(UBO) 0 "viewPos" - MemberName 346(UBO) 1 "lights" - MemberName 346(UBO) 2 "useShadows" - MemberName 346(UBO) 3 "debugDisplayTarget" - Name 358 "ubo" - Name 371 "shadowFactor" - Name 377 "param" - Name 379 "param" - Name 390 "fragPos" - Name 400 "samplerposition" - Name 405 "inUV" - Name 411 "normal" - Name 416 "samplerNormal" - Name 423 "albedo" - Name 428 "samplerAlbedo" - Name 450 "outFragColor" - Name 455 "param" - Name 456 "param" - Name 504 "fragcolor" - Name 512 "N" - Name 519 "i" - Name 531 "L" - Name 543 "dist" - Name 551 "V" - Name 563 "lightCosInnerAngle" - Name 569 "lightCosOuterAngle" - Name 575 "lightRange" - Name 581 "dir" - Name 596 "cosDir" - Name 604 "spotEffect" - Name 613 "heightAttenuation" - Name 621 "NdotL" - Name 630 "diff" - Name 637 "R" - Name 646 "NdotR" - Name 655 "spec" - Name 699 "param" - Name 701 "param" - Decorate 155(samplerShadowMap) DescriptorSet 0 - Decorate 155(samplerShadowMap) Binding 5 - MemberDecorate 332(Light) 0 Offset 0 - MemberDecorate 332(Light) 1 Offset 16 - MemberDecorate 332(Light) 2 Offset 32 - MemberDecorate 332(Light) 3 ColMajor - MemberDecorate 332(Light) 3 Offset 48 - MemberDecorate 332(Light) 3 MatrixStride 16 - Decorate 344 ArrayStride 112 - MemberDecorate 346(UBO) 0 Offset 0 - MemberDecorate 346(UBO) 1 Offset 16 - MemberDecorate 346(UBO) 2 Offset 352 - MemberDecorate 346(UBO) 3 Offset 356 - Decorate 346(UBO) Block - Decorate 358(ubo) DescriptorSet 0 - Decorate 358(ubo) Binding 4 - Decorate 400(samplerposition) DescriptorSet 0 - Decorate 400(samplerposition) Binding 1 - Decorate 405(inUV) Location 0 - Decorate 416(samplerNormal) DescriptorSet 0 - Decorate 416(samplerNormal) Binding 2 - Decorate 428(samplerAlbedo) DescriptorSet 0 - Decorate 428(samplerAlbedo) Binding 3 - Decorate 450(outFragColor) Location 0 - 3: TypeVoid - 4: TypeFunction 3 - 6: TypeInt 32 0 - 9: 6(int) Constant 32 - 10: 6(int) Constant 6 - 11: 6(int) Constant 0 - 7: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 9 10 11 - 12: 6(int) Constant 3 - 5: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 12 3 - 16: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 0 17 - 19: 6(int) Constant 1 - 20: 6(int) Constant 4 - 21: 6(int) Constant 2 - 18: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 19 20 16 21 - 15: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 14 5 16 11 11 18 14 12 11 - 23: TypeFloat 32 - 25: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 24 9 12 11 - 26: TypeVector 23(float) 4 - 27: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 25 20 - 28: TypePointer Function 26(fvec4) - 29: TypePointer Function 23(float) - 30: TypeVector 23(float) 2 - 31: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 25 21 - 32: TypePointer Function 30(fvec2) - 33: TypeFunction 23(float) 28(ptr) 29(ptr) 32(ptr) - 34: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 12 25 27 25 31 - 40: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 39 34 16 11 11 18 39 12 11 - 44: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 45 27 16 11 11 40 20 19 - 47: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) - 48: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 49 25 16 11 11 40 20 21 - 51: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 52 31 16 11 11 40 20 12 - 54: TypeFunction 23(float) 28(ptr) 29(ptr) - 55: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 12 25 27 25 - 60: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 59 55 16 11 11 18 59 12 11 - 64: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 65 27 16 11 11 60 20 19 - 67: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 49 25 16 11 11 60 20 21 - 69: TypeVector 23(float) 3 - 70: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 25 12 - 71: TypePointer Function 69(fvec3) - 72: TypeFunction 69(fvec3) 71(ptr) 71(ptr) - 73: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 12 70 70 70 - 78: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 77 73 16 11 11 18 77 12 11 - 82: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 83 70 16 11 11 78 20 19 - 85: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 86 70 16 11 11 78 20 21 - 88: TypeInt 32 1 - 90: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 89 9 20 11 - 91: TypePointer Private 88(int) - 92(global_var): 91(ptr) Variable Private - 95: 6(int) Constant 41 - 96: 6(int) Constant 8 - 93: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 94 90 16 95 11 18 94 92(global_var) 96 - 97: 88(int) Constant 0 - 101: 6(int) Constant 61 - 100: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 77 25 16 101 11 40 20 - 103: 23(float) Constant 1065353216 - 107: 6(int) Constant 62 - 105: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 106 27 16 107 11 40 20 - 116: 23(float) Constant 1056964608 - 124: TypeBool - 127: 23(float) Constant 3212836864 - 129: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 9 21 11 - 135: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 9 21 11 - 143: 6(int) Constant 67 - 141: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 142 25 16 143 11 40 20 - 145: TypeImage 23(float) 2D array sampled format:Unknown - 149: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) - 146: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 147 11 16 143 11 18 148 149 12 - 150: TypeSampledImage 145 - 151: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 152 11 16 143 11 18 153 149 12 - 154: TypePointer UniformConstant 150 -155(samplerShadowMap): 154(ptr) Variable UniformConstant - 156: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 157 151 16 143 11 18 157 155(samplerShadowMap) 96 - 171: 23(float) Constant 0 - 172: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 9 21 11 - 179: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 9 21 11 - 184: 23(float) Constant 1048576000 - 189: TypeVector 88(int) 2 - 190: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 90 21 - 191: TypePointer Function 189(ivec2) - 195: 6(int) Constant 78 - 193: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 194 190 16 195 11 60 20 - 199: TypeVector 88(int) 3 - 200: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 90 12 - 206: 6(int) Constant 79 - 204: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 205 25 16 206 11 60 20 - 208: 23(float) Constant 1069547520 - 212: 6(int) Constant 80 - 210: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 211 25 16 212 11 60 20 - 216: TypePointer Function 88(int) - 224: 6(int) Constant 81 - 222: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 223 25 16 224 11 60 20 - 235: 6(int) Constant 83 - 233: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 234 25 16 235 11 60 20 - 240: 6(int) Constant 84 - 238: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 239 90 16 240 11 60 20 - 245: 6(int) Constant 85 - 243: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 244 90 16 245 11 60 20 - 247: 88(int) Constant 1 - 251: 6(int) Constant 87 - 249: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 250 90 16 251 11 60 20 - 262: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 9 21 11 - 267: 6(int) Constant 89 - 265: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 266 90 16 267 11 60 20 - 278: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 9 21 11 - 313: 6(int) Constant 100 - 311: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 312 90 16 313 11 78 20 - 321: 88(int) Constant 3 - 322: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 9 21 11 - 327: 6(int) Constant 102 - 325: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 326 27 16 327 11 78 20 - 329: TypeMatrix 26(fvec4) 4 - 331: 124(bool) ConstantTrue - 330: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 27 20 331 - 332(Light): TypeStruct 26(fvec4) 26(fvec4) 26(fvec4) 329 - 335: 6(int) Constant 47 - 336: 6(int) Constant 7 - 333: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 334 27 16 335 336 11 11 12 - 337: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 334 27 16 335 336 11 11 12 - 338: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 334 27 16 335 336 11 11 12 - 341: 6(int) Constant 48 - 339: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 340 330 16 341 336 11 11 12 - 342: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 343 19 16 327 11 18 343 11 12 333 337 338 339 - 344: TypeArray 332(Light) 12 - 345: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 342 12 - 346(UBO): TypeStruct 26(fvec4) 344 88(int) 88(int) - 347: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 334 27 16 335 336 11 11 12 - 350: 6(int) Constant 54 - 348: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 349 345 16 350 96 11 11 12 - 353: 6(int) Constant 56 - 351: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 352 90 16 353 10 11 11 12 - 354: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 352 90 16 353 10 11 11 12 - 355: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 356 19 16 327 11 18 356 11 12 347 348 351 354 - 357: TypePointer Uniform 346(UBO) - 358(ubo): 357(ptr) Variable Uniform - 359: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 360 355 16 327 11 18 360 358(ubo) 96 - 362: TypePointer Uniform 329 - 373: 6(int) Constant 106 - 372: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 234 25 16 373 11 78 20 - 393: 6(int) Constant 119 - 391: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 392 70 16 393 11 15 20 - 395: TypeImage 23(float) 2D sampled format:Unknown - 396: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 147 11 16 393 11 18 148 149 12 - 397: TypeSampledImage 395 - 398: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 152 11 16 393 11 18 153 149 12 - 399: TypePointer UniformConstant 397 -400(samplerposition): 399(ptr) Variable UniformConstant - 401: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 402 398 16 393 11 18 402 400(samplerposition) 96 - 404: TypePointer Input 30(fvec2) - 405(inUV): 404(ptr) Variable Input - 406: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 407 31 16 393 11 18 407 405(inUV) 96 - 414: 6(int) Constant 120 - 412: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 413 70 16 414 11 15 20 -416(samplerNormal): 399(ptr) Variable UniformConstant - 417: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 418 398 16 414 11 18 418 416(samplerNormal) 96 - 426: 6(int) Constant 121 - 424: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 425 27 16 426 11 15 20 -428(samplerAlbedo): 399(ptr) Variable UniformConstant - 429: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 430 398 16 426 11 18 430 428(samplerAlbedo) 96 - 434: TypePointer Uniform 88(int) - 437: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 9 21 11 - 449: TypePointer Output 26(fvec4) -450(outFragColor): 449(ptr) Variable Output - 453: 6(int) Constant 127 - 451: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 452 27 16 453 11 18 452 450(outFragColor) 96 - 454: 69(fvec3) ConstantComposite 103 103 103 - 459: TypePointer Output 23(float) - 506: 6(int) Constant 147 - 505: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 83 70 16 506 11 15 20 - 510: 23(float) Constant 1036831949 - 515: 6(int) Constant 149 - 513: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 514 70 16 515 11 15 20 - 521: 6(int) Constant 151 - 520: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 312 90 16 521 11 15 20 - 529: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 9 21 11 - 534: 6(int) Constant 154 - 532: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 533 70 16 534 11 15 20 - 537: TypePointer Uniform 26(fvec4) - 545: 6(int) Constant 156 - 544: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 142 25 16 545 11 15 20 - 554: 6(int) Constant 160 - 552: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 553 70 16 554 11 15 20 - 566: 6(int) Constant 163 - 564: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 565 25 16 566 11 15 20 - 568: 23(float) Constant 1064781546 - 572: 6(int) Constant 164 - 570: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 571 25 16 572 11 15 20 - 574: 23(float) Constant 1063781322 - 578: 6(int) Constant 165 - 576: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 577 25 16 578 11 15 20 - 580: 23(float) Constant 1120403456 - 584: 6(int) Constant 168 - 582: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 583 70 16 584 11 15 20 - 599: 6(int) Constant 171 - 597: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 598 25 16 599 11 15 20 - 607: 6(int) Constant 172 - 605: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 606 25 16 607 11 15 20 - 616: 6(int) Constant 173 - 614: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 615 25 16 616 11 15 20 - 624: 6(int) Constant 176 - 622: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 623 25 16 624 11 15 20 - 633: 6(int) Constant 177 - 631: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 632 70 16 633 11 15 20 - 640: 6(int) Constant 180 - 638: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 639 70 16 640 11 15 20 - 649: 6(int) Constant 181 - 647: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 648 25 16 649 11 15 20 - 658: 6(int) Constant 182 - 656: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 657 70 16 658 11 15 20 - 661: 23(float) Constant 1098907648 - 666: 23(float) Constant 1075838976 - 681: 88(int) Constant 2 - 695: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 9 21 11 - 13(main): 3 Function None 4 - 22: Label - 390(fragPos): 71(ptr) Variable Function - 411(normal): 71(ptr) Variable Function - 423(albedo): 28(ptr) Variable Function - 455(param): 71(ptr) Variable Function - 456(param): 71(ptr) Variable Function - 504(fragcolor): 71(ptr) Variable Function - 512(N): 71(ptr) Variable Function - 519(i): 216(ptr) Variable Function - 531(L): 71(ptr) Variable Function - 543(dist): 29(ptr) Variable Function - 551(V): 71(ptr) Variable Function -563(lightCosInnerAngle): 29(ptr) Variable Function -569(lightCosOuterAngle): 29(ptr) Variable Function - 575(lightRange): 29(ptr) Variable Function - 581(dir): 71(ptr) Variable Function - 596(cosDir): 29(ptr) Variable Function - 604(spotEffect): 29(ptr) Variable Function -613(heightAttenuation): 29(ptr) Variable Function - 621(NdotL): 29(ptr) Variable Function - 630(diff): 71(ptr) Variable Function - 637(R): 71(ptr) Variable Function - 646(NdotR): 29(ptr) Variable Function - 655(spec): 71(ptr) Variable Function - 699(param): 71(ptr) Variable Function - 701(param): 71(ptr) Variable Function - Store 92(global_var) 97 - 389: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 15 13(main) - 394: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 391 390(fragPos) 47 - 403: 397 Load 400(samplerposition) - 408: 30(fvec2) Load 405(inUV) - 409: 26(fvec4) ImageSampleImplicitLod 403 408 - 410: 69(fvec3) VectorShuffle 409 409 0 1 2 - Store 390(fragPos) 410 - 415: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 412 411(normal) 47 - 419: 397 Load 416(samplerNormal) - 420: 30(fvec2) Load 405(inUV) - 421: 26(fvec4) ImageSampleImplicitLod 419 420 - 422: 69(fvec3) VectorShuffle 421 421 0 1 2 - Store 411(normal) 422 - 427: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 424 423(albedo) 47 - 431: 397 Load 428(samplerAlbedo) - 432: 30(fvec2) Load 405(inUV) - 433: 26(fvec4) ImageSampleImplicitLod 431 432 - Store 423(albedo) 433 - 435: 434(ptr) AccessChain 358(ubo) 321 - 436: 88(int) Load 435 - 438: 124(bool) SGreaterThan 436 97 - SelectionMerge 440 None - BranchConditional 438 439 440 - 439: Label - 441: 434(ptr) AccessChain 358(ubo) 321 - 442: 88(int) Load 441 - SelectionMerge 448 None - Switch 442 448 - case 1: 443 - case 2: 444 - case 3: 445 - case 4: 446 - case 5: 447 - 443: Label - Store 455(param) 454 - 457: 69(fvec3) Load 390(fragPos) - Store 456(param) 457 - 458: 69(fvec3) FunctionCall 76(shadow(vf3;vf3;) 455(param) 456(param) - 460: 459(ptr) AccessChain 450(outFragColor) 11 - 461: 23(float) CompositeExtract 458 0 - Store 460 461 - 462: 459(ptr) AccessChain 450(outFragColor) 19 - 463: 23(float) CompositeExtract 458 1 - Store 462 463 - 464: 459(ptr) AccessChain 450(outFragColor) 21 - 465: 23(float) CompositeExtract 458 2 - Store 464 465 - Branch 448 - 444: Label - 467: 69(fvec3) Load 390(fragPos) - 468: 459(ptr) AccessChain 450(outFragColor) 11 - 469: 23(float) CompositeExtract 467 0 - Store 468 469 - 470: 459(ptr) AccessChain 450(outFragColor) 19 - 471: 23(float) CompositeExtract 467 1 - Store 470 471 - 472: 459(ptr) AccessChain 450(outFragColor) 21 - 473: 23(float) CompositeExtract 467 2 - Store 472 473 - Branch 448 - 445: Label - 475: 69(fvec3) Load 411(normal) - 476: 459(ptr) AccessChain 450(outFragColor) 11 - 477: 23(float) CompositeExtract 475 0 - Store 476 477 - 478: 459(ptr) AccessChain 450(outFragColor) 19 - 479: 23(float) CompositeExtract 475 1 - Store 478 479 - 480: 459(ptr) AccessChain 450(outFragColor) 21 - 481: 23(float) CompositeExtract 475 2 - Store 480 481 - Branch 448 - 446: Label - 483: 26(fvec4) Load 423(albedo) - 484: 69(fvec3) VectorShuffle 483 483 0 1 2 - 485: 459(ptr) AccessChain 450(outFragColor) 11 - 486: 23(float) CompositeExtract 484 0 - Store 485 486 - 487: 459(ptr) AccessChain 450(outFragColor) 19 - 488: 23(float) CompositeExtract 484 1 - Store 487 488 - 489: 459(ptr) AccessChain 450(outFragColor) 21 - 490: 23(float) CompositeExtract 484 2 - Store 489 490 - Branch 448 - 447: Label - 492: 26(fvec4) Load 423(albedo) - 493: 69(fvec3) VectorShuffle 492 492 3 3 3 - 494: 459(ptr) AccessChain 450(outFragColor) 11 - 495: 23(float) CompositeExtract 493 0 - Store 494 495 - 496: 459(ptr) AccessChain 450(outFragColor) 19 - 497: 23(float) CompositeExtract 493 1 - Store 496 497 - 498: 459(ptr) AccessChain 450(outFragColor) 21 - 499: 23(float) CompositeExtract 493 2 - Store 498 499 - Branch 448 - 448: Label - 502: 459(ptr) AccessChain 450(outFragColor) 12 - Store 502 103 + EntryPoint Fragment 14 "main" 478 533 + ExecutionMode 14 OriginUpperLeft + 1: String "" + 9: String "uint" + 15: String "main" + 18: String "// OpModuleProcessed auto-map-locations +// OpModuleProcessed auto-map-bindings +// OpModuleProcessed client vulkan100 +// OpModuleProcessed target-env vulkan1.0 +// OpModuleProcessed keep-uncalled +// OpModuleProcessed entry-point main +#line 1 +" + 25: String "float" + 40: String "textureProj" + 46: String "P" + 50: String "layer" + 53: String "offset" + 60: String "filterPCF" + 66: String "sc" + 78: String "shadow" + 84: String "fragcolor" + 87: String "fragpos" + 93: String "int" + 98: String "global_var" + 113: String "shadowCoord" + 138: String "bool" + 157: String "dist" + 161: String "type.2d.image" + 162: String "@type.2d.image" + 166: String "type.sampled.image" + 167: String "@type.sampled.image" + 171: String "samplerShadowMap" + 221: String "texDim" + 233: String "scale" + 240: String "dx" + 253: String "dy" + 265: String "shadowFactor" + 271: String "count" + 277: String "range" + 284: String "x" + 306: String "y" + 370: String "i" + 390: String "shadowClip" + 397: String "color" + 403: String "viewMatrix" + 406: String "Light" + 412: String "lights" + 415: String "debugDisplayTarget" + 419: String "UBO" + 423: String "ubo" + 466: String "fragPos" + 475: String "samplerposition" + 480: String "inUV" + 488: String "normal" + 492: String "samplerNormal" + 501: String "albedo" + 505: String "samplerAlbedo" + 535: String "outFragColor" + 627: String "N" + 653: String "L" + 677: String "V" + 692: String "lightCosInnerAngle" + 699: String "lightCosOuterAngle" + 706: String "lightRange" + 713: String "dir" + 729: String "cosDir" + 738: String "spotEffect" + 748: String "heightAttenuation" + 757: String "NdotL" + 767: String "diff" + 775: String "R" + 785: String "NdotR" + 795: String "spec" + Name 14 "main" + Name 39 "textureProj(vf4;f1;vf2;" + Name 36 "P" + Name 37 "layer" + Name 38 "offset" + Name 59 "filterPCF(vf4;f1;" + Name 57 "sc" + Name 58 "layer" + Name 77 "shadow(vf3;vf3;" + Name 75 "fragcolor" + Name 76 "fragpos" + Name 96 "global_var" + Name 105 "shadow" + Name 111 "shadowCoord" + Name 155 "dist" + Name 169 "samplerShadowMap" + Name 219 "texDim" + Name 231 "scale" + Name 238 "dx" + Name 251 "dy" + Name 263 "shadowFactor" + Name 269 "count" + Name 275 "range" + Name 282 "x" + Name 304 "y" + Name 335 "param" + Name 337 "param" + Name 339 "param" + Name 368 "i" + Name 388 "shadowClip" + Name 395 "Light" + MemberName 395(Light) 0 "position" + MemberName 395(Light) 1 "target" + MemberName 395(Light) 2 "color" + MemberName 395(Light) 3 "viewMatrix" + Name 409 "UBO" + MemberName 409(UBO) 0 "viewPos" + MemberName 409(UBO) 1 "lights" + MemberName 409(UBO) 2 "useShadows" + MemberName 409(UBO) 3 "debugDisplayTarget" + Name 421 "ubo" + Name 436 "shadowFactor" + Name 441 "param" + Name 443 "param" + Name 464 "fragPos" + Name 473 "samplerposition" + Name 478 "inUV" + Name 486 "normal" + Name 490 "samplerNormal" + Name 499 "albedo" + Name 503 "samplerAlbedo" + Name 533 "outFragColor" + Name 537 "param" + Name 538 "param" + Name 616 "fragcolor" + Name 625 "N" + Name 633 "i" + Name 651 "L" + Name 664 "dist" + Name 675 "V" + Name 690 "lightCosInnerAngle" + Name 697 "lightCosOuterAngle" + Name 704 "lightRange" + Name 711 "dir" + Name 727 "cosDir" + Name 736 "spotEffect" + Name 746 "heightAttenuation" + Name 755 "NdotL" + Name 765 "diff" + Name 773 "R" + Name 783 "NdotR" + Name 793 "spec" + Name 846 "param" + Name 848 "param" + Decorate 169(samplerShadowMap) DescriptorSet 0 + Decorate 169(samplerShadowMap) Binding 5 + MemberDecorate 395(Light) 0 Offset 0 + MemberDecorate 395(Light) 1 Offset 16 + MemberDecorate 395(Light) 2 Offset 32 + MemberDecorate 395(Light) 3 ColMajor + MemberDecorate 395(Light) 3 Offset 48 + MemberDecorate 395(Light) 3 MatrixStride 16 + Decorate 407 ArrayStride 112 + MemberDecorate 409(UBO) 0 Offset 0 + MemberDecorate 409(UBO) 1 Offset 16 + MemberDecorate 409(UBO) 2 Offset 352 + MemberDecorate 409(UBO) 3 Offset 356 + Decorate 409(UBO) Block + Decorate 421(ubo) DescriptorSet 0 + Decorate 421(ubo) Binding 4 + Decorate 473(samplerposition) DescriptorSet 0 + Decorate 473(samplerposition) Binding 1 + Decorate 478(inUV) Location 0 + Decorate 490(samplerNormal) DescriptorSet 0 + Decorate 490(samplerNormal) Binding 2 + Decorate 503(samplerAlbedo) DescriptorSet 0 + Decorate 503(samplerAlbedo) Binding 3 + Decorate 533(outFragColor) Location 0 + 4: TypeVoid + 5: TypeFunction 4 + 7: TypeInt 32 0 + 10: 7(int) Constant 32 + 11: 7(int) Constant 6 + 12: 7(int) Constant 0 + 8: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 10 11 12 + 13: 7(int) Constant 3 + 6: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 + 17: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 18 + 20: 7(int) Constant 1 + 21: 7(int) Constant 4 + 22: 7(int) Constant 2 + 19: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 20 21 17 22 + 16: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 15 6 17 12 12 19 15 13 12 + 24: TypeFloat 32 + 26: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 25 10 13 12 + 27: TypeVector 24(float) 4 + 28: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 21 + 29: TypePointer Function 27(fvec4) + 30: TypePointer Function 24(float) + 31: TypeVector 24(float) 2 + 32: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 22 + 33: TypePointer Function 31(fvec2) + 34: TypeFunction 24(float) 29(ptr) 30(ptr) 33(ptr) + 35: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 26 28 26 32 + 41: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 40 35 17 12 12 19 40 13 12 + 45: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 46 28 17 12 12 41 21 20 + 48: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) + 49: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 50 26 17 12 12 41 21 22 + 52: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 53 32 17 12 12 41 21 13 + 55: TypeFunction 24(float) 29(ptr) 30(ptr) + 56: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 26 28 26 + 61: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 60 56 17 12 12 19 60 13 12 + 65: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 66 28 17 12 12 61 21 20 + 68: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 50 26 17 12 12 61 21 22 + 70: TypeVector 24(float) 3 + 71: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 13 + 72: TypePointer Function 70(fvec3) + 73: TypeFunction 70(fvec3) 72(ptr) 72(ptr) + 74: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 71 71 71 + 79: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 78 74 17 12 12 19 78 13 12 + 83: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 84 71 17 12 12 79 21 20 + 86: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 87 71 17 12 12 79 21 22 + 91: 7(int) Constant 41 + 92: TypeInt 32 1 + 94: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 93 10 21 12 + 95: TypePointer Private 92(int) + 96(global_var): 95(ptr) Variable Private + 99: 7(int) Constant 8 + 97: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 98 94 17 91 12 19 98 96(global_var) 99 + 100: 92(int) Constant 0 + 104: 7(int) Constant 61 + 106: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 78 26 17 104 12 41 21 + 108: 24(float) Constant 1065353216 + 110: 7(int) Constant 62 + 112: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 113 28 17 110 12 41 21 + 121: 7(int) Constant 63 + 124: 24(float) Constant 1056964608 + 133: 7(int) Constant 65 + 134: TypeBool + 137: 24(float) Constant 3212836864 + 139: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 138 10 22 12 + 147: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 138 10 22 12 + 154: 7(int) Constant 67 + 156: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 157 26 17 154 12 41 21 + 159: TypeImage 24(float) 2D array sampled format:Unknown + 163: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) + 160: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 161 12 17 154 12 19 162 163 13 + 164: TypeSampledImage 159 + 165: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 166 12 17 154 12 19 167 163 13 + 168: TypePointer UniformConstant 164 +169(samplerShadowMap): 168(ptr) Variable UniformConstant + 170: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 171 165 17 154 12 19 171 169(samplerShadowMap) 99 + 184: 7(int) Constant 68 + 187: 24(float) Constant 0 + 188: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 138 10 22 12 + 197: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 138 10 22 12 + 204: 7(int) Constant 70 + 205: 24(float) Constant 1048576000 + 208: 7(int) Constant 73 + 215: 7(int) Constant 78 + 216: TypeVector 92(int) 2 + 217: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 94 22 + 218: TypePointer Function 216(ivec2) + 220: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 221 217 17 215 12 61 21 + 225: TypeVector 92(int) 3 + 226: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 94 13 + 230: 7(int) Constant 79 + 232: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 233 26 17 230 12 61 21 + 235: 24(float) Constant 1069547520 + 237: 7(int) Constant 80 + 239: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 240 26 17 237 12 61 21 + 244: TypePointer Function 92(int) + 250: 7(int) Constant 81 + 252: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 253 26 17 250 12 61 21 + 262: 7(int) Constant 83 + 264: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 265 26 17 262 12 61 21 + 268: 7(int) Constant 84 + 270: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 271 94 17 268 12 61 21 + 274: 7(int) Constant 85 + 276: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 277 94 17 274 12 61 21 + 279: 92(int) Constant 1 + 281: 7(int) Constant 87 + 283: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 284 94 17 281 12 61 21 + 299: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 138 10 22 12 + 303: 7(int) Constant 89 + 305: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 306 94 17 303 12 61 21 + 321: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 138 10 22 12 + 325: 7(int) Constant 91 + 344: 7(int) Constant 92 + 357: 7(int) Constant 96 + 367: 7(int) Constant 100 + 369: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 370 94 17 367 12 79 21 + 382: 92(int) Constant 3 + 383: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 138 10 22 12 + 387: 7(int) Constant 102 + 389: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 390 28 17 387 12 79 21 + 392: TypeMatrix 27(fvec4) 4 + 394: 134(bool) ConstantTrue + 393: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 28 21 394 + 395(Light): TypeStruct 27(fvec4) 27(fvec4) 27(fvec4) 392 + 398: 7(int) Constant 47 + 399: 7(int) Constant 7 + 396: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 397 28 17 398 399 12 12 13 + 400: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 397 28 17 398 399 12 12 13 + 401: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 397 28 17 398 399 12 12 13 + 404: 7(int) Constant 48 + 402: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 403 393 17 404 399 12 12 13 + 405: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 406 20 17 387 12 19 406 12 13 396 400 401 402 + 407: TypeArray 395(Light) 13 + 408: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 405 13 + 409(UBO): TypeStruct 27(fvec4) 407 92(int) 92(int) + 410: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 397 28 17 398 399 12 12 13 + 413: 7(int) Constant 54 + 411: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 412 408 17 413 99 12 12 13 + 416: 7(int) Constant 56 + 414: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 415 94 17 416 11 12 12 13 + 417: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 415 94 17 416 11 12 12 13 + 418: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 419 20 17 387 12 19 419 12 13 410 411 414 417 + 420: TypePointer Uniform 409(UBO) + 421(ubo): 420(ptr) Variable Uniform + 422: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 423 418 17 387 12 19 423 421(ubo) 99 + 425: TypePointer Uniform 392 + 435: 7(int) Constant 106 + 437: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 265 26 17 435 12 79 21 + 446: 7(int) Constant 111 + 456: 7(int) Constant 113 + 463: 7(int) Constant 119 + 465: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 466 71 17 463 12 16 21 + 468: TypeImage 24(float) 2D sampled format:Unknown + 469: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 161 12 17 463 12 19 162 163 13 + 470: TypeSampledImage 468 + 471: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 166 12 17 463 12 19 167 163 13 + 472: TypePointer UniformConstant 470 +473(samplerposition): 472(ptr) Variable UniformConstant + 474: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 475 471 17 463 12 19 475 473(samplerposition) 99 + 477: TypePointer Input 31(fvec2) + 478(inUV): 477(ptr) Variable Input + 479: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 480 32 17 463 12 19 480 478(inUV) 99 + 485: 7(int) Constant 120 + 487: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 488 71 17 485 12 16 21 +490(samplerNormal): 472(ptr) Variable UniformConstant + 491: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 492 471 17 485 12 19 492 490(samplerNormal) 99 + 498: 7(int) Constant 121 + 500: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 501 28 17 498 12 16 21 +503(samplerAlbedo): 472(ptr) Variable UniformConstant + 504: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 505 471 17 498 12 19 505 503(samplerAlbedo) 99 + 510: 7(int) Constant 124 + 511: TypePointer Uniform 92(int) + 514: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 138 10 22 12 + 520: 7(int) Constant 125 + 531: 7(int) Constant 127 + 532: TypePointer Output 27(fvec4) +533(outFragColor): 532(ptr) Variable Output + 534: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 535 28 17 531 12 19 535 533(outFragColor) 99 + 536: 70(fvec3) ConstantComposite 108 108 108 + 541: TypePointer Output 24(float) + 549: 7(int) Constant 128 + 553: 7(int) Constant 130 + 562: 7(int) Constant 131 + 566: 7(int) Constant 133 + 575: 7(int) Constant 134 + 579: 7(int) Constant 136 + 589: 7(int) Constant 137 + 593: 7(int) Constant 139 + 603: 7(int) Constant 140 + 608: 7(int) Constant 142 + 611: 7(int) Constant 143 + 615: 7(int) Constant 147 + 617: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 84 71 17 615 12 16 21 + 621: 24(float) Constant 1036831949 + 624: 7(int) Constant 149 + 626: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 627 71 17 624 12 16 21 + 632: 7(int) Constant 151 + 634: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 370 94 17 632 12 16 21 + 646: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 138 10 22 12 + 650: 7(int) Constant 154 + 652: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 653 71 17 650 12 16 21 + 656: TypePointer Uniform 27(fvec4) + 663: 7(int) Constant 156 + 665: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 157 26 17 663 12 16 21 + 670: 7(int) Constant 157 + 674: 7(int) Constant 160 + 676: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 677 71 17 674 12 16 21 + 685: 7(int) Constant 161 + 689: 7(int) Constant 163 + 691: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 692 26 17 689 12 16 21 + 694: 24(float) Constant 1064781546 + 696: 7(int) Constant 164 + 698: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 699 26 17 696 12 16 21 + 701: 24(float) Constant 1063781322 + 703: 7(int) Constant 165 + 705: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 706 26 17 703 12 16 21 + 708: 24(float) Constant 1120403456 + 710: 7(int) Constant 168 + 712: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 713 71 17 710 12 16 21 + 726: 7(int) Constant 171 + 728: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 729 26 17 726 12 16 21 + 735: 7(int) Constant 172 + 737: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 738 26 17 735 12 16 21 + 745: 7(int) Constant 173 + 747: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 748 26 17 745 12 16 21 + 754: 7(int) Constant 176 + 756: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 757 26 17 754 12 16 21 + 764: 7(int) Constant 177 + 766: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 767 71 17 764 12 16 21 + 772: 7(int) Constant 180 + 774: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 775 71 17 772 12 16 21 + 782: 7(int) Constant 181 + 784: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 785 26 17 782 12 16 21 + 792: 7(int) Constant 182 + 794: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 795 71 17 792 12 16 21 + 798: 24(float) Constant 1098907648 + 803: 24(float) Constant 1075838976 + 807: 7(int) Constant 184 + 820: 92(int) Constant 2 + 836: 7(int) Constant 188 + 839: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 138 10 22 12 + 845: 7(int) Constant 190 + 853: 7(int) Constant 193 + Line 1 116 11 + 14(main): 4 Function None 5 + 23: Label + 464(fragPos): 72(ptr) Variable Function + 486(normal): 72(ptr) Variable Function + 499(albedo): 29(ptr) Variable Function + 537(param): 72(ptr) Variable Function + 538(param): 72(ptr) Variable Function + 616(fragcolor): 72(ptr) Variable Function + 625(N): 72(ptr) Variable Function + 633(i): 244(ptr) Variable Function + 651(L): 72(ptr) Variable Function + 664(dist): 30(ptr) Variable Function + 675(V): 72(ptr) Variable Function +690(lightCosInnerAngle): 30(ptr) Variable Function +697(lightCosOuterAngle): 30(ptr) Variable Function + 704(lightRange): 30(ptr) Variable Function + 711(dir): 72(ptr) Variable Function + 727(cosDir): 30(ptr) Variable Function + 736(spotEffect): 30(ptr) Variable Function +746(heightAttenuation): 30(ptr) Variable Function + 755(NdotL): 30(ptr) Variable Function + 765(diff): 72(ptr) Variable Function + 773(R): 72(ptr) Variable Function + 783(NdotR): 30(ptr) Variable Function + 793(spec): 72(ptr) Variable Function + 846(param): 72(ptr) Variable Function + 848(param): 72(ptr) Variable Function + 89: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 19 + 90: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 91 91 12 12 + Store 96(global_var) 100 + 460: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 16 14(main) + 461: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 462: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 463 463 12 12 + 467: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 465 464(fragPos) 48 + 476: 470 Load 473(samplerposition) + 481: 31(fvec2) Load 478(inUV) + 482: 27(fvec4) ImageSampleImplicitLod 476 481 + 483: 70(fvec3) VectorShuffle 482 482 0 1 2 + Store 464(fragPos) 483 + 484: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 485 485 12 12 + 489: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 487 486(normal) 48 + 493: 470 Load 490(samplerNormal) + 494: 31(fvec2) Load 478(inUV) + 495: 27(fvec4) ImageSampleImplicitLod 493 494 + 496: 70(fvec3) VectorShuffle 495 495 0 1 2 + Store 486(normal) 496 + 497: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 498 498 12 12 + 502: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 500 499(albedo) 48 + 506: 470 Load 503(samplerAlbedo) + 507: 31(fvec2) Load 478(inUV) + 508: 27(fvec4) ImageSampleImplicitLod 506 507 + Store 499(albedo) 508 + 509: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 510 510 12 12 + 512: 511(ptr) AccessChain 421(ubo) 382 + 513: 92(int) Load 512 + 515: 134(bool) SGreaterThan 513 100 + SelectionMerge 517 None + BranchConditional 515 516 517 + 516: Label + 518: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 519: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 520 520 12 12 + 521: 511(ptr) AccessChain 421(ubo) 382 + 522: 92(int) Load 521 + SelectionMerge 528 None + Switch 522 528 + case 1: 523 + case 2: 524 + case 3: 525 + case 4: 526 + case 5: 527 + 523: Label + 529: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 530: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 531 531 12 12 + Store 537(param) 536 + 539: 70(fvec3) Load 464(fragPos) + Store 538(param) 539 + 540: 70(fvec3) FunctionCall 77(shadow(vf3;vf3;) 537(param) 538(param) + 542: 541(ptr) AccessChain 533(outFragColor) 12 + 543: 24(float) CompositeExtract 540 0 + Store 542 543 + 544: 541(ptr) AccessChain 533(outFragColor) 20 + 545: 24(float) CompositeExtract 540 1 + Store 544 545 + 546: 541(ptr) AccessChain 533(outFragColor) 22 + 547: 24(float) CompositeExtract 540 2 + Store 546 547 + 548: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 549 549 12 12 + Branch 528 + 524: Label + 551: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 552: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 553 553 12 12 + 554: 70(fvec3) Load 464(fragPos) + 555: 541(ptr) AccessChain 533(outFragColor) 12 + 556: 24(float) CompositeExtract 554 0 + Store 555 556 + 557: 541(ptr) AccessChain 533(outFragColor) 20 + 558: 24(float) CompositeExtract 554 1 + Store 557 558 + 559: 541(ptr) AccessChain 533(outFragColor) 22 + 560: 24(float) CompositeExtract 554 2 + Store 559 560 + 561: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 562 562 12 12 + Branch 528 + 525: Label + 564: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 565: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 566 566 12 12 + 567: 70(fvec3) Load 486(normal) + 568: 541(ptr) AccessChain 533(outFragColor) 12 + 569: 24(float) CompositeExtract 567 0 + Store 568 569 + 570: 541(ptr) AccessChain 533(outFragColor) 20 + 571: 24(float) CompositeExtract 567 1 + Store 570 571 + 572: 541(ptr) AccessChain 533(outFragColor) 22 + 573: 24(float) CompositeExtract 567 2 + Store 572 573 + 574: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 575 575 12 12 + Branch 528 + 526: Label + 577: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 578: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 579 579 12 12 + 580: 27(fvec4) Load 499(albedo) + 581: 70(fvec3) VectorShuffle 580 580 0 1 2 + 582: 541(ptr) AccessChain 533(outFragColor) 12 + 583: 24(float) CompositeExtract 581 0 + Store 582 583 + 584: 541(ptr) AccessChain 533(outFragColor) 20 + 585: 24(float) CompositeExtract 581 1 + Store 584 585 + 586: 541(ptr) AccessChain 533(outFragColor) 22 + 587: 24(float) CompositeExtract 581 2 + Store 586 587 + 588: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 589 589 12 12 + Branch 528 + 527: Label + 591: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 592: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 593 593 12 12 + 594: 27(fvec4) Load 499(albedo) + 595: 70(fvec3) VectorShuffle 594 594 3 3 3 + 596: 541(ptr) AccessChain 533(outFragColor) 12 + 597: 24(float) CompositeExtract 595 0 + Store 596 597 + 598: 541(ptr) AccessChain 533(outFragColor) 20 + 599: 24(float) CompositeExtract 595 1 + Store 598 599 + 600: 541(ptr) AccessChain 533(outFragColor) 22 + 601: 24(float) CompositeExtract 595 2 + Store 600 601 + 602: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 603 603 12 12 + Branch 528 + 528: Label + 606: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 607: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 608 608 12 12 + 609: 541(ptr) AccessChain 533(outFragColor) 13 + Store 609 108 + 610: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 611 611 12 12 Return - 440: Label - 507: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 505 504(fragcolor) 47 - 508: 26(fvec4) Load 423(albedo) - 509: 69(fvec3) VectorShuffle 508 508 0 1 2 - 511: 69(fvec3) VectorTimesScalar 509 510 - Store 504(fragcolor) 511 - 516: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 513 512(N) 47 - 517: 69(fvec3) Load 411(normal) - 518: 69(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 517 - Store 512(N) 518 - 522: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 520 519(i) 47 - Store 519(i) 97 - Branch 523 - 523: Label - LoopMerge 525 526 None - Branch 527 - 527: Label - 528: 88(int) Load 519(i) - 530: 124(bool) SLessThan 528 321 - BranchConditional 530 524 525 - 524: Label - 535: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 532 531(L) 47 - 536: 88(int) Load 519(i) - 538: 537(ptr) AccessChain 358(ubo) 247 536 97 - 539: 26(fvec4) Load 538 - 540: 69(fvec3) VectorShuffle 539 539 0 1 2 - 541: 69(fvec3) Load 390(fragPos) - 542: 69(fvec3) FSub 540 541 - Store 531(L) 542 - 546: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 544 543(dist) 47 - 547: 69(fvec3) Load 531(L) - 548: 23(float) ExtInst 2(GLSL.std.450) 66(Length) 547 - Store 543(dist) 548 - 549: 69(fvec3) Load 531(L) - 550: 69(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 549 - Store 531(L) 550 - 555: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 552 551(V) 47 - 556: 537(ptr) AccessChain 358(ubo) 97 - 557: 26(fvec4) Load 556 - 558: 69(fvec3) VectorShuffle 557 557 0 1 2 - 559: 69(fvec3) Load 390(fragPos) - 560: 69(fvec3) FSub 558 559 - Store 551(V) 560 - 561: 69(fvec3) Load 551(V) - 562: 69(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 561 - Store 551(V) 562 - 567: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 564 563(lightCosInnerAngle) 47 - Store 563(lightCosInnerAngle) 568 - 573: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 570 569(lightCosOuterAngle) 47 - Store 569(lightCosOuterAngle) 574 - 579: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 576 575(lightRange) 47 - Store 575(lightRange) 580 - 585: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 582 581(dir) 47 - 586: 88(int) Load 519(i) - 587: 537(ptr) AccessChain 358(ubo) 247 586 97 - 588: 26(fvec4) Load 587 - 589: 69(fvec3) VectorShuffle 588 588 0 1 2 - 590: 88(int) Load 519(i) - 591: 537(ptr) AccessChain 358(ubo) 247 590 247 - 592: 26(fvec4) Load 591 - 593: 69(fvec3) VectorShuffle 592 592 0 1 2 - 594: 69(fvec3) FSub 589 593 - 595: 69(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 594 - Store 581(dir) 595 - 600: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 597 596(cosDir) 47 - 601: 69(fvec3) Load 531(L) - 602: 69(fvec3) Load 581(dir) - 603: 23(float) Dot 601 602 - Store 596(cosDir) 603 - 608: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 605 604(spotEffect) 47 - 609: 23(float) Load 569(lightCosOuterAngle) - 610: 23(float) Load 563(lightCosInnerAngle) - 611: 23(float) Load 596(cosDir) - 612: 23(float) ExtInst 2(GLSL.std.450) 49(SmoothStep) 609 610 611 - Store 604(spotEffect) 612 - 617: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 614 613(heightAttenuation) 47 - 618: 23(float) Load 575(lightRange) - 619: 23(float) Load 543(dist) - 620: 23(float) ExtInst 2(GLSL.std.450) 49(SmoothStep) 618 171 619 - Store 613(heightAttenuation) 620 - 625: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 622 621(NdotL) 47 - 626: 69(fvec3) Load 512(N) - 627: 69(fvec3) Load 531(L) - 628: 23(float) Dot 626 627 - 629: 23(float) ExtInst 2(GLSL.std.450) 40(FMax) 171 628 - Store 621(NdotL) 629 - 634: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 631 630(diff) 47 - 635: 23(float) Load 621(NdotL) - 636: 69(fvec3) CompositeConstruct 635 635 635 - Store 630(diff) 636 - 641: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 638 637(R) 47 - 642: 69(fvec3) Load 531(L) - 643: 69(fvec3) FNegate 642 - 644: 69(fvec3) Load 512(N) - 645: 69(fvec3) ExtInst 2(GLSL.std.450) 71(Reflect) 643 644 - Store 637(R) 645 - 650: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 647 646(NdotR) 47 - 651: 69(fvec3) Load 637(R) - 652: 69(fvec3) Load 551(V) - 653: 23(float) Dot 651 652 - 654: 23(float) ExtInst 2(GLSL.std.450) 40(FMax) 171 653 - Store 646(NdotR) 654 - 659: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 656 655(spec) 47 - 660: 23(float) Load 646(NdotR) - 662: 23(float) ExtInst 2(GLSL.std.450) 26(Pow) 660 661 - 663: 29(ptr) AccessChain 423(albedo) 12 - 664: 23(float) Load 663 - 665: 23(float) FMul 662 664 - 667: 23(float) FMul 665 666 - 668: 69(fvec3) CompositeConstruct 667 667 667 - Store 655(spec) 668 - 669: 69(fvec3) Load 630(diff) - 670: 69(fvec3) Load 655(spec) - 671: 69(fvec3) FAdd 669 670 - 672: 23(float) Load 604(spotEffect) - 673: 69(fvec3) VectorTimesScalar 671 672 - 674: 23(float) Load 613(heightAttenuation) - 675: 69(fvec3) VectorTimesScalar 673 674 - 676: 23(float) CompositeExtract 675 0 - 677: 23(float) CompositeExtract 675 1 - 678: 23(float) CompositeExtract 675 2 - 679: 69(fvec3) CompositeConstruct 676 677 678 - 680: 88(int) Load 519(i) - 682: 537(ptr) AccessChain 358(ubo) 247 680 681 - 683: 26(fvec4) Load 682 - 684: 69(fvec3) VectorShuffle 683 683 0 1 2 - 685: 69(fvec3) FMul 679 684 - 686: 26(fvec4) Load 423(albedo) - 687: 69(fvec3) VectorShuffle 686 686 0 1 2 - 688: 69(fvec3) FMul 685 687 - 689: 69(fvec3) Load 504(fragcolor) - 690: 69(fvec3) FAdd 689 688 - Store 504(fragcolor) 690 - Branch 526 - 526: Label - 691: 88(int) Load 519(i) - 692: 88(int) IAdd 691 247 - Store 519(i) 692 - Branch 523 - 525: Label - 693: 434(ptr) AccessChain 358(ubo) 681 - 694: 88(int) Load 693 - 696: 124(bool) SGreaterThan 694 97 - SelectionMerge 698 None - BranchConditional 696 697 698 - 697: Label - 700: 69(fvec3) Load 504(fragcolor) - Store 699(param) 700 - 702: 69(fvec3) Load 390(fragPos) - Store 701(param) 702 - 703: 69(fvec3) FunctionCall 76(shadow(vf3;vf3;) 699(param) 701(param) - Store 504(fragcolor) 703 - Branch 698 - 698: Label - 704: 69(fvec3) Load 504(fragcolor) - 705: 23(float) CompositeExtract 704 0 - 706: 23(float) CompositeExtract 704 1 - 707: 23(float) CompositeExtract 704 2 - 708: 26(fvec4) CompositeConstruct 705 706 707 103 - Store 450(outFragColor) 708 + 517: Label + 613: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 614: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 615 615 12 12 + 618: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 617 616(fragcolor) 48 + 619: 27(fvec4) Load 499(albedo) + 620: 70(fvec3) VectorShuffle 619 619 0 1 2 + 622: 70(fvec3) VectorTimesScalar 620 621 + Store 616(fragcolor) 622 + 623: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 624 624 12 12 + 628: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 626 625(N) 48 + 629: 70(fvec3) Load 486(normal) + 630: 70(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 629 + Store 625(N) 630 + 631: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 632 632 12 12 + 635: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 634 633(i) 48 + Store 633(i) 100 + Branch 636 + 636: Label + 640: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 641: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 632 632 12 12 + LoopMerge 638 639 None + Branch 642 + 642: Label + 643: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 644: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 632 632 12 12 + 645: 92(int) Load 633(i) + 647: 134(bool) SLessThan 645 382 + BranchConditional 647 637 638 + 637: Label + 648: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 649: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 650 650 12 12 + 654: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 652 651(L) 48 + 655: 92(int) Load 633(i) + 657: 656(ptr) AccessChain 421(ubo) 279 655 100 + 658: 27(fvec4) Load 657 + 659: 70(fvec3) VectorShuffle 658 658 0 1 2 + 660: 70(fvec3) Load 464(fragPos) + 661: 70(fvec3) FSub 659 660 + Store 651(L) 661 + 662: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 663 663 12 12 + 666: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 665 664(dist) 48 + 667: 70(fvec3) Load 651(L) + 668: 24(float) ExtInst 3(GLSL.std.450) 66(Length) 667 + Store 664(dist) 668 + 669: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 670 670 12 12 + 671: 70(fvec3) Load 651(L) + 672: 70(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 671 + Store 651(L) 672 + 673: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 674 674 12 12 + 678: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 676 675(V) 48 + 679: 656(ptr) AccessChain 421(ubo) 100 + 680: 27(fvec4) Load 679 + 681: 70(fvec3) VectorShuffle 680 680 0 1 2 + 682: 70(fvec3) Load 464(fragPos) + 683: 70(fvec3) FSub 681 682 + Store 675(V) 683 + 684: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 685 685 12 12 + 686: 70(fvec3) Load 675(V) + 687: 70(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 686 + Store 675(V) 687 + 688: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 689 689 12 12 + 693: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 691 690(lightCosInnerAngle) 48 + Store 690(lightCosInnerAngle) 694 + 695: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 696 696 12 12 + 700: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 698 697(lightCosOuterAngle) 48 + Store 697(lightCosOuterAngle) 701 + 702: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 703 703 12 12 + 707: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 705 704(lightRange) 48 + Store 704(lightRange) 708 + 709: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 710 710 12 12 + 714: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 712 711(dir) 48 + 715: 92(int) Load 633(i) + 716: 656(ptr) AccessChain 421(ubo) 279 715 100 + 717: 27(fvec4) Load 716 + 718: 70(fvec3) VectorShuffle 717 717 0 1 2 + 719: 92(int) Load 633(i) + 720: 656(ptr) AccessChain 421(ubo) 279 719 279 + 721: 27(fvec4) Load 720 + 722: 70(fvec3) VectorShuffle 721 721 0 1 2 + 723: 70(fvec3) FSub 718 722 + 724: 70(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 723 + Store 711(dir) 724 + 725: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 726 726 12 12 + 730: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 728 727(cosDir) 48 + 731: 70(fvec3) Load 651(L) + 732: 70(fvec3) Load 711(dir) + 733: 24(float) Dot 731 732 + Store 727(cosDir) 733 + 734: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 735 735 12 12 + 739: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 737 736(spotEffect) 48 + 740: 24(float) Load 697(lightCosOuterAngle) + 741: 24(float) Load 690(lightCosInnerAngle) + 742: 24(float) Load 727(cosDir) + 743: 24(float) ExtInst 3(GLSL.std.450) 49(SmoothStep) 740 741 742 + Store 736(spotEffect) 743 + 744: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 745 745 12 12 + 749: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 747 746(heightAttenuation) 48 + 750: 24(float) Load 704(lightRange) + 751: 24(float) Load 664(dist) + 752: 24(float) ExtInst 3(GLSL.std.450) 49(SmoothStep) 750 187 751 + Store 746(heightAttenuation) 752 + 753: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 754 754 12 12 + 758: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 756 755(NdotL) 48 + 759: 70(fvec3) Load 625(N) + 760: 70(fvec3) Load 651(L) + 761: 24(float) Dot 759 760 + 762: 24(float) ExtInst 3(GLSL.std.450) 40(FMax) 187 761 + Store 755(NdotL) 762 + 763: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 764 764 12 12 + 768: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 766 765(diff) 48 + 769: 24(float) Load 755(NdotL) + 770: 70(fvec3) CompositeConstruct 769 769 769 + Store 765(diff) 770 + 771: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 772 772 12 12 + 776: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 774 773(R) 48 + 777: 70(fvec3) Load 651(L) + 778: 70(fvec3) FNegate 777 + 779: 70(fvec3) Load 625(N) + 780: 70(fvec3) ExtInst 3(GLSL.std.450) 71(Reflect) 778 779 + Store 773(R) 780 + 781: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 782 782 12 12 + 786: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 784 783(NdotR) 48 + 787: 70(fvec3) Load 773(R) + 788: 70(fvec3) Load 675(V) + 789: 24(float) Dot 787 788 + 790: 24(float) ExtInst 3(GLSL.std.450) 40(FMax) 187 789 + Store 783(NdotR) 790 + 791: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 792 792 12 12 + 796: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 794 793(spec) 48 + 797: 24(float) Load 783(NdotR) + 799: 24(float) ExtInst 3(GLSL.std.450) 26(Pow) 797 798 + 800: 30(ptr) AccessChain 499(albedo) 13 + 801: 24(float) Load 800 + 802: 24(float) FMul 799 801 + 804: 24(float) FMul 802 803 + 805: 70(fvec3) CompositeConstruct 804 804 804 + Store 793(spec) 805 + 806: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 807 807 12 12 + 808: 70(fvec3) Load 765(diff) + 809: 70(fvec3) Load 793(spec) + 810: 70(fvec3) FAdd 808 809 + 811: 24(float) Load 736(spotEffect) + 812: 70(fvec3) VectorTimesScalar 810 811 + 813: 24(float) Load 746(heightAttenuation) + 814: 70(fvec3) VectorTimesScalar 812 813 + 815: 24(float) CompositeExtract 814 0 + 816: 24(float) CompositeExtract 814 1 + 817: 24(float) CompositeExtract 814 2 + 818: 70(fvec3) CompositeConstruct 815 816 817 + 819: 92(int) Load 633(i) + 821: 656(ptr) AccessChain 421(ubo) 279 819 820 + 822: 27(fvec4) Load 821 + 823: 70(fvec3) VectorShuffle 822 822 0 1 2 + 824: 70(fvec3) FMul 818 823 + 825: 27(fvec4) Load 499(albedo) + 826: 70(fvec3) VectorShuffle 825 825 0 1 2 + 827: 70(fvec3) FMul 824 826 + 828: 70(fvec3) Load 616(fragcolor) + 829: 70(fvec3) FAdd 828 827 + Store 616(fragcolor) 829 + Branch 639 + 639: Label + 830: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 831: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 632 632 12 12 + 832: 92(int) Load 633(i) + 833: 92(int) IAdd 832 279 + Store 633(i) 833 + Branch 636 + 638: Label + 834: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 835: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 836 836 12 12 + 837: 511(ptr) AccessChain 421(ubo) 820 + 838: 92(int) Load 837 + 840: 134(bool) SGreaterThan 838 100 + SelectionMerge 842 None + BranchConditional 840 841 842 + 841: Label + 843: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 844: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 845 845 12 12 + 847: 70(fvec3) Load 616(fragcolor) + Store 846(param) 847 + 849: 70(fvec3) Load 464(fragPos) + Store 848(param) 849 + 850: 70(fvec3) FunctionCall 77(shadow(vf3;vf3;) 846(param) 848(param) + Store 616(fragcolor) 850 + Branch 842 + 842: Label + 851: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 852: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 853 853 12 12 + 854: 70(fvec3) Load 616(fragcolor) + 855: 24(float) CompositeExtract 854 0 + 856: 24(float) CompositeExtract 854 1 + 857: 24(float) CompositeExtract 854 2 + 858: 27(fvec4) CompositeConstruct 855 856 857 108 + Store 533(outFragColor) 858 Return FunctionEnd -38(textureProj(vf4;f1;vf2;): 23(float) Function None 33 - 35(P): 28(ptr) FunctionParameter - 36(layer): 29(ptr) FunctionParameter - 37(offset): 32(ptr) FunctionParameter - 41: Label - 99(shadow): 29(ptr) Variable Function -104(shadowCoord): 28(ptr) Variable Function - 140(dist): 29(ptr) Variable Function - 42: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 - 43: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 16 11 11 11 11 - 46: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 44 35(P) 47 - 50: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 48 36(layer) 47 - 53: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 51 37(offset) 47 - 98: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 40 38(textureProj(vf4;f1;vf2;) - 102: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 100 99(shadow) 47 - Store 99(shadow) 103 - 108: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 105 104(shadowCoord) 47 - 109: 26(fvec4) Load 35(P) - 110: 29(ptr) AccessChain 35(P) 12 - 111: 23(float) Load 110 - 112: 26(fvec4) CompositeConstruct 111 111 111 111 - 113: 26(fvec4) FDiv 109 112 - Store 104(shadowCoord) 113 - 114: 26(fvec4) Load 104(shadowCoord) - 115: 30(fvec2) VectorShuffle 114 114 0 1 - 117: 30(fvec2) VectorTimesScalar 115 116 - 118: 30(fvec2) CompositeConstruct 116 116 - 119: 30(fvec2) FAdd 117 118 - 120: 29(ptr) AccessChain 104(shadowCoord) 11 - 121: 23(float) CompositeExtract 119 0 - Store 120 121 - 122: 29(ptr) AccessChain 104(shadowCoord) 19 - 123: 23(float) CompositeExtract 119 1 - Store 122 123 - 125: 29(ptr) AccessChain 104(shadowCoord) 21 - 126: 23(float) Load 125 - 130: 124(bool) FOrdGreaterThan 126 127 - SelectionMerge 132 None - BranchConditional 130 131 132 - 131: Label - 133: 29(ptr) AccessChain 104(shadowCoord) 21 - 134: 23(float) Load 133 - 136: 124(bool) FOrdLessThan 134 103 - Branch 132 - 132: Label - 137: 124(bool) Phi 130 41 136 131 - SelectionMerge 139 None - BranchConditional 137 138 139 - 138: Label - 144: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 141 140(dist) 47 - 158: 150 Load 155(samplerShadowMap) - 159: 26(fvec4) Load 104(shadowCoord) - 160: 30(fvec2) VectorShuffle 159 159 0 1 - 161: 30(fvec2) Load 37(offset) - 162: 30(fvec2) FAdd 160 161 - 163: 23(float) Load 36(layer) - 164: 23(float) CompositeExtract 162 0 - 165: 23(float) CompositeExtract 162 1 - 166: 69(fvec3) CompositeConstruct 164 165 163 - 167: 26(fvec4) ImageSampleImplicitLod 158 166 - 168: 23(float) CompositeExtract 167 0 - Store 140(dist) 168 - 169: 29(ptr) AccessChain 104(shadowCoord) 12 - 170: 23(float) Load 169 - 173: 124(bool) FOrdGreaterThan 170 171 - SelectionMerge 175 None - BranchConditional 173 174 175 - 174: Label - 176: 23(float) Load 140(dist) - 177: 29(ptr) AccessChain 104(shadowCoord) 21 - 178: 23(float) Load 177 - 180: 124(bool) FOrdLessThan 176 178 - Branch 175 - 175: Label - 181: 124(bool) Phi 173 138 180 174 - SelectionMerge 183 None - BranchConditional 181 182 183 - 182: Label - Store 99(shadow) 184 - Branch 183 - 183: Label - Branch 139 - 139: Label - 185: 23(float) Load 99(shadow) - ReturnValue 185 + Line 1 59 51 +39(textureProj(vf4;f1;vf2;): 24(float) Function None 34 + 36(P): 29(ptr) FunctionParameter + 37(layer): 30(ptr) FunctionParameter + 38(offset): 33(ptr) FunctionParameter + 42: Label + 105(shadow): 30(ptr) Variable Function +111(shadowCoord): 29(ptr) Variable Function + 155(dist): 30(ptr) Variable Function + 43: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 41 + 44: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 12 12 12 12 + 47: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 45 36(P) 48 + 51: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 49 37(layer) 48 + 54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 52 38(offset) 48 + 101: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 41 39(textureProj(vf4;f1;vf2;) + 102: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 41 + 103: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 104 104 12 12 + 107: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 106 105(shadow) 48 + Store 105(shadow) 108 + 109: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 110 110 12 12 + 114: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 112 111(shadowCoord) 48 + 115: 27(fvec4) Load 36(P) + 116: 30(ptr) AccessChain 36(P) 13 + 117: 24(float) Load 116 + 118: 27(fvec4) CompositeConstruct 117 117 117 117 + 119: 27(fvec4) FDiv 115 118 + Store 111(shadowCoord) 119 + 120: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 121 121 12 12 + 122: 27(fvec4) Load 111(shadowCoord) + 123: 31(fvec2) VectorShuffle 122 122 0 1 + 125: 31(fvec2) VectorTimesScalar 123 124 + 126: 31(fvec2) CompositeConstruct 124 124 + 127: 31(fvec2) FAdd 125 126 + 128: 30(ptr) AccessChain 111(shadowCoord) 12 + 129: 24(float) CompositeExtract 127 0 + Store 128 129 + 130: 30(ptr) AccessChain 111(shadowCoord) 20 + 131: 24(float) CompositeExtract 127 1 + Store 130 131 + 132: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 133 133 12 12 + 135: 30(ptr) AccessChain 111(shadowCoord) 22 + 136: 24(float) Load 135 + 140: 134(bool) FOrdGreaterThan 136 137 + SelectionMerge 142 None + BranchConditional 140 141 142 + 141: Label + 143: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 41 + 144: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 133 133 12 12 + 145: 30(ptr) AccessChain 111(shadowCoord) 22 + 146: 24(float) Load 145 + 148: 134(bool) FOrdLessThan 146 108 + Branch 142 + 142: Label + 149: 134(bool) Phi 140 42 148 141 + SelectionMerge 151 None + BranchConditional 149 150 151 + 150: Label + 152: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 41 + 153: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 154 154 12 12 + 158: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 156 155(dist) 48 + 172: 164 Load 169(samplerShadowMap) + 173: 27(fvec4) Load 111(shadowCoord) + 174: 31(fvec2) VectorShuffle 173 173 0 1 + 175: 31(fvec2) Load 38(offset) + 176: 31(fvec2) FAdd 174 175 + 177: 24(float) Load 37(layer) + 178: 24(float) CompositeExtract 176 0 + 179: 24(float) CompositeExtract 176 1 + 180: 70(fvec3) CompositeConstruct 178 179 177 + 181: 27(fvec4) ImageSampleImplicitLod 172 180 + 182: 24(float) CompositeExtract 181 0 + Store 155(dist) 182 + 183: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 184 184 12 12 + 185: 30(ptr) AccessChain 111(shadowCoord) 13 + 186: 24(float) Load 185 + 189: 134(bool) FOrdGreaterThan 186 187 + SelectionMerge 191 None + BranchConditional 189 190 191 + 190: Label + 192: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 41 + 193: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 184 184 12 12 + 194: 24(float) Load 155(dist) + 195: 30(ptr) AccessChain 111(shadowCoord) 22 + 196: 24(float) Load 195 + 198: 134(bool) FOrdLessThan 194 196 + Branch 191 + 191: Label + 199: 134(bool) Phi 189 150 198 190 + SelectionMerge 201 None + BranchConditional 199 200 201 + 200: Label + 202: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 41 + 203: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 204 204 12 12 + Store 105(shadow) 205 + Branch 201 + 201: Label + Branch 151 + 151: Label + 206: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 41 + 207: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 208 208 12 12 + 209: 24(float) Load 105(shadow) + ReturnValue 209 FunctionEnd -58(filterPCF(vf4;f1;): 23(float) Function None 54 - 56(sc): 28(ptr) FunctionParameter - 57(layer): 29(ptr) FunctionParameter - 61: Label - 192(texDim): 191(ptr) Variable Function - 203(scale): 29(ptr) Variable Function - 209(dx): 29(ptr) Variable Function - 221(dy): 29(ptr) Variable Function -232(shadowFactor): 29(ptr) Variable Function - 237(count): 216(ptr) Variable Function - 242(range): 216(ptr) Variable Function - 248(x): 216(ptr) Variable Function - 264(y): 216(ptr) Variable Function - 289(param): 28(ptr) Variable Function - 291(param): 29(ptr) Variable Function - 293(param): 32(ptr) Variable Function - 62: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60 - 63: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 16 11 11 11 11 - 66: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 64 56(sc) 47 - 68: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 67 57(layer) 47 - 188: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 60 58(filterPCF(vf4;f1;) - 196: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 193 192(texDim) 47 - 197: 150 Load 155(samplerShadowMap) - 198: 145 Image 197 - 201: 199(ivec3) ImageQuerySizeLod 198 97 - 202: 189(ivec2) VectorShuffle 201 201 0 1 - Store 192(texDim) 202 - 207: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 204 203(scale) 47 - Store 203(scale) 208 - 213: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 210 209(dx) 47 - 214: 23(float) Load 203(scale) - 215: 23(float) FMul 214 103 - 217: 216(ptr) AccessChain 192(texDim) 11 - 218: 88(int) Load 217 - 219: 23(float) ConvertSToF 218 - 220: 23(float) FDiv 215 219 - Store 209(dx) 220 - 225: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 222 221(dy) 47 - 226: 23(float) Load 203(scale) - 227: 23(float) FMul 226 103 - 228: 216(ptr) AccessChain 192(texDim) 19 - 229: 88(int) Load 228 - 230: 23(float) ConvertSToF 229 - 231: 23(float) FDiv 227 230 - Store 221(dy) 231 - 236: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 233 232(shadowFactor) 47 - Store 232(shadowFactor) 171 - 241: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 238 237(count) 47 - Store 237(count) 97 - 246: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 243 242(range) 47 - Store 242(range) 247 - 252: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 249 248(x) 47 - 253: 88(int) Load 242(range) - 254: 88(int) SNegate 253 - Store 248(x) 254 - Branch 255 - 255: Label - LoopMerge 257 258 None - Branch 259 - 259: Label - 260: 88(int) Load 248(x) - 261: 88(int) Load 242(range) - 263: 124(bool) SLessThanEqual 260 261 - BranchConditional 263 256 257 - 256: Label - 268: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 265 264(y) 47 - 269: 88(int) Load 242(range) - 270: 88(int) SNegate 269 - Store 264(y) 270 - Branch 271 - 271: Label - LoopMerge 273 274 None - Branch 275 - 275: Label - 276: 88(int) Load 264(y) - 277: 88(int) Load 242(range) - 279: 124(bool) SLessThanEqual 276 277 - BranchConditional 279 272 273 - 272: Label - 280: 23(float) Load 209(dx) - 281: 88(int) Load 248(x) - 282: 23(float) ConvertSToF 281 - 283: 23(float) FMul 280 282 - 284: 23(float) Load 221(dy) - 285: 88(int) Load 264(y) - 286: 23(float) ConvertSToF 285 - 287: 23(float) FMul 284 286 - 288: 30(fvec2) CompositeConstruct 283 287 - 290: 26(fvec4) Load 56(sc) - Store 289(param) 290 - 292: 23(float) Load 57(layer) - Store 291(param) 292 - Store 293(param) 288 - 294: 23(float) FunctionCall 38(textureProj(vf4;f1;vf2;) 289(param) 291(param) 293(param) - 295: 23(float) Load 232(shadowFactor) - 296: 23(float) FAdd 295 294 - Store 232(shadowFactor) 296 - 297: 88(int) Load 237(count) - 298: 88(int) IAdd 297 247 - Store 237(count) 298 - Branch 274 - 274: Label - 299: 88(int) Load 264(y) - 300: 88(int) IAdd 299 247 - Store 264(y) 300 - Branch 271 - 273: Label - Branch 258 - 258: Label - 301: 88(int) Load 248(x) - 302: 88(int) IAdd 301 247 - Store 248(x) 302 - Branch 255 - 257: Label - 303: 23(float) Load 232(shadowFactor) - 304: 88(int) Load 237(count) - 305: 23(float) ConvertSToF 304 - 306: 23(float) FDiv 303 305 - ReturnValue 306 - FunctionEnd -76(shadow(vf3;vf3;): 69(fvec3) Function None 72 - 74(fragcolor): 71(ptr) FunctionParameter - 75(fragpos): 71(ptr) FunctionParameter - 79: Label - 310(i): 216(ptr) Variable Function - 324(shadowClip): 28(ptr) Variable Function -371(shadowFactor): 29(ptr) Variable Function - 377(param): 28(ptr) Variable Function - 379(param): 29(ptr) Variable Function - 80: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 78 - 81: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 16 11 11 11 11 - 84: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 82 74(fragcolor) 47 - 87: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 85 75(fragpos) 47 - 309: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 78 76(shadow(vf3;vf3;) - 314: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 311 310(i) 47 - Store 310(i) 97 - Branch 315 - 315: Label - LoopMerge 317 318 None - Branch 319 - 319: Label - 320: 88(int) Load 310(i) - 323: 124(bool) SLessThan 320 321 - BranchConditional 323 316 317 + Line 1 76 37 +59(filterPCF(vf4;f1;): 24(float) Function None 55 + 57(sc): 29(ptr) FunctionParameter + 58(layer): 30(ptr) FunctionParameter + 62: Label + 219(texDim): 218(ptr) Variable Function + 231(scale): 30(ptr) Variable Function + 238(dx): 30(ptr) Variable Function + 251(dy): 30(ptr) Variable Function +263(shadowFactor): 30(ptr) Variable Function + 269(count): 244(ptr) Variable Function + 275(range): 244(ptr) Variable Function + 282(x): 244(ptr) Variable Function + 304(y): 244(ptr) Variable Function + 335(param): 29(ptr) Variable Function + 337(param): 30(ptr) Variable Function + 339(param): 33(ptr) Variable Function + 63: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 61 + 64: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 12 12 12 12 + 67: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 65 57(sc) 48 + 69: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 68 58(layer) 48 + 212: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 61 59(filterPCF(vf4;f1;) + 213: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 61 + 214: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 215 215 12 12 + 222: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 220 219(texDim) 48 + 223: 164 Load 169(samplerShadowMap) + 224: 159 Image 223 + 227: 225(ivec3) ImageQuerySizeLod 224 100 + 228: 216(ivec2) VectorShuffle 227 227 0 1 + Store 219(texDim) 228 + 229: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 230 230 12 12 + 234: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 232 231(scale) 48 + Store 231(scale) 235 + 236: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 237 237 12 12 + 241: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 239 238(dx) 48 + 242: 24(float) Load 231(scale) + 243: 24(float) FMul 242 108 + 245: 244(ptr) AccessChain 219(texDim) 12 + 246: 92(int) Load 245 + 247: 24(float) ConvertSToF 246 + 248: 24(float) FDiv 243 247 + Store 238(dx) 248 + 249: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 250 250 12 12 + 254: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 252 251(dy) 48 + 255: 24(float) Load 231(scale) + 256: 24(float) FMul 255 108 + 257: 244(ptr) AccessChain 219(texDim) 20 + 258: 92(int) Load 257 + 259: 24(float) ConvertSToF 258 + 260: 24(float) FDiv 256 259 + Store 251(dy) 260 + 261: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 262 262 12 12 + 266: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 264 263(shadowFactor) 48 + Store 263(shadowFactor) 187 + 267: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 268 268 12 12 + 272: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 270 269(count) 48 + Store 269(count) 100 + 273: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 274 274 12 12 + 278: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 276 275(range) 48 + Store 275(range) 279 + 280: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 281 281 12 12 + 285: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 283 282(x) 48 + 286: 92(int) Load 275(range) + 287: 92(int) SNegate 286 + Store 282(x) 287 + Branch 288 + 288: Label + 292: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 61 + 293: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 281 281 12 12 + LoopMerge 290 291 None + Branch 294 + 294: Label + 295: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 61 + 296: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 281 281 12 12 + 297: 92(int) Load 282(x) + 298: 92(int) Load 275(range) + 300: 134(bool) SLessThanEqual 297 298 + BranchConditional 300 289 290 + 289: Label + 301: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 61 + 302: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 303 303 12 12 + 307: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 305 304(y) 48 + 308: 92(int) Load 275(range) + 309: 92(int) SNegate 308 + Store 304(y) 309 + Branch 310 + 310: Label + 314: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 61 + 315: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 303 303 12 12 + LoopMerge 312 313 None + Branch 316 316: Label - 328: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 325 324(shadowClip) 47 - 361: 88(int) Load 310(i) - 363: 362(ptr) AccessChain 358(ubo) 247 361 321 - 364: 329 Load 363 - 365: 69(fvec3) Load 75(fragpos) - 366: 23(float) CompositeExtract 365 0 - 367: 23(float) CompositeExtract 365 1 - 368: 23(float) CompositeExtract 365 2 - 369: 26(fvec4) CompositeConstruct 366 367 368 103 - 370: 26(fvec4) MatrixTimesVector 364 369 - Store 324(shadowClip) 370 - 374: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 372 371(shadowFactor) 47 - 375: 88(int) Load 310(i) - 376: 23(float) ConvertSToF 375 - 378: 26(fvec4) Load 324(shadowClip) - Store 377(param) 378 - Store 379(param) 376 - 380: 23(float) FunctionCall 58(filterPCF(vf4;f1;) 377(param) 379(param) - Store 371(shadowFactor) 380 - 381: 23(float) Load 371(shadowFactor) - 382: 69(fvec3) Load 74(fragcolor) - 383: 69(fvec3) VectorTimesScalar 382 381 - Store 74(fragcolor) 383 - Branch 318 - 318: Label - 384: 88(int) Load 310(i) - 385: 88(int) IAdd 384 247 - Store 310(i) 385 - Branch 315 - 317: Label - 386: 69(fvec3) Load 74(fragcolor) - ReturnValue 386 + 317: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 61 + 318: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 303 303 12 12 + 319: 92(int) Load 304(y) + 320: 92(int) Load 275(range) + 322: 134(bool) SLessThanEqual 319 320 + BranchConditional 322 311 312 + 311: Label + 323: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 61 + 324: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 325 325 12 12 + 326: 24(float) Load 238(dx) + 327: 92(int) Load 282(x) + 328: 24(float) ConvertSToF 327 + 329: 24(float) FMul 326 328 + 330: 24(float) Load 251(dy) + 331: 92(int) Load 304(y) + 332: 24(float) ConvertSToF 331 + 333: 24(float) FMul 330 332 + 334: 31(fvec2) CompositeConstruct 329 333 + 336: 27(fvec4) Load 57(sc) + Store 335(param) 336 + 338: 24(float) Load 58(layer) + Store 337(param) 338 + Store 339(param) 334 + 340: 24(float) FunctionCall 39(textureProj(vf4;f1;vf2;) 335(param) 337(param) 339(param) + 341: 24(float) Load 263(shadowFactor) + 342: 24(float) FAdd 341 340 + Store 263(shadowFactor) 342 + 343: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 344 344 12 12 + 345: 92(int) Load 269(count) + 346: 92(int) IAdd 345 279 + Store 269(count) 346 + Branch 313 + 313: Label + 347: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 61 + 348: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 303 303 12 12 + 349: 92(int) Load 304(y) + 350: 92(int) IAdd 349 279 + Store 304(y) 350 + Branch 310 + 312: Label + Branch 291 + 291: Label + 351: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 61 + 352: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 281 281 12 12 + 353: 92(int) Load 282(x) + 354: 92(int) IAdd 353 279 + Store 282(x) 354 + Branch 288 + 290: Label + 355: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 61 + 356: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 357 357 12 12 + 358: 24(float) Load 263(shadowFactor) + 359: 92(int) Load 269(count) + 360: 24(float) ConvertSToF 359 + 361: 24(float) FDiv 358 360 + ReturnValue 361 + FunctionEnd + Line 1 99 41 +77(shadow(vf3;vf3;): 70(fvec3) Function None 73 + 75(fragcolor): 72(ptr) FunctionParameter + 76(fragpos): 72(ptr) FunctionParameter + 80: Label + 368(i): 244(ptr) Variable Function + 388(shadowClip): 29(ptr) Variable Function +436(shadowFactor): 30(ptr) Variable Function + 441(param): 29(ptr) Variable Function + 443(param): 30(ptr) Variable Function + 81: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 79 + 82: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 12 12 12 12 + 85: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 83 75(fragcolor) 48 + 88: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 86 76(fragpos) 48 + 364: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 79 77(shadow(vf3;vf3;) + 365: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 79 + 366: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 367 367 12 12 + 371: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 369 368(i) 48 + Store 368(i) 100 + Branch 372 + 372: Label + 376: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 79 + 377: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 367 367 12 12 + LoopMerge 374 375 None + Branch 378 + 378: Label + 379: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 79 + 380: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 367 367 12 12 + 381: 92(int) Load 368(i) + 384: 134(bool) SLessThan 381 382 + BranchConditional 384 373 374 + 373: Label + 385: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 79 + 386: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 387 387 12 12 + 391: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 389 388(shadowClip) 48 + 424: 92(int) Load 368(i) + 426: 425(ptr) AccessChain 421(ubo) 279 424 382 + 427: 392 Load 426 + 428: 70(fvec3) Load 76(fragpos) + 429: 24(float) CompositeExtract 428 0 + 430: 24(float) CompositeExtract 428 1 + 431: 24(float) CompositeExtract 428 2 + 432: 27(fvec4) CompositeConstruct 429 430 431 108 + 433: 27(fvec4) MatrixTimesVector 427 432 + Store 388(shadowClip) 433 + 434: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 435 435 12 12 + 438: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 437 436(shadowFactor) 48 + 439: 92(int) Load 368(i) + 440: 24(float) ConvertSToF 439 + 442: 27(fvec4) Load 388(shadowClip) + Store 441(param) 442 + Store 443(param) 440 + 444: 24(float) FunctionCall 59(filterPCF(vf4;f1;) 441(param) 443(param) + Store 436(shadowFactor) 444 + 445: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 446 446 12 12 + 447: 24(float) Load 436(shadowFactor) + 448: 70(fvec3) Load 75(fragcolor) + 449: 70(fvec3) VectorTimesScalar 448 447 + Store 75(fragcolor) 449 + Branch 375 + 375: Label + 450: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 79 + 451: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 367 367 12 12 + 452: 92(int) Load 368(i) + 453: 92(int) IAdd 452 279 + Store 368(i) 453 + Branch 372 + 374: Label + 454: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 79 + 455: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 456 456 12 12 + 457: 70(fvec3) Load 75(fragcolor) + ReturnValue 457 FunctionEnd diff --git a/Test/baseResults/spv.debuginfo.glsl.geom.out b/Test/baseResults/spv.debuginfo.glsl.geom.out index e3ffd38e..58edd368 100644 --- a/Test/baseResults/spv.debuginfo.glsl.geom.out +++ b/Test/baseResults/spv.debuginfo.glsl.geom.out @@ -1,332 +1,364 @@ spv.debuginfo.glsl.geom -Validation failed // Module Version 10000 // Generated by (magic number): 8000b -// Id's are bound by 231 +// Id's are bound by 256 Capability Geometry Capability MultiViewport Extension "SPV_KHR_non_semantic_info" - 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" - 2: ExtInstImport "GLSL.std.450" + 2: ExtInstImport "NonSemantic.Shader.DebugInfo.100" + 3: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 - EntryPoint Geometry 13 "main" 52 85 104 112 116 146 181 189 206 216 221 225 - ExecutionMode 13 Triangles - ExecutionMode 13 Invocations 2 - ExecutionMode 13 OutputTriangleStrip - ExecutionMode 13 OutputVertices 3 - 8: String "uint" - 14: String "main" - 17: String "" - 25: String "int" - 30: String "i" - 43: String "bool" - 47: String "float" - 54: String "outNormal" - 68: String "projection" - 72: String "modelview" - 75: String "lightPos" - 78: String "UBO" - 82: String "ubo" - 87: String "gl_InvocationID" - 106: String "inNormal" - 114: String "outColor" - 118: String "inColor" - 125: String "pos" - 132: String "gl_Position" - 135: String "gl_PointSize" - 138: String "gl_CullDistance" - 142: String "gl_PerVertex" - 148: String "gl_in" - 155: String "worldPos" - 166: String "lPos" - 183: String "outLightVec" - 191: String "outViewVec" - 218: String "gl_ViewportIndex" - 223: String "gl_PrimitiveID" - 227: String "gl_PrimitiveIDIn" + EntryPoint Geometry 14 "main" 62 94 113 123 126 157 196 205 222 234 240 243 + ExecutionMode 14 Triangles + ExecutionMode 14 Invocations 2 + ExecutionMode 14 OutputTriangleStrip + ExecutionMode 14 OutputVertices 3 + 1: String "" + 9: String "uint" + 15: String "main" + 18: String "// OpModuleProcessed auto-map-locations +// OpModuleProcessed auto-map-bindings +// OpModuleProcessed client vulkan100 +// OpModuleProcessed target-env vulkan1.0 +// OpModuleProcessed keep-uncalled +// OpModuleProcessed entry-point main +#line 1 +" + 29: String "int" + 34: String "i" + 50: String "bool" + 57: String "float" + 64: String "outNormal" + 77: String "projection" + 81: String "modelview" + 84: String "lightPos" + 87: String "UBO" + 91: String "ubo" + 96: String "gl_InvocationID" + 115: String "inNormal" + 125: String "outColor" + 128: String "inColor" + 137: String "pos" + 143: String "gl_Position" + 146: String "gl_PointSize" + 149: String "gl_CullDistance" + 153: String "gl_PerVertex" + 159: String "gl_in" + 168: String "worldPos" + 180: String "lPos" + 198: String "outLightVec" + 207: String "outViewVec" + 236: String "gl_ViewportIndex" + 242: String "gl_PrimitiveID" + 245: String "gl_PrimitiveIDIn" SourceExtension "GL_ARB_viewport_array" - Name 13 "main" - Name 28 "i" - Name 52 "outNormal" - Name 66 "UBO" - MemberName 66(UBO) 0 "projection" - MemberName 66(UBO) 1 "modelview" - MemberName 66(UBO) 2 "lightPos" - Name 80 "ubo" - Name 85 "gl_InvocationID" - Name 104 "inNormal" - Name 112 "outColor" - Name 116 "inColor" - Name 123 "pos" - Name 130 "gl_PerVertex" - MemberName 130(gl_PerVertex) 0 "gl_Position" - MemberName 130(gl_PerVertex) 1 "gl_PointSize" - MemberName 130(gl_PerVertex) 2 "gl_ClipDistance" - MemberName 130(gl_PerVertex) 3 "gl_CullDistance" - Name 146 "gl_in" - Name 153 "worldPos" - Name 164 "lPos" - Name 181 "outLightVec" - Name 189 "outViewVec" - Name 196 "gl_PerVertex" - MemberName 196(gl_PerVertex) 0 "gl_Position" - MemberName 196(gl_PerVertex) 1 "gl_PointSize" - MemberName 196(gl_PerVertex) 2 "gl_ClipDistance" - MemberName 196(gl_PerVertex) 3 "gl_CullDistance" - Name 206 "" - Name 216 "gl_ViewportIndex" - Name 221 "gl_PrimitiveID" - Name 225 "gl_PrimitiveIDIn" - Decorate 52(outNormal) Location 0 - Decorate 62 ArrayStride 64 - Decorate 64 ArrayStride 64 - MemberDecorate 66(UBO) 0 ColMajor - MemberDecorate 66(UBO) 0 Offset 0 - MemberDecorate 66(UBO) 0 MatrixStride 16 - MemberDecorate 66(UBO) 1 ColMajor - MemberDecorate 66(UBO) 1 Offset 128 - MemberDecorate 66(UBO) 1 MatrixStride 16 - MemberDecorate 66(UBO) 2 Offset 256 - Decorate 66(UBO) Block - Decorate 80(ubo) DescriptorSet 0 - Decorate 80(ubo) Binding 0 - Decorate 85(gl_InvocationID) BuiltIn InvocationId - Decorate 104(inNormal) Location 0 - Decorate 112(outColor) Location 1 - Decorate 116(inColor) Location 1 - MemberDecorate 130(gl_PerVertex) 0 BuiltIn Position - MemberDecorate 130(gl_PerVertex) 1 BuiltIn PointSize - MemberDecorate 130(gl_PerVertex) 2 BuiltIn ClipDistance - MemberDecorate 130(gl_PerVertex) 3 BuiltIn CullDistance - Decorate 130(gl_PerVertex) Block - Decorate 181(outLightVec) Location 3 - Decorate 189(outViewVec) Location 2 - MemberDecorate 196(gl_PerVertex) 0 BuiltIn Position - MemberDecorate 196(gl_PerVertex) 1 BuiltIn PointSize - MemberDecorate 196(gl_PerVertex) 2 BuiltIn ClipDistance - MemberDecorate 196(gl_PerVertex) 3 BuiltIn CullDistance - Decorate 196(gl_PerVertex) Block - Decorate 216(gl_ViewportIndex) BuiltIn ViewportIndex - Decorate 221(gl_PrimitiveID) BuiltIn PrimitiveId - Decorate 225(gl_PrimitiveIDIn) BuiltIn PrimitiveId - 3: TypeVoid - 4: TypeFunction 3 - 6: TypeInt 32 0 - 9: 6(int) Constant 32 - 10: 6(int) Constant 6 - 11: 6(int) Constant 0 - 7: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 9 10 11 - 12: 6(int) Constant 3 - 5: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 12 3 - 16: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 0 17 - 19: 6(int) Constant 1 - 20: 6(int) Constant 4 - 21: 6(int) Constant 2 - 18: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 19 20 16 21 - 15: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 14 5 16 11 11 18 14 12 11 - 24: TypeInt 32 1 - 26: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 25 9 20 11 - 27: TypePointer Function 24(int) - 31: 6(int) Constant 49 - 29: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 30 26 16 31 11 15 20 - 33: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) - 34: 24(int) Constant 0 - 41: 24(int) Constant 3 - 42: TypeBool - 44: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 43 9 21 11 - 46: TypeFloat 32 - 48: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 9 12 11 - 49: TypeVector 46(float) 3 - 50: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 48 12 - 51: TypePointer Output 49(fvec3) - 52(outNormal): 51(ptr) Variable Output - 55: 6(int) Constant 51 - 56: 6(int) Constant 8 - 53: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 54 50 16 55 11 18 54 52(outNormal) 56 - 57: TypeVector 46(float) 4 - 58: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 48 20 - 59: TypeMatrix 57(fvec4) 4 - 61: 42(bool) ConstantTrue - 60: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 58 20 61 - 62: TypeArray 59 21 - 63: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 60 21 - 64: TypeArray 59 21 - 65: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 60 21 - 66(UBO): TypeStruct 62 64 57(fvec4) - 69: 6(int) Constant 34 - 70: 6(int) Constant 7 - 67: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 68 63 16 69 70 11 11 12 - 73: 6(int) Constant 35 - 71: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 72 65 16 73 70 11 11 12 - 76: 6(int) Constant 36 - 74: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 75 58 16 76 70 11 11 12 - 77: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 78 19 16 55 11 18 78 11 12 67 71 74 - 79: TypePointer Uniform 66(UBO) - 80(ubo): 79(ptr) Variable Uniform - 81: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 82 77 16 55 11 18 82 80(ubo) 56 - 83: 24(int) Constant 1 - 84: TypePointer Input 24(int) -85(gl_InvocationID): 84(ptr) Variable Input - 86: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 87 26 16 55 11 18 87 85(gl_InvocationID) 56 - 89: TypePointer Uniform 59 - 92: TypeMatrix 49(fvec3) 3 - 93: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 50 12 61 - 101: TypeArray 49(fvec3) 12 - 102: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 50 12 - 103: TypePointer Input 101 - 104(inNormal): 103(ptr) Variable Input - 105: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 106 102 16 55 11 18 106 104(inNormal) 56 - 108: TypePointer Input 49(fvec3) - 112(outColor): 51(ptr) Variable Output - 115: 6(int) Constant 52 - 113: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 114 50 16 115 11 18 114 112(outColor) 56 - 116(inColor): 103(ptr) Variable Input - 117: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 118 102 16 115 11 18 118 116(inColor) 56 - 122: TypePointer Function 57(fvec4) - 126: 6(int) Constant 54 - 124: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 125 58 16 126 11 15 20 - 128: TypeArray 46(float) 19 - 129: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 48 19 -130(gl_PerVertex): TypeStruct 57(fvec4) 46(float) 128 128 - 133: 6(int) Constant 23 - 131: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 132 58 16 21 133 11 11 12 - 136: 6(int) Constant 41 - 134: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 135 48 16 21 136 11 11 12 - 139: 6(int) Constant 84 - 137: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 138 129 16 21 139 11 11 12 - 140: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 138 129 16 21 139 11 11 12 - 141: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 142 19 16 126 11 18 142 11 12 131 134 137 140 - 143: TypeArray 130(gl_PerVertex) 12 - 144: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 141 12 - 145: TypePointer Input 143 - 146(gl_in): 145(ptr) Variable Input - 147: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 148 144 16 126 11 18 148 146(gl_in) 56 - 150: TypePointer Input 57(fvec4) - 156: 6(int) Constant 55 - 154: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 155 58 16 156 11 15 20 - 163: TypePointer Function 49(fvec3) - 167: 6(int) Constant 57 - 165: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 166 50 16 167 11 15 20 - 172: 24(int) Constant 2 - 173: TypePointer Uniform 57(fvec4) -181(outLightVec): 51(ptr) Variable Output - 184: 6(int) Constant 58 - 182: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 183 50 16 184 11 18 183 181(outLightVec) 56 - 189(outViewVec): 51(ptr) Variable Output - 192: 6(int) Constant 59 - 190: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 191 50 16 192 11 18 191 189(outViewVec) 56 -196(gl_PerVertex): TypeStruct 57(fvec4) 46(float) 128 128 - 198: 6(int) Constant 215 - 197: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 132 58 16 21 198 11 11 12 - 200: 6(int) Constant 233 - 199: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 135 48 16 21 200 11 11 12 - 201: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 138 129 16 12 70 11 11 12 - 202: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 138 129 16 12 70 11 11 12 - 204: 6(int) Constant 61 - 203: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 142 19 16 204 11 18 142 11 12 197 199 201 202 - 205: TypePointer Output 196(gl_PerVertex) - 206: 205(ptr) Variable Output - 207: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 17 203 16 204 11 18 17 206 56 - 213: TypePointer Output 57(fvec4) - 215: TypePointer Output 24(int) -216(gl_ViewportIndex): 215(ptr) Variable Output - 219: 6(int) Constant 64 - 217: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 218 26 16 219 11 18 218 216(gl_ViewportIndex) 56 -221(gl_PrimitiveID): 215(ptr) Variable Output - 224: 6(int) Constant 65 - 222: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 223 26 16 224 11 18 223 221(gl_PrimitiveID) 56 -225(gl_PrimitiveIDIn): 84(ptr) Variable Input - 226: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 227 26 16 224 11 18 227 225(gl_PrimitiveIDIn) 56 - 13(main): 3 Function None 4 - 22: Label - 28(i): 27(ptr) Variable Function - 123(pos): 122(ptr) Variable Function - 153(worldPos): 122(ptr) Variable Function - 164(lPos): 163(ptr) Variable Function - 23: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 15 13(main) - 32: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 29 28(i) 33 - Store 28(i) 34 - Branch 35 - 35: Label - LoopMerge 37 38 None - Branch 39 - 39: Label - 40: 24(int) Load 28(i) - 45: 42(bool) SLessThan 40 41 - BranchConditional 45 36 37 - 36: Label - 88: 24(int) Load 85(gl_InvocationID) - 90: 89(ptr) AccessChain 80(ubo) 83 88 - 91: 59 Load 90 - 94: 57(fvec4) CompositeExtract 91 0 - 95: 49(fvec3) VectorShuffle 94 94 0 1 2 - 96: 57(fvec4) CompositeExtract 91 1 - 97: 49(fvec3) VectorShuffle 96 96 0 1 2 - 98: 57(fvec4) CompositeExtract 91 2 - 99: 49(fvec3) VectorShuffle 98 98 0 1 2 - 100: 92 CompositeConstruct 95 97 99 - 107: 24(int) Load 28(i) - 109: 108(ptr) AccessChain 104(inNormal) 107 - 110: 49(fvec3) Load 109 - 111: 49(fvec3) MatrixTimesVector 100 110 - Store 52(outNormal) 111 - 119: 24(int) Load 28(i) - 120: 108(ptr) AccessChain 116(inColor) 119 - 121: 49(fvec3) Load 120 - Store 112(outColor) 121 - 127: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 124 123(pos) 33 - 149: 24(int) Load 28(i) - 151: 150(ptr) AccessChain 146(gl_in) 149 34 - 152: 57(fvec4) Load 151 - Store 123(pos) 152 - 157: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 154 153(worldPos) 33 - 158: 24(int) Load 85(gl_InvocationID) - 159: 89(ptr) AccessChain 80(ubo) 83 158 - 160: 59 Load 159 - 161: 57(fvec4) Load 123(pos) - 162: 57(fvec4) MatrixTimesVector 160 161 - Store 153(worldPos) 162 - 168: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 165 164(lPos) 33 - 169: 24(int) Load 85(gl_InvocationID) - 170: 89(ptr) AccessChain 80(ubo) 83 169 - 171: 59 Load 170 - 174: 173(ptr) AccessChain 80(ubo) 172 - 175: 57(fvec4) Load 174 - 176: 57(fvec4) MatrixTimesVector 171 175 - 177: 46(float) CompositeExtract 176 0 - 178: 46(float) CompositeExtract 176 1 - 179: 46(float) CompositeExtract 176 2 - 180: 49(fvec3) CompositeConstruct 177 178 179 - Store 164(lPos) 180 - 185: 49(fvec3) Load 164(lPos) - 186: 57(fvec4) Load 153(worldPos) - 187: 49(fvec3) VectorShuffle 186 186 0 1 2 - 188: 49(fvec3) FSub 185 187 - Store 181(outLightVec) 188 - 193: 57(fvec4) Load 153(worldPos) - 194: 49(fvec3) VectorShuffle 193 193 0 1 2 - 195: 49(fvec3) FNegate 194 - Store 189(outViewVec) 195 - 208: 24(int) Load 85(gl_InvocationID) - 209: 89(ptr) AccessChain 80(ubo) 34 208 - 210: 59 Load 209 - 211: 57(fvec4) Load 153(worldPos) - 212: 57(fvec4) MatrixTimesVector 210 211 - 214: 213(ptr) AccessChain 206 34 - Store 214 212 - 220: 24(int) Load 85(gl_InvocationID) - Store 216(gl_ViewportIndex) 220 - 228: 24(int) Load 225(gl_PrimitiveIDIn) - Store 221(gl_PrimitiveID) 228 + Name 14 "main" + Name 32 "i" + Name 62 "outNormal" + Name 75 "UBO" + MemberName 75(UBO) 0 "projection" + MemberName 75(UBO) 1 "modelview" + MemberName 75(UBO) 2 "lightPos" + Name 89 "ubo" + Name 94 "gl_InvocationID" + Name 113 "inNormal" + Name 123 "outColor" + Name 126 "inColor" + Name 135 "pos" + Name 141 "gl_PerVertex" + MemberName 141(gl_PerVertex) 0 "gl_Position" + MemberName 141(gl_PerVertex) 1 "gl_PointSize" + MemberName 141(gl_PerVertex) 2 "gl_ClipDistance" + MemberName 141(gl_PerVertex) 3 "gl_CullDistance" + Name 157 "gl_in" + Name 166 "worldPos" + Name 178 "lPos" + Name 196 "outLightVec" + Name 205 "outViewVec" + Name 213 "gl_PerVertex" + MemberName 213(gl_PerVertex) 0 "gl_Position" + MemberName 213(gl_PerVertex) 1 "gl_PointSize" + MemberName 213(gl_PerVertex) 2 "gl_ClipDistance" + MemberName 213(gl_PerVertex) 3 "gl_CullDistance" + Name 222 "" + Name 234 "gl_ViewportIndex" + Name 240 "gl_PrimitiveID" + Name 243 "gl_PrimitiveIDIn" + Decorate 62(outNormal) Location 0 + Decorate 71 ArrayStride 64 + Decorate 73 ArrayStride 64 + MemberDecorate 75(UBO) 0 ColMajor + MemberDecorate 75(UBO) 0 Offset 0 + MemberDecorate 75(UBO) 0 MatrixStride 16 + MemberDecorate 75(UBO) 1 ColMajor + MemberDecorate 75(UBO) 1 Offset 128 + MemberDecorate 75(UBO) 1 MatrixStride 16 + MemberDecorate 75(UBO) 2 Offset 256 + Decorate 75(UBO) Block + Decorate 89(ubo) DescriptorSet 0 + Decorate 89(ubo) Binding 0 + Decorate 94(gl_InvocationID) BuiltIn InvocationId + Decorate 113(inNormal) Location 0 + Decorate 123(outColor) Location 1 + Decorate 126(inColor) Location 1 + MemberDecorate 141(gl_PerVertex) 0 BuiltIn Position + MemberDecorate 141(gl_PerVertex) 1 BuiltIn PointSize + MemberDecorate 141(gl_PerVertex) 2 BuiltIn ClipDistance + MemberDecorate 141(gl_PerVertex) 3 BuiltIn CullDistance + Decorate 141(gl_PerVertex) Block + Decorate 196(outLightVec) Location 3 + Decorate 205(outViewVec) Location 2 + MemberDecorate 213(gl_PerVertex) 0 BuiltIn Position + MemberDecorate 213(gl_PerVertex) 1 BuiltIn PointSize + MemberDecorate 213(gl_PerVertex) 2 BuiltIn ClipDistance + MemberDecorate 213(gl_PerVertex) 3 BuiltIn CullDistance + Decorate 213(gl_PerVertex) Block + Decorate 234(gl_ViewportIndex) BuiltIn ViewportIndex + Decorate 240(gl_PrimitiveID) BuiltIn PrimitiveId + Decorate 243(gl_PrimitiveIDIn) BuiltIn PrimitiveId + 4: TypeVoid + 5: TypeFunction 4 + 7: TypeInt 32 0 + 10: 7(int) Constant 32 + 11: 7(int) Constant 6 + 12: 7(int) Constant 0 + 8: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 10 11 12 + 13: 7(int) Constant 3 + 6: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 + 17: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 18 + 20: 7(int) Constant 1 + 21: 7(int) Constant 4 + 22: 7(int) Constant 2 + 19: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 20 21 17 22 + 16: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 15 6 17 12 12 19 15 13 12 + 27: 7(int) Constant 49 + 28: TypeInt 32 1 + 30: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 29 10 21 12 + 31: TypePointer Function 28(int) + 33: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 34 30 17 27 12 16 21 + 36: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) + 37: 28(int) Constant 0 + 48: 28(int) Constant 3 + 49: TypeBool + 51: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 50 10 22 12 + 55: 7(int) Constant 51 + 56: TypeFloat 32 + 58: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 57 10 13 12 + 59: TypeVector 56(float) 3 + 60: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 58 13 + 61: TypePointer Output 59(fvec3) + 62(outNormal): 61(ptr) Variable Output + 65: 7(int) Constant 8 + 63: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 64 60 17 55 12 19 64 62(outNormal) 65 + 66: TypeVector 56(float) 4 + 67: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 58 21 + 68: TypeMatrix 66(fvec4) 4 + 70: 49(bool) ConstantTrue + 69: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 67 21 70 + 71: TypeArray 68 22 + 72: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 69 22 + 73: TypeArray 68 22 + 74: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 69 22 + 75(UBO): TypeStruct 71 73 66(fvec4) + 78: 7(int) Constant 34 + 79: 7(int) Constant 7 + 76: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 77 72 17 78 79 12 12 13 + 82: 7(int) Constant 35 + 80: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 81 74 17 82 79 12 12 13 + 85: 7(int) Constant 36 + 83: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 84 67 17 85 79 12 12 13 + 86: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 87 20 17 55 12 19 87 12 13 76 80 83 + 88: TypePointer Uniform 75(UBO) + 89(ubo): 88(ptr) Variable Uniform + 90: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 91 86 17 55 12 19 91 89(ubo) 65 + 92: 28(int) Constant 1 + 93: TypePointer Input 28(int) +94(gl_InvocationID): 93(ptr) Variable Input + 95: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 96 30 17 55 12 19 96 94(gl_InvocationID) 65 + 98: TypePointer Uniform 68 + 101: TypeMatrix 59(fvec3) 3 + 102: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 60 13 70 + 110: TypeArray 59(fvec3) 13 + 111: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 60 13 + 112: TypePointer Input 110 + 113(inNormal): 112(ptr) Variable Input + 114: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 115 111 17 55 12 19 115 113(inNormal) 65 + 117: TypePointer Input 59(fvec3) + 122: 7(int) Constant 52 + 123(outColor): 61(ptr) Variable Output + 124: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 125 60 17 122 12 19 125 123(outColor) 65 + 126(inColor): 112(ptr) Variable Input + 127: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 128 111 17 122 12 19 128 126(inColor) 65 + 133: 7(int) Constant 54 + 134: TypePointer Function 66(fvec4) + 136: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 137 67 17 133 12 16 21 + 139: TypeArray 56(float) 20 + 140: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 58 20 +141(gl_PerVertex): TypeStruct 66(fvec4) 56(float) 139 139 + 144: 7(int) Constant 23 + 142: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 143 67 17 22 144 12 12 13 + 147: 7(int) Constant 41 + 145: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 146 58 17 22 147 12 12 13 + 150: 7(int) Constant 84 + 148: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 149 140 17 22 150 12 12 13 + 151: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 149 140 17 22 150 12 12 13 + 152: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 153 20 17 133 12 19 153 12 13 142 145 148 151 + 154: TypeArray 141(gl_PerVertex) 13 + 155: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 152 13 + 156: TypePointer Input 154 + 157(gl_in): 156(ptr) Variable Input + 158: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 159 155 17 133 12 19 159 157(gl_in) 65 + 161: TypePointer Input 66(fvec4) + 165: 7(int) Constant 55 + 167: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 168 67 17 165 12 16 21 + 176: 7(int) Constant 57 + 177: TypePointer Function 59(fvec3) + 179: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 180 60 17 176 12 16 21 + 185: 28(int) Constant 2 + 186: TypePointer Uniform 66(fvec4) + 195: 7(int) Constant 58 +196(outLightVec): 61(ptr) Variable Output + 197: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 198 60 17 195 12 19 198 196(outLightVec) 65 + 204: 7(int) Constant 59 + 205(outViewVec): 61(ptr) Variable Output + 206: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 207 60 17 204 12 19 207 205(outViewVec) 65 + 212: 7(int) Constant 61 +213(gl_PerVertex): TypeStruct 66(fvec4) 56(float) 139 139 + 215: 7(int) Constant 215 + 214: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 143 67 17 22 215 12 12 13 + 217: 7(int) Constant 233 + 216: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 146 58 17 22 217 12 12 13 + 218: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 149 140 17 13 79 12 12 13 + 219: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 149 140 17 13 79 12 12 13 + 220: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 153 20 17 212 12 19 153 12 13 214 216 218 219 + 221: TypePointer Output 213(gl_PerVertex) + 222: 221(ptr) Variable Output + 223: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 220 17 212 12 19 1 222 65 + 229: TypePointer Output 66(fvec4) + 232: 7(int) Constant 64 + 233: TypePointer Output 28(int) +234(gl_ViewportIndex): 233(ptr) Variable Output + 235: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 236 30 17 232 12 19 236 234(gl_ViewportIndex) 65 + 239: 7(int) Constant 65 +240(gl_PrimitiveID): 233(ptr) Variable Output + 241: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 242 30 17 239 12 19 242 240(gl_PrimitiveID) 65 +243(gl_PrimitiveIDIn): 93(ptr) Variable Input + 244: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 245 30 17 239 12 19 245 243(gl_PrimitiveIDIn) 65 + 248: 7(int) Constant 66 + 255: 7(int) Constant 68 + Line 1 47 15 + 14(main): 4 Function None 5 + 23: Label + 32(i): 31(ptr) Variable Function + 135(pos): 134(ptr) Variable Function + 166(worldPos): 134(ptr) Variable Function + 178(lPos): 177(ptr) Variable Function + 24: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 16 14(main) + 25: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 26: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 27 27 12 12 + 35: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 33 32(i) 36 + Store 32(i) 37 + Branch 38 + 38: Label + 42: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 43: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 27 27 12 12 + LoopMerge 40 41 None + Branch 44 + 44: Label + 45: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 46: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 27 27 12 12 + 47: 28(int) Load 32(i) + 52: 49(bool) SLessThan 47 48 + BranchConditional 52 39 40 + 39: Label + 53: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 55 55 12 12 + 97: 28(int) Load 94(gl_InvocationID) + 99: 98(ptr) AccessChain 89(ubo) 92 97 + 100: 68 Load 99 + 103: 66(fvec4) CompositeExtract 100 0 + 104: 59(fvec3) VectorShuffle 103 103 0 1 2 + 105: 66(fvec4) CompositeExtract 100 1 + 106: 59(fvec3) VectorShuffle 105 105 0 1 2 + 107: 66(fvec4) CompositeExtract 100 2 + 108: 59(fvec3) VectorShuffle 107 107 0 1 2 + 109: 101 CompositeConstruct 104 106 108 + 116: 28(int) Load 32(i) + 118: 117(ptr) AccessChain 113(inNormal) 116 + 119: 59(fvec3) Load 118 + 120: 59(fvec3) MatrixTimesVector 109 119 + Store 62(outNormal) 120 + 121: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 122 122 12 12 + 129: 28(int) Load 32(i) + 130: 117(ptr) AccessChain 126(inColor) 129 + 131: 59(fvec3) Load 130 + Store 123(outColor) 131 + 132: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 133 133 12 12 + 138: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 136 135(pos) 36 + 160: 28(int) Load 32(i) + 162: 161(ptr) AccessChain 157(gl_in) 160 37 + 163: 66(fvec4) Load 162 + Store 135(pos) 163 + 164: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 165 165 12 12 + 169: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 167 166(worldPos) 36 + 170: 28(int) Load 94(gl_InvocationID) + 171: 98(ptr) AccessChain 89(ubo) 92 170 + 172: 68 Load 171 + 173: 66(fvec4) Load 135(pos) + 174: 66(fvec4) MatrixTimesVector 172 173 + Store 166(worldPos) 174 + 175: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 176 176 12 12 + 181: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 179 178(lPos) 36 + 182: 28(int) Load 94(gl_InvocationID) + 183: 98(ptr) AccessChain 89(ubo) 92 182 + 184: 68 Load 183 + 187: 186(ptr) AccessChain 89(ubo) 185 + 188: 66(fvec4) Load 187 + 189: 66(fvec4) MatrixTimesVector 184 188 + 190: 56(float) CompositeExtract 189 0 + 191: 56(float) CompositeExtract 189 1 + 192: 56(float) CompositeExtract 189 2 + 193: 59(fvec3) CompositeConstruct 190 191 192 + Store 178(lPos) 193 + 194: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 195 195 12 12 + 199: 59(fvec3) Load 178(lPos) + 200: 66(fvec4) Load 166(worldPos) + 201: 59(fvec3) VectorShuffle 200 200 0 1 2 + 202: 59(fvec3) FSub 199 201 + Store 196(outLightVec) 202 + 203: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 204 204 12 12 + 208: 66(fvec4) Load 166(worldPos) + 209: 59(fvec3) VectorShuffle 208 208 0 1 2 + 210: 59(fvec3) FNegate 209 + Store 205(outViewVec) 210 + 211: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 212 212 12 12 + 224: 28(int) Load 94(gl_InvocationID) + 225: 98(ptr) AccessChain 89(ubo) 37 224 + 226: 68 Load 225 + 227: 66(fvec4) Load 166(worldPos) + 228: 66(fvec4) MatrixTimesVector 226 227 + 230: 229(ptr) AccessChain 222 37 + Store 230 228 + 231: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 232 232 12 12 + 237: 28(int) Load 94(gl_InvocationID) + Store 234(gl_ViewportIndex) 237 + 238: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 239 239 12 12 + 246: 28(int) Load 243(gl_PrimitiveIDIn) + Store 240(gl_PrimitiveID) 246 + 247: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 248 248 12 12 EmitVertex + Branch 41 + 41: Label + 249: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 250: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 27 27 12 12 + 251: 28(int) Load 32(i) + 252: 28(int) IAdd 251 92 + Store 32(i) 252 Branch 38 - 38: Label - 229: 24(int) Load 28(i) - 230: 24(int) IAdd 229 83 - Store 28(i) 230 - Branch 35 - 37: Label + 40: Label + 253: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 254: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 255 255 12 12 EndPrimitive Return FunctionEnd diff --git a/Test/baseResults/spv.debuginfo.glsl.tesc.out b/Test/baseResults/spv.debuginfo.glsl.tesc.out index c0cddfdc..f3e7d20e 100644 --- a/Test/baseResults/spv.debuginfo.glsl.tesc.out +++ b/Test/baseResults/spv.debuginfo.glsl.tesc.out @@ -1,619 +1,713 @@ spv.debuginfo.glsl.tesc -Validation failed // Module Version 10000 // Generated by (magic number): 8000b -// Id's are bound by 457 +// Id's are bound by 542 Capability Tessellation Extension "SPV_KHR_non_semantic_info" - 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" - 2: ExtInstImport "GLSL.std.450" + 2: ExtInstImport "NonSemantic.Shader.DebugInfo.100" + 3: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 - EntryPoint TessellationControl 13 "main" 230 234 259 325 335 415 427 435 447 - ExecutionMode 13 OutputVertices 4 - 8: String "uint" - 14: String "main" - 17: String "" - 24: String "float" - 34: String "screenSpaceTessFactor" - 40: String "p0" - 44: String "p1" - 47: String "bool" - 52: String "frustumCheck" - 58: String "midPoint" - 69: String "radius" - 79: String "v0" - 91: String "modelview" - 96: String "lightPos" - 99: String "frustumPlanes" - 101: String "tessellatedEdgeSize" - 106: String "viewportDim" - 110: String "UBO" - 114: String "ubo" - 116: String "int" - 126: String "clip0" - 146: String "clip1" - 209: String "pos" - 216: String "gl_Position" - 219: String "gl_PointSize" - 222: String "gl_CullDistance" - 226: String "gl_PerVertex" - 232: String "gl_in" - 236: String "gl_InvocationID" - 243: String "type.2d.image" - 245: String "@type.2d.image" - 249: String "type.sampled.image" - 250: String "@type.sampled.image" - 254: String "samplerHeight" - 261: String "inUV" - 278: String "i" - 327: String "gl_TessLevelInner" - 337: String "gl_TessLevelOuter" - 417: String "gl_out" - 429: String "outNormal" - 437: String "inNormal" - 449: String "outUV" - Name 13 "main" - Name 33 "screenSpaceTessFactor(vf4;vf4;" - Name 31 "p0" - Name 32 "p1" - Name 51 "frustumCheck(" - Name 56 "midPoint" - Name 67 "radius" - Name 77 "v0" - Name 89 "UBO" - MemberName 89(UBO) 0 "projection" - MemberName 89(UBO) 1 "modelview" - MemberName 89(UBO) 2 "lightPos" - MemberName 89(UBO) 3 "frustumPlanes" - MemberName 89(UBO) 4 "displacementFactor" - MemberName 89(UBO) 5 "tessellationFactor" - MemberName 89(UBO) 6 "viewportDim" - MemberName 89(UBO) 7 "tessellatedEdgeSize" - Name 112 "ubo" - Name 124 "clip0" - Name 144 "clip1" - Name 207 "pos" - Name 214 "gl_PerVertex" - MemberName 214(gl_PerVertex) 0 "gl_Position" - MemberName 214(gl_PerVertex) 1 "gl_PointSize" - MemberName 214(gl_PerVertex) 2 "gl_ClipDistance" - MemberName 214(gl_PerVertex) 3 "gl_CullDistance" - Name 230 "gl_in" - Name 234 "gl_InvocationID" - Name 252 "samplerHeight" - Name 259 "inUV" - Name 276 "i" - Name 325 "gl_TessLevelInner" - Name 335 "gl_TessLevelOuter" - Name 351 "param" - Name 354 "param" - Name 359 "param" - Name 362 "param" - Name 367 "param" - Name 370 "param" - Name 375 "param" - Name 378 "param" - Name 402 "gl_PerVertex" - MemberName 402(gl_PerVertex) 0 "gl_Position" - MemberName 402(gl_PerVertex) 1 "gl_PointSize" - MemberName 402(gl_PerVertex) 2 "gl_ClipDistance" - MemberName 402(gl_PerVertex) 3 "gl_CullDistance" - Name 415 "gl_out" - Name 427 "outNormal" - Name 435 "inNormal" - Name 447 "outUV" - Decorate 85 ArrayStride 16 - MemberDecorate 89(UBO) 0 ColMajor - MemberDecorate 89(UBO) 0 Offset 0 - MemberDecorate 89(UBO) 0 MatrixStride 16 - MemberDecorate 89(UBO) 1 ColMajor - MemberDecorate 89(UBO) 1 Offset 64 - MemberDecorate 89(UBO) 1 MatrixStride 16 - MemberDecorate 89(UBO) 2 Offset 128 - MemberDecorate 89(UBO) 3 Offset 144 - MemberDecorate 89(UBO) 4 Offset 240 - MemberDecorate 89(UBO) 5 Offset 244 - MemberDecorate 89(UBO) 6 Offset 248 - MemberDecorate 89(UBO) 7 Offset 256 - Decorate 89(UBO) Block - Decorate 112(ubo) DescriptorSet 0 - Decorate 112(ubo) Binding 0 - MemberDecorate 214(gl_PerVertex) 0 BuiltIn Position - MemberDecorate 214(gl_PerVertex) 1 BuiltIn PointSize - MemberDecorate 214(gl_PerVertex) 2 BuiltIn ClipDistance - MemberDecorate 214(gl_PerVertex) 3 BuiltIn CullDistance - Decorate 214(gl_PerVertex) Block - Decorate 234(gl_InvocationID) BuiltIn InvocationId - Decorate 252(samplerHeight) DescriptorSet 0 - Decorate 252(samplerHeight) Binding 1 - Decorate 259(inUV) Location 1 - Decorate 325(gl_TessLevelInner) Patch - Decorate 325(gl_TessLevelInner) BuiltIn TessLevelInner - Decorate 335(gl_TessLevelOuter) Patch - Decorate 335(gl_TessLevelOuter) BuiltIn TessLevelOuter - MemberDecorate 402(gl_PerVertex) 0 BuiltIn Position - MemberDecorate 402(gl_PerVertex) 1 BuiltIn PointSize - MemberDecorate 402(gl_PerVertex) 2 BuiltIn ClipDistance - MemberDecorate 402(gl_PerVertex) 3 BuiltIn CullDistance - Decorate 402(gl_PerVertex) Block - Decorate 427(outNormal) Location 0 - Decorate 435(inNormal) Location 0 - Decorate 447(outUV) Location 1 - 3: TypeVoid - 4: TypeFunction 3 - 6: TypeInt 32 0 - 9: 6(int) Constant 32 - 10: 6(int) Constant 6 - 11: 6(int) Constant 0 - 7: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 9 10 11 - 12: 6(int) Constant 3 - 5: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 12 3 - 16: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 0 17 - 19: 6(int) Constant 1 - 20: 6(int) Constant 4 - 21: 6(int) Constant 2 - 18: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 19 20 16 21 - 15: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 14 5 16 11 11 18 14 12 11 - 23: TypeFloat 32 - 25: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 24 9 12 11 - 26: TypeVector 23(float) 4 - 27: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 25 20 - 28: TypePointer Function 26(fvec4) - 29: TypeFunction 23(float) 28(ptr) 28(ptr) - 30: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 12 25 27 27 - 35: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 34 30 16 11 11 18 34 12 11 - 39: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 40 27 16 11 11 35 20 19 - 42: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) - 43: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 44 27 16 11 11 35 20 21 - 46: TypeBool - 48: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 9 21 11 - 49: TypeFunction 46(bool) - 50: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 12 48 - 53: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 52 50 16 11 11 18 52 12 11 - 59: 6(int) Constant 54 - 57: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 58 27 16 59 11 35 20 - 61: 23(float) Constant 1056964608 - 66: TypePointer Function 23(float) - 70: 6(int) Constant 56 - 68: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 69 25 16 70 11 35 20 - 75: 23(float) Constant 1073741824 - 80: 6(int) Constant 59 - 78: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 79 27 16 80 11 35 20 - 82: TypeMatrix 26(fvec4) 4 - 84: 46(bool) ConstantTrue - 83: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 27 20 84 - 85: TypeArray 26(fvec4) 10 - 86: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 27 10 - 87: TypeVector 23(float) 2 - 88: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 25 21 - 89(UBO): TypeStruct 82 82 26(fvec4) 85 23(float) 23(float) 87(fvec2) 23(float) - 92: 6(int) Constant 30 - 93: 6(int) Constant 7 - 90: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 91 83 16 92 93 11 11 12 - 94: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 91 83 16 92 93 11 11 12 - 97: 6(int) Constant 31 - 95: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 96 27 16 97 93 11 11 12 - 98: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 99 86 16 9 93 11 11 12 - 102: 6(int) Constant 36 - 103: 6(int) Constant 8 - 100: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 101 25 16 102 103 11 11 12 - 104: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 101 25 16 102 103 11 11 12 - 107: 6(int) Constant 35 - 105: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 106 88 16 107 93 11 11 12 - 108: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 101 25 16 102 103 11 11 12 - 109: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 110 19 16 80 11 18 110 11 12 90 94 95 98 100 104 105 108 - 111: TypePointer Uniform 89(UBO) - 112(ubo): 111(ptr) Variable Uniform - 113: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 114 109 16 80 11 18 114 112(ubo) 103 - 115: TypeInt 32 1 - 117: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 116 9 20 11 - 118: 115(int) Constant 1 - 119: TypePointer Uniform 82 - 127: 6(int) Constant 62 - 125: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 126 27 16 127 11 35 20 - 129: 115(int) Constant 0 - 134: TypeVector 23(float) 3 - 135: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 25 12 - 136: 23(float) Constant 0 - 137: 134(fvec3) ConstantComposite 136 136 136 - 147: 6(int) Constant 63 - 145: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 146 27 16 147 11 35 20 - 169: 115(int) Constant 6 - 170: TypePointer Uniform 87(fvec2) - 192: 115(int) Constant 7 - 193: TypePointer Uniform 23(float) - 197: 115(int) Constant 5 - 201: 23(float) Constant 1065353216 - 202: 23(float) Constant 1115684864 - 210: 6(int) Constant 85 - 208: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 209 27 16 210 11 53 20 - 212: TypeArray 23(float) 19 - 213: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 25 19 -214(gl_PerVertex): TypeStruct 26(fvec4) 23(float) 212 212 - 217: 6(int) Constant 1756 - 215: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 216 27 16 19 217 11 11 12 - 220: 6(int) Constant 1774 - 218: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 219 25 16 19 220 11 11 12 - 223: 6(int) Constant 1817 - 221: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 222 213 16 19 223 11 11 12 - 224: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 222 213 16 19 223 11 11 12 - 225: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 226 19 16 210 11 18 226 11 12 215 218 221 224 - 227: TypeArray 214(gl_PerVertex) 9 - 228: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 225 9 - 229: TypePointer Input 227 - 230(gl_in): 229(ptr) Variable Input - 231: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 232 228 16 210 11 18 232 230(gl_in) 103 - 233: TypePointer Input 115(int) -234(gl_InvocationID): 233(ptr) Variable Input - 235: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 236 117 16 210 11 18 236 234(gl_InvocationID) 103 - 238: TypePointer Input 26(fvec4) - 241: TypeImage 23(float) 2D sampled format:Unknown - 244: 6(int) Constant 86 - 246: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) - 242: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 243 11 16 244 11 18 245 246 12 - 247: TypeSampledImage 241 - 248: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 249 11 16 244 11 18 250 246 12 - 251: TypePointer UniformConstant 247 -252(samplerHeight): 251(ptr) Variable UniformConstant - 253: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 254 248 16 244 11 18 254 252(samplerHeight) 103 - 256: TypeArray 87(fvec2) 9 - 257: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 88 9 - 258: TypePointer Input 256 - 259(inUV): 258(ptr) Variable Input - 260: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 261 257 16 244 11 18 261 259(inUV) 103 - 262: TypePointer Input 87(fvec2) - 267: 115(int) Constant 4 - 275: TypePointer Function 115(int) - 279: 6(int) Constant 89 - 277: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 278 117 16 279 11 53 20 - 287: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 9 21 11 - 290: 115(int) Constant 3 - 292: TypePointer Uniform 26(fvec4) - 296: 23(float) Constant 1090519040 - 298: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 9 21 11 - 302: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 9 21 11 - 303: 46(bool) ConstantFalse - 307: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 9 21 11 - 312: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 9 21 11 - 317: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 9 21 11 - 318: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 9 21 11 - 322: TypeArray 23(float) 21 - 323: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 25 21 - 324: TypePointer Output 322 -325(gl_TessLevelInner): 324(ptr) Variable Output - 328: 6(int) Constant 104 - 326: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 327 323 16 328 11 18 327 325(gl_TessLevelInner) 103 - 329: TypePointer Output 23(float) - 332: TypeArray 23(float) 20 - 333: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 25 20 - 334: TypePointer Output 332 -335(gl_TessLevelOuter): 334(ptr) Variable Output - 338: 6(int) Constant 106 - 336: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 337 333 16 338 11 18 337 335(gl_TessLevelOuter) 103 - 341: 115(int) Constant 2 - 347: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 9 21 11 -402(gl_PerVertex): TypeStruct 26(fvec4) 23(float) 212 212 - 404: 6(int) Constant 110 - 403: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 216 27 16 19 404 11 11 12 - 406: 6(int) Constant 128 - 405: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 219 25 16 19 406 11 11 12 - 408: 6(int) Constant 171 - 407: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 222 213 16 19 408 11 11 12 - 409: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 222 213 16 19 408 11 11 12 - 411: 6(int) Constant 137 - 410: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 226 19 16 411 11 18 226 11 12 403 405 407 409 - 412: TypeArray 402(gl_PerVertex) 20 - 413: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 410 20 - 414: TypePointer Output 412 - 415(gl_out): 414(ptr) Variable Output - 416: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 417 413 16 411 11 18 417 415(gl_out) 103 - 422: TypePointer Output 26(fvec4) - 424: TypeArray 134(fvec3) 20 - 425: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 135 20 - 426: TypePointer Output 424 - 427(outNormal): 426(ptr) Variable Output - 430: 6(int) Constant 138 - 428: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 429 425 16 430 11 18 429 427(outNormal) 103 - 432: TypeArray 134(fvec3) 9 - 433: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 135 9 - 434: TypePointer Input 432 - 435(inNormal): 434(ptr) Variable Input - 436: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 437 433 16 430 11 18 437 435(inNormal) 103 - 439: TypePointer Input 134(fvec3) - 442: TypePointer Output 134(fvec3) - 444: TypeArray 87(fvec2) 20 - 445: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 88 20 - 446: TypePointer Output 444 - 447(outUV): 446(ptr) Variable Output - 450: 6(int) Constant 139 - 448: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 449 445 16 450 11 18 449 447(outUV) 103 - 455: TypePointer Output 87(fvec2) - 13(main): 3 Function None 4 - 22: Label - 351(param): 28(ptr) Variable Function - 354(param): 28(ptr) Variable Function - 359(param): 28(ptr) Variable Function - 362(param): 28(ptr) Variable Function - 367(param): 28(ptr) Variable Function - 370(param): 28(ptr) Variable Function - 375(param): 28(ptr) Variable Function - 378(param): 28(ptr) Variable Function - 310: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 15 13(main) - 311: 115(int) Load 234(gl_InvocationID) - 313: 46(bool) IEqual 311 129 - SelectionMerge 315 None - BranchConditional 313 314 315 - 314: Label - 316: 46(bool) FunctionCall 51(frustumCheck() - 319: 46(bool) LogicalNot 316 - SelectionMerge 321 None - BranchConditional 319 320 344 - 320: Label - 330: 329(ptr) AccessChain 325(gl_TessLevelInner) 129 - Store 330 136 - 331: 329(ptr) AccessChain 325(gl_TessLevelInner) 118 - Store 331 136 - 339: 329(ptr) AccessChain 335(gl_TessLevelOuter) 129 - Store 339 136 - 340: 329(ptr) AccessChain 335(gl_TessLevelOuter) 118 - Store 340 136 - 342: 329(ptr) AccessChain 335(gl_TessLevelOuter) 341 - Store 342 136 - 343: 329(ptr) AccessChain 335(gl_TessLevelOuter) 290 - Store 343 136 - Branch 321 - 344: Label - 345: 193(ptr) AccessChain 112(ubo) 197 - 346: 23(float) Load 345 - 348: 46(bool) FOrdGreaterThan 346 136 - SelectionMerge 350 None - BranchConditional 348 349 395 - 349: Label - 352: 238(ptr) AccessChain 230(gl_in) 290 129 - 353: 26(fvec4) Load 352 - Store 351(param) 353 - 355: 238(ptr) AccessChain 230(gl_in) 129 129 - 356: 26(fvec4) Load 355 - Store 354(param) 356 - 357: 23(float) FunctionCall 33(screenSpaceTessFactor(vf4;vf4;) 351(param) 354(param) - 358: 329(ptr) AccessChain 335(gl_TessLevelOuter) 129 - Store 358 357 - 360: 238(ptr) AccessChain 230(gl_in) 129 129 - 361: 26(fvec4) Load 360 - Store 359(param) 361 - 363: 238(ptr) AccessChain 230(gl_in) 118 129 - 364: 26(fvec4) Load 363 - Store 362(param) 364 - 365: 23(float) FunctionCall 33(screenSpaceTessFactor(vf4;vf4;) 359(param) 362(param) - 366: 329(ptr) AccessChain 335(gl_TessLevelOuter) 118 - Store 366 365 - 368: 238(ptr) AccessChain 230(gl_in) 118 129 - 369: 26(fvec4) Load 368 - Store 367(param) 369 - 371: 238(ptr) AccessChain 230(gl_in) 341 129 - 372: 26(fvec4) Load 371 - Store 370(param) 372 - 373: 23(float) FunctionCall 33(screenSpaceTessFactor(vf4;vf4;) 367(param) 370(param) - 374: 329(ptr) AccessChain 335(gl_TessLevelOuter) 341 - Store 374 373 - 376: 238(ptr) AccessChain 230(gl_in) 341 129 - 377: 26(fvec4) Load 376 - Store 375(param) 377 - 379: 238(ptr) AccessChain 230(gl_in) 290 129 - 380: 26(fvec4) Load 379 - Store 378(param) 380 - 381: 23(float) FunctionCall 33(screenSpaceTessFactor(vf4;vf4;) 375(param) 378(param) - 382: 329(ptr) AccessChain 335(gl_TessLevelOuter) 290 - Store 382 381 - 383: 329(ptr) AccessChain 335(gl_TessLevelOuter) 129 - 384: 23(float) Load 383 - 385: 329(ptr) AccessChain 335(gl_TessLevelOuter) 290 - 386: 23(float) Load 385 - 387: 23(float) ExtInst 2(GLSL.std.450) 46(FMix) 384 386 61 - 388: 329(ptr) AccessChain 325(gl_TessLevelInner) 129 - Store 388 387 - 389: 329(ptr) AccessChain 335(gl_TessLevelOuter) 341 - 390: 23(float) Load 389 - 391: 329(ptr) AccessChain 335(gl_TessLevelOuter) 118 - 392: 23(float) Load 391 - 393: 23(float) ExtInst 2(GLSL.std.450) 46(FMix) 390 392 61 - 394: 329(ptr) AccessChain 325(gl_TessLevelInner) 118 - Store 394 393 - Branch 350 - 395: Label - 396: 329(ptr) AccessChain 325(gl_TessLevelInner) 129 - Store 396 201 - 397: 329(ptr) AccessChain 325(gl_TessLevelInner) 118 - Store 397 201 - 398: 329(ptr) AccessChain 335(gl_TessLevelOuter) 129 - Store 398 201 - 399: 329(ptr) AccessChain 335(gl_TessLevelOuter) 118 - Store 399 201 - 400: 329(ptr) AccessChain 335(gl_TessLevelOuter) 341 - Store 400 201 - 401: 329(ptr) AccessChain 335(gl_TessLevelOuter) 290 - Store 401 201 - Branch 350 - 350: Label - Branch 321 - 321: Label - Branch 315 - 315: Label - 418: 115(int) Load 234(gl_InvocationID) - 419: 115(int) Load 234(gl_InvocationID) - 420: 238(ptr) AccessChain 230(gl_in) 419 129 - 421: 26(fvec4) Load 420 - 423: 422(ptr) AccessChain 415(gl_out) 418 129 - Store 423 421 - 431: 115(int) Load 234(gl_InvocationID) - 438: 115(int) Load 234(gl_InvocationID) - 440: 439(ptr) AccessChain 435(inNormal) 438 - 441: 134(fvec3) Load 440 - 443: 442(ptr) AccessChain 427(outNormal) 431 - Store 443 441 - 451: 115(int) Load 234(gl_InvocationID) - 452: 115(int) Load 234(gl_InvocationID) - 453: 262(ptr) AccessChain 259(inUV) 452 - 454: 87(fvec2) Load 453 - 456: 455(ptr) AccessChain 447(outUV) 451 - Store 456 454 + EntryPoint TessellationControl 14 "main" 249 253 279 370 383 498 512 519 533 + ExecutionMode 14 OutputVertices 4 + 1: String "" + 9: String "uint" + 15: String "main" + 18: String "// OpModuleProcessed auto-map-locations +// OpModuleProcessed auto-map-bindings +// OpModuleProcessed client vulkan100 +// OpModuleProcessed target-env vulkan1.0 +// OpModuleProcessed keep-uncalled +// OpModuleProcessed entry-point main +#line 1 +" + 25: String "float" + 35: String "screenSpaceTessFactor" + 41: String "p0" + 45: String "p1" + 48: String "bool" + 53: String "frustumCheck" + 62: String "midPoint" + 74: String "radius" + 85: String "v0" + 96: String "modelview" + 101: String "lightPos" + 104: String "frustumPlanes" + 106: String "tessellatedEdgeSize" + 111: String "viewportDim" + 115: String "UBO" + 119: String "ubo" + 121: String "int" + 133: String "clip0" + 154: String "clip1" + 229: String "pos" + 235: String "gl_Position" + 238: String "gl_PointSize" + 241: String "gl_CullDistance" + 245: String "gl_PerVertex" + 251: String "gl_in" + 255: String "gl_InvocationID" + 264: String "type.2d.image" + 265: String "@type.2d.image" + 269: String "type.sampled.image" + 270: String "@type.sampled.image" + 274: String "samplerHeight" + 281: String "inUV" + 300: String "i" + 372: String "gl_TessLevelInner" + 385: String "gl_TessLevelOuter" + 500: String "gl_out" + 514: String "outNormal" + 521: String "inNormal" + 535: String "outUV" + Name 14 "main" + Name 34 "screenSpaceTessFactor(vf4;vf4;" + Name 32 "p0" + Name 33 "p1" + Name 52 "frustumCheck(" + Name 60 "midPoint" + Name 72 "radius" + Name 83 "v0" + Name 94 "UBO" + MemberName 94(UBO) 0 "projection" + MemberName 94(UBO) 1 "modelview" + MemberName 94(UBO) 2 "lightPos" + MemberName 94(UBO) 3 "frustumPlanes" + MemberName 94(UBO) 4 "displacementFactor" + MemberName 94(UBO) 5 "tessellationFactor" + MemberName 94(UBO) 6 "viewportDim" + MemberName 94(UBO) 7 "tessellatedEdgeSize" + Name 117 "ubo" + Name 131 "clip0" + Name 152 "clip1" + Name 227 "pos" + Name 233 "gl_PerVertex" + MemberName 233(gl_PerVertex) 0 "gl_Position" + MemberName 233(gl_PerVertex) 1 "gl_PointSize" + MemberName 233(gl_PerVertex) 2 "gl_ClipDistance" + MemberName 233(gl_PerVertex) 3 "gl_CullDistance" + Name 249 "gl_in" + Name 253 "gl_InvocationID" + Name 272 "samplerHeight" + Name 279 "inUV" + Name 298 "i" + Name 370 "gl_TessLevelInner" + Name 383 "gl_TessLevelOuter" + Name 410 "param" + Name 413 "param" + Name 420 "param" + Name 423 "param" + Name 430 "param" + Name 433 "param" + Name 440 "param" + Name 443 "param" + Name 487 "gl_PerVertex" + MemberName 487(gl_PerVertex) 0 "gl_Position" + MemberName 487(gl_PerVertex) 1 "gl_PointSize" + MemberName 487(gl_PerVertex) 2 "gl_ClipDistance" + MemberName 487(gl_PerVertex) 3 "gl_CullDistance" + Name 498 "gl_out" + Name 512 "outNormal" + Name 519 "inNormal" + Name 533 "outUV" + Decorate 90 ArrayStride 16 + MemberDecorate 94(UBO) 0 ColMajor + MemberDecorate 94(UBO) 0 Offset 0 + MemberDecorate 94(UBO) 0 MatrixStride 16 + MemberDecorate 94(UBO) 1 ColMajor + MemberDecorate 94(UBO) 1 Offset 64 + MemberDecorate 94(UBO) 1 MatrixStride 16 + MemberDecorate 94(UBO) 2 Offset 128 + MemberDecorate 94(UBO) 3 Offset 144 + MemberDecorate 94(UBO) 4 Offset 240 + MemberDecorate 94(UBO) 5 Offset 244 + MemberDecorate 94(UBO) 6 Offset 248 + MemberDecorate 94(UBO) 7 Offset 256 + Decorate 94(UBO) Block + Decorate 117(ubo) DescriptorSet 0 + Decorate 117(ubo) Binding 0 + MemberDecorate 233(gl_PerVertex) 0 BuiltIn Position + MemberDecorate 233(gl_PerVertex) 1 BuiltIn PointSize + MemberDecorate 233(gl_PerVertex) 2 BuiltIn ClipDistance + MemberDecorate 233(gl_PerVertex) 3 BuiltIn CullDistance + Decorate 233(gl_PerVertex) Block + Decorate 253(gl_InvocationID) BuiltIn InvocationId + Decorate 272(samplerHeight) DescriptorSet 0 + Decorate 272(samplerHeight) Binding 1 + Decorate 279(inUV) Location 1 + Decorate 370(gl_TessLevelInner) Patch + Decorate 370(gl_TessLevelInner) BuiltIn TessLevelInner + Decorate 383(gl_TessLevelOuter) Patch + Decorate 383(gl_TessLevelOuter) BuiltIn TessLevelOuter + MemberDecorate 487(gl_PerVertex) 0 BuiltIn Position + MemberDecorate 487(gl_PerVertex) 1 BuiltIn PointSize + MemberDecorate 487(gl_PerVertex) 2 BuiltIn ClipDistance + MemberDecorate 487(gl_PerVertex) 3 BuiltIn CullDistance + Decorate 487(gl_PerVertex) Block + Decorate 512(outNormal) Location 0 + Decorate 519(inNormal) Location 0 + Decorate 533(outUV) Location 1 + 4: TypeVoid + 5: TypeFunction 4 + 7: TypeInt 32 0 + 10: 7(int) Constant 32 + 11: 7(int) Constant 6 + 12: 7(int) Constant 0 + 8: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 10 11 12 + 13: 7(int) Constant 3 + 6: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 + 17: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 18 + 20: 7(int) Constant 1 + 21: 7(int) Constant 4 + 22: 7(int) Constant 2 + 19: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 20 21 17 22 + 16: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 15 6 17 12 12 19 15 13 12 + 24: TypeFloat 32 + 26: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 25 10 13 12 + 27: TypeVector 24(float) 4 + 28: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 21 + 29: TypePointer Function 27(fvec4) + 30: TypeFunction 24(float) 29(ptr) 29(ptr) + 31: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 26 28 28 + 36: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 35 31 17 12 12 19 35 13 12 + 40: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 41 28 17 12 12 36 21 20 + 43: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) + 44: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 45 28 17 12 12 36 21 22 + 47: TypeBool + 49: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 48 10 22 12 + 50: TypeFunction 47(bool) + 51: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 49 + 54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 53 51 17 12 12 19 53 13 12 + 59: 7(int) Constant 54 + 61: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 62 28 17 59 12 36 21 + 64: 24(float) Constant 1056964608 + 70: 7(int) Constant 56 + 71: TypePointer Function 24(float) + 73: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 74 26 17 70 12 36 21 + 79: 24(float) Constant 1073741824 + 82: 7(int) Constant 59 + 84: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 85 28 17 82 12 36 21 + 87: TypeMatrix 27(fvec4) 4 + 89: 47(bool) ConstantTrue + 88: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 28 21 89 + 90: TypeArray 27(fvec4) 11 + 91: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 28 11 + 92: TypeVector 24(float) 2 + 93: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 22 + 94(UBO): TypeStruct 87 87 27(fvec4) 90 24(float) 24(float) 92(fvec2) 24(float) + 97: 7(int) Constant 30 + 98: 7(int) Constant 7 + 95: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 96 88 17 97 98 12 12 13 + 99: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 96 88 17 97 98 12 12 13 + 102: 7(int) Constant 31 + 100: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 101 28 17 102 98 12 12 13 + 103: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 104 91 17 10 98 12 12 13 + 107: 7(int) Constant 36 + 108: 7(int) Constant 8 + 105: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 106 26 17 107 108 12 12 13 + 109: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 106 26 17 107 108 12 12 13 + 112: 7(int) Constant 35 + 110: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 111 93 17 112 98 12 12 13 + 113: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 106 26 17 107 108 12 12 13 + 114: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 115 20 17 82 12 19 115 12 13 95 99 100 103 105 109 110 113 + 116: TypePointer Uniform 94(UBO) + 117(ubo): 116(ptr) Variable Uniform + 118: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 119 114 17 82 12 19 119 117(ubo) 108 + 120: TypeInt 32 1 + 122: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 121 10 21 12 + 123: 120(int) Constant 1 + 124: TypePointer Uniform 87 + 130: 7(int) Constant 62 + 132: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 133 28 17 130 12 36 21 + 135: 120(int) Constant 0 + 140: TypeVector 24(float) 3 + 141: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 13 + 142: 24(float) Constant 0 + 143: 140(fvec3) ConstantComposite 142 142 142 + 151: 7(int) Constant 63 + 153: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 154 28 17 151 12 36 21 + 167: 7(int) Constant 66 + 174: 7(int) Constant 67 + 181: 7(int) Constant 70 + 182: 120(int) Constant 6 + 183: TypePointer Uniform 92(fvec2) + 194: 7(int) Constant 71 + 205: 7(int) Constant 76 + 209: 120(int) Constant 7 + 210: TypePointer Uniform 24(float) + 214: 120(int) Constant 5 + 218: 24(float) Constant 1065353216 + 219: 24(float) Constant 1115684864 + 226: 7(int) Constant 85 + 228: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 229 28 17 226 12 54 21 + 231: TypeArray 24(float) 20 + 232: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 26 20 +233(gl_PerVertex): TypeStruct 27(fvec4) 24(float) 231 231 + 236: 7(int) Constant 1756 + 234: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 235 28 17 20 236 12 12 13 + 239: 7(int) Constant 1774 + 237: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 238 26 17 20 239 12 12 13 + 242: 7(int) Constant 1817 + 240: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 241 232 17 20 242 12 12 13 + 243: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 241 232 17 20 242 12 12 13 + 244: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 245 20 17 226 12 19 245 12 13 234 237 240 243 + 246: TypeArray 233(gl_PerVertex) 10 + 247: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 244 10 + 248: TypePointer Input 246 + 249(gl_in): 248(ptr) Variable Input + 250: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 251 247 17 226 12 19 251 249(gl_in) 108 + 252: TypePointer Input 120(int) +253(gl_InvocationID): 252(ptr) Variable Input + 254: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 255 122 17 226 12 19 255 253(gl_InvocationID) 108 + 257: TypePointer Input 27(fvec4) + 261: 7(int) Constant 86 + 262: TypeImage 24(float) 2D sampled format:Unknown + 266: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) + 263: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 264 12 17 261 12 19 265 266 13 + 267: TypeSampledImage 262 + 268: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 269 12 17 261 12 19 270 266 13 + 271: TypePointer UniformConstant 267 +272(samplerHeight): 271(ptr) Variable UniformConstant + 273: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 274 268 17 261 12 19 274 272(samplerHeight) 108 + 276: TypeArray 92(fvec2) 10 + 277: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 93 10 + 278: TypePointer Input 276 + 279(inUV): 278(ptr) Variable Input + 280: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 281 277 17 261 12 19 281 279(inUV) 108 + 282: TypePointer Input 92(fvec2) + 287: 120(int) Constant 4 + 296: 7(int) Constant 89 + 297: TypePointer Function 120(int) + 299: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 300 122 17 296 12 54 21 + 312: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 48 10 22 12 + 316: 7(int) Constant 90 + 318: 120(int) Constant 3 + 320: TypePointer Uniform 27(fvec4) + 324: 24(float) Constant 1090519040 + 326: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 48 10 22 12 + 330: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 48 10 22 12 + 331: 47(bool) ConstantFalse + 334: 7(int) Constant 92 + 340: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 48 10 22 12 + 343: 7(int) Constant 95 + 349: 7(int) Constant 100 + 351: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 48 10 22 12 + 357: 7(int) Constant 102 + 359: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 48 10 22 12 + 360: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 48 10 22 12 + 366: 7(int) Constant 104 + 367: TypeArray 24(float) 22 + 368: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 26 22 + 369: TypePointer Output 367 +370(gl_TessLevelInner): 369(ptr) Variable Output + 371: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 372 368 17 366 12 19 372 370(gl_TessLevelInner) 108 + 373: TypePointer Output 24(float) + 376: 7(int) Constant 105 + 379: 7(int) Constant 106 + 380: TypeArray 24(float) 21 + 381: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 26 21 + 382: TypePointer Output 380 +383(gl_TessLevelOuter): 382(ptr) Variable Output + 384: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 385 381 17 379 12 19 385 383(gl_TessLevelOuter) 108 + 388: 7(int) Constant 107 + 391: 7(int) Constant 108 + 392: 120(int) Constant 2 + 395: 7(int) Constant 109 + 400: 7(int) Constant 113 + 403: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 48 10 22 12 + 409: 7(int) Constant 115 + 419: 7(int) Constant 116 + 429: 7(int) Constant 117 + 439: 7(int) Constant 118 + 449: 7(int) Constant 119 + 457: 7(int) Constant 120 + 467: 7(int) Constant 126 + 470: 7(int) Constant 127 + 473: 7(int) Constant 128 + 476: 7(int) Constant 129 + 479: 7(int) Constant 130 + 482: 7(int) Constant 131 + 486: 7(int) Constant 137 +487(gl_PerVertex): TypeStruct 27(fvec4) 24(float) 231 231 + 489: 7(int) Constant 110 + 488: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 235 28 17 20 489 12 12 13 + 490: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 238 26 17 20 473 12 12 13 + 492: 7(int) Constant 171 + 491: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 241 232 17 20 492 12 12 13 + 493: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 241 232 17 20 492 12 12 13 + 494: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 245 20 17 486 12 19 245 12 13 488 490 491 493 + 495: TypeArray 487(gl_PerVertex) 21 + 496: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 494 21 + 497: TypePointer Output 495 + 498(gl_out): 497(ptr) Variable Output + 499: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 500 496 17 486 12 19 500 498(gl_out) 108 + 505: TypePointer Output 27(fvec4) + 508: 7(int) Constant 138 + 509: TypeArray 140(fvec3) 21 + 510: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 141 21 + 511: TypePointer Output 509 + 512(outNormal): 511(ptr) Variable Output + 513: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 514 510 17 508 12 19 514 512(outNormal) 108 + 516: TypeArray 140(fvec3) 10 + 517: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 141 10 + 518: TypePointer Input 516 + 519(inNormal): 518(ptr) Variable Input + 520: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 521 517 17 508 12 19 521 519(inNormal) 108 + 523: TypePointer Input 140(fvec3) + 526: TypePointer Output 140(fvec3) + 529: 7(int) Constant 139 + 530: TypeArray 92(fvec2) 21 + 531: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 93 21 + 532: TypePointer Output 530 + 533(outUV): 532(ptr) Variable Output + 534: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 535 531 17 529 12 19 535 533(outUV) 108 + 540: TypePointer Output 92(fvec2) + Line 1 98 11 + 14(main): 4 Function None 5 + 23: Label + 410(param): 29(ptr) Variable Function + 413(param): 29(ptr) Variable Function + 420(param): 29(ptr) Variable Function + 423(param): 29(ptr) Variable Function + 430(param): 29(ptr) Variable Function + 433(param): 29(ptr) Variable Function + 440(param): 29(ptr) Variable Function + 443(param): 29(ptr) Variable Function + 346: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 16 14(main) + 347: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 348: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 349 349 12 12 + 350: 120(int) Load 253(gl_InvocationID) + 352: 47(bool) IEqual 350 135 + SelectionMerge 354 None + BranchConditional 352 353 354 + 353: Label + 355: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 356: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 357 357 12 12 + 358: 47(bool) FunctionCall 52(frustumCheck() + 361: 47(bool) LogicalNot 358 + SelectionMerge 363 None + BranchConditional 361 362 397 + 362: Label + 364: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 365: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 366 366 12 12 + 374: 373(ptr) AccessChain 370(gl_TessLevelInner) 135 + Store 374 142 + 375: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 376 376 12 12 + 377: 373(ptr) AccessChain 370(gl_TessLevelInner) 123 + Store 377 142 + 378: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 379 379 12 12 + 386: 373(ptr) AccessChain 383(gl_TessLevelOuter) 135 + Store 386 142 + 387: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 388 388 12 12 + 389: 373(ptr) AccessChain 383(gl_TessLevelOuter) 123 + Store 389 142 + 390: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 391 391 12 12 + 393: 373(ptr) AccessChain 383(gl_TessLevelOuter) 392 + Store 393 142 + 394: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 395 395 12 12 + 396: 373(ptr) AccessChain 383(gl_TessLevelOuter) 318 + Store 396 142 + Branch 363 + 397: Label + 398: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 399: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 400 400 12 12 + 401: 210(ptr) AccessChain 117(ubo) 214 + 402: 24(float) Load 401 + 404: 47(bool) FOrdGreaterThan 402 142 + SelectionMerge 406 None + BranchConditional 404 405 464 + 405: Label + 407: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 408: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 409 409 12 12 + 411: 257(ptr) AccessChain 249(gl_in) 318 135 + 412: 27(fvec4) Load 411 + Store 410(param) 412 + 414: 257(ptr) AccessChain 249(gl_in) 135 135 + 415: 27(fvec4) Load 414 + Store 413(param) 415 + 416: 24(float) FunctionCall 34(screenSpaceTessFactor(vf4;vf4;) 410(param) 413(param) + 417: 373(ptr) AccessChain 383(gl_TessLevelOuter) 135 + Store 417 416 + 418: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 419 419 12 12 + 421: 257(ptr) AccessChain 249(gl_in) 135 135 + 422: 27(fvec4) Load 421 + Store 420(param) 422 + 424: 257(ptr) AccessChain 249(gl_in) 123 135 + 425: 27(fvec4) Load 424 + Store 423(param) 425 + 426: 24(float) FunctionCall 34(screenSpaceTessFactor(vf4;vf4;) 420(param) 423(param) + 427: 373(ptr) AccessChain 383(gl_TessLevelOuter) 123 + Store 427 426 + 428: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 429 429 12 12 + 431: 257(ptr) AccessChain 249(gl_in) 123 135 + 432: 27(fvec4) Load 431 + Store 430(param) 432 + 434: 257(ptr) AccessChain 249(gl_in) 392 135 + 435: 27(fvec4) Load 434 + Store 433(param) 435 + 436: 24(float) FunctionCall 34(screenSpaceTessFactor(vf4;vf4;) 430(param) 433(param) + 437: 373(ptr) AccessChain 383(gl_TessLevelOuter) 392 + Store 437 436 + 438: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 439 439 12 12 + 441: 257(ptr) AccessChain 249(gl_in) 392 135 + 442: 27(fvec4) Load 441 + Store 440(param) 442 + 444: 257(ptr) AccessChain 249(gl_in) 318 135 + 445: 27(fvec4) Load 444 + Store 443(param) 445 + 446: 24(float) FunctionCall 34(screenSpaceTessFactor(vf4;vf4;) 440(param) 443(param) + 447: 373(ptr) AccessChain 383(gl_TessLevelOuter) 318 + Store 447 446 + 448: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 449 449 12 12 + 450: 373(ptr) AccessChain 383(gl_TessLevelOuter) 135 + 451: 24(float) Load 450 + 452: 373(ptr) AccessChain 383(gl_TessLevelOuter) 318 + 453: 24(float) Load 452 + 454: 24(float) ExtInst 3(GLSL.std.450) 46(FMix) 451 453 64 + 455: 373(ptr) AccessChain 370(gl_TessLevelInner) 135 + Store 455 454 + 456: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 457 457 12 12 + 458: 373(ptr) AccessChain 383(gl_TessLevelOuter) 392 + 459: 24(float) Load 458 + 460: 373(ptr) AccessChain 383(gl_TessLevelOuter) 123 + 461: 24(float) Load 460 + 462: 24(float) ExtInst 3(GLSL.std.450) 46(FMix) 459 461 64 + 463: 373(ptr) AccessChain 370(gl_TessLevelInner) 123 + Store 463 462 + Branch 406 + 464: Label + 465: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 466: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 467 467 12 12 + 468: 373(ptr) AccessChain 370(gl_TessLevelInner) 135 + Store 468 218 + 469: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 470 470 12 12 + 471: 373(ptr) AccessChain 370(gl_TessLevelInner) 123 + Store 471 218 + 472: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 473 473 12 12 + 474: 373(ptr) AccessChain 383(gl_TessLevelOuter) 135 + Store 474 218 + 475: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 476 476 12 12 + 477: 373(ptr) AccessChain 383(gl_TessLevelOuter) 123 + Store 477 218 + 478: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 479 479 12 12 + 480: 373(ptr) AccessChain 383(gl_TessLevelOuter) 392 + Store 480 218 + 481: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 482 482 12 12 + 483: 373(ptr) AccessChain 383(gl_TessLevelOuter) 318 + Store 483 218 + Branch 406 + 406: Label + Branch 363 + 363: Label + Branch 354 + 354: Label + 484: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 485: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 486 486 12 12 + 501: 120(int) Load 253(gl_InvocationID) + 502: 120(int) Load 253(gl_InvocationID) + 503: 257(ptr) AccessChain 249(gl_in) 502 135 + 504: 27(fvec4) Load 503 + 506: 505(ptr) AccessChain 498(gl_out) 501 135 + Store 506 504 + 507: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 508 508 12 12 + 515: 120(int) Load 253(gl_InvocationID) + 522: 120(int) Load 253(gl_InvocationID) + 524: 523(ptr) AccessChain 519(inNormal) 522 + 525: 140(fvec3) Load 524 + 527: 526(ptr) AccessChain 512(outNormal) 515 + Store 527 525 + 528: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 529 529 12 12 + 536: 120(int) Load 253(gl_InvocationID) + 537: 120(int) Load 253(gl_InvocationID) + 538: 282(ptr) AccessChain 279(inUV) 537 + 539: 92(fvec2) Load 538 + 541: 540(ptr) AccessChain 533(outUV) 536 + Store 541 539 Return FunctionEnd -33(screenSpaceTessFactor(vf4;vf4;): 23(float) Function None 29 - 31(p0): 28(ptr) FunctionParameter - 32(p1): 28(ptr) FunctionParameter - 36: Label - 56(midPoint): 28(ptr) Variable Function - 67(radius): 66(ptr) Variable Function - 77(v0): 28(ptr) Variable Function - 124(clip0): 28(ptr) Variable Function - 144(clip1): 28(ptr) Variable Function - 37: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 35 - 38: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 16 11 11 11 11 - 41: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 39 31(p0) 42 - 45: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 43 32(p1) 42 - 55: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 35 33(screenSpaceTessFactor(vf4;vf4;) - 60: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 57 56(midPoint) 42 - 62: 26(fvec4) Load 31(p0) - 63: 26(fvec4) Load 32(p1) - 64: 26(fvec4) FAdd 62 63 - 65: 26(fvec4) VectorTimesScalar 64 61 - Store 56(midPoint) 65 - 71: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 68 67(radius) 42 - 72: 26(fvec4) Load 31(p0) - 73: 26(fvec4) Load 32(p1) - 74: 23(float) ExtInst 2(GLSL.std.450) 67(Distance) 72 73 - 76: 23(float) FDiv 74 75 - Store 67(radius) 76 - 81: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 78 77(v0) 42 - 120: 119(ptr) AccessChain 112(ubo) 118 - 121: 82 Load 120 - 122: 26(fvec4) Load 56(midPoint) - 123: 26(fvec4) MatrixTimesVector 121 122 - Store 77(v0) 123 - 128: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 125 124(clip0) 42 - 130: 119(ptr) AccessChain 112(ubo) 129 - 131: 82 Load 130 - 132: 26(fvec4) Load 77(v0) - 133: 23(float) Load 67(radius) - 138: 23(float) CompositeExtract 137 0 - 139: 23(float) CompositeExtract 137 1 - 140: 23(float) CompositeExtract 137 2 - 141: 26(fvec4) CompositeConstruct 133 138 139 140 - 142: 26(fvec4) FSub 132 141 - 143: 26(fvec4) MatrixTimesVector 131 142 - Store 124(clip0) 143 - 148: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 145 144(clip1) 42 - 149: 119(ptr) AccessChain 112(ubo) 129 - 150: 82 Load 149 - 151: 26(fvec4) Load 77(v0) - 152: 23(float) Load 67(radius) - 153: 23(float) CompositeExtract 137 0 - 154: 23(float) CompositeExtract 137 1 - 155: 23(float) CompositeExtract 137 2 - 156: 26(fvec4) CompositeConstruct 152 153 154 155 - 157: 26(fvec4) FAdd 151 156 - 158: 26(fvec4) MatrixTimesVector 150 157 - Store 144(clip1) 158 - 159: 66(ptr) AccessChain 124(clip0) 12 - 160: 23(float) Load 159 - 161: 26(fvec4) Load 124(clip0) - 162: 26(fvec4) CompositeConstruct 160 160 160 160 - 163: 26(fvec4) FDiv 161 162 - Store 124(clip0) 163 - 164: 66(ptr) AccessChain 144(clip1) 12 - 165: 23(float) Load 164 - 166: 26(fvec4) Load 144(clip1) - 167: 26(fvec4) CompositeConstruct 165 165 165 165 - 168: 26(fvec4) FDiv 166 167 - Store 144(clip1) 168 - 171: 170(ptr) AccessChain 112(ubo) 169 - 172: 87(fvec2) Load 171 - 173: 26(fvec4) Load 124(clip0) - 174: 87(fvec2) VectorShuffle 173 173 0 1 - 175: 87(fvec2) FMul 174 172 - 176: 66(ptr) AccessChain 124(clip0) 11 - 177: 23(float) CompositeExtract 175 0 - Store 176 177 - 178: 66(ptr) AccessChain 124(clip0) 19 - 179: 23(float) CompositeExtract 175 1 - Store 178 179 - 180: 170(ptr) AccessChain 112(ubo) 169 - 181: 87(fvec2) Load 180 - 182: 26(fvec4) Load 144(clip1) - 183: 87(fvec2) VectorShuffle 182 182 0 1 - 184: 87(fvec2) FMul 183 181 - 185: 66(ptr) AccessChain 144(clip1) 11 - 186: 23(float) CompositeExtract 184 0 - Store 185 186 - 187: 66(ptr) AccessChain 144(clip1) 19 - 188: 23(float) CompositeExtract 184 1 - Store 187 188 - 189: 26(fvec4) Load 124(clip0) - 190: 26(fvec4) Load 144(clip1) - 191: 23(float) ExtInst 2(GLSL.std.450) 67(Distance) 189 190 - 194: 193(ptr) AccessChain 112(ubo) 192 - 195: 23(float) Load 194 - 196: 23(float) FDiv 191 195 - 198: 193(ptr) AccessChain 112(ubo) 197 - 199: 23(float) Load 198 - 200: 23(float) FMul 196 199 - 203: 23(float) ExtInst 2(GLSL.std.450) 43(FClamp) 200 201 202 - ReturnValue 203 + Line 1 51 45 +34(screenSpaceTessFactor(vf4;vf4;): 24(float) Function None 30 + 32(p0): 29(ptr) FunctionParameter + 33(p1): 29(ptr) FunctionParameter + 37: Label + 60(midPoint): 29(ptr) Variable Function + 72(radius): 71(ptr) Variable Function + 83(v0): 29(ptr) Variable Function + 131(clip0): 29(ptr) Variable Function + 152(clip1): 29(ptr) Variable Function + 38: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 36 + 39: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 12 12 12 12 + 42: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 40 32(p0) 43 + 46: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 44 33(p1) 43 + 56: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 36 34(screenSpaceTessFactor(vf4;vf4;) + 57: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 36 + 58: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 59 59 12 12 + 63: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 61 60(midPoint) 43 + 65: 27(fvec4) Load 32(p0) + 66: 27(fvec4) Load 33(p1) + 67: 27(fvec4) FAdd 65 66 + 68: 27(fvec4) VectorTimesScalar 67 64 + Store 60(midPoint) 68 + 69: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 70 70 12 12 + 75: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 73 72(radius) 43 + 76: 27(fvec4) Load 32(p0) + 77: 27(fvec4) Load 33(p1) + 78: 24(float) ExtInst 3(GLSL.std.450) 67(Distance) 76 77 + 80: 24(float) FDiv 78 79 + Store 72(radius) 80 + 81: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 82 82 12 12 + 86: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 84 83(v0) 43 + 125: 124(ptr) AccessChain 117(ubo) 123 + 126: 87 Load 125 + 127: 27(fvec4) Load 60(midPoint) + 128: 27(fvec4) MatrixTimesVector 126 127 + Store 83(v0) 128 + 129: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 130 130 12 12 + 134: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 132 131(clip0) 43 + 136: 124(ptr) AccessChain 117(ubo) 135 + 137: 87 Load 136 + 138: 27(fvec4) Load 83(v0) + 139: 24(float) Load 72(radius) + 144: 24(float) CompositeExtract 143 0 + 145: 24(float) CompositeExtract 143 1 + 146: 24(float) CompositeExtract 143 2 + 147: 27(fvec4) CompositeConstruct 139 144 145 146 + 148: 27(fvec4) FSub 138 147 + 149: 27(fvec4) MatrixTimesVector 137 148 + Store 131(clip0) 149 + 150: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 151 151 12 12 + 155: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 153 152(clip1) 43 + 156: 124(ptr) AccessChain 117(ubo) 135 + 157: 87 Load 156 + 158: 27(fvec4) Load 83(v0) + 159: 24(float) Load 72(radius) + 160: 24(float) CompositeExtract 143 0 + 161: 24(float) CompositeExtract 143 1 + 162: 24(float) CompositeExtract 143 2 + 163: 27(fvec4) CompositeConstruct 159 160 161 162 + 164: 27(fvec4) FAdd 158 163 + 165: 27(fvec4) MatrixTimesVector 157 164 + Store 152(clip1) 165 + 166: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 167 167 12 12 + 168: 71(ptr) AccessChain 131(clip0) 13 + 169: 24(float) Load 168 + 170: 27(fvec4) Load 131(clip0) + 171: 27(fvec4) CompositeConstruct 169 169 169 169 + 172: 27(fvec4) FDiv 170 171 + Store 131(clip0) 172 + 173: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 174 174 12 12 + 175: 71(ptr) AccessChain 152(clip1) 13 + 176: 24(float) Load 175 + 177: 27(fvec4) Load 152(clip1) + 178: 27(fvec4) CompositeConstruct 176 176 176 176 + 179: 27(fvec4) FDiv 177 178 + Store 152(clip1) 179 + 180: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 181 181 12 12 + 184: 183(ptr) AccessChain 117(ubo) 182 + 185: 92(fvec2) Load 184 + 186: 27(fvec4) Load 131(clip0) + 187: 92(fvec2) VectorShuffle 186 186 0 1 + 188: 92(fvec2) FMul 187 185 + 189: 71(ptr) AccessChain 131(clip0) 12 + 190: 24(float) CompositeExtract 188 0 + Store 189 190 + 191: 71(ptr) AccessChain 131(clip0) 20 + 192: 24(float) CompositeExtract 188 1 + Store 191 192 + 193: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 194 194 12 12 + 195: 183(ptr) AccessChain 117(ubo) 182 + 196: 92(fvec2) Load 195 + 197: 27(fvec4) Load 152(clip1) + 198: 92(fvec2) VectorShuffle 197 197 0 1 + 199: 92(fvec2) FMul 198 196 + 200: 71(ptr) AccessChain 152(clip1) 12 + 201: 24(float) CompositeExtract 199 0 + Store 200 201 + 202: 71(ptr) AccessChain 152(clip1) 20 + 203: 24(float) CompositeExtract 199 1 + Store 202 203 + 204: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 205 205 12 12 + 206: 27(fvec4) Load 131(clip0) + 207: 27(fvec4) Load 152(clip1) + 208: 24(float) ExtInst 3(GLSL.std.450) 67(Distance) 206 207 + 211: 210(ptr) AccessChain 117(ubo) 209 + 212: 24(float) Load 211 + 213: 24(float) FDiv 208 212 + 215: 210(ptr) AccessChain 117(ubo) 214 + 216: 24(float) Load 215 + 217: 24(float) FMul 213 216 + 220: 24(float) ExtInst 3(GLSL.std.450) 43(FClamp) 217 218 219 + ReturnValue 220 FunctionEnd -51(frustumCheck(): 46(bool) Function None 49 - 54: Label - 207(pos): 28(ptr) Variable Function - 276(i): 275(ptr) Variable Function - 206: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 53 51(frustumCheck() - 211: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 208 207(pos) 42 - 237: 115(int) Load 234(gl_InvocationID) - 239: 238(ptr) AccessChain 230(gl_in) 237 129 - 240: 26(fvec4) Load 239 - Store 207(pos) 240 - 255: 247 Load 252(samplerHeight) - 263: 262(ptr) AccessChain 259(inUV) 129 - 264: 87(fvec2) Load 263 - 265: 26(fvec4) ImageSampleExplicitLod 255 264 Lod 136 - 266: 23(float) CompositeExtract 265 0 - 268: 193(ptr) AccessChain 112(ubo) 267 - 269: 23(float) Load 268 - 270: 23(float) FMul 266 269 - 271: 66(ptr) AccessChain 207(pos) 19 - 272: 23(float) Load 271 - 273: 23(float) FSub 272 270 - 274: 66(ptr) AccessChain 207(pos) 19 - Store 274 273 - 280: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 277 276(i) 42 - Store 276(i) 129 - Branch 281 - 281: Label - LoopMerge 283 284 None - Branch 285 - 285: Label - 286: 115(int) Load 276(i) - 288: 46(bool) SLessThan 286 169 - BranchConditional 288 282 283 - 282: Label - 289: 26(fvec4) Load 207(pos) - 291: 115(int) Load 276(i) - 293: 292(ptr) AccessChain 112(ubo) 290 291 - 294: 26(fvec4) Load 293 - 295: 23(float) Dot 289 294 - 297: 23(float) FAdd 295 296 - 299: 46(bool) FOrdLessThan 297 136 - SelectionMerge 301 None - BranchConditional 299 300 301 - 300: Label - ReturnValue 303 - 301: Label - Branch 284 - 284: Label - 305: 115(int) Load 276(i) - 306: 115(int) IAdd 305 118 - Store 276(i) 306 - Branch 281 - 283: Label - ReturnValue 84 + Line 1 81 19 +52(frustumCheck(): 47(bool) Function None 50 + 55: Label + 227(pos): 29(ptr) Variable Function + 298(i): 297(ptr) Variable Function + 223: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 54 52(frustumCheck() + 224: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 54 + 225: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 226 226 12 12 + 230: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 228 227(pos) 43 + 256: 120(int) Load 253(gl_InvocationID) + 258: 257(ptr) AccessChain 249(gl_in) 256 135 + 259: 27(fvec4) Load 258 + Store 227(pos) 259 + 260: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 261 261 12 12 + 275: 267 Load 272(samplerHeight) + 283: 282(ptr) AccessChain 279(inUV) 135 + 284: 92(fvec2) Load 283 + 285: 27(fvec4) ImageSampleExplicitLod 275 284 Lod 142 + 286: 24(float) CompositeExtract 285 0 + 288: 210(ptr) AccessChain 117(ubo) 287 + 289: 24(float) Load 288 + 290: 24(float) FMul 286 289 + 291: 71(ptr) AccessChain 227(pos) 20 + 292: 24(float) Load 291 + 293: 24(float) FSub 292 290 + 294: 71(ptr) AccessChain 227(pos) 20 + Store 294 293 + 295: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 296 296 12 12 + 301: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 299 298(i) 43 + Store 298(i) 135 + Branch 302 + 302: Label + 306: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 54 + 307: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 296 296 12 12 + LoopMerge 304 305 None + Branch 308 + 308: Label + 309: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 54 + 310: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 296 296 12 12 + 311: 120(int) Load 298(i) + 313: 47(bool) SLessThan 311 182 + BranchConditional 313 303 304 + 303: Label + 314: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 54 + 315: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 316 316 12 12 + 317: 27(fvec4) Load 227(pos) + 319: 120(int) Load 298(i) + 321: 320(ptr) AccessChain 117(ubo) 318 319 + 322: 27(fvec4) Load 321 + 323: 24(float) Dot 317 322 + 325: 24(float) FAdd 323 324 + 327: 47(bool) FOrdLessThan 325 142 + SelectionMerge 329 None + BranchConditional 327 328 329 + 328: Label + 332: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 54 + 333: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 334 334 12 12 + ReturnValue 331 + 329: Label + Branch 305 + 305: Label + 336: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 54 + 337: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 296 296 12 12 + 338: 120(int) Load 298(i) + 339: 120(int) IAdd 338 123 + Store 298(i) 339 + Branch 302 + 304: Label + 341: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 54 + 342: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 343 343 12 12 + ReturnValue 89 FunctionEnd diff --git a/Test/baseResults/spv.debuginfo.glsl.tese.out b/Test/baseResults/spv.debuginfo.glsl.tese.out index 3c5d692f..0625c278 100644 --- a/Test/baseResults/spv.debuginfo.glsl.tese.out +++ b/Test/baseResults/spv.debuginfo.glsl.tese.out @@ -1,421 +1,445 @@ spv.debuginfo.glsl.tese -Validation failed // Module Version 10000 // Generated by (magic number): 8000b -// Id's are bound by 315 +// Id's are bound by 332 Capability Tessellation Extension "SPV_KHR_non_semantic_info" - 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" - 2: ExtInstImport "GLSL.std.450" + 2: ExtInstImport "NonSemantic.Shader.DebugInfo.100" + 3: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 - EntryPoint TessellationEvaluation 13 "main" 39 56 80 99 124 160 267 279 286 297 303 - ExecutionMode 13 Quads - ExecutionMode 13 SpacingEqual - ExecutionMode 13 VertexOrderCw - 8: String "uint" - 14: String "main" - 17: String "" - 25: String "float" - 32: String "uv1" - 41: String "inUV" - 44: String "int" - 58: String "gl_TessCoord" - 66: String "uv2" - 82: String "outUV" - 93: String "n1" - 101: String "inNormal" - 112: String "n2" - 126: String "outNormal" - 139: String "pos1" - 146: String "gl_Position" - 149: String "gl_PointSize" - 152: String "gl_CullDistance" - 156: String "gl_PerVertex" - 162: String "gl_in" - 174: String "pos2" - 187: String "pos" - 198: String "type.2d.image" - 200: String "@type.2d.image" - 204: String "type.sampled.image" - 205: String "@type.sampled.image" - 209: String "displacementMap" - 223: String "modelview" - 228: String "lightPos" - 231: String "frustumPlanes" - 233: String "tessellatedEdgeSize" - 237: String "viewportDim" - 241: String "UBO" - 245: String "ubo" - 281: String "outViewVec" - 288: String "outLightVec" - 299: String "outWorldPos" - 305: String "outEyePos" - Name 13 "main" - Name 30 "uv1" - Name 39 "inUV" - Name 56 "gl_TessCoord" - Name 64 "uv2" - Name 80 "outUV" - Name 91 "n1" - Name 99 "inNormal" - Name 110 "n2" - Name 124 "outNormal" - Name 137 "pos1" - Name 144 "gl_PerVertex" - MemberName 144(gl_PerVertex) 0 "gl_Position" - MemberName 144(gl_PerVertex) 1 "gl_PointSize" - MemberName 144(gl_PerVertex) 2 "gl_ClipDistance" - MemberName 144(gl_PerVertex) 3 "gl_CullDistance" - Name 160 "gl_in" - Name 172 "pos2" - Name 185 "pos" - Name 207 "displacementMap" - Name 221 "UBO" - MemberName 221(UBO) 0 "projection" - MemberName 221(UBO) 1 "modelview" - MemberName 221(UBO) 2 "lightPos" - MemberName 221(UBO) 3 "frustumPlanes" - MemberName 221(UBO) 4 "displacementFactor" - MemberName 221(UBO) 5 "tessellationFactor" - MemberName 221(UBO) 6 "viewportDim" - MemberName 221(UBO) 7 "tessellatedEdgeSize" - Name 243 "ubo" - Name 256 "gl_PerVertex" - MemberName 256(gl_PerVertex) 0 "gl_Position" - MemberName 256(gl_PerVertex) 1 "gl_PointSize" - MemberName 256(gl_PerVertex) 2 "gl_ClipDistance" - MemberName 256(gl_PerVertex) 3 "gl_CullDistance" - Name 267 "" - Name 279 "outViewVec" - Name 286 "outLightVec" - Name 297 "outWorldPos" - Name 303 "outEyePos" - Decorate 39(inUV) Location 1 - Decorate 56(gl_TessCoord) BuiltIn TessCoord - Decorate 80(outUV) Location 1 - Decorate 99(inNormal) Location 0 - Decorate 124(outNormal) Location 0 - MemberDecorate 144(gl_PerVertex) 0 BuiltIn Position - MemberDecorate 144(gl_PerVertex) 1 BuiltIn PointSize - MemberDecorate 144(gl_PerVertex) 2 BuiltIn ClipDistance - MemberDecorate 144(gl_PerVertex) 3 BuiltIn CullDistance - Decorate 144(gl_PerVertex) Block - Decorate 207(displacementMap) DescriptorSet 0 - Decorate 207(displacementMap) Binding 1 - Decorate 219 ArrayStride 16 - MemberDecorate 221(UBO) 0 ColMajor - MemberDecorate 221(UBO) 0 Offset 0 - MemberDecorate 221(UBO) 0 MatrixStride 16 - MemberDecorate 221(UBO) 1 ColMajor - MemberDecorate 221(UBO) 1 Offset 64 - MemberDecorate 221(UBO) 1 MatrixStride 16 - MemberDecorate 221(UBO) 2 Offset 128 - MemberDecorate 221(UBO) 3 Offset 144 - MemberDecorate 221(UBO) 4 Offset 240 - MemberDecorate 221(UBO) 5 Offset 244 - MemberDecorate 221(UBO) 6 Offset 248 - MemberDecorate 221(UBO) 7 Offset 256 - Decorate 221(UBO) Block - Decorate 243(ubo) DescriptorSet 0 - Decorate 243(ubo) Binding 0 - MemberDecorate 256(gl_PerVertex) 0 BuiltIn Position - MemberDecorate 256(gl_PerVertex) 1 BuiltIn PointSize - MemberDecorate 256(gl_PerVertex) 2 BuiltIn ClipDistance - MemberDecorate 256(gl_PerVertex) 3 BuiltIn CullDistance - Decorate 256(gl_PerVertex) Block - Decorate 279(outViewVec) Location 2 - Decorate 286(outLightVec) Location 3 - Decorate 297(outWorldPos) Location 5 - Decorate 303(outEyePos) Location 4 - 3: TypeVoid - 4: TypeFunction 3 - 6: TypeInt 32 0 - 9: 6(int) Constant 32 - 10: 6(int) Constant 6 - 11: 6(int) Constant 0 - 7: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 9 10 11 - 12: 6(int) Constant 3 - 5: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 12 3 - 16: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 0 17 - 19: 6(int) Constant 1 - 20: 6(int) Constant 4 - 21: 6(int) Constant 2 - 18: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 19 20 16 21 - 15: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 14 5 16 11 11 18 14 12 11 - 24: TypeFloat 32 - 26: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 25 9 12 11 - 27: TypeVector 24(float) 2 - 28: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 21 - 29: TypePointer Function 27(fvec2) - 33: 6(int) Constant 56 - 31: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 32 28 16 33 11 15 20 - 35: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) - 36: TypeArray 27(fvec2) 9 - 37: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 28 9 - 38: TypePointer Input 36 - 39(inUV): 38(ptr) Variable Input - 42: 6(int) Constant 8 - 40: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 41 37 16 33 11 18 41 39(inUV) 42 - 43: TypeInt 32 1 - 45: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 44 9 20 11 - 46: 43(int) Constant 0 - 47: TypePointer Input 27(fvec2) - 50: 43(int) Constant 1 - 53: TypeVector 24(float) 3 - 54: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 12 - 55: TypePointer Input 53(fvec3) -56(gl_TessCoord): 55(ptr) Variable Input - 57: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 58 54 16 33 11 18 58 56(gl_TessCoord) 42 - 59: TypePointer Input 24(float) - 67: 6(int) Constant 57 - 65: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 66 28 16 67 11 15 20 - 69: 43(int) Constant 3 - 72: 43(int) Constant 2 - 79: TypePointer Output 27(fvec2) - 80(outUV): 79(ptr) Variable Output - 83: 6(int) Constant 58 - 81: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 82 28 16 83 11 18 82 80(outUV) 42 - 90: TypePointer Function 53(fvec3) - 94: 6(int) Constant 60 - 92: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 93 54 16 94 11 15 20 - 96: TypeArray 53(fvec3) 9 - 97: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 54 9 - 98: TypePointer Input 96 - 99(inNormal): 98(ptr) Variable Input - 100: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 101 97 16 94 11 18 101 99(inNormal) 42 - 113: 6(int) Constant 61 - 111: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 112 54 16 113 11 15 20 - 123: TypePointer Output 53(fvec3) - 124(outNormal): 123(ptr) Variable Output - 127: 6(int) Constant 62 - 125: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 126 54 16 127 11 18 126 124(outNormal) 42 - 134: TypeVector 24(float) 4 - 135: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 20 - 136: TypePointer Function 134(fvec4) - 140: 6(int) Constant 65 - 138: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 139 135 16 140 11 15 20 - 142: TypeArray 24(float) 19 - 143: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 26 19 -144(gl_PerVertex): TypeStruct 134(fvec4) 24(float) 142 142 - 147: 6(int) Constant 1756 - 145: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 146 135 16 19 147 11 11 12 - 150: 6(int) Constant 1774 - 148: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 149 26 16 19 150 11 11 12 - 153: 6(int) Constant 1817 - 151: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 152 143 16 19 153 11 11 12 - 154: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 152 143 16 19 153 11 11 12 - 155: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 156 19 16 140 11 18 156 11 12 145 148 151 154 - 157: TypeArray 144(gl_PerVertex) 9 - 158: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 155 9 - 159: TypePointer Input 157 - 160(gl_in): 159(ptr) Variable Input - 161: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 162 158 16 140 11 18 162 160(gl_in) 42 - 163: TypePointer Input 134(fvec4) - 175: 6(int) Constant 66 - 173: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 174 135 16 175 11 15 20 - 188: 6(int) Constant 67 - 186: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 187 135 16 188 11 15 20 - 196: TypeImage 24(float) 2D sampled format:Unknown - 199: 6(int) Constant 69 - 201: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) - 197: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 198 11 16 199 11 18 200 201 12 - 202: TypeSampledImage 196 - 203: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 204 11 16 199 11 18 205 201 12 - 206: TypePointer UniformConstant 202 -207(displacementMap): 206(ptr) Variable UniformConstant - 208: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 209 203 16 199 11 18 209 207(displacementMap) 42 - 212: 24(float) Constant 0 - 215: TypeMatrix 134(fvec4) 4 - 217: TypeBool - 218: 217(bool) ConstantTrue - 216: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 135 20 218 - 219: TypeArray 134(fvec4) 10 - 220: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 135 10 - 221(UBO): TypeStruct 215 215 134(fvec4) 219 24(float) 24(float) 27(fvec2) 24(float) - 224: 6(int) Constant 30 - 225: 6(int) Constant 7 - 222: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 223 216 16 224 225 11 11 12 - 226: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 223 216 16 224 225 11 11 12 - 229: 6(int) Constant 31 - 227: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 228 135 16 229 225 11 11 12 - 230: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 231 220 16 9 225 11 11 12 - 234: 6(int) Constant 36 - 232: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 233 26 16 234 42 11 11 12 - 235: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 233 26 16 234 42 11 11 12 - 238: 6(int) Constant 35 - 236: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 237 28 16 238 225 11 11 12 - 239: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 233 26 16 234 42 11 11 12 - 240: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 241 19 16 199 11 18 241 11 12 222 226 227 230 232 235 236 239 - 242: TypePointer Uniform 221(UBO) - 243(ubo): 242(ptr) Variable Uniform - 244: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 245 240 16 199 11 18 245 243(ubo) 42 - 246: 43(int) Constant 4 - 247: TypePointer Uniform 24(float) - 251: TypePointer Function 24(float) -256(gl_PerVertex): TypeStruct 134(fvec4) 24(float) 142 142 - 258: 6(int) Constant 165 - 257: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 146 135 16 19 258 11 11 12 - 260: 6(int) Constant 183 - 259: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 149 26 16 19 260 11 11 12 - 262: 6(int) Constant 226 - 261: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 152 143 16 19 262 11 11 12 - 263: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 152 143 16 19 262 11 11 12 - 265: 6(int) Constant 71 - 264: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 156 19 16 265 11 18 156 11 12 257 259 261 263 - 266: TypePointer Output 256(gl_PerVertex) - 267: 266(ptr) Variable Output - 268: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 17 264 16 265 11 18 17 267 42 - 269: TypePointer Uniform 215 - 277: TypePointer Output 134(fvec4) - 279(outViewVec): 123(ptr) Variable Output - 282: 6(int) Constant 74 - 280: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 281 54 16 282 11 18 281 279(outViewVec) 42 -286(outLightVec): 123(ptr) Variable Output - 289: 6(int) Constant 75 - 287: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 288 54 16 289 11 18 288 286(outLightVec) 42 - 290: TypePointer Uniform 134(fvec4) -297(outWorldPos): 123(ptr) Variable Output - 300: 6(int) Constant 76 - 298: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 299 54 16 300 11 18 299 297(outWorldPos) 42 - 303(outEyePos): 123(ptr) Variable Output - 306: 6(int) Constant 77 - 304: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 305 54 16 306 11 18 305 303(outEyePos) 42 - 13(main): 3 Function None 4 - 22: Label - 30(uv1): 29(ptr) Variable Function - 64(uv2): 29(ptr) Variable Function - 91(n1): 90(ptr) Variable Function - 110(n2): 90(ptr) Variable Function - 137(pos1): 136(ptr) Variable Function - 172(pos2): 136(ptr) Variable Function - 185(pos): 136(ptr) Variable Function - 23: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 15 13(main) - 34: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 31 30(uv1) 35 - 48: 47(ptr) AccessChain 39(inUV) 46 - 49: 27(fvec2) Load 48 - 51: 47(ptr) AccessChain 39(inUV) 50 - 52: 27(fvec2) Load 51 - 60: 59(ptr) AccessChain 56(gl_TessCoord) 11 - 61: 24(float) Load 60 - 62: 27(fvec2) CompositeConstruct 61 61 - 63: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 49 52 62 - Store 30(uv1) 63 - 68: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 65 64(uv2) 35 - 70: 47(ptr) AccessChain 39(inUV) 69 - 71: 27(fvec2) Load 70 - 73: 47(ptr) AccessChain 39(inUV) 72 - 74: 27(fvec2) Load 73 - 75: 59(ptr) AccessChain 56(gl_TessCoord) 11 - 76: 24(float) Load 75 - 77: 27(fvec2) CompositeConstruct 76 76 - 78: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 71 74 77 - Store 64(uv2) 78 - 84: 27(fvec2) Load 30(uv1) - 85: 27(fvec2) Load 64(uv2) - 86: 59(ptr) AccessChain 56(gl_TessCoord) 19 - 87: 24(float) Load 86 - 88: 27(fvec2) CompositeConstruct 87 87 - 89: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 84 85 88 - Store 80(outUV) 89 - 95: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 92 91(n1) 35 - 102: 55(ptr) AccessChain 99(inNormal) 46 - 103: 53(fvec3) Load 102 - 104: 55(ptr) AccessChain 99(inNormal) 50 - 105: 53(fvec3) Load 104 - 106: 59(ptr) AccessChain 56(gl_TessCoord) 11 - 107: 24(float) Load 106 - 108: 53(fvec3) CompositeConstruct 107 107 107 - 109: 53(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 103 105 108 - Store 91(n1) 109 - 114: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 111 110(n2) 35 - 115: 55(ptr) AccessChain 99(inNormal) 69 - 116: 53(fvec3) Load 115 - 117: 55(ptr) AccessChain 99(inNormal) 72 - 118: 53(fvec3) Load 117 - 119: 59(ptr) AccessChain 56(gl_TessCoord) 11 - 120: 24(float) Load 119 - 121: 53(fvec3) CompositeConstruct 120 120 120 - 122: 53(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 116 118 121 - Store 110(n2) 122 - 128: 53(fvec3) Load 91(n1) - 129: 53(fvec3) Load 110(n2) - 130: 59(ptr) AccessChain 56(gl_TessCoord) 19 - 131: 24(float) Load 130 - 132: 53(fvec3) CompositeConstruct 131 131 131 - 133: 53(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 128 129 132 - Store 124(outNormal) 133 - 141: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 138 137(pos1) 35 - 164: 163(ptr) AccessChain 160(gl_in) 46 46 - 165: 134(fvec4) Load 164 - 166: 163(ptr) AccessChain 160(gl_in) 50 46 - 167: 134(fvec4) Load 166 - 168: 59(ptr) AccessChain 56(gl_TessCoord) 11 - 169: 24(float) Load 168 - 170: 134(fvec4) CompositeConstruct 169 169 169 169 - 171: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 165 167 170 - Store 137(pos1) 171 - 176: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 173 172(pos2) 35 - 177: 163(ptr) AccessChain 160(gl_in) 69 46 - 178: 134(fvec4) Load 177 - 179: 163(ptr) AccessChain 160(gl_in) 72 46 - 180: 134(fvec4) Load 179 - 181: 59(ptr) AccessChain 56(gl_TessCoord) 11 - 182: 24(float) Load 181 - 183: 134(fvec4) CompositeConstruct 182 182 182 182 - 184: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 178 180 183 - Store 172(pos2) 184 - 189: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 186 185(pos) 35 - 190: 134(fvec4) Load 137(pos1) - 191: 134(fvec4) Load 172(pos2) - 192: 59(ptr) AccessChain 56(gl_TessCoord) 19 - 193: 24(float) Load 192 - 194: 134(fvec4) CompositeConstruct 193 193 193 193 - 195: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 190 191 194 - Store 185(pos) 195 - 210: 202 Load 207(displacementMap) - 211: 27(fvec2) Load 80(outUV) - 213: 134(fvec4) ImageSampleExplicitLod 210 211 Lod 212 - 214: 24(float) CompositeExtract 213 0 - 248: 247(ptr) AccessChain 243(ubo) 246 - 249: 24(float) Load 248 - 250: 24(float) FMul 214 249 - 252: 251(ptr) AccessChain 185(pos) 19 - 253: 24(float) Load 252 - 254: 24(float) FSub 253 250 - 255: 251(ptr) AccessChain 185(pos) 19 - Store 255 254 - 270: 269(ptr) AccessChain 243(ubo) 46 - 271: 215 Load 270 - 272: 269(ptr) AccessChain 243(ubo) 50 - 273: 215 Load 272 - 274: 215 MatrixTimesMatrix 271 273 - 275: 134(fvec4) Load 185(pos) - 276: 134(fvec4) MatrixTimesVector 274 275 - 278: 277(ptr) AccessChain 267 46 - Store 278 276 - 283: 134(fvec4) Load 185(pos) - 284: 53(fvec3) VectorShuffle 283 283 0 1 2 - 285: 53(fvec3) FNegate 284 - Store 279(outViewVec) 285 - 291: 290(ptr) AccessChain 243(ubo) 72 - 292: 134(fvec4) Load 291 - 293: 53(fvec3) VectorShuffle 292 292 0 1 2 - 294: 53(fvec3) Load 279(outViewVec) - 295: 53(fvec3) FAdd 293 294 - 296: 53(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 295 - Store 286(outLightVec) 296 - 301: 134(fvec4) Load 185(pos) - 302: 53(fvec3) VectorShuffle 301 301 0 1 2 - Store 297(outWorldPos) 302 - 307: 269(ptr) AccessChain 243(ubo) 50 - 308: 215 Load 307 - 309: 134(fvec4) Load 185(pos) - 310: 134(fvec4) MatrixTimesVector 308 309 - 311: 24(float) CompositeExtract 310 0 - 312: 24(float) CompositeExtract 310 1 - 313: 24(float) CompositeExtract 310 2 - 314: 53(fvec3) CompositeConstruct 311 312 313 - Store 303(outEyePos) 314 + EntryPoint TessellationEvaluation 14 "main" 42 59 86 105 133 169 280 294 302 314 321 + ExecutionMode 14 Quads + ExecutionMode 14 SpacingEqual + ExecutionMode 14 VertexOrderCw + 1: String "" + 9: String "uint" + 15: String "main" + 18: String "// OpModuleProcessed auto-map-locations +// OpModuleProcessed auto-map-bindings +// OpModuleProcessed client vulkan100 +// OpModuleProcessed target-env vulkan1.0 +// OpModuleProcessed keep-uncalled +// OpModuleProcessed entry-point main +#line 1 +" + 29: String "float" + 36: String "uv1" + 44: String "inUV" + 47: String "int" + 61: String "gl_TessCoord" + 71: String "uv2" + 88: String "outUV" + 100: String "n1" + 107: String "inNormal" + 120: String "n2" + 135: String "outNormal" + 149: String "pos1" + 155: String "gl_Position" + 158: String "gl_PointSize" + 161: String "gl_CullDistance" + 165: String "gl_PerVertex" + 171: String "gl_in" + 185: String "pos2" + 199: String "pos" + 211: String "type.2d.image" + 212: String "@type.2d.image" + 216: String "type.sampled.image" + 217: String "@type.sampled.image" + 221: String "displacementMap" + 235: String "modelview" + 240: String "lightPos" + 243: String "frustumPlanes" + 245: String "tessellatedEdgeSize" + 249: String "viewportDim" + 253: String "UBO" + 257: String "ubo" + 296: String "outViewVec" + 304: String "outLightVec" + 316: String "outWorldPos" + 323: String "outEyePos" + Name 14 "main" + Name 34 "uv1" + Name 42 "inUV" + Name 59 "gl_TessCoord" + Name 69 "uv2" + Name 86 "outUV" + Name 98 "n1" + Name 105 "inNormal" + Name 118 "n2" + Name 133 "outNormal" + Name 147 "pos1" + Name 153 "gl_PerVertex" + MemberName 153(gl_PerVertex) 0 "gl_Position" + MemberName 153(gl_PerVertex) 1 "gl_PointSize" + MemberName 153(gl_PerVertex) 2 "gl_ClipDistance" + MemberName 153(gl_PerVertex) 3 "gl_CullDistance" + Name 169 "gl_in" + Name 183 "pos2" + Name 197 "pos" + Name 219 "displacementMap" + Name 233 "UBO" + MemberName 233(UBO) 0 "projection" + MemberName 233(UBO) 1 "modelview" + MemberName 233(UBO) 2 "lightPos" + MemberName 233(UBO) 3 "frustumPlanes" + MemberName 233(UBO) 4 "displacementFactor" + MemberName 233(UBO) 5 "tessellationFactor" + MemberName 233(UBO) 6 "viewportDim" + MemberName 233(UBO) 7 "tessellatedEdgeSize" + Name 255 "ubo" + Name 270 "gl_PerVertex" + MemberName 270(gl_PerVertex) 0 "gl_Position" + MemberName 270(gl_PerVertex) 1 "gl_PointSize" + MemberName 270(gl_PerVertex) 2 "gl_ClipDistance" + MemberName 270(gl_PerVertex) 3 "gl_CullDistance" + Name 280 "" + Name 294 "outViewVec" + Name 302 "outLightVec" + Name 314 "outWorldPos" + Name 321 "outEyePos" + Decorate 42(inUV) Location 1 + Decorate 59(gl_TessCoord) BuiltIn TessCoord + Decorate 86(outUV) Location 1 + Decorate 105(inNormal) Location 0 + Decorate 133(outNormal) Location 0 + MemberDecorate 153(gl_PerVertex) 0 BuiltIn Position + MemberDecorate 153(gl_PerVertex) 1 BuiltIn PointSize + MemberDecorate 153(gl_PerVertex) 2 BuiltIn ClipDistance + MemberDecorate 153(gl_PerVertex) 3 BuiltIn CullDistance + Decorate 153(gl_PerVertex) Block + Decorate 219(displacementMap) DescriptorSet 0 + Decorate 219(displacementMap) Binding 1 + Decorate 231 ArrayStride 16 + MemberDecorate 233(UBO) 0 ColMajor + MemberDecorate 233(UBO) 0 Offset 0 + MemberDecorate 233(UBO) 0 MatrixStride 16 + MemberDecorate 233(UBO) 1 ColMajor + MemberDecorate 233(UBO) 1 Offset 64 + MemberDecorate 233(UBO) 1 MatrixStride 16 + MemberDecorate 233(UBO) 2 Offset 128 + MemberDecorate 233(UBO) 3 Offset 144 + MemberDecorate 233(UBO) 4 Offset 240 + MemberDecorate 233(UBO) 5 Offset 244 + MemberDecorate 233(UBO) 6 Offset 248 + MemberDecorate 233(UBO) 7 Offset 256 + Decorate 233(UBO) Block + Decorate 255(ubo) DescriptorSet 0 + Decorate 255(ubo) Binding 0 + MemberDecorate 270(gl_PerVertex) 0 BuiltIn Position + MemberDecorate 270(gl_PerVertex) 1 BuiltIn PointSize + MemberDecorate 270(gl_PerVertex) 2 BuiltIn ClipDistance + MemberDecorate 270(gl_PerVertex) 3 BuiltIn CullDistance + Decorate 270(gl_PerVertex) Block + Decorate 294(outViewVec) Location 2 + Decorate 302(outLightVec) Location 3 + Decorate 314(outWorldPos) Location 5 + Decorate 321(outEyePos) Location 4 + 4: TypeVoid + 5: TypeFunction 4 + 7: TypeInt 32 0 + 10: 7(int) Constant 32 + 11: 7(int) Constant 6 + 12: 7(int) Constant 0 + 8: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 10 11 12 + 13: 7(int) Constant 3 + 6: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 + 17: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 18 + 20: 7(int) Constant 1 + 21: 7(int) Constant 4 + 22: 7(int) Constant 2 + 19: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 20 21 17 22 + 16: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 15 6 17 12 12 19 15 13 12 + 27: 7(int) Constant 56 + 28: TypeFloat 32 + 30: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 29 10 13 12 + 31: TypeVector 28(float) 2 + 32: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 30 22 + 33: TypePointer Function 31(fvec2) + 35: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 36 32 17 27 12 16 21 + 38: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) + 39: TypeArray 31(fvec2) 10 + 40: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 32 10 + 41: TypePointer Input 39 + 42(inUV): 41(ptr) Variable Input + 45: 7(int) Constant 8 + 43: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 44 40 17 27 12 19 44 42(inUV) 45 + 46: TypeInt 32 1 + 48: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 10 21 12 + 49: 46(int) Constant 0 + 50: TypePointer Input 31(fvec2) + 53: 46(int) Constant 1 + 56: TypeVector 28(float) 3 + 57: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 30 13 + 58: TypePointer Input 56(fvec3) +59(gl_TessCoord): 58(ptr) Variable Input + 60: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 61 57 17 27 12 19 61 59(gl_TessCoord) 45 + 62: TypePointer Input 28(float) + 68: 7(int) Constant 57 + 70: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 71 32 17 68 12 16 21 + 73: 46(int) Constant 3 + 76: 46(int) Constant 2 + 84: 7(int) Constant 58 + 85: TypePointer Output 31(fvec2) + 86(outUV): 85(ptr) Variable Output + 87: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 88 32 17 84 12 19 88 86(outUV) 45 + 96: 7(int) Constant 60 + 97: TypePointer Function 56(fvec3) + 99: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 100 57 17 96 12 16 21 + 102: TypeArray 56(fvec3) 10 + 103: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 57 10 + 104: TypePointer Input 102 + 105(inNormal): 104(ptr) Variable Input + 106: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 107 103 17 96 12 19 107 105(inNormal) 45 + 117: 7(int) Constant 61 + 119: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 120 57 17 117 12 16 21 + 131: 7(int) Constant 62 + 132: TypePointer Output 56(fvec3) + 133(outNormal): 132(ptr) Variable Output + 134: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 135 57 17 131 12 19 135 133(outNormal) 45 + 143: 7(int) Constant 65 + 144: TypeVector 28(float) 4 + 145: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 30 21 + 146: TypePointer Function 144(fvec4) + 148: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 149 145 17 143 12 16 21 + 151: TypeArray 28(float) 20 + 152: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 30 20 +153(gl_PerVertex): TypeStruct 144(fvec4) 28(float) 151 151 + 156: 7(int) Constant 1756 + 154: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 155 145 17 20 156 12 12 13 + 159: 7(int) Constant 1774 + 157: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 158 30 17 20 159 12 12 13 + 162: 7(int) Constant 1817 + 160: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 161 152 17 20 162 12 12 13 + 163: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 161 152 17 20 162 12 12 13 + 164: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 165 20 17 143 12 19 165 12 13 154 157 160 163 + 166: TypeArray 153(gl_PerVertex) 10 + 167: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 164 10 + 168: TypePointer Input 166 + 169(gl_in): 168(ptr) Variable Input + 170: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 171 167 17 143 12 19 171 169(gl_in) 45 + 172: TypePointer Input 144(fvec4) + 182: 7(int) Constant 66 + 184: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 185 145 17 182 12 16 21 + 196: 7(int) Constant 67 + 198: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 199 145 17 196 12 16 21 + 208: 7(int) Constant 69 + 209: TypeImage 28(float) 2D sampled format:Unknown + 213: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) + 210: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 211 12 17 208 12 19 212 213 13 + 214: TypeSampledImage 209 + 215: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 216 12 17 208 12 19 217 213 13 + 218: TypePointer UniformConstant 214 +219(displacementMap): 218(ptr) Variable UniformConstant + 220: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 221 215 17 208 12 19 221 219(displacementMap) 45 + 224: 28(float) Constant 0 + 227: TypeMatrix 144(fvec4) 4 + 229: TypeBool + 230: 229(bool) ConstantTrue + 228: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 145 21 230 + 231: TypeArray 144(fvec4) 11 + 232: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 145 11 + 233(UBO): TypeStruct 227 227 144(fvec4) 231 28(float) 28(float) 31(fvec2) 28(float) + 236: 7(int) Constant 30 + 237: 7(int) Constant 7 + 234: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 235 228 17 236 237 12 12 13 + 238: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 235 228 17 236 237 12 12 13 + 241: 7(int) Constant 31 + 239: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 240 145 17 241 237 12 12 13 + 242: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 243 232 17 10 237 12 12 13 + 246: 7(int) Constant 36 + 244: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 245 30 17 246 45 12 12 13 + 247: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 245 30 17 246 45 12 12 13 + 250: 7(int) Constant 35 + 248: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 249 32 17 250 237 12 12 13 + 251: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 245 30 17 246 45 12 12 13 + 252: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 253 20 17 208 12 19 253 12 13 234 238 239 242 244 247 248 251 + 254: TypePointer Uniform 233(UBO) + 255(ubo): 254(ptr) Variable Uniform + 256: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 257 252 17 208 12 19 257 255(ubo) 45 + 258: 46(int) Constant 4 + 259: TypePointer Uniform 28(float) + 263: TypePointer Function 28(float) + 269: 7(int) Constant 71 +270(gl_PerVertex): TypeStruct 144(fvec4) 28(float) 151 151 + 272: 7(int) Constant 165 + 271: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 155 145 17 20 272 12 12 13 + 274: 7(int) Constant 183 + 273: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 158 30 17 20 274 12 12 13 + 276: 7(int) Constant 226 + 275: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 161 152 17 20 276 12 12 13 + 277: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 161 152 17 20 276 12 12 13 + 278: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 165 20 17 269 12 19 165 12 13 271 273 275 277 + 279: TypePointer Output 270(gl_PerVertex) + 280: 279(ptr) Variable Output + 281: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 278 17 269 12 19 1 280 45 + 282: TypePointer Uniform 227 + 290: TypePointer Output 144(fvec4) + 293: 7(int) Constant 74 + 294(outViewVec): 132(ptr) Variable Output + 295: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 296 57 17 293 12 19 296 294(outViewVec) 45 + 301: 7(int) Constant 75 +302(outLightVec): 132(ptr) Variable Output + 303: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 304 57 17 301 12 19 304 302(outLightVec) 45 + 305: TypePointer Uniform 144(fvec4) + 313: 7(int) Constant 76 +314(outWorldPos): 132(ptr) Variable Output + 315: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 316 57 17 313 12 19 316 314(outWorldPos) 45 + 320: 7(int) Constant 77 + 321(outEyePos): 132(ptr) Variable Output + 322: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 323 57 17 320 12 19 323 321(outEyePos) 45 + Line 1 53 11 + 14(main): 4 Function None 5 + 23: Label + 34(uv1): 33(ptr) Variable Function + 69(uv2): 33(ptr) Variable Function + 98(n1): 97(ptr) Variable Function + 118(n2): 97(ptr) Variable Function + 147(pos1): 146(ptr) Variable Function + 183(pos2): 146(ptr) Variable Function + 197(pos): 146(ptr) Variable Function + 24: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 16 14(main) + 25: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 26: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 27 27 12 12 + 37: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 35 34(uv1) 38 + 51: 50(ptr) AccessChain 42(inUV) 49 + 52: 31(fvec2) Load 51 + 54: 50(ptr) AccessChain 42(inUV) 53 + 55: 31(fvec2) Load 54 + 63: 62(ptr) AccessChain 59(gl_TessCoord) 12 + 64: 28(float) Load 63 + 65: 31(fvec2) CompositeConstruct 64 64 + 66: 31(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 52 55 65 + Store 34(uv1) 66 + 67: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 68 68 12 12 + 72: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 70 69(uv2) 38 + 74: 50(ptr) AccessChain 42(inUV) 73 + 75: 31(fvec2) Load 74 + 77: 50(ptr) AccessChain 42(inUV) 76 + 78: 31(fvec2) Load 77 + 79: 62(ptr) AccessChain 59(gl_TessCoord) 12 + 80: 28(float) Load 79 + 81: 31(fvec2) CompositeConstruct 80 80 + 82: 31(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 75 78 81 + Store 69(uv2) 82 + 83: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 84 84 12 12 + 89: 31(fvec2) Load 34(uv1) + 90: 31(fvec2) Load 69(uv2) + 91: 62(ptr) AccessChain 59(gl_TessCoord) 20 + 92: 28(float) Load 91 + 93: 31(fvec2) CompositeConstruct 92 92 + 94: 31(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 89 90 93 + Store 86(outUV) 94 + 95: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 96 96 12 12 + 101: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 99 98(n1) 38 + 108: 58(ptr) AccessChain 105(inNormal) 49 + 109: 56(fvec3) Load 108 + 110: 58(ptr) AccessChain 105(inNormal) 53 + 111: 56(fvec3) Load 110 + 112: 62(ptr) AccessChain 59(gl_TessCoord) 12 + 113: 28(float) Load 112 + 114: 56(fvec3) CompositeConstruct 113 113 113 + 115: 56(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 109 111 114 + Store 98(n1) 115 + 116: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 117 117 12 12 + 121: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 119 118(n2) 38 + 122: 58(ptr) AccessChain 105(inNormal) 73 + 123: 56(fvec3) Load 122 + 124: 58(ptr) AccessChain 105(inNormal) 76 + 125: 56(fvec3) Load 124 + 126: 62(ptr) AccessChain 59(gl_TessCoord) 12 + 127: 28(float) Load 126 + 128: 56(fvec3) CompositeConstruct 127 127 127 + 129: 56(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 123 125 128 + Store 118(n2) 129 + 130: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 131 131 12 12 + 136: 56(fvec3) Load 98(n1) + 137: 56(fvec3) Load 118(n2) + 138: 62(ptr) AccessChain 59(gl_TessCoord) 20 + 139: 28(float) Load 138 + 140: 56(fvec3) CompositeConstruct 139 139 139 + 141: 56(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 136 137 140 + Store 133(outNormal) 141 + 142: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 143 143 12 12 + 150: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 148 147(pos1) 38 + 173: 172(ptr) AccessChain 169(gl_in) 49 49 + 174: 144(fvec4) Load 173 + 175: 172(ptr) AccessChain 169(gl_in) 53 49 + 176: 144(fvec4) Load 175 + 177: 62(ptr) AccessChain 59(gl_TessCoord) 12 + 178: 28(float) Load 177 + 179: 144(fvec4) CompositeConstruct 178 178 178 178 + 180: 144(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 174 176 179 + Store 147(pos1) 180 + 181: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 182 182 12 12 + 186: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 184 183(pos2) 38 + 187: 172(ptr) AccessChain 169(gl_in) 73 49 + 188: 144(fvec4) Load 187 + 189: 172(ptr) AccessChain 169(gl_in) 76 49 + 190: 144(fvec4) Load 189 + 191: 62(ptr) AccessChain 59(gl_TessCoord) 12 + 192: 28(float) Load 191 + 193: 144(fvec4) CompositeConstruct 192 192 192 192 + 194: 144(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 188 190 193 + Store 183(pos2) 194 + 195: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 196 196 12 12 + 200: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 198 197(pos) 38 + 201: 144(fvec4) Load 147(pos1) + 202: 144(fvec4) Load 183(pos2) + 203: 62(ptr) AccessChain 59(gl_TessCoord) 20 + 204: 28(float) Load 203 + 205: 144(fvec4) CompositeConstruct 204 204 204 204 + 206: 144(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 201 202 205 + Store 197(pos) 206 + 207: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 208 208 12 12 + 222: 214 Load 219(displacementMap) + 223: 31(fvec2) Load 86(outUV) + 225: 144(fvec4) ImageSampleExplicitLod 222 223 Lod 224 + 226: 28(float) CompositeExtract 225 0 + 260: 259(ptr) AccessChain 255(ubo) 258 + 261: 28(float) Load 260 + 262: 28(float) FMul 226 261 + 264: 263(ptr) AccessChain 197(pos) 20 + 265: 28(float) Load 264 + 266: 28(float) FSub 265 262 + 267: 263(ptr) AccessChain 197(pos) 20 + Store 267 266 + 268: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 269 269 12 12 + 283: 282(ptr) AccessChain 255(ubo) 49 + 284: 227 Load 283 + 285: 282(ptr) AccessChain 255(ubo) 53 + 286: 227 Load 285 + 287: 227 MatrixTimesMatrix 284 286 + 288: 144(fvec4) Load 197(pos) + 289: 144(fvec4) MatrixTimesVector 287 288 + 291: 290(ptr) AccessChain 280 49 + Store 291 289 + 292: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 293 293 12 12 + 297: 144(fvec4) Load 197(pos) + 298: 56(fvec3) VectorShuffle 297 297 0 1 2 + 299: 56(fvec3) FNegate 298 + Store 294(outViewVec) 299 + 300: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 301 301 12 12 + 306: 305(ptr) AccessChain 255(ubo) 76 + 307: 144(fvec4) Load 306 + 308: 56(fvec3) VectorShuffle 307 307 0 1 2 + 309: 56(fvec3) Load 294(outViewVec) + 310: 56(fvec3) FAdd 308 309 + 311: 56(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 310 + Store 302(outLightVec) 311 + 312: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 313 313 12 12 + 317: 144(fvec4) Load 197(pos) + 318: 56(fvec3) VectorShuffle 317 317 0 1 2 + Store 314(outWorldPos) 318 + 319: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 320 320 12 12 + 324: 282(ptr) AccessChain 255(ubo) 53 + 325: 227 Load 324 + 326: 144(fvec4) Load 197(pos) + 327: 144(fvec4) MatrixTimesVector 325 326 + 328: 28(float) CompositeExtract 327 0 + 329: 28(float) CompositeExtract 327 1 + 330: 28(float) CompositeExtract 327 2 + 331: 56(fvec3) CompositeConstruct 328 329 330 + Store 321(outEyePos) 331 Return FunctionEnd diff --git a/Test/baseResults/spv.debuginfo.glsl.vert.out b/Test/baseResults/spv.debuginfo.glsl.vert.out index 24025de9..e0c9d600 100644 --- a/Test/baseResults/spv.debuginfo.glsl.vert.out +++ b/Test/baseResults/spv.debuginfo.glsl.vert.out @@ -1,484 +1,541 @@ spv.debuginfo.glsl.vert -Validation failed // Module Version 10000 // Generated by (magic number): 8000b -// Id's are bound by 374 +// Id's are bound by 424 Capability Shader Extension "SPV_KHR_non_semantic_info" - 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" - 2: ExtInstImport "GLSL.std.450" + 2: ExtInstImport "NonSemantic.Shader.DebugInfo.100" + 3: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 - EntryPoint Vertex 13 "main" 30 36 40 47 55 70 247 264 269 293 307 325 359 367 - 8: String "uint" - 14: String "main" - 17: String "" - 25: String "float" - 32: String "outColor" - 38: String "inColor" - 42: String "outUV" - 49: String "inUV" - 52: String "int" - 57: String "instanceTexIndex" - 66: String "s" - 72: String "instanceRot" - 84: String "modelview" - 89: String "lightPos" - 92: String "globSpeed" - 96: String "UBO" - 100: String "ubo" - 109: String "c" - 123: String "mx" - 157: String "my" - 185: String "mz" - 201: String "rotMat" - 225: String "gRotMat" - 244: String "locPos" - 249: String "inPos" - 259: String "pos" - 266: String "instanceScale" - 271: String "instancePos" - 282: String "gl_Position" - 285: String "gl_PointSize" - 287: String "gl_CullDistance" - 290: String "gl_PerVertex" - 309: String "outNormal" - 327: String "inNormal" - 342: String "lPos" - 361: String "outLightVec" - 369: String "outViewVec" - Name 13 "main" - Name 30 "outColor" - Name 36 "inColor" - Name 40 "outUV" - Name 47 "inUV" - Name 55 "instanceTexIndex" - Name 64 "s" - Name 70 "instanceRot" - Name 82 "UBO" - MemberName 82(UBO) 0 "projection" - MemberName 82(UBO) 1 "modelview" - MemberName 82(UBO) 2 "lightPos" - MemberName 82(UBO) 3 "locSpeed" - MemberName 82(UBO) 4 "globSpeed" - Name 98 "ubo" - Name 107 "c" - Name 121 "mx" - Name 155 "my" - Name 183 "mz" - Name 199 "rotMat" - Name 223 "gRotMat" - Name 242 "locPos" - Name 247 "inPos" - Name 257 "pos" - Name 264 "instanceScale" - Name 269 "instancePos" - Name 280 "gl_PerVertex" - MemberName 280(gl_PerVertex) 0 "gl_Position" - MemberName 280(gl_PerVertex) 1 "gl_PointSize" - MemberName 280(gl_PerVertex) 2 "gl_ClipDistance" - MemberName 280(gl_PerVertex) 3 "gl_CullDistance" - Name 293 "" - Name 307 "outNormal" - Name 325 "inNormal" - Name 340 "lPos" - Name 359 "outLightVec" - Name 367 "outViewVec" - Decorate 30(outColor) Location 1 - Decorate 36(inColor) Location 3 - Decorate 40(outUV) Location 2 - Decorate 47(inUV) Location 2 - Decorate 55(instanceTexIndex) Location 7 - Decorate 70(instanceRot) Location 5 - MemberDecorate 82(UBO) 0 ColMajor - MemberDecorate 82(UBO) 0 Offset 0 - MemberDecorate 82(UBO) 0 MatrixStride 16 - MemberDecorate 82(UBO) 1 ColMajor - MemberDecorate 82(UBO) 1 Offset 64 - MemberDecorate 82(UBO) 1 MatrixStride 16 - MemberDecorate 82(UBO) 2 Offset 128 - MemberDecorate 82(UBO) 3 Offset 144 - MemberDecorate 82(UBO) 4 Offset 148 - Decorate 82(UBO) Block - Decorate 98(ubo) DescriptorSet 0 - Decorate 98(ubo) Binding 0 - Decorate 247(inPos) Location 0 - Decorate 264(instanceScale) Location 6 - Decorate 269(instancePos) Location 4 - MemberDecorate 280(gl_PerVertex) 0 BuiltIn Position - MemberDecorate 280(gl_PerVertex) 1 BuiltIn PointSize - MemberDecorate 280(gl_PerVertex) 2 BuiltIn ClipDistance - MemberDecorate 280(gl_PerVertex) 3 BuiltIn CullDistance - Decorate 280(gl_PerVertex) Block - Decorate 307(outNormal) Location 0 - Decorate 325(inNormal) Location 1 - Decorate 359(outLightVec) Location 4 - Decorate 367(outViewVec) Location 3 - 3: TypeVoid - 4: TypeFunction 3 - 6: TypeInt 32 0 - 9: 6(int) Constant 32 - 10: 6(int) Constant 6 - 11: 6(int) Constant 0 - 7: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 9 10 11 - 12: 6(int) Constant 3 - 5: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 12 3 - 16: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 0 17 - 19: 6(int) Constant 1 - 20: 6(int) Constant 4 - 21: 6(int) Constant 2 - 18: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 19 20 16 21 - 15: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 14 5 16 11 11 18 14 12 11 - 24: TypeFloat 32 - 26: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 25 9 12 11 - 27: TypeVector 24(float) 3 - 28: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 12 - 29: TypePointer Output 27(fvec3) - 30(outColor): 29(ptr) Variable Output - 33: 6(int) Constant 56 - 34: 6(int) Constant 8 - 31: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 32 28 16 33 11 18 32 30(outColor) 34 - 35: TypePointer Input 27(fvec3) - 36(inColor): 35(ptr) Variable Input - 37: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 38 28 16 33 11 18 38 36(inColor) 34 - 40(outUV): 29(ptr) Variable Output - 43: 6(int) Constant 57 - 41: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 42 28 16 43 11 18 42 40(outUV) 34 - 44: TypeVector 24(float) 2 - 45: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 21 - 46: TypePointer Input 44(fvec2) - 47(inUV): 46(ptr) Variable Input - 48: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 49 45 16 43 11 18 49 47(inUV) 34 - 51: TypeInt 32 1 - 53: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 52 9 20 11 - 54: TypePointer Input 51(int) -55(instanceTexIndex): 54(ptr) Variable Input - 56: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 57 53 16 43 11 18 57 55(instanceTexIndex) 34 - 63: TypePointer Function 24(float) - 67: 6(int) Constant 62 - 65: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 66 26 16 67 11 15 20 - 69: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) - 70(instanceRot): 35(ptr) Variable Input - 71: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 72 28 16 67 11 18 72 70(instanceRot) 34 - 73: TypePointer Input 24(float) - 76: TypeVector 24(float) 4 - 77: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 20 - 78: TypeMatrix 76(fvec4) 4 - 80: TypeBool - 81: 80(bool) ConstantTrue - 79: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 77 20 81 - 82(UBO): TypeStruct 78 78 76(fvec4) 24(float) 24(float) - 85: 6(int) Constant 42 - 86: 6(int) Constant 7 - 83: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 84 79 16 85 86 11 11 12 - 87: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 84 79 16 85 86 11 11 12 - 90: 6(int) Constant 43 - 88: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 89 77 16 90 86 11 11 12 - 93: 6(int) Constant 45 - 91: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 92 26 16 93 34 11 11 12 - 94: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 92 26 16 93 34 11 11 12 - 95: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 96 19 16 67 11 18 96 11 12 83 87 88 91 94 - 97: TypePointer Uniform 82(UBO) - 98(ubo): 97(ptr) Variable Uniform - 99: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 100 95 16 67 11 18 100 98(ubo) 34 - 101: 51(int) Constant 3 - 102: TypePointer Uniform 24(float) - 110: 6(int) Constant 63 - 108: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 109 26 16 110 11 15 20 - 118: TypeMatrix 27(fvec3) 3 - 119: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 28 12 81 - 120: TypePointer Function 118 - 124: 6(int) Constant 65 - 122: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 123 119 16 124 11 15 20 - 126: 51(int) Constant 0 - 129: 24(float) Constant 0 - 131: TypePointer Function 27(fvec3) - 133: 51(int) Constant 1 - 139: 51(int) Constant 2 - 140: 24(float) Constant 1065353216 - 141: 27(fvec3) ConstantComposite 129 129 140 - 158: 6(int) Constant 73 - 156: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 157 119 16 158 11 15 20 - 164: 27(fvec3) ConstantComposite 129 140 129 - 186: 6(int) Constant 81 - 184: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 185 119 16 186 11 15 20 - 188: 27(fvec3) ConstantComposite 140 129 129 - 202: 6(int) Constant 85 - 200: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 201 119 16 202 11 15 20 - 211: 51(int) Constant 4 - 222: TypePointer Function 78 - 226: 6(int) Constant 90 - 224: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 225 79 16 226 11 15 20 - 231: TypePointer Function 76(fvec4) - 233: 76(fvec4) ConstantComposite 129 140 129 129 - 240: 76(fvec4) ConstantComposite 129 129 129 140 - 245: 6(int) Constant 95 - 243: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 244 77 16 245 11 15 20 - 247(inPos): 35(ptr) Variable Input - 248: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 249 28 16 245 11 18 249 247(inPos) 34 - 260: 6(int) Constant 96 - 258: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 259 77 16 260 11 15 20 -264(instanceScale): 73(ptr) Variable Input - 265: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 266 26 16 260 11 18 266 264(instanceScale) 34 -269(instancePos): 35(ptr) Variable Input - 270: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 271 28 16 260 11 18 271 269(instancePos) 34 - 278: TypeArray 24(float) 19 - 279: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 26 19 -280(gl_PerVertex): TypeStruct 76(fvec4) 24(float) 278 278 - 283: 6(int) Constant 24 - 281: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 282 77 16 19 283 11 11 12 - 284: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 285 26 16 19 85 11 11 12 - 286: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 287 279 16 19 202 11 11 12 - 288: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 287 279 16 19 202 11 11 12 - 291: 6(int) Constant 98 - 289: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 290 19 16 291 11 18 290 11 12 281 284 286 288 - 292: TypePointer Output 280(gl_PerVertex) - 293: 292(ptr) Variable Output - 294: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 17 289 16 291 11 18 17 293 34 - 295: TypePointer Uniform 78 - 305: TypePointer Output 76(fvec4) - 307(outNormal): 29(ptr) Variable Output - 310: 6(int) Constant 99 - 308: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 309 28 16 310 11 18 309 307(outNormal) 34 - 325(inNormal): 35(ptr) Variable Input - 326: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 327 28 16 310 11 18 327 325(inNormal) 34 - 343: 6(int) Constant 102 - 341: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 342 28 16 343 11 15 20 - 354: TypePointer Uniform 76(fvec4) -359(outLightVec): 29(ptr) Variable Output - 362: 6(int) Constant 103 - 360: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 361 28 16 362 11 18 361 359(outLightVec) 34 - 367(outViewVec): 29(ptr) Variable Output - 370: 6(int) Constant 104 - 368: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 369 28 16 370 11 18 369 367(outViewVec) 34 - 13(main): 3 Function None 4 - 22: Label - 64(s): 63(ptr) Variable Function - 107(c): 63(ptr) Variable Function - 121(mx): 120(ptr) Variable Function - 155(my): 120(ptr) Variable Function - 183(mz): 120(ptr) Variable Function - 199(rotMat): 120(ptr) Variable Function - 223(gRotMat): 222(ptr) Variable Function - 242(locPos): 231(ptr) Variable Function - 257(pos): 231(ptr) Variable Function - 340(lPos): 131(ptr) Variable Function - 23: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 15 13(main) - 39: 27(fvec3) Load 36(inColor) - Store 30(outColor) 39 - 50: 44(fvec2) Load 47(inUV) - 58: 51(int) Load 55(instanceTexIndex) - 59: 24(float) ConvertSToF 58 - 60: 24(float) CompositeExtract 50 0 - 61: 24(float) CompositeExtract 50 1 - 62: 27(fvec3) CompositeConstruct 60 61 59 - Store 40(outUV) 62 - 68: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 65 64(s) 69 - 74: 73(ptr) AccessChain 70(instanceRot) 11 - 75: 24(float) Load 74 - 103: 102(ptr) AccessChain 98(ubo) 101 - 104: 24(float) Load 103 - 105: 24(float) FAdd 75 104 - 106: 24(float) ExtInst 2(GLSL.std.450) 13(Sin) 105 - Store 64(s) 106 - 111: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 108 107(c) 69 - 112: 73(ptr) AccessChain 70(instanceRot) 11 - 113: 24(float) Load 112 - 114: 102(ptr) AccessChain 98(ubo) 101 - 115: 24(float) Load 114 - 116: 24(float) FAdd 113 115 - 117: 24(float) ExtInst 2(GLSL.std.450) 14(Cos) 116 - Store 107(c) 117 - 125: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 122 121(mx) 69 - 127: 24(float) Load 107(c) - 128: 24(float) Load 64(s) - 130: 27(fvec3) CompositeConstruct 127 128 129 - 132: 131(ptr) AccessChain 121(mx) 126 - Store 132 130 - 134: 24(float) Load 64(s) - 135: 24(float) FNegate 134 - 136: 24(float) Load 107(c) - 137: 27(fvec3) CompositeConstruct 135 136 129 - 138: 131(ptr) AccessChain 121(mx) 133 - Store 138 137 - 142: 131(ptr) AccessChain 121(mx) 139 - Store 142 141 - 143: 73(ptr) AccessChain 70(instanceRot) 19 - 144: 24(float) Load 143 - 145: 102(ptr) AccessChain 98(ubo) 101 - 146: 24(float) Load 145 - 147: 24(float) FAdd 144 146 - 148: 24(float) ExtInst 2(GLSL.std.450) 13(Sin) 147 - Store 64(s) 148 - 149: 73(ptr) AccessChain 70(instanceRot) 19 - 150: 24(float) Load 149 - 151: 102(ptr) AccessChain 98(ubo) 101 - 152: 24(float) Load 151 - 153: 24(float) FAdd 150 152 - 154: 24(float) ExtInst 2(GLSL.std.450) 14(Cos) 153 - Store 107(c) 154 - 159: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 156 155(my) 69 - 160: 24(float) Load 107(c) - 161: 24(float) Load 64(s) - 162: 27(fvec3) CompositeConstruct 160 129 161 - 163: 131(ptr) AccessChain 155(my) 126 - Store 163 162 - 165: 131(ptr) AccessChain 155(my) 133 - Store 165 164 - 166: 24(float) Load 64(s) - 167: 24(float) FNegate 166 - 168: 24(float) Load 107(c) - 169: 27(fvec3) CompositeConstruct 167 129 168 - 170: 131(ptr) AccessChain 155(my) 139 - Store 170 169 - 171: 73(ptr) AccessChain 70(instanceRot) 21 - 172: 24(float) Load 171 - 173: 102(ptr) AccessChain 98(ubo) 101 - 174: 24(float) Load 173 - 175: 24(float) FAdd 172 174 - 176: 24(float) ExtInst 2(GLSL.std.450) 13(Sin) 175 - Store 64(s) 176 - 177: 73(ptr) AccessChain 70(instanceRot) 21 - 178: 24(float) Load 177 - 179: 102(ptr) AccessChain 98(ubo) 101 - 180: 24(float) Load 179 - 181: 24(float) FAdd 178 180 - 182: 24(float) ExtInst 2(GLSL.std.450) 14(Cos) 181 - Store 107(c) 182 - 187: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 184 183(mz) 69 - 189: 131(ptr) AccessChain 183(mz) 126 - Store 189 188 - 190: 24(float) Load 107(c) - 191: 24(float) Load 64(s) - 192: 27(fvec3) CompositeConstruct 129 190 191 - 193: 131(ptr) AccessChain 183(mz) 133 - Store 193 192 - 194: 24(float) Load 64(s) - 195: 24(float) FNegate 194 - 196: 24(float) Load 107(c) - 197: 27(fvec3) CompositeConstruct 129 195 196 - 198: 131(ptr) AccessChain 183(mz) 139 - Store 198 197 - 203: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 200 199(rotMat) 69 - 204: 118 Load 183(mz) - 205: 118 Load 155(my) - 206: 118 MatrixTimesMatrix 204 205 - 207: 118 Load 121(mx) - 208: 118 MatrixTimesMatrix 206 207 - Store 199(rotMat) 208 - 209: 73(ptr) AccessChain 70(instanceRot) 19 - 210: 24(float) Load 209 - 212: 102(ptr) AccessChain 98(ubo) 211 - 213: 24(float) Load 212 - 214: 24(float) FAdd 210 213 - 215: 24(float) ExtInst 2(GLSL.std.450) 13(Sin) 214 - Store 64(s) 215 - 216: 73(ptr) AccessChain 70(instanceRot) 19 - 217: 24(float) Load 216 - 218: 102(ptr) AccessChain 98(ubo) 211 - 219: 24(float) Load 218 - 220: 24(float) FAdd 217 219 - 221: 24(float) ExtInst 2(GLSL.std.450) 14(Cos) 220 - Store 107(c) 221 - 227: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 224 223(gRotMat) 69 - 228: 24(float) Load 107(c) - 229: 24(float) Load 64(s) - 230: 76(fvec4) CompositeConstruct 228 129 229 129 - 232: 231(ptr) AccessChain 223(gRotMat) 126 - Store 232 230 - 234: 231(ptr) AccessChain 223(gRotMat) 133 - Store 234 233 - 235: 24(float) Load 64(s) - 236: 24(float) FNegate 235 - 237: 24(float) Load 107(c) - 238: 76(fvec4) CompositeConstruct 236 129 237 129 - 239: 231(ptr) AccessChain 223(gRotMat) 139 - Store 239 238 - 241: 231(ptr) AccessChain 223(gRotMat) 101 - Store 241 240 - 246: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 243 242(locPos) 69 - 250: 27(fvec3) Load 247(inPos) - 251: 118 Load 199(rotMat) - 252: 27(fvec3) VectorTimesMatrix 250 251 - 253: 24(float) CompositeExtract 252 0 - 254: 24(float) CompositeExtract 252 1 - 255: 24(float) CompositeExtract 252 2 - 256: 76(fvec4) CompositeConstruct 253 254 255 140 - Store 242(locPos) 256 - 261: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 258 257(pos) 69 - 262: 76(fvec4) Load 242(locPos) - 263: 27(fvec3) VectorShuffle 262 262 0 1 2 - 267: 24(float) Load 264(instanceScale) - 268: 27(fvec3) VectorTimesScalar 263 267 - 272: 27(fvec3) Load 269(instancePos) - 273: 27(fvec3) FAdd 268 272 - 274: 24(float) CompositeExtract 273 0 - 275: 24(float) CompositeExtract 273 1 - 276: 24(float) CompositeExtract 273 2 - 277: 76(fvec4) CompositeConstruct 274 275 276 140 - Store 257(pos) 277 - 296: 295(ptr) AccessChain 98(ubo) 126 - 297: 78 Load 296 - 298: 295(ptr) AccessChain 98(ubo) 133 - 299: 78 Load 298 - 300: 78 MatrixTimesMatrix 297 299 - 301: 78 Load 223(gRotMat) - 302: 78 MatrixTimesMatrix 300 301 - 303: 76(fvec4) Load 257(pos) - 304: 76(fvec4) MatrixTimesVector 302 303 - 306: 305(ptr) AccessChain 293 126 - Store 306 304 - 311: 295(ptr) AccessChain 98(ubo) 133 - 312: 78 Load 311 - 313: 78 Load 223(gRotMat) - 314: 78 MatrixTimesMatrix 312 313 - 315: 76(fvec4) CompositeExtract 314 0 - 316: 27(fvec3) VectorShuffle 315 315 0 1 2 - 317: 76(fvec4) CompositeExtract 314 1 - 318: 27(fvec3) VectorShuffle 317 317 0 1 2 - 319: 76(fvec4) CompositeExtract 314 2 - 320: 27(fvec3) VectorShuffle 319 319 0 1 2 - 321: 118 CompositeConstruct 316 318 320 - 322: 118 Load 199(rotMat) - 323: 118 ExtInst 2(GLSL.std.450) 34(MatrixInverse) 322 - 324: 118 MatrixTimesMatrix 321 323 - 328: 27(fvec3) Load 325(inNormal) - 329: 27(fvec3) MatrixTimesVector 324 328 - Store 307(outNormal) 329 - 330: 295(ptr) AccessChain 98(ubo) 133 - 331: 78 Load 330 - 332: 27(fvec3) Load 247(inPos) - 333: 27(fvec3) Load 269(instancePos) - 334: 27(fvec3) FAdd 332 333 - 335: 24(float) CompositeExtract 334 0 - 336: 24(float) CompositeExtract 334 1 - 337: 24(float) CompositeExtract 334 2 - 338: 76(fvec4) CompositeConstruct 335 336 337 140 - 339: 76(fvec4) MatrixTimesVector 331 338 - Store 257(pos) 339 - 344: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 341 340(lPos) 69 - 345: 295(ptr) AccessChain 98(ubo) 133 - 346: 78 Load 345 - 347: 76(fvec4) CompositeExtract 346 0 - 348: 27(fvec3) VectorShuffle 347 347 0 1 2 - 349: 76(fvec4) CompositeExtract 346 1 - 350: 27(fvec3) VectorShuffle 349 349 0 1 2 - 351: 76(fvec4) CompositeExtract 346 2 - 352: 27(fvec3) VectorShuffle 351 351 0 1 2 - 353: 118 CompositeConstruct 348 350 352 - 355: 354(ptr) AccessChain 98(ubo) 139 - 356: 76(fvec4) Load 355 - 357: 27(fvec3) VectorShuffle 356 356 0 1 2 - 358: 27(fvec3) MatrixTimesVector 353 357 - Store 340(lPos) 358 - 363: 27(fvec3) Load 340(lPos) - 364: 76(fvec4) Load 257(pos) - 365: 27(fvec3) VectorShuffle 364 364 0 1 2 - 366: 27(fvec3) FSub 363 365 - Store 359(outLightVec) 366 - 371: 76(fvec4) Load 257(pos) - 372: 27(fvec3) VectorShuffle 371 371 0 1 2 - 373: 27(fvec3) FNegate 372 - Store 367(outViewVec) 373 + EntryPoint Vertex 14 "main" 34 39 45 51 59 75 289 307 312 337 353 370 409 418 + 1: String "" + 9: String "uint" + 15: String "main" + 18: String "// OpModuleProcessed auto-map-locations +// OpModuleProcessed auto-map-bindings +// OpModuleProcessed client vulkan100 +// OpModuleProcessed target-env vulkan1.0 +// OpModuleProcessed keep-uncalled +// OpModuleProcessed entry-point main +#line 1 +" + 29: String "float" + 36: String "outColor" + 41: String "inColor" + 47: String "outUV" + 53: String "inUV" + 56: String "int" + 61: String "instanceTexIndex" + 72: String "s" + 77: String "instanceRot" + 89: String "modelview" + 94: String "lightPos" + 97: String "globSpeed" + 101: String "UBO" + 105: String "ubo" + 116: String "c" + 131: String "mx" + 174: String "my" + 211: String "mz" + 232: String "rotMat" + 261: String "gRotMat" + 287: String "locPos" + 291: String "inPos" + 303: String "pos" + 309: String "instanceScale" + 314: String "instancePos" + 327: String "gl_Position" + 330: String "gl_PointSize" + 332: String "gl_CullDistance" + 335: String "gl_PerVertex" + 355: String "outNormal" + 372: String "inNormal" + 391: String "lPos" + 411: String "outLightVec" + 420: String "outViewVec" + Name 14 "main" + Name 34 "outColor" + Name 39 "inColor" + Name 45 "outUV" + Name 51 "inUV" + Name 59 "instanceTexIndex" + Name 70 "s" + Name 75 "instanceRot" + Name 87 "UBO" + MemberName 87(UBO) 0 "projection" + MemberName 87(UBO) 1 "modelview" + MemberName 87(UBO) 2 "lightPos" + MemberName 87(UBO) 3 "locSpeed" + MemberName 87(UBO) 4 "globSpeed" + Name 103 "ubo" + Name 114 "c" + Name 129 "mx" + Name 172 "my" + Name 209 "mz" + Name 230 "rotMat" + Name 259 "gRotMat" + Name 285 "locPos" + Name 289 "inPos" + Name 301 "pos" + Name 307 "instanceScale" + Name 312 "instancePos" + Name 325 "gl_PerVertex" + MemberName 325(gl_PerVertex) 0 "gl_Position" + MemberName 325(gl_PerVertex) 1 "gl_PointSize" + MemberName 325(gl_PerVertex) 2 "gl_ClipDistance" + MemberName 325(gl_PerVertex) 3 "gl_CullDistance" + Name 337 "" + Name 353 "outNormal" + Name 370 "inNormal" + Name 389 "lPos" + Name 409 "outLightVec" + Name 418 "outViewVec" + Decorate 34(outColor) Location 1 + Decorate 39(inColor) Location 3 + Decorate 45(outUV) Location 2 + Decorate 51(inUV) Location 2 + Decorate 59(instanceTexIndex) Location 7 + Decorate 75(instanceRot) Location 5 + MemberDecorate 87(UBO) 0 ColMajor + MemberDecorate 87(UBO) 0 Offset 0 + MemberDecorate 87(UBO) 0 MatrixStride 16 + MemberDecorate 87(UBO) 1 ColMajor + MemberDecorate 87(UBO) 1 Offset 64 + MemberDecorate 87(UBO) 1 MatrixStride 16 + MemberDecorate 87(UBO) 2 Offset 128 + MemberDecorate 87(UBO) 3 Offset 144 + MemberDecorate 87(UBO) 4 Offset 148 + Decorate 87(UBO) Block + Decorate 103(ubo) DescriptorSet 0 + Decorate 103(ubo) Binding 0 + Decorate 289(inPos) Location 0 + Decorate 307(instanceScale) Location 6 + Decorate 312(instancePos) Location 4 + MemberDecorate 325(gl_PerVertex) 0 BuiltIn Position + MemberDecorate 325(gl_PerVertex) 1 BuiltIn PointSize + MemberDecorate 325(gl_PerVertex) 2 BuiltIn ClipDistance + MemberDecorate 325(gl_PerVertex) 3 BuiltIn CullDistance + Decorate 325(gl_PerVertex) Block + Decorate 353(outNormal) Location 0 + Decorate 370(inNormal) Location 1 + Decorate 409(outLightVec) Location 4 + Decorate 418(outViewVec) Location 3 + 4: TypeVoid + 5: TypeFunction 4 + 7: TypeInt 32 0 + 10: 7(int) Constant 32 + 11: 7(int) Constant 6 + 12: 7(int) Constant 0 + 8: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 10 11 12 + 13: 7(int) Constant 3 + 6: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 + 17: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 18 + 20: 7(int) Constant 1 + 21: 7(int) Constant 4 + 22: 7(int) Constant 2 + 19: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 20 21 17 22 + 16: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 15 6 17 12 12 19 15 13 12 + 27: 7(int) Constant 56 + 28: TypeFloat 32 + 30: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 29 10 13 12 + 31: TypeVector 28(float) 3 + 32: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 30 13 + 33: TypePointer Output 31(fvec3) + 34(outColor): 33(ptr) Variable Output + 37: 7(int) Constant 8 + 35: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 36 32 17 27 12 19 36 34(outColor) 37 + 38: TypePointer Input 31(fvec3) + 39(inColor): 38(ptr) Variable Input + 40: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 41 32 17 27 12 19 41 39(inColor) 37 + 44: 7(int) Constant 57 + 45(outUV): 33(ptr) Variable Output + 46: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 47 32 17 44 12 19 47 45(outUV) 37 + 48: TypeVector 28(float) 2 + 49: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 30 22 + 50: TypePointer Input 48(fvec2) + 51(inUV): 50(ptr) Variable Input + 52: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 53 49 17 44 12 19 53 51(inUV) 37 + 55: TypeInt 32 1 + 57: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 56 10 21 12 + 58: TypePointer Input 55(int) +59(instanceTexIndex): 58(ptr) Variable Input + 60: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 61 57 17 44 12 19 61 59(instanceTexIndex) 37 + 68: 7(int) Constant 62 + 69: TypePointer Function 28(float) + 71: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 72 30 17 68 12 16 21 + 74: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) + 75(instanceRot): 38(ptr) Variable Input + 76: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 77 32 17 68 12 19 77 75(instanceRot) 37 + 78: TypePointer Input 28(float) + 81: TypeVector 28(float) 4 + 82: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 30 21 + 83: TypeMatrix 81(fvec4) 4 + 85: TypeBool + 86: 85(bool) ConstantTrue + 84: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 82 21 86 + 87(UBO): TypeStruct 83 83 81(fvec4) 28(float) 28(float) + 90: 7(int) Constant 42 + 91: 7(int) Constant 7 + 88: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 89 84 17 90 91 12 12 13 + 92: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 89 84 17 90 91 12 12 13 + 95: 7(int) Constant 43 + 93: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 94 82 17 95 91 12 12 13 + 98: 7(int) Constant 45 + 96: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 97 30 17 98 37 12 12 13 + 99: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 97 30 17 98 37 12 12 13 + 100: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 101 20 17 68 12 19 101 12 13 88 92 93 96 99 + 102: TypePointer Uniform 87(UBO) + 103(ubo): 102(ptr) Variable Uniform + 104: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 105 100 17 68 12 19 105 103(ubo) 37 + 106: 55(int) Constant 3 + 107: TypePointer Uniform 28(float) + 113: 7(int) Constant 63 + 115: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 116 30 17 113 12 16 21 + 125: 7(int) Constant 65 + 126: TypeMatrix 31(fvec3) 3 + 127: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 32 13 86 + 128: TypePointer Function 126 + 130: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 131 127 17 125 12 16 21 + 133: 55(int) Constant 0 + 136: 28(float) Constant 0 + 138: TypePointer Function 31(fvec3) + 141: 7(int) Constant 66 + 142: 55(int) Constant 1 + 149: 7(int) Constant 67 + 150: 55(int) Constant 2 + 151: 28(float) Constant 1065353216 + 152: 31(fvec3) ConstantComposite 136 136 151 + 155: 7(int) Constant 70 + 163: 7(int) Constant 71 + 171: 7(int) Constant 73 + 173: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 174 127 17 171 12 16 21 + 181: 7(int) Constant 74 + 182: 31(fvec3) ConstantComposite 136 151 136 + 185: 7(int) Constant 75 + 192: 7(int) Constant 78 + 200: 7(int) Constant 79 + 208: 7(int) Constant 81 + 210: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 211 127 17 208 12 16 21 + 213: 31(fvec3) ConstantComposite 151 136 136 + 216: 7(int) Constant 82 + 222: 7(int) Constant 83 + 229: 7(int) Constant 85 + 231: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 232 127 17 229 12 16 21 + 240: 7(int) Constant 88 + 243: 55(int) Constant 4 + 249: 7(int) Constant 89 + 257: 7(int) Constant 90 + 258: TypePointer Function 83 + 260: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 261 84 17 257 12 16 21 + 266: TypePointer Function 81(fvec4) + 269: 7(int) Constant 91 + 270: 81(fvec4) ConstantComposite 136 151 136 136 + 273: 7(int) Constant 92 + 280: 7(int) Constant 93 + 281: 81(fvec4) ConstantComposite 136 136 136 151 + 284: 7(int) Constant 95 + 286: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 287 82 17 284 12 16 21 + 289(inPos): 38(ptr) Variable Input + 290: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 291 32 17 284 12 19 291 289(inPos) 37 + 300: 7(int) Constant 96 + 302: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 303 82 17 300 12 16 21 +307(instanceScale): 78(ptr) Variable Input + 308: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 309 30 17 300 12 19 309 307(instanceScale) 37 +312(instancePos): 38(ptr) Variable Input + 313: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 314 32 17 300 12 19 314 312(instancePos) 37 + 322: 7(int) Constant 98 + 323: TypeArray 28(float) 20 + 324: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 30 20 +325(gl_PerVertex): TypeStruct 81(fvec4) 28(float) 323 323 + 328: 7(int) Constant 24 + 326: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 327 82 17 20 328 12 12 13 + 329: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 330 30 17 20 90 12 12 13 + 331: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 332 324 17 20 229 12 12 13 + 333: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 332 324 17 20 229 12 12 13 + 334: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 335 20 17 322 12 19 335 12 13 326 329 331 333 + 336: TypePointer Output 325(gl_PerVertex) + 337: 336(ptr) Variable Output + 338: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 334 17 322 12 19 1 337 37 + 339: TypePointer Uniform 83 + 349: TypePointer Output 81(fvec4) + 352: 7(int) Constant 99 + 353(outNormal): 33(ptr) Variable Output + 354: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 355 32 17 352 12 19 355 353(outNormal) 37 + 370(inNormal): 38(ptr) Variable Input + 371: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 372 32 17 352 12 19 372 370(inNormal) 37 + 376: 7(int) Constant 101 + 388: 7(int) Constant 102 + 390: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 391 32 17 388 12 16 21 + 402: TypePointer Uniform 81(fvec4) + 408: 7(int) Constant 103 +409(outLightVec): 33(ptr) Variable Output + 410: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 411 32 17 408 12 19 411 409(outLightVec) 37 + 417: 7(int) Constant 104 + 418(outViewVec): 33(ptr) Variable Output + 419: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 420 32 17 417 12 19 420 418(outViewVec) 37 + Line 1 54 11 + 14(main): 4 Function None 5 + 23: Label + 70(s): 69(ptr) Variable Function + 114(c): 69(ptr) Variable Function + 129(mx): 128(ptr) Variable Function + 172(my): 128(ptr) Variable Function + 209(mz): 128(ptr) Variable Function + 230(rotMat): 128(ptr) Variable Function + 259(gRotMat): 258(ptr) Variable Function + 285(locPos): 266(ptr) Variable Function + 301(pos): 266(ptr) Variable Function + 389(lPos): 138(ptr) Variable Function + 24: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 16 14(main) + 25: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16 + 26: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 27 27 12 12 + 42: 31(fvec3) Load 39(inColor) + Store 34(outColor) 42 + 43: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 44 44 12 12 + 54: 48(fvec2) Load 51(inUV) + 62: 55(int) Load 59(instanceTexIndex) + 63: 28(float) ConvertSToF 62 + 64: 28(float) CompositeExtract 54 0 + 65: 28(float) CompositeExtract 54 1 + 66: 31(fvec3) CompositeConstruct 64 65 63 + Store 45(outUV) 66 + 67: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 68 68 12 12 + 73: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 71 70(s) 74 + 79: 78(ptr) AccessChain 75(instanceRot) 12 + 80: 28(float) Load 79 + 108: 107(ptr) AccessChain 103(ubo) 106 + 109: 28(float) Load 108 + 110: 28(float) FAdd 80 109 + 111: 28(float) ExtInst 3(GLSL.std.450) 13(Sin) 110 + Store 70(s) 111 + 112: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 113 113 12 12 + 117: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 115 114(c) 74 + 118: 78(ptr) AccessChain 75(instanceRot) 12 + 119: 28(float) Load 118 + 120: 107(ptr) AccessChain 103(ubo) 106 + 121: 28(float) Load 120 + 122: 28(float) FAdd 119 121 + 123: 28(float) ExtInst 3(GLSL.std.450) 14(Cos) 122 + Store 114(c) 123 + 124: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 125 125 12 12 + 132: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 130 129(mx) 74 + 134: 28(float) Load 114(c) + 135: 28(float) Load 70(s) + 137: 31(fvec3) CompositeConstruct 134 135 136 + 139: 138(ptr) AccessChain 129(mx) 133 + Store 139 137 + 140: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 141 141 12 12 + 143: 28(float) Load 70(s) + 144: 28(float) FNegate 143 + 145: 28(float) Load 114(c) + 146: 31(fvec3) CompositeConstruct 144 145 136 + 147: 138(ptr) AccessChain 129(mx) 142 + Store 147 146 + 148: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 149 149 12 12 + 153: 138(ptr) AccessChain 129(mx) 150 + Store 153 152 + 154: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 155 155 12 12 + 156: 78(ptr) AccessChain 75(instanceRot) 20 + 157: 28(float) Load 156 + 158: 107(ptr) AccessChain 103(ubo) 106 + 159: 28(float) Load 158 + 160: 28(float) FAdd 157 159 + 161: 28(float) ExtInst 3(GLSL.std.450) 13(Sin) 160 + Store 70(s) 161 + 162: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 163 163 12 12 + 164: 78(ptr) AccessChain 75(instanceRot) 20 + 165: 28(float) Load 164 + 166: 107(ptr) AccessChain 103(ubo) 106 + 167: 28(float) Load 166 + 168: 28(float) FAdd 165 167 + 169: 28(float) ExtInst 3(GLSL.std.450) 14(Cos) 168 + Store 114(c) 169 + 170: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 171 171 12 12 + 175: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 173 172(my) 74 + 176: 28(float) Load 114(c) + 177: 28(float) Load 70(s) + 178: 31(fvec3) CompositeConstruct 176 136 177 + 179: 138(ptr) AccessChain 172(my) 133 + Store 179 178 + 180: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 181 181 12 12 + 183: 138(ptr) AccessChain 172(my) 142 + Store 183 182 + 184: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 185 185 12 12 + 186: 28(float) Load 70(s) + 187: 28(float) FNegate 186 + 188: 28(float) Load 114(c) + 189: 31(fvec3) CompositeConstruct 187 136 188 + 190: 138(ptr) AccessChain 172(my) 150 + Store 190 189 + 191: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 192 192 12 12 + 193: 78(ptr) AccessChain 75(instanceRot) 22 + 194: 28(float) Load 193 + 195: 107(ptr) AccessChain 103(ubo) 106 + 196: 28(float) Load 195 + 197: 28(float) FAdd 194 196 + 198: 28(float) ExtInst 3(GLSL.std.450) 13(Sin) 197 + Store 70(s) 198 + 199: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 200 200 12 12 + 201: 78(ptr) AccessChain 75(instanceRot) 22 + 202: 28(float) Load 201 + 203: 107(ptr) AccessChain 103(ubo) 106 + 204: 28(float) Load 203 + 205: 28(float) FAdd 202 204 + 206: 28(float) ExtInst 3(GLSL.std.450) 14(Cos) 205 + Store 114(c) 206 + 207: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 208 208 12 12 + 212: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 210 209(mz) 74 + 214: 138(ptr) AccessChain 209(mz) 133 + Store 214 213 + 215: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 216 216 12 12 + 217: 28(float) Load 114(c) + 218: 28(float) Load 70(s) + 219: 31(fvec3) CompositeConstruct 136 217 218 + 220: 138(ptr) AccessChain 209(mz) 142 + Store 220 219 + 221: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 222 222 12 12 + 223: 28(float) Load 70(s) + 224: 28(float) FNegate 223 + 225: 28(float) Load 114(c) + 226: 31(fvec3) CompositeConstruct 136 224 225 + 227: 138(ptr) AccessChain 209(mz) 150 + Store 227 226 + 228: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 229 229 12 12 + 233: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 231 230(rotMat) 74 + 234: 126 Load 209(mz) + 235: 126 Load 172(my) + 236: 126 MatrixTimesMatrix 234 235 + 237: 126 Load 129(mx) + 238: 126 MatrixTimesMatrix 236 237 + Store 230(rotMat) 238 + 239: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 240 240 12 12 + 241: 78(ptr) AccessChain 75(instanceRot) 20 + 242: 28(float) Load 241 + 244: 107(ptr) AccessChain 103(ubo) 243 + 245: 28(float) Load 244 + 246: 28(float) FAdd 242 245 + 247: 28(float) ExtInst 3(GLSL.std.450) 13(Sin) 246 + Store 70(s) 247 + 248: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 249 249 12 12 + 250: 78(ptr) AccessChain 75(instanceRot) 20 + 251: 28(float) Load 250 + 252: 107(ptr) AccessChain 103(ubo) 243 + 253: 28(float) Load 252 + 254: 28(float) FAdd 251 253 + 255: 28(float) ExtInst 3(GLSL.std.450) 14(Cos) 254 + Store 114(c) 255 + 256: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 257 257 12 12 + 262: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 260 259(gRotMat) 74 + 263: 28(float) Load 114(c) + 264: 28(float) Load 70(s) + 265: 81(fvec4) CompositeConstruct 263 136 264 136 + 267: 266(ptr) AccessChain 259(gRotMat) 133 + Store 267 265 + 268: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 269 269 12 12 + 271: 266(ptr) AccessChain 259(gRotMat) 142 + Store 271 270 + 272: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 273 273 12 12 + 274: 28(float) Load 70(s) + 275: 28(float) FNegate 274 + 276: 28(float) Load 114(c) + 277: 81(fvec4) CompositeConstruct 275 136 276 136 + 278: 266(ptr) AccessChain 259(gRotMat) 150 + Store 278 277 + 279: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 280 280 12 12 + 282: 266(ptr) AccessChain 259(gRotMat) 106 + Store 282 281 + 283: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 284 284 12 12 + 288: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 286 285(locPos) 74 + 292: 31(fvec3) Load 289(inPos) + 293: 126 Load 230(rotMat) + 294: 31(fvec3) VectorTimesMatrix 292 293 + 295: 28(float) CompositeExtract 294 0 + 296: 28(float) CompositeExtract 294 1 + 297: 28(float) CompositeExtract 294 2 + 298: 81(fvec4) CompositeConstruct 295 296 297 151 + Store 285(locPos) 298 + 299: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 300 300 12 12 + 304: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 302 301(pos) 74 + 305: 81(fvec4) Load 285(locPos) + 306: 31(fvec3) VectorShuffle 305 305 0 1 2 + 310: 28(float) Load 307(instanceScale) + 311: 31(fvec3) VectorTimesScalar 306 310 + 315: 31(fvec3) Load 312(instancePos) + 316: 31(fvec3) FAdd 311 315 + 317: 28(float) CompositeExtract 316 0 + 318: 28(float) CompositeExtract 316 1 + 319: 28(float) CompositeExtract 316 2 + 320: 81(fvec4) CompositeConstruct 317 318 319 151 + Store 301(pos) 320 + 321: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 322 322 12 12 + 340: 339(ptr) AccessChain 103(ubo) 133 + 341: 83 Load 340 + 342: 339(ptr) AccessChain 103(ubo) 142 + 343: 83 Load 342 + 344: 83 MatrixTimesMatrix 341 343 + 345: 83 Load 259(gRotMat) + 346: 83 MatrixTimesMatrix 344 345 + 347: 81(fvec4) Load 301(pos) + 348: 81(fvec4) MatrixTimesVector 346 347 + 350: 349(ptr) AccessChain 337 133 + Store 350 348 + 351: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 352 352 12 12 + 356: 339(ptr) AccessChain 103(ubo) 142 + 357: 83 Load 356 + 358: 83 Load 259(gRotMat) + 359: 83 MatrixTimesMatrix 357 358 + 360: 81(fvec4) CompositeExtract 359 0 + 361: 31(fvec3) VectorShuffle 360 360 0 1 2 + 362: 81(fvec4) CompositeExtract 359 1 + 363: 31(fvec3) VectorShuffle 362 362 0 1 2 + 364: 81(fvec4) CompositeExtract 359 2 + 365: 31(fvec3) VectorShuffle 364 364 0 1 2 + 366: 126 CompositeConstruct 361 363 365 + 367: 126 Load 230(rotMat) + 368: 126 ExtInst 3(GLSL.std.450) 34(MatrixInverse) 367 + 369: 126 MatrixTimesMatrix 366 368 + 373: 31(fvec3) Load 370(inNormal) + 374: 31(fvec3) MatrixTimesVector 369 373 + Store 353(outNormal) 374 + 375: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 376 376 12 12 + 377: 339(ptr) AccessChain 103(ubo) 142 + 378: 83 Load 377 + 379: 31(fvec3) Load 289(inPos) + 380: 31(fvec3) Load 312(instancePos) + 381: 31(fvec3) FAdd 379 380 + 382: 28(float) CompositeExtract 381 0 + 383: 28(float) CompositeExtract 381 1 + 384: 28(float) CompositeExtract 381 2 + 385: 81(fvec4) CompositeConstruct 382 383 384 151 + 386: 81(fvec4) MatrixTimesVector 378 385 + Store 301(pos) 386 + 387: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 388 388 12 12 + 392: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 390 389(lPos) 74 + 393: 339(ptr) AccessChain 103(ubo) 142 + 394: 83 Load 393 + 395: 81(fvec4) CompositeExtract 394 0 + 396: 31(fvec3) VectorShuffle 395 395 0 1 2 + 397: 81(fvec4) CompositeExtract 394 1 + 398: 31(fvec3) VectorShuffle 397 397 0 1 2 + 399: 81(fvec4) CompositeExtract 394 2 + 400: 31(fvec3) VectorShuffle 399 399 0 1 2 + 401: 126 CompositeConstruct 396 398 400 + 403: 402(ptr) AccessChain 103(ubo) 150 + 404: 81(fvec4) Load 403 + 405: 31(fvec3) VectorShuffle 404 404 0 1 2 + 406: 31(fvec3) MatrixTimesVector 401 405 + Store 389(lPos) 406 + 407: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 408 408 12 12 + 412: 31(fvec3) Load 389(lPos) + 413: 81(fvec4) Load 301(pos) + 414: 31(fvec3) VectorShuffle 413 413 0 1 2 + 415: 31(fvec3) FSub 412 414 + Store 409(outLightVec) 415 + 416: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 417 417 12 12 + 421: 81(fvec4) Load 301(pos) + 422: 31(fvec3) VectorShuffle 421 421 0 1 2 + 423: 31(fvec3) FNegate 422 + Store 418(outViewVec) 423 Return FunctionEnd diff --git a/Test/baseResults/spv.debuginfo.hlsl.comp.out b/Test/baseResults/spv.debuginfo.hlsl.comp.out index 593dca9e..b427c616 100644 --- a/Test/baseResults/spv.debuginfo.hlsl.comp.out +++ b/Test/baseResults/spv.debuginfo.hlsl.comp.out @@ -1,1081 +1,1235 @@ spv.debuginfo.hlsl.comp -Validation failed // Module Version 10000 // Generated by (magic number): 8000b -// Id's are bound by 833 +// Id's are bound by 976 Capability Shader Extension "SPV_KHR_non_semantic_info" - 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" - 2: ExtInstImport "GLSL.std.450" + 2: ExtInstImport "NonSemantic.Shader.DebugInfo.100" + 3: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 - EntryPoint GLCompute 5 "main" 828 - ExecutionMode 5 LocalSize 10 10 1 - 9: String "float" - 12: String "uint" - 27: String "springForce" - 30: String "" - 39: String "p0" - 43: String "p1" - 47: String "restDist" - 56: String "@main" - 62: String "id" - 67: String "dist" - 78: String "int" - 84: String "sphereRadius" - 95: String "gravity" - 100: String "particleCount" - 103: String "UBO" - 107: String "params" - 111: String "ubo" - 133: String "index" - 155: String "bool" - 163: String "normal" - 170: String "pinned" - 174: String "Particle" - 180: String "@data" - 184: String "particleIn" - 203: String "particleOut" - 222: String "force" - 234: String "pos" - 243: String "vel" - 492: String "f" - 536: String "sphereDist" - 580: String "calculateNormals" - 584: String "PushConstants" - 588: String "pushConstants" - 591: String "$Global" - 621: String "a" - 633: String "b" - 649: String "c" - Name 5 "main" - Name 26 "springForce(vf3;vf3;f1;" - Name 23 "p0" - Name 24 "p1" - Name 25 "restDist" - Name 55 "@main(vu3;" - Name 54 "id" - Name 65 "dist" - Name 82 "UBO" - MemberName 82(UBO) 0 "deltaT" - MemberName 82(UBO) 1 "particleMass" - MemberName 82(UBO) 2 "springStiffness" - MemberName 82(UBO) 3 "damping" - MemberName 82(UBO) 4 "restDistH" - MemberName 82(UBO) 5 "restDistV" - MemberName 82(UBO) 6 "restDistD" - MemberName 82(UBO) 7 "sphereRadius" - MemberName 82(UBO) 8 "spherePos" - MemberName 82(UBO) 9 "gravity" - MemberName 82(UBO) 10 "particleCount" - Name 105 "ubo" - MemberName 105(ubo) 0 "params" - Name 113 "" - Name 131 "index" - Name 161 "Particle" - MemberName 161(Particle) 0 "pos" - MemberName 161(Particle) 1 "vel" - MemberName 161(Particle) 2 "uv" - MemberName 161(Particle) 3 "normal" - MemberName 161(Particle) 4 "pinned" - Name 178 "particleIn" - MemberName 178(particleIn) 0 "@data" - Name 186 "particleIn" - Name 199 "particleOut" - MemberName 199(particleOut) 0 "@data" - Name 206 "particleOut" - Name 220 "force" - Name 232 "pos" - Name 241 "vel" - Name 258 "param" - Name 262 "param" - Name 264 "param" - Name 282 "param" + EntryPoint GLCompute 6 "main" 971 + ExecutionMode 6 LocalSize 10 10 1 + 1: String "" + 10: String "float" + 13: String "uint" + 28: String "springForce" + 31: String "// OpModuleProcessed auto-map-locations +// OpModuleProcessed auto-map-bindings +// OpModuleProcessed entry-point main +// OpModuleProcessed client vulkan100 +// OpModuleProcessed target-env vulkan1.0 +// OpModuleProcessed keep-uncalled +// OpModuleProcessed hlsl-offsets +#line 1 +" + 40: String "p0" + 44: String "p1" + 48: String "restDist" + 57: String "@main" + 63: String "id" + 71: String "dist" + 83: String "int" + 89: String "sphereRadius" + 100: String "gravity" + 105: String "particleCount" + 108: String "UBO" + 111: String "params" + 115: String "ubo" + 140: String "index" + 163: String "bool" + 177: String "normal" + 184: String "pinned" + 188: String "Particle" + 193: String "@data" + 197: String "particleIn" + 219: String "particleOut" + 244: String "force" + 257: String "pos" + 267: String "vel" + 567: String "f" + 616: String "sphereDist" + 669: String "calculateNormals" + 673: String "PushConstants" + 676: String "pushConstants" + 679: String "$Global" + 719: String "a" + 732: String "b" + 749: String "c" + Name 6 "main" + Name 27 "springForce(vf3;vf3;f1;" + Name 24 "p0" + Name 25 "p1" + Name 26 "restDist" + Name 56 "@main(vu3;" + Name 55 "id" + Name 69 "dist" + Name 87 "UBO" + MemberName 87(UBO) 0 "deltaT" + MemberName 87(UBO) 1 "particleMass" + MemberName 87(UBO) 2 "springStiffness" + MemberName 87(UBO) 3 "damping" + MemberName 87(UBO) 4 "restDistH" + MemberName 87(UBO) 5 "restDistV" + MemberName 87(UBO) 6 "restDistD" + MemberName 87(UBO) 7 "sphereRadius" + MemberName 87(UBO) 8 "spherePos" + MemberName 87(UBO) 9 "gravity" + MemberName 87(UBO) 10 "particleCount" + Name 109 "ubo" + MemberName 109(ubo) 0 "params" + Name 117 "" + Name 138 "index" + Name 175 "Particle" + MemberName 175(Particle) 0 "pos" + MemberName 175(Particle) 1 "vel" + MemberName 175(Particle) 2 "uv" + MemberName 175(Particle) 3 "normal" + MemberName 175(Particle) 4 "pinned" + Name 191 "particleIn" + MemberName 191(particleIn) 0 "@data" + Name 199 "particleIn" + Name 215 "particleOut" + MemberName 215(particleOut) 0 "@data" + Name 221 "particleOut" + Name 242 "force" + Name 255 "pos" + Name 265 "vel" Name 286 "param" - Name 288 "param" - Name 310 "param" - Name 314 "param" + Name 290 "param" + Name 292 "param" Name 316 "param" - Name 333 "param" - Name 337 "param" - Name 339 "param" - Name 368 "param" - Name 372 "param" - Name 374 "param" - Name 398 "param" - Name 402 "param" - Name 404 "param" - Name 436 "param" - Name 440 "param" - Name 442 "param" - Name 470 "param" - Name 474 "param" - Name 476 "param" - Name 490 "f" - Name 534 "sphereDist" - Name 578 "PushConstants" - MemberName 578(PushConstants) 0 "calculateNormals" - Name 586 "$Global" - MemberName 586($Global) 0 "pushConstants" - Name 593 "" - Name 602 "normal" - Name 619 "a" - Name 631 "b" - Name 647 "c" - Name 826 "id" - Name 828 "id" - Name 830 "param" - MemberDecorate 82(UBO) 0 Offset 0 - MemberDecorate 82(UBO) 1 Offset 4 - MemberDecorate 82(UBO) 2 Offset 8 - MemberDecorate 82(UBO) 3 Offset 12 - MemberDecorate 82(UBO) 4 Offset 16 - MemberDecorate 82(UBO) 5 Offset 20 - MemberDecorate 82(UBO) 6 Offset 24 - MemberDecorate 82(UBO) 7 Offset 28 - MemberDecorate 82(UBO) 8 Offset 32 - MemberDecorate 82(UBO) 9 Offset 48 - MemberDecorate 82(UBO) 10 Offset 64 - MemberDecorate 105(ubo) 0 Offset 0 - Decorate 105(ubo) Block - Decorate 113 DescriptorSet 0 - Decorate 113 Binding 2 - MemberDecorate 161(Particle) 0 Offset 0 - MemberDecorate 161(Particle) 1 Offset 16 - MemberDecorate 161(Particle) 2 Offset 32 - MemberDecorate 161(Particle) 3 Offset 48 - MemberDecorate 161(Particle) 4 Offset 64 - Decorate 176 ArrayStride 80 - MemberDecorate 178(particleIn) 0 NonWritable - MemberDecorate 178(particleIn) 0 Offset 0 - Decorate 178(particleIn) BufferBlock - Decorate 186(particleIn) DescriptorSet 0 - Decorate 186(particleIn) Binding 0 - Decorate 197 ArrayStride 80 - MemberDecorate 199(particleOut) 0 Offset 0 - Decorate 199(particleOut) BufferBlock - Decorate 206(particleOut) DescriptorSet 0 - Decorate 206(particleOut) Binding 1 - MemberDecorate 578(PushConstants) 0 Offset 0 - MemberDecorate 586($Global) 0 Offset 0 - Decorate 586($Global) Block - Decorate 593 DescriptorSet 0 - Decorate 593 Binding 3 - Decorate 828(id) BuiltIn GlobalInvocationId - 3: TypeVoid - 4: TypeFunction 3 - 7: TypeFloat 32 - 10: TypeInt 32 0 - 13: 10(int) Constant 32 - 14: 10(int) Constant 6 - 15: 10(int) Constant 0 - 11: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 12 13 14 15 - 16: 10(int) Constant 3 - 8: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 13 16 15 - 17: TypeVector 7(float) 3 - 18: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 8 16 - 19: TypePointer Function 17(fvec3) - 20: TypePointer Function 7(float) - 21: TypeFunction 17(fvec3) 19(ptr) 19(ptr) 20(ptr) - 22: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 16 18 18 18 8 - 29: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 0 30 - 32: 10(int) Constant 1 - 33: 10(int) Constant 4 - 34: 10(int) Constant 5 - 31: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 32 33 29 34 - 28: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 27 22 29 15 15 31 27 16 15 - 38: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 39 18 29 15 15 28 33 32 - 41: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) - 44: 10(int) Constant 2 - 42: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 43 18 29 15 15 28 33 44 - 46: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 47 8 29 15 15 28 33 16 - 49: TypeVector 10(int) 3 - 50: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 11 16 - 51: TypePointer Function 49(ivec3) - 52: TypeFunction 3 51(ptr) - 53: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 16 3 50 - 57: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 56 53 29 15 15 31 56 16 15 - 61: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 62 50 29 15 15 57 33 32 - 68: 10(int) Constant 76 - 66: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 67 18 29 68 15 28 33 - 75: TypeVector 7(float) 4 - 76: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 8 33 - 77: TypeInt 32 1 - 79: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 78 13 33 15 - 80: TypeVector 77(int) 2 - 81: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 79 44 - 82(UBO): TypeStruct 7(float) 7(float) 7(float) 7(float) 7(float) 7(float) 7(float) 7(float) 75(fvec4) 75(fvec4) 80(ivec2) - 85: 10(int) Constant 48 - 86: 10(int) Constant 20 - 83: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 84 8 29 85 86 15 15 16 - 87: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 84 8 29 85 86 15 15 16 - 88: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 84 8 29 85 86 15 15 16 - 89: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 84 8 29 85 86 15 15 16 - 90: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 84 8 29 85 86 15 15 16 - 91: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 84 8 29 85 86 15 15 16 - 92: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 84 8 29 85 86 15 15 16 - 93: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 84 8 29 85 86 15 15 16 - 96: 10(int) Constant 50 - 97: 10(int) Constant 16 - 94: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 95 76 29 96 97 15 15 16 - 98: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 95 76 29 96 97 15 15 16 - 101: 10(int) Constant 51 - 99: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 100 81 29 101 86 15 15 16 - 104: 10(int) Constant 77 - 102: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 103 32 29 104 15 31 103 15 16 83 87 88 89 90 91 92 93 94 98 99 - 105(ubo): TypeStruct 82(UBO) - 108: 10(int) Constant 56 - 109: 10(int) Constant 12 - 106: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 107 102 29 108 109 15 15 16 - 110: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 111 32 29 104 15 31 111 15 16 106 - 112: TypePointer Uniform 105(ubo) - 113: 112(ptr) Variable Uniform - 115: 10(int) Constant 8 - 114: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 30 110 29 104 15 31 30 113 115 - 116: 77(int) Constant 0 - 117: 77(int) Constant 2 - 118: TypePointer Uniform 7(float) - 130: TypePointer Function 10(int) - 134: 10(int) Constant 83 - 132: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 133 11 29 134 15 57 33 - 138: 77(int) Constant 10 - 139: TypePointer Uniform 77(int) - 154: TypeBool - 156: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 161(Particle): TypeStruct 75(fvec4) 75(fvec4) 75(fvec4) 75(fvec4) 7(float) - 164: 10(int) Constant 30 - 165: 10(int) Constant 15 - 162: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 163 76 29 164 165 15 15 16 - 166: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 163 76 29 164 165 15 15 16 - 167: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 163 76 29 164 165 15 15 16 - 168: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 163 76 29 164 165 15 15 16 - 171: 10(int) Constant 31 - 172: 10(int) Constant 14 - 169: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 170 8 29 171 172 15 15 16 - 175: 10(int) Constant 88 - 173: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 174 32 29 175 15 31 174 15 16 162 166 167 168 169 - 176: TypeRuntimeArray 161(Particle) - 177: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 173 15 - 178(particleIn): TypeStruct 176 - 181: 10(int) Constant 35 - 182: 10(int) Constant 28 - 179: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 180 177 29 181 182 15 15 16 - 183: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 184 32 29 175 15 31 184 15 16 179 - 185: TypePointer Uniform 178(particleIn) - 186(particleIn): 185(ptr) Variable Uniform - 187: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 184 183 29 175 15 31 184 186(particleIn) 115 - 189: 77(int) Constant 4 - 192: 7(float) Constant 1065353216 - 193: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 197: TypeRuntimeArray 161(Particle) - 198: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 173 15 -199(particleOut): TypeStruct 197 - 201: 10(int) Constant 37 - 200: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 180 198 29 201 164 15 15 16 - 204: 10(int) Constant 89 - 202: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 203 32 29 204 15 31 203 15 16 200 - 205: TypePointer Uniform 199(particleOut) -206(particleOut): 205(ptr) Variable Uniform - 207: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 203 202 29 204 15 31 203 206(particleOut) 115 - 210: TypePointer Uniform 75(fvec4) - 215: 77(int) Constant 1 - 216: 7(float) Constant 0 - 217: 75(fvec4) ConstantComposite 216 216 216 216 - 223: 10(int) Constant 95 - 221: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 222 18 29 223 15 57 33 - 225: 77(int) Constant 9 - 235: 10(int) Constant 97 - 233: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 234 18 29 235 15 57 33 - 244: 10(int) Constant 98 - 242: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 243 18 29 244 15 57 33 - 252: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 276: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 300: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 309: 77(int) Constant 5 - 324: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 347: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 355: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 357: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 367: 77(int) Constant 6 - 382: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 386: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 388: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 416: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 424: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 426: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 454: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 458: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 460: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 482: 77(int) Constant 3 - 493: 10(int) Constant 137 - 491: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 492 18 29 493 15 57 33 - 507: 7(float) Constant 1056964608 - 537: 10(int) Constant 142 - 535: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 536 18 29 537 15 57 33 - 543: 77(int) Constant 8 - 550: 77(int) Constant 7 - 553: 7(float) Constant 1008981770 - 555: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 -578(PushConstants): TypeStruct 10(int) - 581: 10(int) Constant 67 - 582: 10(int) Constant 23 - 579: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 580 11 29 581 582 15 15 16 - 585: 10(int) Constant 151 - 583: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 584 32 29 585 15 31 584 15 16 579 - 586($Global): TypeStruct 578(PushConstants) - 589: 10(int) Constant 71 - 587: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 588 583 29 589 165 15 15 16 - 590: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 591 32 29 585 15 31 591 15 16 587 - 592: TypePointer Uniform 586($Global) - 593: 592(ptr) Variable Uniform - 594: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 30 590 29 585 15 31 30 593 115 - 595: TypePointer Uniform 10(int) - 598: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 604: 10(int) Constant 152 - 603: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 163 18 29 604 15 57 33 - 606: 17(fvec3) ConstantComposite 216 216 216 - 609: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 615: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 622: 10(int) Constant 156 - 620: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 621 18 29 622 15 57 33 - 634: 10(int) Constant 157 - 632: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 633 18 29 634 15 57 33 - 650: 10(int) Constant 158 - 648: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 649 18 29 650 15 57 33 - 677: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 724: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 730: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 777: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 155 13 44 15 - 827: TypePointer Input 49(ivec3) - 828(id): 827(ptr) Variable Input - 5(main): 3 Function None 4 - 6: Label - 826(id): 51(ptr) Variable Function - 830(param): 51(ptr) Variable Function - 829: 49(ivec3) Load 828(id) - Store 826(id) 829 - 831: 49(ivec3) Load 826(id) - Store 830(param) 831 - 832: 3 FunctionCall 55(@main(vu3;) 830(param) + Name 320 "param" + Name 322 "param" + Name 350 "param" + Name 354 "param" + Name 356 "param" + Name 379 "param" + Name 383 "param" + Name 385 "param" + Name 420 "param" + Name 424 "param" + Name 426 "param" + Name 456 "param" + Name 460 "param" + Name 462 "param" + Name 500 "param" + Name 504 "param" + Name 506 "param" + Name 540 "param" + Name 544 "param" + Name 546 "param" + Name 565 "f" + Name 614 "sphereDist" + Name 667 "PushConstants" + MemberName 667(PushConstants) 0 "calculateNormals" + Name 674 "$Global" + MemberName 674($Global) 0 "pushConstants" + Name 681 "" + Name 693 "normal" + Name 717 "a" + Name 730 "b" + Name 747 "c" + Name 969 "id" + Name 971 "id" + Name 973 "param" + MemberDecorate 87(UBO) 0 Offset 0 + MemberDecorate 87(UBO) 1 Offset 4 + MemberDecorate 87(UBO) 2 Offset 8 + MemberDecorate 87(UBO) 3 Offset 12 + MemberDecorate 87(UBO) 4 Offset 16 + MemberDecorate 87(UBO) 5 Offset 20 + MemberDecorate 87(UBO) 6 Offset 24 + MemberDecorate 87(UBO) 7 Offset 28 + MemberDecorate 87(UBO) 8 Offset 32 + MemberDecorate 87(UBO) 9 Offset 48 + MemberDecorate 87(UBO) 10 Offset 64 + MemberDecorate 109(ubo) 0 Offset 0 + Decorate 109(ubo) Block + Decorate 117 DescriptorSet 0 + Decorate 117 Binding 2 + MemberDecorate 175(Particle) 0 Offset 0 + MemberDecorate 175(Particle) 1 Offset 16 + MemberDecorate 175(Particle) 2 Offset 32 + MemberDecorate 175(Particle) 3 Offset 48 + MemberDecorate 175(Particle) 4 Offset 64 + Decorate 189 ArrayStride 80 + MemberDecorate 191(particleIn) 0 NonWritable + MemberDecorate 191(particleIn) 0 Offset 0 + Decorate 191(particleIn) BufferBlock + Decorate 199(particleIn) DescriptorSet 0 + Decorate 199(particleIn) Binding 0 + Decorate 213 ArrayStride 80 + MemberDecorate 215(particleOut) 0 Offset 0 + Decorate 215(particleOut) BufferBlock + Decorate 221(particleOut) DescriptorSet 0 + Decorate 221(particleOut) Binding 1 + MemberDecorate 667(PushConstants) 0 Offset 0 + MemberDecorate 674($Global) 0 Offset 0 + Decorate 674($Global) Block + Decorate 681 DescriptorSet 0 + Decorate 681 Binding 3 + Decorate 971(id) BuiltIn GlobalInvocationId + 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 + 12: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 13 14 15 16 + 17: 11(int) Constant 3 + 9: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 10 14 17 16 + 18: TypeVector 8(float) 3 + 19: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 17 + 20: TypePointer Function 18(fvec3) + 21: TypePointer Function 8(float) + 22: TypeFunction 18(fvec3) 20(ptr) 20(ptr) 21(ptr) + 23: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 19 19 19 9 + 30: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 31 + 33: 11(int) Constant 1 + 34: 11(int) Constant 4 + 35: 11(int) Constant 5 + 32: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 33 34 30 35 + 29: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 28 23 30 16 16 32 28 17 16 + 39: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 40 19 30 16 16 29 34 33 + 42: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) + 45: 11(int) Constant 2 + 43: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 44 19 30 16 16 29 34 45 + 47: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 48 9 30 16 16 29 34 17 + 50: TypeVector 11(int) 3 + 51: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 12 17 + 52: TypePointer Function 50(ivec3) + 53: TypeFunction 4 52(ptr) + 54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 4 51 + 58: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 57 54 30 16 16 32 57 17 16 + 62: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 63 51 30 16 16 58 34 33 + 68: 11(int) Constant 76 + 70: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 71 19 30 68 16 29 34 + 77: 11(int) Constant 77 + 80: TypeVector 8(float) 4 + 81: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 34 + 82: TypeInt 32 1 + 84: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 83 14 34 16 + 85: TypeVector 82(int) 2 + 86: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 84 45 + 87(UBO): TypeStruct 8(float) 8(float) 8(float) 8(float) 8(float) 8(float) 8(float) 8(float) 80(fvec4) 80(fvec4) 85(ivec2) + 90: 11(int) Constant 48 + 91: 11(int) Constant 20 + 88: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 89 9 30 90 91 16 16 17 + 92: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 89 9 30 90 91 16 16 17 + 93: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 89 9 30 90 91 16 16 17 + 94: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 89 9 30 90 91 16 16 17 + 95: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 89 9 30 90 91 16 16 17 + 96: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 89 9 30 90 91 16 16 17 + 97: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 89 9 30 90 91 16 16 17 + 98: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 89 9 30 90 91 16 16 17 + 101: 11(int) Constant 50 + 102: 11(int) Constant 16 + 99: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 100 81 30 101 102 16 16 17 + 103: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 100 81 30 101 102 16 16 17 + 106: 11(int) Constant 51 + 104: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 105 86 30 106 91 16 16 17 + 107: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 108 33 30 77 16 32 108 16 17 88 92 93 94 95 96 97 98 99 103 104 + 109(ubo): TypeStruct 87(UBO) + 112: 11(int) Constant 56 + 113: 11(int) Constant 12 + 110: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 111 107 30 112 113 16 16 17 + 114: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 115 33 30 77 16 32 115 16 17 110 + 116: TypePointer Uniform 109(ubo) + 117: 116(ptr) Variable Uniform + 119: 11(int) Constant 8 + 118: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 114 30 77 16 32 1 117 119 + 120: 82(int) Constant 0 + 121: 82(int) Constant 2 + 122: TypePointer Uniform 8(float) + 136: 11(int) Constant 83 + 137: TypePointer Function 11(int) + 139: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 140 12 30 136 16 58 34 + 144: 82(int) Constant 10 + 145: TypePointer Uniform 82(int) + 154: 11(int) Constant 84 + 162: TypeBool + 164: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 170: 11(int) Constant 85 + 174: 11(int) Constant 88 + 175(Particle): TypeStruct 80(fvec4) 80(fvec4) 80(fvec4) 80(fvec4) 8(float) + 178: 11(int) Constant 30 + 179: 11(int) Constant 15 + 176: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 177 81 30 178 179 16 16 17 + 180: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 177 81 30 178 179 16 16 17 + 181: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 177 81 30 178 179 16 16 17 + 182: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 177 81 30 178 179 16 16 17 + 185: 11(int) Constant 31 + 186: 11(int) Constant 14 + 183: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 184 9 30 185 186 16 16 17 + 187: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 188 33 30 174 16 32 188 16 17 176 180 181 182 183 + 189: TypeRuntimeArray 175(Particle) + 190: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 187 16 + 191(particleIn): TypeStruct 189 + 194: 11(int) Constant 35 + 195: 11(int) Constant 28 + 192: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 193 190 30 194 195 16 16 17 + 196: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 197 33 30 174 16 32 197 16 17 192 + 198: TypePointer Uniform 191(particleIn) + 199(particleIn): 198(ptr) Variable Uniform + 200: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 197 196 30 174 16 32 197 199(particleIn) 119 + 202: 82(int) Constant 4 + 205: 8(float) Constant 1065353216 + 206: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 212: 11(int) Constant 89 + 213: TypeRuntimeArray 175(Particle) + 214: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 187 16 +215(particleOut): TypeStruct 213 + 217: 11(int) Constant 37 + 216: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 193 214 30 217 178 16 16 17 + 218: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 219 33 30 212 16 32 219 16 17 216 + 220: TypePointer Uniform 215(particleOut) +221(particleOut): 220(ptr) Variable Uniform + 222: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 219 218 30 212 16 32 219 221(particleOut) 119 + 225: TypePointer Uniform 80(fvec4) + 230: 11(int) Constant 90 + 232: 82(int) Constant 1 + 233: 8(float) Constant 0 + 234: 80(fvec4) ConstantComposite 233 233 233 233 + 237: 11(int) Constant 91 + 241: 11(int) Constant 95 + 243: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 244 19 30 241 16 58 34 + 246: 82(int) Constant 9 + 254: 11(int) Constant 97 + 256: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 257 19 30 254 16 58 34 + 264: 11(int) Constant 98 + 266: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 267 19 30 264 16 58 34 + 274: 11(int) Constant 102 + 277: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 283: 11(int) Constant 103 + 300: 11(int) Constant 106 + 307: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 313: 11(int) Constant 107 + 330: 11(int) Constant 110 + 337: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 343: 11(int) Constant 111 + 349: 82(int) Constant 5 + 364: 11(int) Constant 114 + 367: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 373: 11(int) Constant 115 + 393: 11(int) Constant 118 + 396: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 404: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 406: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 412: 11(int) Constant 119 + 419: 82(int) Constant 6 + 434: 11(int) Constant 122 + 437: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 441: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 443: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 449: 11(int) Constant 123 + 470: 11(int) Constant 126 + 477: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 485: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 487: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 493: 11(int) Constant 127 + 514: 11(int) Constant 130 + 521: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 525: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 527: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 533: 11(int) Constant 131 + 554: 11(int) Constant 134 + 555: 82(int) Constant 3 + 564: 11(int) Constant 137 + 566: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 567 19 30 564 16 58 34 + 575: 11(int) Constant 138 + 583: 8(float) Constant 1056964608 + 599: 11(int) Constant 139 + 613: 11(int) Constant 142 + 615: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 616 19 30 613 16 58 34 + 622: 82(int) Constant 8 + 628: 11(int) Constant 143 + 631: 82(int) Constant 7 + 634: 8(float) Constant 1008981770 + 636: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 642: 11(int) Constant 145 + 661: 11(int) Constant 147 + 666: 11(int) Constant 151 +667(PushConstants): TypeStruct 11(int) + 670: 11(int) Constant 67 + 671: 11(int) Constant 23 + 668: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 669 12 30 670 671 16 16 17 + 672: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 673 33 30 666 16 32 673 16 17 668 + 674($Global): TypeStruct 667(PushConstants) + 677: 11(int) Constant 71 + 675: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 676 672 30 677 179 16 16 17 + 678: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 679 33 30 666 16 32 679 16 17 675 + 680: TypePointer Uniform 674($Global) + 681: 680(ptr) Variable Uniform + 682: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 678 30 666 16 32 1 681 119 + 683: TypePointer Uniform 11(int) + 686: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 692: 11(int) Constant 152 + 694: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 177 19 30 692 16 58 34 + 696: 18(fvec3) ConstantComposite 233 233 233 + 698: 11(int) Constant 154 + 701: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 707: 11(int) Constant 155 + 710: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 716: 11(int) Constant 156 + 718: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 719 19 30 716 16 58 34 + 729: 11(int) Constant 157 + 731: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 732 19 30 729 16 58 34 + 746: 11(int) Constant 158 + 748: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 749 19 30 746 16 58 34 + 762: 11(int) Constant 159 + 774: 11(int) Constant 161 + 781: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 787: 11(int) Constant 162 + 799: 11(int) Constant 163 + 812: 11(int) Constant 164 + 821: 11(int) Constant 165 + 833: 11(int) Constant 168 + 840: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 846: 11(int) Constant 169 + 849: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 855: 11(int) Constant 170 + 867: 11(int) Constant 171 + 880: 11(int) Constant 172 + 889: 11(int) Constant 173 + 901: 11(int) Constant 175 + 908: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 163 14 45 16 + 914: 11(int) Constant 176 + 923: 11(int) Constant 177 + 936: 11(int) Constant 178 + 948: 11(int) Constant 179 + 960: 11(int) Constant 182 + 970: TypePointer Input 50(ivec3) + 971(id): 970(ptr) Variable Input + Line 1 82 1 + 6(main): 4 Function None 5 + 7: Label + 969(id): 52(ptr) Variable Function + 973(param): 52(ptr) Variable Function + Line 1 82 0 + 972: 50(ivec3) Load 971(id) + Store 969(id) 972 + 974: 50(ivec3) Load 969(id) + Store 973(param) 974 + 975: 4 FunctionCall 56(@main(vu3;) 973(param) Return FunctionEnd -26(springForce(vf3;vf3;f1;): 17(fvec3) Function None 21 - 23(p0): 19(ptr) FunctionParameter - 24(p1): 19(ptr) FunctionParameter - 25(restDist): 20(ptr) FunctionParameter - 35: Label - 65(dist): 19(ptr) Variable Function - 36: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 28 - 37: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 15 15 15 15 - 40: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 38 23(p0) 41 - 45: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 42 24(p1) 41 - 48: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 46 25(restDist) 41 - 64: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 28 26(springForce(vf3;vf3;f1;) - 69: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 66 65(dist) 41 - 70: 17(fvec3) Load 23(p0) - 71: 17(fvec3) Load 24(p1) - 72: 17(fvec3) FSub 70 71 - Store 65(dist) 72 - 73: 17(fvec3) Load 65(dist) - 74: 17(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 73 - 119: 118(ptr) AccessChain 113 116 117 - 120: 7(float) Load 119 - 121: 17(fvec3) VectorTimesScalar 74 120 - 122: 17(fvec3) Load 65(dist) - 123: 7(float) ExtInst 2(GLSL.std.450) 66(Length) 122 - 124: 7(float) Load 25(restDist) - 125: 7(float) FSub 123 124 - 126: 17(fvec3) VectorTimesScalar 121 125 - ReturnValue 126 + Line 1 75 1 +27(springForce(vf3;vf3;f1;): 18(fvec3) Function None 22 + 24(p0): 20(ptr) FunctionParameter + 25(p1): 20(ptr) FunctionParameter + 26(restDist): 21(ptr) FunctionParameter + 36: Label + 69(dist): 20(ptr) Variable Function + 37: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 29 + 38: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 16 16 16 16 + 41: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 39 24(p0) 42 + 46: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 43 25(p1) 42 + 49: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 47 26(restDist) 42 + 65: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 29 27(springForce(vf3;vf3;f1;) + 66: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 29 + 67: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 68 68 16 16 + 72: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 70 69(dist) 42 + 73: 18(fvec3) Load 24(p0) + 74: 18(fvec3) Load 25(p1) + 75: 18(fvec3) FSub 73 74 + Store 69(dist) 75 + 76: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 77 77 16 16 + 78: 18(fvec3) Load 69(dist) + 79: 18(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 78 + 123: 122(ptr) AccessChain 117 120 121 + 124: 8(float) Load 123 + 125: 18(fvec3) VectorTimesScalar 79 124 + 126: 18(fvec3) Load 69(dist) + 127: 8(float) ExtInst 3(GLSL.std.450) 66(Length) 126 + 128: 8(float) Load 26(restDist) + 129: 8(float) FSub 127 128 + 130: 18(fvec3) VectorTimesScalar 125 129 + ReturnValue 130 FunctionEnd - 55(@main(vu3;): 3 Function None 52 - 54(id): 51(ptr) FunctionParameter - 58: Label - 131(index): 130(ptr) Variable Function - 220(force): 19(ptr) Variable Function - 232(pos): 19(ptr) Variable Function - 241(vel): 19(ptr) Variable Function - 258(param): 19(ptr) Variable Function - 262(param): 19(ptr) Variable Function - 264(param): 20(ptr) Variable Function - 282(param): 19(ptr) Variable Function - 286(param): 19(ptr) Variable Function - 288(param): 20(ptr) Variable Function - 310(param): 19(ptr) Variable Function - 314(param): 19(ptr) Variable Function + Line 1 82 1 + 56(@main(vu3;): 4 Function None 53 + 55(id): 52(ptr) FunctionParameter + 59: Label + 138(index): 137(ptr) Variable Function + 242(force): 20(ptr) Variable Function + 255(pos): 20(ptr) Variable Function + 265(vel): 20(ptr) Variable Function + 286(param): 20(ptr) Variable Function + 290(param): 20(ptr) Variable Function + 292(param): 21(ptr) Variable Function 316(param): 20(ptr) Variable Function - 333(param): 19(ptr) Variable Function - 337(param): 19(ptr) Variable Function - 339(param): 20(ptr) Variable Function - 368(param): 19(ptr) Variable Function - 372(param): 19(ptr) Variable Function - 374(param): 20(ptr) Variable Function - 398(param): 19(ptr) Variable Function - 402(param): 19(ptr) Variable Function - 404(param): 20(ptr) Variable Function - 436(param): 19(ptr) Variable Function - 440(param): 19(ptr) Variable Function - 442(param): 20(ptr) Variable Function - 470(param): 19(ptr) Variable Function - 474(param): 19(ptr) Variable Function - 476(param): 20(ptr) Variable Function - 490(f): 19(ptr) Variable Function - 534(sphereDist): 19(ptr) Variable Function - 602(normal): 19(ptr) Variable Function - 619(a): 19(ptr) Variable Function - 631(b): 19(ptr) Variable Function - 647(c): 19(ptr) Variable Function - 59: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 57 - 60: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 15 15 15 15 - 63: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 61 54(id) 41 - 129: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 57 55(@main(vu3;) - 135: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 132 131(index) 41 - 136: 130(ptr) AccessChain 54(id) 32 - 137: 10(int) Load 136 - 140: 139(ptr) AccessChain 113 116 138 15 - 141: 77(int) Load 140 - 142: 10(int) Bitcast 141 - 143: 10(int) IMul 137 142 - 144: 130(ptr) AccessChain 54(id) 15 - 145: 10(int) Load 144 - 146: 10(int) IAdd 143 145 - Store 131(index) 146 - 147: 10(int) Load 131(index) - 148: 139(ptr) AccessChain 113 116 138 15 - 149: 77(int) Load 148 - 150: 139(ptr) AccessChain 113 116 138 32 - 151: 77(int) Load 150 - 152: 77(int) IMul 149 151 - 153: 10(int) Bitcast 152 - 157: 154(bool) UGreaterThan 147 153 - SelectionMerge 159 None - BranchConditional 157 158 159 - 158: Label + 320(param): 20(ptr) Variable Function + 322(param): 21(ptr) Variable Function + 350(param): 20(ptr) Variable Function + 354(param): 20(ptr) Variable Function + 356(param): 21(ptr) Variable Function + 379(param): 20(ptr) Variable Function + 383(param): 20(ptr) Variable Function + 385(param): 21(ptr) Variable Function + 420(param): 20(ptr) Variable Function + 424(param): 20(ptr) Variable Function + 426(param): 21(ptr) Variable Function + 456(param): 20(ptr) Variable Function + 460(param): 20(ptr) Variable Function + 462(param): 21(ptr) Variable Function + 500(param): 20(ptr) Variable Function + 504(param): 20(ptr) Variable Function + 506(param): 21(ptr) Variable Function + 540(param): 20(ptr) Variable Function + 544(param): 20(ptr) Variable Function + 546(param): 21(ptr) Variable Function + 565(f): 20(ptr) Variable Function + 614(sphereDist): 20(ptr) Variable Function + 693(normal): 20(ptr) Variable Function + 717(a): 20(ptr) Variable Function + 730(b): 20(ptr) Variable Function + 747(c): 20(ptr) Variable Function + 60: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 61: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 16 16 16 16 + 64: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 62 55(id) 42 + 133: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 58 56(@main(vu3;) + 134: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 135: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 136 136 16 16 + 141: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 139 138(index) 42 + 142: 137(ptr) AccessChain 55(id) 33 + 143: 11(int) Load 142 + 146: 145(ptr) AccessChain 117 120 144 16 + 147: 82(int) Load 146 + 148: 11(int) Bitcast 147 + 149: 11(int) IMul 143 148 + 150: 137(ptr) AccessChain 55(id) 16 + 151: 11(int) Load 150 + 152: 11(int) IAdd 149 151 + Store 138(index) 152 + 153: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 154 154 16 16 + 155: 11(int) Load 138(index) + 156: 145(ptr) AccessChain 117 120 144 16 + 157: 82(int) Load 156 + 158: 145(ptr) AccessChain 117 120 144 33 + 159: 82(int) Load 158 + 160: 82(int) IMul 157 159 + 161: 11(int) Bitcast 160 + 165: 162(bool) UGreaterThan 155 161 + SelectionMerge 167 None + BranchConditional 165 166 167 + 166: Label + 168: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 169: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 170 170 16 16 Return - 159: Label - 188: 10(int) Load 131(index) - 190: 118(ptr) AccessChain 186(particleIn) 116 188 189 - 191: 7(float) Load 190 - 194: 154(bool) FOrdEqual 191 192 - SelectionMerge 196 None - BranchConditional 194 195 196 - 195: Label - 208: 10(int) Load 131(index) - 209: 10(int) Load 131(index) - 211: 210(ptr) AccessChain 206(particleOut) 116 209 116 - 212: 75(fvec4) Load 211 - 213: 210(ptr) AccessChain 206(particleOut) 116 208 116 - Store 213 212 - 214: 10(int) Load 131(index) - 218: 210(ptr) AccessChain 206(particleOut) 116 214 215 - Store 218 217 + 167: Label + 172: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 173: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 174 174 16 16 + 201: 11(int) Load 138(index) + 203: 122(ptr) AccessChain 199(particleIn) 120 201 202 + 204: 8(float) Load 203 + 207: 162(bool) FOrdEqual 204 205 + SelectionMerge 209 None + BranchConditional 207 208 209 + 208: Label + 210: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 211: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 212 212 16 16 + 223: 11(int) Load 138(index) + 224: 11(int) Load 138(index) + 226: 225(ptr) AccessChain 221(particleOut) 120 224 120 + 227: 80(fvec4) Load 226 + 228: 225(ptr) AccessChain 221(particleOut) 120 223 120 + Store 228 227 + 229: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 230 230 16 16 + 231: 11(int) Load 138(index) + 235: 225(ptr) AccessChain 221(particleOut) 120 231 232 + Store 235 234 + 236: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 237 237 16 16 Return - 196: Label - 224: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 221 220(force) 41 - 226: 210(ptr) AccessChain 113 116 225 - 227: 75(fvec4) Load 226 - 228: 17(fvec3) VectorShuffle 227 227 0 1 2 - 229: 118(ptr) AccessChain 113 116 215 - 230: 7(float) Load 229 - 231: 17(fvec3) VectorTimesScalar 228 230 - Store 220(force) 231 - 236: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 233 232(pos) 41 - 237: 10(int) Load 131(index) - 238: 210(ptr) AccessChain 186(particleIn) 116 237 116 - 239: 75(fvec4) Load 238 - 240: 17(fvec3) VectorShuffle 239 239 0 1 2 - Store 232(pos) 240 - 245: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 242 241(vel) 41 - 246: 10(int) Load 131(index) - 247: 210(ptr) AccessChain 186(particleIn) 116 246 215 - 248: 75(fvec4) Load 247 - 249: 17(fvec3) VectorShuffle 248 248 0 1 2 - Store 241(vel) 249 - 250: 130(ptr) AccessChain 54(id) 15 - 251: 10(int) Load 250 - 253: 154(bool) UGreaterThan 251 15 - SelectionMerge 255 None - BranchConditional 253 254 255 - 254: Label - 256: 10(int) Load 131(index) - 257: 10(int) ISub 256 32 - 259: 210(ptr) AccessChain 186(particleIn) 116 257 116 - 260: 75(fvec4) Load 259 - 261: 17(fvec3) VectorShuffle 260 260 0 1 2 - Store 258(param) 261 - 263: 17(fvec3) Load 232(pos) - Store 262(param) 263 - 265: 118(ptr) AccessChain 113 116 189 - 266: 7(float) Load 265 - Store 264(param) 266 - 267: 17(fvec3) FunctionCall 26(springForce(vf3;vf3;f1;) 258(param) 262(param) 264(param) - 268: 17(fvec3) Load 220(force) - 269: 17(fvec3) FAdd 268 267 - Store 220(force) 269 - Branch 255 - 255: Label - 270: 130(ptr) AccessChain 54(id) 15 - 271: 10(int) Load 270 - 272: 139(ptr) AccessChain 113 116 138 15 - 273: 77(int) Load 272 - 274: 77(int) ISub 273 215 - 275: 10(int) Bitcast 274 - 277: 154(bool) ULessThan 271 275 - SelectionMerge 279 None - BranchConditional 277 278 279 - 278: Label - 280: 10(int) Load 131(index) - 281: 10(int) IAdd 280 32 - 283: 210(ptr) AccessChain 186(particleIn) 116 281 116 - 284: 75(fvec4) Load 283 - 285: 17(fvec3) VectorShuffle 284 284 0 1 2 - Store 282(param) 285 - 287: 17(fvec3) Load 232(pos) - Store 286(param) 287 - 289: 118(ptr) AccessChain 113 116 189 - 290: 7(float) Load 289 - Store 288(param) 290 - 291: 17(fvec3) FunctionCall 26(springForce(vf3;vf3;f1;) 282(param) 286(param) 288(param) - 292: 17(fvec3) Load 220(force) - 293: 17(fvec3) FAdd 292 291 - Store 220(force) 293 - Branch 279 - 279: Label - 294: 130(ptr) AccessChain 54(id) 32 - 295: 10(int) Load 294 - 296: 139(ptr) AccessChain 113 116 138 32 - 297: 77(int) Load 296 - 298: 77(int) ISub 297 215 - 299: 10(int) Bitcast 298 - 301: 154(bool) ULessThan 295 299 - SelectionMerge 303 None - BranchConditional 301 302 303 - 302: Label - 304: 10(int) Load 131(index) - 305: 139(ptr) AccessChain 113 116 138 15 - 306: 77(int) Load 305 - 307: 10(int) Bitcast 306 - 308: 10(int) IAdd 304 307 - 311: 210(ptr) AccessChain 186(particleIn) 116 308 116 - 312: 75(fvec4) Load 311 - 313: 17(fvec3) VectorShuffle 312 312 0 1 2 - Store 310(param) 313 - 315: 17(fvec3) Load 232(pos) - Store 314(param) 315 - 317: 118(ptr) AccessChain 113 116 309 - 318: 7(float) Load 317 - Store 316(param) 318 - 319: 17(fvec3) FunctionCall 26(springForce(vf3;vf3;f1;) 310(param) 314(param) 316(param) - 320: 17(fvec3) Load 220(force) - 321: 17(fvec3) FAdd 320 319 - Store 220(force) 321 - Branch 303 - 303: Label - 322: 130(ptr) AccessChain 54(id) 32 - 323: 10(int) Load 322 - 325: 154(bool) UGreaterThan 323 15 - SelectionMerge 327 None - BranchConditional 325 326 327 - 326: Label - 328: 10(int) Load 131(index) - 329: 139(ptr) AccessChain 113 116 138 15 - 330: 77(int) Load 329 - 331: 10(int) Bitcast 330 - 332: 10(int) ISub 328 331 - 334: 210(ptr) AccessChain 186(particleIn) 116 332 116 - 335: 75(fvec4) Load 334 - 336: 17(fvec3) VectorShuffle 335 335 0 1 2 - Store 333(param) 336 - 338: 17(fvec3) Load 232(pos) - Store 337(param) 338 - 340: 118(ptr) AccessChain 113 116 309 - 341: 7(float) Load 340 - Store 339(param) 341 - 342: 17(fvec3) FunctionCall 26(springForce(vf3;vf3;f1;) 333(param) 337(param) 339(param) - 343: 17(fvec3) Load 220(force) - 344: 17(fvec3) FAdd 343 342 - Store 220(force) 344 - Branch 327 - 327: Label - 345: 130(ptr) AccessChain 54(id) 15 - 346: 10(int) Load 345 - 348: 154(bool) UGreaterThan 346 15 - 349: 130(ptr) AccessChain 54(id) 32 - 350: 10(int) Load 349 - 351: 139(ptr) AccessChain 113 116 138 32 - 352: 77(int) Load 351 - 353: 77(int) ISub 352 215 - 354: 10(int) Bitcast 353 - 356: 154(bool) ULessThan 350 354 - 358: 154(bool) LogicalAnd 348 356 - SelectionMerge 360 None - BranchConditional 358 359 360 - 359: Label - 361: 10(int) Load 131(index) - 362: 139(ptr) AccessChain 113 116 138 15 - 363: 77(int) Load 362 - 364: 10(int) Bitcast 363 - 365: 10(int) IAdd 361 364 - 366: 10(int) ISub 365 32 - 369: 210(ptr) AccessChain 186(particleIn) 116 366 116 - 370: 75(fvec4) Load 369 - 371: 17(fvec3) VectorShuffle 370 370 0 1 2 - Store 368(param) 371 - 373: 17(fvec3) Load 232(pos) - Store 372(param) 373 - 375: 118(ptr) AccessChain 113 116 367 - 376: 7(float) Load 375 - Store 374(param) 376 - 377: 17(fvec3) FunctionCall 26(springForce(vf3;vf3;f1;) 368(param) 372(param) 374(param) - 378: 17(fvec3) Load 220(force) - 379: 17(fvec3) FAdd 378 377 - Store 220(force) 379 - Branch 360 - 360: Label - 380: 130(ptr) AccessChain 54(id) 15 - 381: 10(int) Load 380 - 383: 154(bool) UGreaterThan 381 15 - 384: 130(ptr) AccessChain 54(id) 32 - 385: 10(int) Load 384 - 387: 154(bool) UGreaterThan 385 15 - 389: 154(bool) LogicalAnd 383 387 - SelectionMerge 391 None - BranchConditional 389 390 391 - 390: Label - 392: 10(int) Load 131(index) - 393: 139(ptr) AccessChain 113 116 138 15 - 394: 77(int) Load 393 - 395: 10(int) Bitcast 394 - 396: 10(int) ISub 392 395 - 397: 10(int) ISub 396 32 - 399: 210(ptr) AccessChain 186(particleIn) 116 397 116 - 400: 75(fvec4) Load 399 - 401: 17(fvec3) VectorShuffle 400 400 0 1 2 - Store 398(param) 401 - 403: 17(fvec3) Load 232(pos) - Store 402(param) 403 - 405: 118(ptr) AccessChain 113 116 367 - 406: 7(float) Load 405 - Store 404(param) 406 - 407: 17(fvec3) FunctionCall 26(springForce(vf3;vf3;f1;) 398(param) 402(param) 404(param) - 408: 17(fvec3) Load 220(force) - 409: 17(fvec3) FAdd 408 407 - Store 220(force) 409 - Branch 391 - 391: Label - 410: 130(ptr) AccessChain 54(id) 15 - 411: 10(int) Load 410 - 412: 139(ptr) AccessChain 113 116 138 15 - 413: 77(int) Load 412 - 414: 77(int) ISub 413 215 - 415: 10(int) Bitcast 414 - 417: 154(bool) ULessThan 411 415 - 418: 130(ptr) AccessChain 54(id) 32 - 419: 10(int) Load 418 - 420: 139(ptr) AccessChain 113 116 138 32 - 421: 77(int) Load 420 - 422: 77(int) ISub 421 215 - 423: 10(int) Bitcast 422 - 425: 154(bool) ULessThan 419 423 - 427: 154(bool) LogicalAnd 417 425 - SelectionMerge 429 None - BranchConditional 427 428 429 - 428: Label - 430: 10(int) Load 131(index) - 431: 139(ptr) AccessChain 113 116 138 15 - 432: 77(int) Load 431 - 433: 10(int) Bitcast 432 - 434: 10(int) IAdd 430 433 - 435: 10(int) IAdd 434 32 - 437: 210(ptr) AccessChain 186(particleIn) 116 435 116 - 438: 75(fvec4) Load 437 - 439: 17(fvec3) VectorShuffle 438 438 0 1 2 - Store 436(param) 439 - 441: 17(fvec3) Load 232(pos) - Store 440(param) 441 - 443: 118(ptr) AccessChain 113 116 367 - 444: 7(float) Load 443 - Store 442(param) 444 - 445: 17(fvec3) FunctionCall 26(springForce(vf3;vf3;f1;) 436(param) 440(param) 442(param) - 446: 17(fvec3) Load 220(force) - 447: 17(fvec3) FAdd 446 445 - Store 220(force) 447 - Branch 429 - 429: Label - 448: 130(ptr) AccessChain 54(id) 15 - 449: 10(int) Load 448 - 450: 139(ptr) AccessChain 113 116 138 15 - 451: 77(int) Load 450 - 452: 77(int) ISub 451 215 - 453: 10(int) Bitcast 452 - 455: 154(bool) ULessThan 449 453 - 456: 130(ptr) AccessChain 54(id) 32 - 457: 10(int) Load 456 - 459: 154(bool) UGreaterThan 457 15 - 461: 154(bool) LogicalAnd 455 459 - SelectionMerge 463 None - BranchConditional 461 462 463 - 462: Label - 464: 10(int) Load 131(index) - 465: 139(ptr) AccessChain 113 116 138 15 - 466: 77(int) Load 465 - 467: 10(int) Bitcast 466 - 468: 10(int) ISub 464 467 - 469: 10(int) IAdd 468 32 - 471: 210(ptr) AccessChain 186(particleIn) 116 469 116 - 472: 75(fvec4) Load 471 - 473: 17(fvec3) VectorShuffle 472 472 0 1 2 - Store 470(param) 473 - 475: 17(fvec3) Load 232(pos) - Store 474(param) 475 - 477: 118(ptr) AccessChain 113 116 367 - 478: 7(float) Load 477 - Store 476(param) 478 - 479: 17(fvec3) FunctionCall 26(springForce(vf3;vf3;f1;) 470(param) 474(param) 476(param) - 480: 17(fvec3) Load 220(force) - 481: 17(fvec3) FAdd 480 479 - Store 220(force) 481 - Branch 463 - 463: Label - 483: 118(ptr) AccessChain 113 116 482 - 484: 7(float) Load 483 - 485: 7(float) FNegate 484 - 486: 17(fvec3) Load 241(vel) - 487: 17(fvec3) VectorTimesScalar 486 485 - 488: 17(fvec3) Load 220(force) - 489: 17(fvec3) FAdd 488 487 - Store 220(force) 489 - 494: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 491 490(f) 41 - 495: 17(fvec3) Load 220(force) - 496: 118(ptr) AccessChain 113 116 215 - 497: 7(float) Load 496 - 498: 7(float) FDiv 192 497 - 499: 17(fvec3) VectorTimesScalar 495 498 - Store 490(f) 499 - 500: 10(int) Load 131(index) - 501: 17(fvec3) Load 232(pos) - 502: 17(fvec3) Load 241(vel) - 503: 118(ptr) AccessChain 113 116 116 - 504: 7(float) Load 503 - 505: 17(fvec3) VectorTimesScalar 502 504 - 506: 17(fvec3) FAdd 501 505 - 508: 17(fvec3) Load 490(f) - 509: 17(fvec3) VectorTimesScalar 508 507 - 510: 118(ptr) AccessChain 113 116 116 - 511: 7(float) Load 510 - 512: 17(fvec3) VectorTimesScalar 509 511 - 513: 118(ptr) AccessChain 113 116 116 - 514: 7(float) Load 513 - 515: 17(fvec3) VectorTimesScalar 512 514 - 516: 17(fvec3) FAdd 506 515 - 517: 7(float) CompositeExtract 516 0 - 518: 7(float) CompositeExtract 516 1 - 519: 7(float) CompositeExtract 516 2 - 520: 75(fvec4) CompositeConstruct 517 518 519 192 - 521: 210(ptr) AccessChain 206(particleOut) 116 500 116 - Store 521 520 - 522: 10(int) Load 131(index) - 523: 17(fvec3) Load 241(vel) - 524: 17(fvec3) Load 490(f) - 525: 118(ptr) AccessChain 113 116 116 - 526: 7(float) Load 525 - 527: 17(fvec3) VectorTimesScalar 524 526 - 528: 17(fvec3) FAdd 523 527 - 529: 7(float) CompositeExtract 528 0 - 530: 7(float) CompositeExtract 528 1 - 531: 7(float) CompositeExtract 528 2 - 532: 75(fvec4) CompositeConstruct 529 530 531 216 - 533: 210(ptr) AccessChain 206(particleOut) 116 522 215 - Store 533 532 - 538: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 535 534(sphereDist) 41 - 539: 10(int) Load 131(index) - 540: 210(ptr) AccessChain 206(particleOut) 116 539 116 - 541: 75(fvec4) Load 540 - 542: 17(fvec3) VectorShuffle 541 541 0 1 2 - 544: 210(ptr) AccessChain 113 116 543 - 545: 75(fvec4) Load 544 - 546: 17(fvec3) VectorShuffle 545 545 0 1 2 - 547: 17(fvec3) FSub 542 546 - Store 534(sphereDist) 547 - 548: 17(fvec3) Load 534(sphereDist) - 549: 7(float) ExtInst 2(GLSL.std.450) 66(Length) 548 - 551: 118(ptr) AccessChain 113 116 550 - 552: 7(float) Load 551 - 554: 7(float) FAdd 552 553 - 556: 154(bool) FOrdLessThan 549 554 - SelectionMerge 558 None - BranchConditional 556 557 558 - 557: Label - 559: 10(int) Load 131(index) - 560: 210(ptr) AccessChain 113 116 543 - 561: 75(fvec4) Load 560 - 562: 17(fvec3) VectorShuffle 561 561 0 1 2 - 563: 17(fvec3) Load 534(sphereDist) - 564: 17(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 563 - 565: 118(ptr) AccessChain 113 116 550 - 566: 7(float) Load 565 - 567: 7(float) FAdd 566 553 - 568: 17(fvec3) VectorTimesScalar 564 567 - 569: 17(fvec3) FAdd 562 568 - 570: 118(ptr) AccessChain 206(particleOut) 116 559 116 15 - 571: 7(float) CompositeExtract 569 0 - Store 570 571 - 572: 118(ptr) AccessChain 206(particleOut) 116 559 116 32 - 573: 7(float) CompositeExtract 569 1 - Store 572 573 - 574: 118(ptr) AccessChain 206(particleOut) 116 559 116 44 - 575: 7(float) CompositeExtract 569 2 - Store 574 575 - 576: 10(int) Load 131(index) - 577: 210(ptr) AccessChain 206(particleOut) 116 576 215 - Store 577 217 - Branch 558 - 558: Label - 596: 595(ptr) AccessChain 593 116 116 - 597: 10(int) Load 596 - 599: 154(bool) IEqual 597 32 - SelectionMerge 601 None - BranchConditional 599 600 601 - 600: Label - 605: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 603 602(normal) 41 - Store 602(normal) 606 - 607: 130(ptr) AccessChain 54(id) 32 - 608: 10(int) Load 607 - 610: 154(bool) UGreaterThan 608 15 - SelectionMerge 612 None - BranchConditional 610 611 612 - 611: Label - 613: 130(ptr) AccessChain 54(id) 15 - 614: 10(int) Load 613 - 616: 154(bool) UGreaterThan 614 15 - SelectionMerge 618 None - BranchConditional 616 617 618 - 617: Label - 623: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 620 619(a) 41 - 624: 10(int) Load 131(index) - 625: 10(int) ISub 624 32 - 626: 210(ptr) AccessChain 186(particleIn) 116 625 116 - 627: 75(fvec4) Load 626 - 628: 17(fvec3) VectorShuffle 627 627 0 1 2 - 629: 17(fvec3) Load 232(pos) - 630: 17(fvec3) FSub 628 629 - Store 619(a) 630 - 635: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 632 631(b) 41 - 636: 10(int) Load 131(index) - 637: 139(ptr) AccessChain 113 116 138 15 - 638: 77(int) Load 637 - 639: 10(int) Bitcast 638 - 640: 10(int) ISub 636 639 - 641: 10(int) ISub 640 32 - 642: 210(ptr) AccessChain 186(particleIn) 116 641 116 - 643: 75(fvec4) Load 642 - 644: 17(fvec3) VectorShuffle 643 643 0 1 2 - 645: 17(fvec3) Load 232(pos) - 646: 17(fvec3) FSub 644 645 - Store 631(b) 646 - 651: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 648 647(c) 41 - 652: 10(int) Load 131(index) - 653: 139(ptr) AccessChain 113 116 138 15 - 654: 77(int) Load 653 - 655: 10(int) Bitcast 654 - 656: 10(int) ISub 652 655 - 657: 210(ptr) AccessChain 186(particleIn) 116 656 116 - 658: 75(fvec4) Load 657 - 659: 17(fvec3) VectorShuffle 658 658 0 1 2 - 660: 17(fvec3) Load 232(pos) - 661: 17(fvec3) FSub 659 660 - Store 647(c) 661 - 662: 17(fvec3) Load 619(a) - 663: 17(fvec3) Load 631(b) - 664: 17(fvec3) ExtInst 2(GLSL.std.450) 68(Cross) 662 663 - 665: 17(fvec3) Load 631(b) - 666: 17(fvec3) Load 647(c) - 667: 17(fvec3) ExtInst 2(GLSL.std.450) 68(Cross) 665 666 - 668: 17(fvec3) FAdd 664 667 - 669: 17(fvec3) Load 602(normal) - 670: 17(fvec3) FAdd 669 668 - Store 602(normal) 670 - Branch 618 - 618: Label - 671: 130(ptr) AccessChain 54(id) 15 - 672: 10(int) Load 671 - 673: 139(ptr) AccessChain 113 116 138 15 - 674: 77(int) Load 673 - 675: 77(int) ISub 674 215 - 676: 10(int) Bitcast 675 - 678: 154(bool) ULessThan 672 676 - SelectionMerge 680 None - BranchConditional 678 679 680 - 679: Label - 681: 10(int) Load 131(index) - 682: 139(ptr) AccessChain 113 116 138 15 - 683: 77(int) Load 682 - 684: 10(int) Bitcast 683 - 685: 10(int) ISub 681 684 - 686: 210(ptr) AccessChain 186(particleIn) 116 685 116 - 687: 75(fvec4) Load 686 - 688: 17(fvec3) VectorShuffle 687 687 0 1 2 - 689: 17(fvec3) Load 232(pos) - 690: 17(fvec3) FSub 688 689 - Store 619(a) 690 - 691: 10(int) Load 131(index) - 692: 139(ptr) AccessChain 113 116 138 15 - 693: 77(int) Load 692 - 694: 10(int) Bitcast 693 - 695: 10(int) ISub 691 694 - 696: 10(int) IAdd 695 32 - 697: 210(ptr) AccessChain 186(particleIn) 116 696 116 - 698: 75(fvec4) Load 697 - 699: 17(fvec3) VectorShuffle 698 698 0 1 2 - 700: 17(fvec3) Load 232(pos) - 701: 17(fvec3) FSub 699 700 - Store 631(b) 701 - 702: 10(int) Load 131(index) - 703: 10(int) IAdd 702 32 - 704: 210(ptr) AccessChain 186(particleIn) 116 703 116 - 705: 75(fvec4) Load 704 - 706: 17(fvec3) VectorShuffle 705 705 0 1 2 - 707: 17(fvec3) Load 232(pos) - 708: 17(fvec3) FSub 706 707 - Store 647(c) 708 - 709: 17(fvec3) Load 619(a) - 710: 17(fvec3) Load 631(b) - 711: 17(fvec3) ExtInst 2(GLSL.std.450) 68(Cross) 709 710 - 712: 17(fvec3) Load 631(b) - 713: 17(fvec3) Load 647(c) - 714: 17(fvec3) ExtInst 2(GLSL.std.450) 68(Cross) 712 713 - 715: 17(fvec3) FAdd 711 714 - 716: 17(fvec3) Load 602(normal) - 717: 17(fvec3) FAdd 716 715 - Store 602(normal) 717 - Branch 680 - 680: Label - Branch 612 - 612: Label - 718: 130(ptr) AccessChain 54(id) 32 - 719: 10(int) Load 718 - 720: 139(ptr) AccessChain 113 116 138 32 - 721: 77(int) Load 720 - 722: 77(int) ISub 721 215 - 723: 10(int) Bitcast 722 - 725: 154(bool) ULessThan 719 723 - SelectionMerge 727 None - BranchConditional 725 726 727 - 726: Label - 728: 130(ptr) AccessChain 54(id) 15 - 729: 10(int) Load 728 - 731: 154(bool) UGreaterThan 729 15 - SelectionMerge 733 None - BranchConditional 731 732 733 - 732: Label - 734: 10(int) Load 131(index) - 735: 139(ptr) AccessChain 113 116 138 15 - 736: 77(int) Load 735 - 737: 10(int) Bitcast 736 - 738: 10(int) IAdd 734 737 - 739: 210(ptr) AccessChain 186(particleIn) 116 738 116 - 740: 75(fvec4) Load 739 - 741: 17(fvec3) VectorShuffle 740 740 0 1 2 - 742: 17(fvec3) Load 232(pos) - 743: 17(fvec3) FSub 741 742 - Store 619(a) 743 - 744: 10(int) Load 131(index) - 745: 139(ptr) AccessChain 113 116 138 15 - 746: 77(int) Load 745 - 747: 10(int) Bitcast 746 - 748: 10(int) IAdd 744 747 - 749: 10(int) ISub 748 32 - 750: 210(ptr) AccessChain 186(particleIn) 116 749 116 - 751: 75(fvec4) Load 750 - 752: 17(fvec3) VectorShuffle 751 751 0 1 2 - 753: 17(fvec3) Load 232(pos) - 754: 17(fvec3) FSub 752 753 - Store 631(b) 754 - 755: 10(int) Load 131(index) - 756: 10(int) ISub 755 32 - 757: 210(ptr) AccessChain 186(particleIn) 116 756 116 - 758: 75(fvec4) Load 757 - 759: 17(fvec3) VectorShuffle 758 758 0 1 2 - 760: 17(fvec3) Load 232(pos) - 761: 17(fvec3) FSub 759 760 - Store 647(c) 761 - 762: 17(fvec3) Load 619(a) - 763: 17(fvec3) Load 631(b) - 764: 17(fvec3) ExtInst 2(GLSL.std.450) 68(Cross) 762 763 - 765: 17(fvec3) Load 631(b) - 766: 17(fvec3) Load 647(c) - 767: 17(fvec3) ExtInst 2(GLSL.std.450) 68(Cross) 765 766 - 768: 17(fvec3) FAdd 764 767 - 769: 17(fvec3) Load 602(normal) - 770: 17(fvec3) FAdd 769 768 - Store 602(normal) 770 - Branch 733 - 733: Label - 771: 130(ptr) AccessChain 54(id) 15 - 772: 10(int) Load 771 - 773: 139(ptr) AccessChain 113 116 138 15 - 774: 77(int) Load 773 - 775: 77(int) ISub 774 215 - 776: 10(int) Bitcast 775 - 778: 154(bool) ULessThan 772 776 - SelectionMerge 780 None - BranchConditional 778 779 780 - 779: Label - 781: 10(int) Load 131(index) - 782: 10(int) IAdd 781 32 - 783: 210(ptr) AccessChain 186(particleIn) 116 782 116 - 784: 75(fvec4) Load 783 - 785: 17(fvec3) VectorShuffle 784 784 0 1 2 - 786: 17(fvec3) Load 232(pos) - 787: 17(fvec3) FSub 785 786 - Store 619(a) 787 - 788: 10(int) Load 131(index) - 789: 139(ptr) AccessChain 113 116 138 15 - 790: 77(int) Load 789 - 791: 10(int) Bitcast 790 - 792: 10(int) IAdd 788 791 - 793: 10(int) IAdd 792 32 - 794: 210(ptr) AccessChain 186(particleIn) 116 793 116 - 795: 75(fvec4) Load 794 - 796: 17(fvec3) VectorShuffle 795 795 0 1 2 - 797: 17(fvec3) Load 232(pos) - 798: 17(fvec3) FSub 796 797 - Store 631(b) 798 - 799: 10(int) Load 131(index) - 800: 139(ptr) AccessChain 113 116 138 15 - 801: 77(int) Load 800 - 802: 10(int) Bitcast 801 - 803: 10(int) IAdd 799 802 - 804: 210(ptr) AccessChain 186(particleIn) 116 803 116 - 805: 75(fvec4) Load 804 - 806: 17(fvec3) VectorShuffle 805 805 0 1 2 - 807: 17(fvec3) Load 232(pos) - 808: 17(fvec3) FSub 806 807 - Store 647(c) 808 - 809: 17(fvec3) Load 619(a) - 810: 17(fvec3) Load 631(b) - 811: 17(fvec3) ExtInst 2(GLSL.std.450) 68(Cross) 809 810 - 812: 17(fvec3) Load 631(b) - 813: 17(fvec3) Load 647(c) - 814: 17(fvec3) ExtInst 2(GLSL.std.450) 68(Cross) 812 813 - 815: 17(fvec3) FAdd 811 814 - 816: 17(fvec3) Load 602(normal) - 817: 17(fvec3) FAdd 816 815 - Store 602(normal) 817 - Branch 780 - 780: Label - Branch 727 - 727: Label - 818: 10(int) Load 131(index) - 819: 17(fvec3) Load 602(normal) - 820: 17(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 819 - 821: 7(float) CompositeExtract 820 0 - 822: 7(float) CompositeExtract 820 1 - 823: 7(float) CompositeExtract 820 2 - 824: 75(fvec4) CompositeConstruct 821 822 823 216 - 825: 210(ptr) AccessChain 206(particleOut) 116 818 482 - Store 825 824 - Branch 601 - 601: Label + 209: Label + 239: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 240: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 241 241 16 16 + 245: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 243 242(force) 42 + 247: 225(ptr) AccessChain 117 120 246 + 248: 80(fvec4) Load 247 + 249: 18(fvec3) VectorShuffle 248 248 0 1 2 + 250: 122(ptr) AccessChain 117 120 232 + 251: 8(float) Load 250 + 252: 18(fvec3) VectorTimesScalar 249 251 + Store 242(force) 252 + 253: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 254 254 16 16 + 258: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 256 255(pos) 42 + 259: 11(int) Load 138(index) + 260: 225(ptr) AccessChain 199(particleIn) 120 259 120 + 261: 80(fvec4) Load 260 + 262: 18(fvec3) VectorShuffle 261 261 0 1 2 + Store 255(pos) 262 + 263: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 264 264 16 16 + 268: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 266 265(vel) 42 + 269: 11(int) Load 138(index) + 270: 225(ptr) AccessChain 199(particleIn) 120 269 232 + 271: 80(fvec4) Load 270 + 272: 18(fvec3) VectorShuffle 271 271 0 1 2 + Store 265(vel) 272 + 273: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 274 274 16 16 + 275: 137(ptr) AccessChain 55(id) 16 + 276: 11(int) Load 275 + 278: 162(bool) UGreaterThan 276 16 + SelectionMerge 280 None + BranchConditional 278 279 280 + 279: Label + 281: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 282: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 283 283 16 16 + 284: 11(int) Load 138(index) + 285: 11(int) ISub 284 33 + 287: 225(ptr) AccessChain 199(particleIn) 120 285 120 + 288: 80(fvec4) Load 287 + 289: 18(fvec3) VectorShuffle 288 288 0 1 2 + Store 286(param) 289 + 291: 18(fvec3) Load 255(pos) + Store 290(param) 291 + 293: 122(ptr) AccessChain 117 120 202 + 294: 8(float) Load 293 + Store 292(param) 294 + 295: 18(fvec3) FunctionCall 27(springForce(vf3;vf3;f1;) 286(param) 290(param) 292(param) + 296: 18(fvec3) Load 242(force) + 297: 18(fvec3) FAdd 296 295 + Store 242(force) 297 + Branch 280 + 280: Label + 298: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 299: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 300 300 16 16 + 301: 137(ptr) AccessChain 55(id) 16 + 302: 11(int) Load 301 + 303: 145(ptr) AccessChain 117 120 144 16 + 304: 82(int) Load 303 + 305: 82(int) ISub 304 232 + 306: 11(int) Bitcast 305 + 308: 162(bool) ULessThan 302 306 + SelectionMerge 310 None + BranchConditional 308 309 310 + 309: Label + 311: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 312: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 313 313 16 16 + 314: 11(int) Load 138(index) + 315: 11(int) IAdd 314 33 + 317: 225(ptr) AccessChain 199(particleIn) 120 315 120 + 318: 80(fvec4) Load 317 + 319: 18(fvec3) VectorShuffle 318 318 0 1 2 + Store 316(param) 319 + 321: 18(fvec3) Load 255(pos) + Store 320(param) 321 + 323: 122(ptr) AccessChain 117 120 202 + 324: 8(float) Load 323 + Store 322(param) 324 + 325: 18(fvec3) FunctionCall 27(springForce(vf3;vf3;f1;) 316(param) 320(param) 322(param) + 326: 18(fvec3) Load 242(force) + 327: 18(fvec3) FAdd 326 325 + Store 242(force) 327 + Branch 310 + 310: Label + 328: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 329: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 330 330 16 16 + 331: 137(ptr) AccessChain 55(id) 33 + 332: 11(int) Load 331 + 333: 145(ptr) AccessChain 117 120 144 33 + 334: 82(int) Load 333 + 335: 82(int) ISub 334 232 + 336: 11(int) Bitcast 335 + 338: 162(bool) ULessThan 332 336 + SelectionMerge 340 None + BranchConditional 338 339 340 + 339: Label + 341: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 342: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 343 343 16 16 + 344: 11(int) Load 138(index) + 345: 145(ptr) AccessChain 117 120 144 16 + 346: 82(int) Load 345 + 347: 11(int) Bitcast 346 + 348: 11(int) IAdd 344 347 + 351: 225(ptr) AccessChain 199(particleIn) 120 348 120 + 352: 80(fvec4) Load 351 + 353: 18(fvec3) VectorShuffle 352 352 0 1 2 + Store 350(param) 353 + 355: 18(fvec3) Load 255(pos) + Store 354(param) 355 + 357: 122(ptr) AccessChain 117 120 349 + 358: 8(float) Load 357 + Store 356(param) 358 + 359: 18(fvec3) FunctionCall 27(springForce(vf3;vf3;f1;) 350(param) 354(param) 356(param) + 360: 18(fvec3) Load 242(force) + 361: 18(fvec3) FAdd 360 359 + Store 242(force) 361 + Branch 340 + 340: Label + 362: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 363: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 364 364 16 16 + 365: 137(ptr) AccessChain 55(id) 33 + 366: 11(int) Load 365 + 368: 162(bool) UGreaterThan 366 16 + SelectionMerge 370 None + BranchConditional 368 369 370 + 369: Label + 371: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 372: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 373 373 16 16 + 374: 11(int) Load 138(index) + 375: 145(ptr) AccessChain 117 120 144 16 + 376: 82(int) Load 375 + 377: 11(int) Bitcast 376 + 378: 11(int) ISub 374 377 + 380: 225(ptr) AccessChain 199(particleIn) 120 378 120 + 381: 80(fvec4) Load 380 + 382: 18(fvec3) VectorShuffle 381 381 0 1 2 + Store 379(param) 382 + 384: 18(fvec3) Load 255(pos) + Store 383(param) 384 + 386: 122(ptr) AccessChain 117 120 349 + 387: 8(float) Load 386 + Store 385(param) 387 + 388: 18(fvec3) FunctionCall 27(springForce(vf3;vf3;f1;) 379(param) 383(param) 385(param) + 389: 18(fvec3) Load 242(force) + 390: 18(fvec3) FAdd 389 388 + Store 242(force) 390 + Branch 370 + 370: Label + 391: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 392: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 393 393 16 16 + 394: 137(ptr) AccessChain 55(id) 16 + 395: 11(int) Load 394 + 397: 162(bool) UGreaterThan 395 16 + 398: 137(ptr) AccessChain 55(id) 33 + 399: 11(int) Load 398 + 400: 145(ptr) AccessChain 117 120 144 33 + 401: 82(int) Load 400 + 402: 82(int) ISub 401 232 + 403: 11(int) Bitcast 402 + 405: 162(bool) ULessThan 399 403 + 407: 162(bool) LogicalAnd 397 405 + SelectionMerge 409 None + BranchConditional 407 408 409 + 408: Label + 410: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 411: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 412 412 16 16 + 413: 11(int) Load 138(index) + 414: 145(ptr) AccessChain 117 120 144 16 + 415: 82(int) Load 414 + 416: 11(int) Bitcast 415 + 417: 11(int) IAdd 413 416 + 418: 11(int) ISub 417 33 + 421: 225(ptr) AccessChain 199(particleIn) 120 418 120 + 422: 80(fvec4) Load 421 + 423: 18(fvec3) VectorShuffle 422 422 0 1 2 + Store 420(param) 423 + 425: 18(fvec3) Load 255(pos) + Store 424(param) 425 + 427: 122(ptr) AccessChain 117 120 419 + 428: 8(float) Load 427 + Store 426(param) 428 + 429: 18(fvec3) FunctionCall 27(springForce(vf3;vf3;f1;) 420(param) 424(param) 426(param) + 430: 18(fvec3) Load 242(force) + 431: 18(fvec3) FAdd 430 429 + Store 242(force) 431 + Branch 409 + 409: Label + 432: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 433: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 434 434 16 16 + 435: 137(ptr) AccessChain 55(id) 16 + 436: 11(int) Load 435 + 438: 162(bool) UGreaterThan 436 16 + 439: 137(ptr) AccessChain 55(id) 33 + 440: 11(int) Load 439 + 442: 162(bool) UGreaterThan 440 16 + 444: 162(bool) LogicalAnd 438 442 + SelectionMerge 446 None + BranchConditional 444 445 446 + 445: Label + 447: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 448: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 449 449 16 16 + 450: 11(int) Load 138(index) + 451: 145(ptr) AccessChain 117 120 144 16 + 452: 82(int) Load 451 + 453: 11(int) Bitcast 452 + 454: 11(int) ISub 450 453 + 455: 11(int) ISub 454 33 + 457: 225(ptr) AccessChain 199(particleIn) 120 455 120 + 458: 80(fvec4) Load 457 + 459: 18(fvec3) VectorShuffle 458 458 0 1 2 + Store 456(param) 459 + 461: 18(fvec3) Load 255(pos) + Store 460(param) 461 + 463: 122(ptr) AccessChain 117 120 419 + 464: 8(float) Load 463 + Store 462(param) 464 + 465: 18(fvec3) FunctionCall 27(springForce(vf3;vf3;f1;) 456(param) 460(param) 462(param) + 466: 18(fvec3) Load 242(force) + 467: 18(fvec3) FAdd 466 465 + Store 242(force) 467 + Branch 446 + 446: Label + 468: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 469: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 470 470 16 16 + 471: 137(ptr) AccessChain 55(id) 16 + 472: 11(int) Load 471 + 473: 145(ptr) AccessChain 117 120 144 16 + 474: 82(int) Load 473 + 475: 82(int) ISub 474 232 + 476: 11(int) Bitcast 475 + 478: 162(bool) ULessThan 472 476 + 479: 137(ptr) AccessChain 55(id) 33 + 480: 11(int) Load 479 + 481: 145(ptr) AccessChain 117 120 144 33 + 482: 82(int) Load 481 + 483: 82(int) ISub 482 232 + 484: 11(int) Bitcast 483 + 486: 162(bool) ULessThan 480 484 + 488: 162(bool) LogicalAnd 478 486 + SelectionMerge 490 None + BranchConditional 488 489 490 + 489: Label + 491: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 492: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 493 493 16 16 + 494: 11(int) Load 138(index) + 495: 145(ptr) AccessChain 117 120 144 16 + 496: 82(int) Load 495 + 497: 11(int) Bitcast 496 + 498: 11(int) IAdd 494 497 + 499: 11(int) IAdd 498 33 + 501: 225(ptr) AccessChain 199(particleIn) 120 499 120 + 502: 80(fvec4) Load 501 + 503: 18(fvec3) VectorShuffle 502 502 0 1 2 + Store 500(param) 503 + 505: 18(fvec3) Load 255(pos) + Store 504(param) 505 + 507: 122(ptr) AccessChain 117 120 419 + 508: 8(float) Load 507 + Store 506(param) 508 + 509: 18(fvec3) FunctionCall 27(springForce(vf3;vf3;f1;) 500(param) 504(param) 506(param) + 510: 18(fvec3) Load 242(force) + 511: 18(fvec3) FAdd 510 509 + Store 242(force) 511 + Branch 490 + 490: Label + 512: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 513: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 514 514 16 16 + 515: 137(ptr) AccessChain 55(id) 16 + 516: 11(int) Load 515 + 517: 145(ptr) AccessChain 117 120 144 16 + 518: 82(int) Load 517 + 519: 82(int) ISub 518 232 + 520: 11(int) Bitcast 519 + 522: 162(bool) ULessThan 516 520 + 523: 137(ptr) AccessChain 55(id) 33 + 524: 11(int) Load 523 + 526: 162(bool) UGreaterThan 524 16 + 528: 162(bool) LogicalAnd 522 526 + SelectionMerge 530 None + BranchConditional 528 529 530 + 529: Label + 531: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 532: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 533 533 16 16 + 534: 11(int) Load 138(index) + 535: 145(ptr) AccessChain 117 120 144 16 + 536: 82(int) Load 535 + 537: 11(int) Bitcast 536 + 538: 11(int) ISub 534 537 + 539: 11(int) IAdd 538 33 + 541: 225(ptr) AccessChain 199(particleIn) 120 539 120 + 542: 80(fvec4) Load 541 + 543: 18(fvec3) VectorShuffle 542 542 0 1 2 + Store 540(param) 543 + 545: 18(fvec3) Load 255(pos) + Store 544(param) 545 + 547: 122(ptr) AccessChain 117 120 419 + 548: 8(float) Load 547 + Store 546(param) 548 + 549: 18(fvec3) FunctionCall 27(springForce(vf3;vf3;f1;) 540(param) 544(param) 546(param) + 550: 18(fvec3) Load 242(force) + 551: 18(fvec3) FAdd 550 549 + Store 242(force) 551 + Branch 530 + 530: Label + 552: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 553: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 554 554 16 16 + 556: 122(ptr) AccessChain 117 120 555 + 557: 8(float) Load 556 + 558: 8(float) FNegate 557 + 559: 18(fvec3) Load 265(vel) + 560: 18(fvec3) VectorTimesScalar 559 558 + 561: 18(fvec3) Load 242(force) + 562: 18(fvec3) FAdd 561 560 + Store 242(force) 562 + 563: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 564 564 16 16 + 568: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 566 565(f) 42 + 569: 18(fvec3) Load 242(force) + 570: 122(ptr) AccessChain 117 120 232 + 571: 8(float) Load 570 + 572: 8(float) FDiv 205 571 + 573: 18(fvec3) VectorTimesScalar 569 572 + Store 565(f) 573 + 574: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 575 575 16 16 + 576: 11(int) Load 138(index) + 577: 18(fvec3) Load 255(pos) + 578: 18(fvec3) Load 265(vel) + 579: 122(ptr) AccessChain 117 120 120 + 580: 8(float) Load 579 + 581: 18(fvec3) VectorTimesScalar 578 580 + 582: 18(fvec3) FAdd 577 581 + 584: 18(fvec3) Load 565(f) + 585: 18(fvec3) VectorTimesScalar 584 583 + 586: 122(ptr) AccessChain 117 120 120 + 587: 8(float) Load 586 + 588: 18(fvec3) VectorTimesScalar 585 587 + 589: 122(ptr) AccessChain 117 120 120 + 590: 8(float) Load 589 + 591: 18(fvec3) VectorTimesScalar 588 590 + 592: 18(fvec3) FAdd 582 591 + 593: 8(float) CompositeExtract 592 0 + 594: 8(float) CompositeExtract 592 1 + 595: 8(float) CompositeExtract 592 2 + 596: 80(fvec4) CompositeConstruct 593 594 595 205 + 597: 225(ptr) AccessChain 221(particleOut) 120 576 120 + Store 597 596 + 598: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 599 599 16 16 + 600: 11(int) Load 138(index) + 601: 18(fvec3) Load 265(vel) + 602: 18(fvec3) Load 565(f) + 603: 122(ptr) AccessChain 117 120 120 + 604: 8(float) Load 603 + 605: 18(fvec3) VectorTimesScalar 602 604 + 606: 18(fvec3) FAdd 601 605 + 607: 8(float) CompositeExtract 606 0 + 608: 8(float) CompositeExtract 606 1 + 609: 8(float) CompositeExtract 606 2 + 610: 80(fvec4) CompositeConstruct 607 608 609 233 + 611: 225(ptr) AccessChain 221(particleOut) 120 600 232 + Store 611 610 + 612: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 613 613 16 16 + 617: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 615 614(sphereDist) 42 + 618: 11(int) Load 138(index) + 619: 225(ptr) AccessChain 221(particleOut) 120 618 120 + 620: 80(fvec4) Load 619 + 621: 18(fvec3) VectorShuffle 620 620 0 1 2 + 623: 225(ptr) AccessChain 117 120 622 + 624: 80(fvec4) Load 623 + 625: 18(fvec3) VectorShuffle 624 624 0 1 2 + 626: 18(fvec3) FSub 621 625 + Store 614(sphereDist) 626 + 627: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 628 628 16 16 + 629: 18(fvec3) Load 614(sphereDist) + 630: 8(float) ExtInst 3(GLSL.std.450) 66(Length) 629 + 632: 122(ptr) AccessChain 117 120 631 + 633: 8(float) Load 632 + 635: 8(float) FAdd 633 634 + 637: 162(bool) FOrdLessThan 630 635 + SelectionMerge 639 None + BranchConditional 637 638 639 + 638: Label + 640: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 641: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 642 642 16 16 + 643: 11(int) Load 138(index) + 644: 225(ptr) AccessChain 117 120 622 + 645: 80(fvec4) Load 644 + 646: 18(fvec3) VectorShuffle 645 645 0 1 2 + 647: 18(fvec3) Load 614(sphereDist) + 648: 18(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 647 + 649: 122(ptr) AccessChain 117 120 631 + 650: 8(float) Load 649 + 651: 8(float) FAdd 650 634 + 652: 18(fvec3) VectorTimesScalar 648 651 + 653: 18(fvec3) FAdd 646 652 + 654: 122(ptr) AccessChain 221(particleOut) 120 643 120 16 + 655: 8(float) CompositeExtract 653 0 + Store 654 655 + 656: 122(ptr) AccessChain 221(particleOut) 120 643 120 33 + 657: 8(float) CompositeExtract 653 1 + Store 656 657 + 658: 122(ptr) AccessChain 221(particleOut) 120 643 120 45 + 659: 8(float) CompositeExtract 653 2 + Store 658 659 + 660: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 661 661 16 16 + 662: 11(int) Load 138(index) + 663: 225(ptr) AccessChain 221(particleOut) 120 662 232 + Store 663 234 + Branch 639 + 639: Label + 664: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 665: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 666 666 16 16 + 684: 683(ptr) AccessChain 681 120 120 + 685: 11(int) Load 684 + 687: 162(bool) IEqual 685 33 + SelectionMerge 689 None + BranchConditional 687 688 689 + 688: Label + 690: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 691: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 692 692 16 16 + 695: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 694 693(normal) 42 + Store 693(normal) 696 + 697: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 698 698 16 16 + 699: 137(ptr) AccessChain 55(id) 33 + 700: 11(int) Load 699 + 702: 162(bool) UGreaterThan 700 16 + SelectionMerge 704 None + BranchConditional 702 703 704 + 703: Label + 705: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 706: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 707 707 16 16 + 708: 137(ptr) AccessChain 55(id) 16 + 709: 11(int) Load 708 + 711: 162(bool) UGreaterThan 709 16 + SelectionMerge 713 None + BranchConditional 711 712 713 + 712: Label + 714: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 715: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 716 716 16 16 + 720: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 718 717(a) 42 + 721: 11(int) Load 138(index) + 722: 11(int) ISub 721 33 + 723: 225(ptr) AccessChain 199(particleIn) 120 722 120 + 724: 80(fvec4) Load 723 + 725: 18(fvec3) VectorShuffle 724 724 0 1 2 + 726: 18(fvec3) Load 255(pos) + 727: 18(fvec3) FSub 725 726 + Store 717(a) 727 + 728: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 729 729 16 16 + 733: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 731 730(b) 42 + 734: 11(int) Load 138(index) + 735: 145(ptr) AccessChain 117 120 144 16 + 736: 82(int) Load 735 + 737: 11(int) Bitcast 736 + 738: 11(int) ISub 734 737 + 739: 11(int) ISub 738 33 + 740: 225(ptr) AccessChain 199(particleIn) 120 739 120 + 741: 80(fvec4) Load 740 + 742: 18(fvec3) VectorShuffle 741 741 0 1 2 + 743: 18(fvec3) Load 255(pos) + 744: 18(fvec3) FSub 742 743 + Store 730(b) 744 + 745: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 746 746 16 16 + 750: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 748 747(c) 42 + 751: 11(int) Load 138(index) + 752: 145(ptr) AccessChain 117 120 144 16 + 753: 82(int) Load 752 + 754: 11(int) Bitcast 753 + 755: 11(int) ISub 751 754 + 756: 225(ptr) AccessChain 199(particleIn) 120 755 120 + 757: 80(fvec4) Load 756 + 758: 18(fvec3) VectorShuffle 757 757 0 1 2 + 759: 18(fvec3) Load 255(pos) + 760: 18(fvec3) FSub 758 759 + Store 747(c) 760 + 761: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 762 762 16 16 + 763: 18(fvec3) Load 717(a) + 764: 18(fvec3) Load 730(b) + 765: 18(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 763 764 + 766: 18(fvec3) Load 730(b) + 767: 18(fvec3) Load 747(c) + 768: 18(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 766 767 + 769: 18(fvec3) FAdd 765 768 + 770: 18(fvec3) Load 693(normal) + 771: 18(fvec3) FAdd 770 769 + Store 693(normal) 771 + Branch 713 + 713: Label + 772: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 773: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 774 774 16 16 + 775: 137(ptr) AccessChain 55(id) 16 + 776: 11(int) Load 775 + 777: 145(ptr) AccessChain 117 120 144 16 + 778: 82(int) Load 777 + 779: 82(int) ISub 778 232 + 780: 11(int) Bitcast 779 + 782: 162(bool) ULessThan 776 780 + SelectionMerge 784 None + BranchConditional 782 783 784 + 783: Label + 785: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 786: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 787 787 16 16 + 788: 11(int) Load 138(index) + 789: 145(ptr) AccessChain 117 120 144 16 + 790: 82(int) Load 789 + 791: 11(int) Bitcast 790 + 792: 11(int) ISub 788 791 + 793: 225(ptr) AccessChain 199(particleIn) 120 792 120 + 794: 80(fvec4) Load 793 + 795: 18(fvec3) VectorShuffle 794 794 0 1 2 + 796: 18(fvec3) Load 255(pos) + 797: 18(fvec3) FSub 795 796 + Store 717(a) 797 + 798: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 799 799 16 16 + 800: 11(int) Load 138(index) + 801: 145(ptr) AccessChain 117 120 144 16 + 802: 82(int) Load 801 + 803: 11(int) Bitcast 802 + 804: 11(int) ISub 800 803 + 805: 11(int) IAdd 804 33 + 806: 225(ptr) AccessChain 199(particleIn) 120 805 120 + 807: 80(fvec4) Load 806 + 808: 18(fvec3) VectorShuffle 807 807 0 1 2 + 809: 18(fvec3) Load 255(pos) + 810: 18(fvec3) FSub 808 809 + Store 730(b) 810 + 811: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 812 812 16 16 + 813: 11(int) Load 138(index) + 814: 11(int) IAdd 813 33 + 815: 225(ptr) AccessChain 199(particleIn) 120 814 120 + 816: 80(fvec4) Load 815 + 817: 18(fvec3) VectorShuffle 816 816 0 1 2 + 818: 18(fvec3) Load 255(pos) + 819: 18(fvec3) FSub 817 818 + Store 747(c) 819 + 820: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 821 821 16 16 + 822: 18(fvec3) Load 717(a) + 823: 18(fvec3) Load 730(b) + 824: 18(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 822 823 + 825: 18(fvec3) Load 730(b) + 826: 18(fvec3) Load 747(c) + 827: 18(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 825 826 + 828: 18(fvec3) FAdd 824 827 + 829: 18(fvec3) Load 693(normal) + 830: 18(fvec3) FAdd 829 828 + Store 693(normal) 830 + Branch 784 + 784: Label + Branch 704 + 704: Label + 831: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 832: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 833 833 16 16 + 834: 137(ptr) AccessChain 55(id) 33 + 835: 11(int) Load 834 + 836: 145(ptr) AccessChain 117 120 144 33 + 837: 82(int) Load 836 + 838: 82(int) ISub 837 232 + 839: 11(int) Bitcast 838 + 841: 162(bool) ULessThan 835 839 + SelectionMerge 843 None + BranchConditional 841 842 843 + 842: Label + 844: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 845: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 846 846 16 16 + 847: 137(ptr) AccessChain 55(id) 16 + 848: 11(int) Load 847 + 850: 162(bool) UGreaterThan 848 16 + SelectionMerge 852 None + BranchConditional 850 851 852 + 851: Label + 853: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 854: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 855 855 16 16 + 856: 11(int) Load 138(index) + 857: 145(ptr) AccessChain 117 120 144 16 + 858: 82(int) Load 857 + 859: 11(int) Bitcast 858 + 860: 11(int) IAdd 856 859 + 861: 225(ptr) AccessChain 199(particleIn) 120 860 120 + 862: 80(fvec4) Load 861 + 863: 18(fvec3) VectorShuffle 862 862 0 1 2 + 864: 18(fvec3) Load 255(pos) + 865: 18(fvec3) FSub 863 864 + Store 717(a) 865 + 866: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 867 867 16 16 + 868: 11(int) Load 138(index) + 869: 145(ptr) AccessChain 117 120 144 16 + 870: 82(int) Load 869 + 871: 11(int) Bitcast 870 + 872: 11(int) IAdd 868 871 + 873: 11(int) ISub 872 33 + 874: 225(ptr) AccessChain 199(particleIn) 120 873 120 + 875: 80(fvec4) Load 874 + 876: 18(fvec3) VectorShuffle 875 875 0 1 2 + 877: 18(fvec3) Load 255(pos) + 878: 18(fvec3) FSub 876 877 + Store 730(b) 878 + 879: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 880 880 16 16 + 881: 11(int) Load 138(index) + 882: 11(int) ISub 881 33 + 883: 225(ptr) AccessChain 199(particleIn) 120 882 120 + 884: 80(fvec4) Load 883 + 885: 18(fvec3) VectorShuffle 884 884 0 1 2 + 886: 18(fvec3) Load 255(pos) + 887: 18(fvec3) FSub 885 886 + Store 747(c) 887 + 888: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 889 889 16 16 + 890: 18(fvec3) Load 717(a) + 891: 18(fvec3) Load 730(b) + 892: 18(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 890 891 + 893: 18(fvec3) Load 730(b) + 894: 18(fvec3) Load 747(c) + 895: 18(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 893 894 + 896: 18(fvec3) FAdd 892 895 + 897: 18(fvec3) Load 693(normal) + 898: 18(fvec3) FAdd 897 896 + Store 693(normal) 898 + Branch 852 + 852: Label + 899: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 900: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 901 901 16 16 + 902: 137(ptr) AccessChain 55(id) 16 + 903: 11(int) Load 902 + 904: 145(ptr) AccessChain 117 120 144 16 + 905: 82(int) Load 904 + 906: 82(int) ISub 905 232 + 907: 11(int) Bitcast 906 + 909: 162(bool) ULessThan 903 907 + SelectionMerge 911 None + BranchConditional 909 910 911 + 910: Label + 912: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 913: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 914 914 16 16 + 915: 11(int) Load 138(index) + 916: 11(int) IAdd 915 33 + 917: 225(ptr) AccessChain 199(particleIn) 120 916 120 + 918: 80(fvec4) Load 917 + 919: 18(fvec3) VectorShuffle 918 918 0 1 2 + 920: 18(fvec3) Load 255(pos) + 921: 18(fvec3) FSub 919 920 + Store 717(a) 921 + 922: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 923 923 16 16 + 924: 11(int) Load 138(index) + 925: 145(ptr) AccessChain 117 120 144 16 + 926: 82(int) Load 925 + 927: 11(int) Bitcast 926 + 928: 11(int) IAdd 924 927 + 929: 11(int) IAdd 928 33 + 930: 225(ptr) AccessChain 199(particleIn) 120 929 120 + 931: 80(fvec4) Load 930 + 932: 18(fvec3) VectorShuffle 931 931 0 1 2 + 933: 18(fvec3) Load 255(pos) + 934: 18(fvec3) FSub 932 933 + Store 730(b) 934 + 935: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 936 936 16 16 + 937: 11(int) Load 138(index) + 938: 145(ptr) AccessChain 117 120 144 16 + 939: 82(int) Load 938 + 940: 11(int) Bitcast 939 + 941: 11(int) IAdd 937 940 + 942: 225(ptr) AccessChain 199(particleIn) 120 941 120 + 943: 80(fvec4) Load 942 + 944: 18(fvec3) VectorShuffle 943 943 0 1 2 + 945: 18(fvec3) Load 255(pos) + 946: 18(fvec3) FSub 944 945 + Store 747(c) 946 + 947: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 948 948 16 16 + 949: 18(fvec3) Load 717(a) + 950: 18(fvec3) Load 730(b) + 951: 18(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 949 950 + 952: 18(fvec3) Load 730(b) + 953: 18(fvec3) Load 747(c) + 954: 18(fvec3) ExtInst 3(GLSL.std.450) 68(Cross) 952 953 + 955: 18(fvec3) FAdd 951 954 + 956: 18(fvec3) Load 693(normal) + 957: 18(fvec3) FAdd 956 955 + Store 693(normal) 957 + Branch 911 + 911: Label + Branch 843 + 843: Label + 958: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 959: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 960 960 16 16 + 961: 11(int) Load 138(index) + 962: 18(fvec3) Load 693(normal) + 963: 18(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 962 + 964: 8(float) CompositeExtract 963 0 + 965: 8(float) CompositeExtract 963 1 + 966: 8(float) CompositeExtract 963 2 + 967: 80(fvec4) CompositeConstruct 964 965 966 233 + 968: 225(ptr) AccessChain 221(particleOut) 120 961 555 + Store 968 967 + Branch 689 + 689: Label Return FunctionEnd diff --git a/Test/baseResults/spv.debuginfo.hlsl.frag.out b/Test/baseResults/spv.debuginfo.hlsl.frag.out index 2d8cc162..5dad5493 100644 --- a/Test/baseResults/spv.debuginfo.hlsl.frag.out +++ b/Test/baseResults/spv.debuginfo.hlsl.frag.out @@ -1,987 +1,1143 @@ spv.debuginfo.hlsl.frag -Validation failed // Module Version 10000 // Generated by (magic number): 8000b -// Id's are bound by 743 +// Id's are bound by 886 Capability Shader Capability ImageQuery Extension "SPV_KHR_non_semantic_info" - 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" - 2: ExtInstImport "GLSL.std.450" + 2: ExtInstImport "NonSemantic.Shader.DebugInfo.100" + 3: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 - EntryPoint Fragment 5 "main" 736 739 - ExecutionMode 5 OriginUpperLeft - 9: String "float" - 12: String "uint" - 32: String "textureProj" - 35: String "" - 43: String "P" - 47: String "layer" - 50: String "offset" - 57: String "filterPCF" - 63: String "sc" - 75: String "shadow" - 81: String "fragcolor" - 84: String "fragPos" - 90: String "@main" - 96: String "inUV" - 106: String "shadowCoord" - 128: String "bool" - 141: String "dist" - 146: String "type.2d.image" - 147: String "@type.2d.image" - 152: String "textureShadowMap" - 157: String "type.sampler" - 158: String "@type.sampler" - 162: String "samplerShadowMap" - 166: String "type.sampled.image" - 167: String "@type.sampled.image" - 203: String "sizeQueryTemp" - 209: String "int" - 216: String "texDim" - 230: String "elements" - 237: String "levels" - 244: String "scale" - 250: String "dx" - 261: String "dy" - 272: String "shadowFactor" - 277: String "count" - 283: String "range" - 289: String "x" - 305: String "y" - 351: String "i" - 365: String "shadowClip" - 378: String "color" - 384: String "viewMatrix" - 388: String "Light" - 394: String "lights" - 397: String "displayDebugTarget" - 402: String "UBO" - 405: String "ubo" - 445: String "textureposition" - 450: String "samplerposition" - 460: String "normal" - 465: String "textureNormal" - 470: String "samplerNormal" - 478: String "albedo" - 483: String "textureAlbedo" - 488: String "samplerAlbedo" - 541: String "N" - 560: String "L" - 580: String "V" - 592: String "lightCosInnerAngle" - 598: String "lightCosOuterAngle" - 604: String "lightRange" - 610: String "dir" - 625: String "cosDir" - 633: String "spotEffect" - 642: String "heightAttenuation" - 650: String "NdotL" - 659: String "diff" - 666: String "R" - 675: String "NdotR" - 684: String "spec" - Name 5 "main" - Name 31 "textureProj(vf4;f1;vf2;" - Name 28 "P" - Name 29 "layer" - Name 30 "offset" - Name 56 "filterPCF(vf4;f1;" - Name 54 "sc" - Name 55 "layer" - Name 74 "shadow(vf3;vf3;" - Name 72 "fragcolor" - Name 73 "fragPos" - Name 89 "@main(vf2;" - Name 88 "inUV" - Name 99 "shadow" - Name 104 "shadowCoord" - Name 139 "dist" - Name 150 "textureShadowMap" - Name 160 "samplerShadowMap" - Name 201 "sizeQueryTemp" - Name 214 "texDim" - Name 228 "elements" - Name 235 "levels" - Name 242 "scale" - Name 248 "dx" - Name 259 "dy" - Name 270 "shadowFactor" - Name 275 "count" - Name 281 "range" - Name 287 "x" - Name 303 "y" - Name 328 "param" - Name 330 "param" - Name 332 "param" - Name 349 "i" - Name 363 "shadowClip" - Name 376 "Light" - MemberName 376(Light) 0 "position" - MemberName 376(Light) 1 "target" - MemberName 376(Light) 2 "color" - MemberName 376(Light) 3 "viewMatrix" - Name 391 "UBO" - MemberName 391(UBO) 0 "viewPos" - MemberName 391(UBO) 1 "lights" - MemberName 391(UBO) 2 "useShadows" - MemberName 391(UBO) 3 "displayDebugTarget" - Name 403 "ubo" - MemberName 403(ubo) 0 "ubo" - Name 410 "" - Name 417 "shadowFactor" - Name 423 "param" - Name 425 "param" - Name 436 "fragPos" - Name 443 "textureposition" - Name 448 "samplerposition" - Name 458 "normal" - Name 463 "textureNormal" - Name 468 "samplerNormal" - Name 476 "albedo" - Name 481 "textureAlbedo" - Name 486 "samplerAlbedo" - Name 508 "fragcolor" - Name 513 "param" - Name 514 "param" - Name 539 "N" - Name 546 "i" - Name 558 "L" - Name 570 "dist" - Name 578 "V" - Name 590 "lightCosInnerAngle" - Name 596 "lightCosOuterAngle" - Name 602 "lightRange" - Name 608 "dir" - Name 623 "cosDir" - Name 631 "spotEffect" - Name 640 "heightAttenuation" - Name 648 "NdotL" - Name 657 "diff" - Name 664 "R" - Name 673 "NdotR" - Name 682 "spec" - Name 722 "param" - Name 724 "param" - Name 734 "inUV" - Name 736 "inUV" - Name 739 "@entryPointOutput" - Name 740 "param" - Decorate 150(textureShadowMap) DescriptorSet 0 - Decorate 150(textureShadowMap) Binding 5 - Decorate 160(samplerShadowMap) DescriptorSet 0 - Decorate 160(samplerShadowMap) Binding 5 - MemberDecorate 376(Light) 0 Offset 0 - MemberDecorate 376(Light) 1 Offset 16 - MemberDecorate 376(Light) 2 Offset 32 - MemberDecorate 376(Light) 3 RowMajor - MemberDecorate 376(Light) 3 Offset 48 - MemberDecorate 376(Light) 3 MatrixStride 16 - Decorate 389 ArrayStride 112 - MemberDecorate 391(UBO) 0 Offset 0 - MemberDecorate 391(UBO) 1 Offset 16 - MemberDecorate 391(UBO) 2 Offset 352 - MemberDecorate 391(UBO) 3 Offset 356 - MemberDecorate 403(ubo) 0 Offset 0 - Decorate 403(ubo) Block - Decorate 410 DescriptorSet 0 - Decorate 410 Binding 4 - Decorate 443(textureposition) DescriptorSet 0 - Decorate 443(textureposition) Binding 1 - Decorate 448(samplerposition) DescriptorSet 0 - Decorate 448(samplerposition) Binding 1 - Decorate 463(textureNormal) DescriptorSet 0 - Decorate 463(textureNormal) Binding 2 - Decorate 468(samplerNormal) DescriptorSet 0 - Decorate 468(samplerNormal) Binding 2 - Decorate 481(textureAlbedo) DescriptorSet 0 - Decorate 481(textureAlbedo) Binding 3 - Decorate 486(samplerAlbedo) DescriptorSet 0 - Decorate 486(samplerAlbedo) Binding 3 - Decorate 736(inUV) Location 0 - Decorate 739(@entryPointOutput) Location 0 - 3: TypeVoid - 4: TypeFunction 3 - 7: TypeFloat 32 - 10: TypeInt 32 0 - 13: 10(int) Constant 32 - 14: 10(int) Constant 6 - 15: 10(int) Constant 0 - 11: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 12 13 14 15 - 16: 10(int) Constant 3 - 8: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 13 16 15 - 17: TypeVector 7(float) 4 - 18: 10(int) Constant 4 - 19: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 8 18 - 20: TypePointer Function 17(fvec4) - 21: TypePointer Function 7(float) - 22: TypeVector 7(float) 2 - 23: 10(int) Constant 2 - 24: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 8 23 - 25: TypePointer Function 22(fvec2) - 26: TypeFunction 7(float) 20(ptr) 21(ptr) 25(ptr) - 27: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 16 8 19 8 24 - 34: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 0 35 - 37: 10(int) Constant 1 - 38: 10(int) Constant 5 - 36: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 37 18 34 38 - 33: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 32 27 34 15 15 36 32 16 15 - 42: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 43 19 34 15 15 33 18 37 - 45: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) - 46: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 47 8 34 15 15 33 18 23 - 49: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 50 24 34 15 15 33 18 16 - 52: TypeFunction 7(float) 20(ptr) 21(ptr) - 53: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 16 8 19 8 - 58: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 57 53 34 15 15 36 57 16 15 - 62: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 63 19 34 15 15 58 18 37 - 65: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 47 8 34 15 15 58 18 23 - 67: TypeVector 7(float) 3 - 68: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 8 16 - 69: TypePointer Function 67(fvec3) - 70: TypeFunction 67(fvec3) 69(ptr) 69(ptr) - 71: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 16 68 68 68 - 76: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 75 71 34 15 15 36 75 16 15 - 80: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 81 68 34 15 15 76 18 37 - 83: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 84 68 34 15 15 76 18 23 - 86: TypeFunction 17(fvec4) 25(ptr) - 87: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 16 19 24 - 91: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 90 87 34 15 15 36 90 16 15 - 95: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 96 24 34 15 15 91 18 37 - 101: 10(int) Constant 62 - 100: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 75 8 34 101 15 33 18 - 103: 7(float) Constant 1065353216 - 107: 10(int) Constant 63 - 105: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 106 19 34 107 15 33 18 - 116: 7(float) Constant 1056964608 - 126: 7(float) Constant 3212836864 - 127: TypeBool - 129: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 13 23 15 - 133: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 13 23 15 - 135: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 13 23 15 - 142: 10(int) Constant 68 - 140: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 141 8 34 142 15 33 18 - 144: TypeImage 7(float) 2D array sampled format:Unknown - 148: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) - 145: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 146 15 34 142 15 36 147 148 16 - 149: TypePointer UniformConstant 144 -150(textureShadowMap): 149(ptr) Variable UniformConstant - 153: 10(int) Constant 8 - 151: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 152 145 34 142 15 36 152 150(textureShadowMap) 153 - 155: TypeSampler - 156: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 157 37 34 142 15 36 158 148 16 - 159: TypePointer UniformConstant 155 -160(samplerShadowMap): 159(ptr) Variable UniformConstant - 161: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 162 156 34 142 15 36 162 160(samplerShadowMap) 153 - 164: TypeSampledImage 144 - 165: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 166 15 34 142 15 36 167 148 16 - 181: 7(float) Constant 0 - 182: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 13 23 15 - 187: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 13 23 15 - 189: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 13 23 15 - 193: 7(float) Constant 1048576000 - 198: TypeVector 10(int) 3 - 199: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 11 16 - 200: TypePointer Function 198(ivec3) - 204: 10(int) Constant 80 - 202: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 203 199 34 204 15 58 18 - 208: TypeInt 32 1 - 210: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 209 13 18 15 - 211: TypeVector 208(int) 2 - 212: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 210 23 - 213: TypePointer Function 211(ivec2) - 215: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 216 212 34 204 15 58 18 - 218: TypePointer Function 10(int) - 222: TypePointer Function 208(int) - 229: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 230 210 34 204 15 58 18 - 236: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 237 210 34 204 15 58 18 - 245: 10(int) Constant 81 - 243: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 244 8 34 245 15 58 18 - 247: 7(float) Constant 1069547520 - 251: 10(int) Constant 82 - 249: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 250 8 34 251 15 58 18 - 262: 10(int) Constant 83 - 260: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 261 8 34 262 15 58 18 - 273: 10(int) Constant 85 - 271: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 272 8 34 273 15 58 18 - 278: 10(int) Constant 86 - 276: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 277 210 34 278 15 58 18 - 280: 208(int) Constant 0 - 284: 10(int) Constant 87 - 282: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 283 210 34 284 15 58 18 - 286: 208(int) Constant 1 - 290: 10(int) Constant 89 - 288: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 289 210 34 290 15 58 18 - 301: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 13 23 15 - 306: 10(int) Constant 91 - 304: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 305 210 34 306 15 58 18 - 317: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 13 23 15 - 352: 10(int) Constant 102 - 350: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 351 210 34 352 15 76 18 - 360: 208(int) Constant 3 - 361: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 13 23 15 - 366: 10(int) Constant 104 - 364: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 365 19 34 366 15 76 18 - 373: TypeMatrix 17(fvec4) 4 - 375: 127(bool) ConstantTrue - 374: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 19 18 375 - 376(Light): TypeStruct 17(fvec4) 17(fvec4) 17(fvec4) 373 - 379: 10(int) Constant 46 - 380: 10(int) Constant 14 - 377: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 378 19 34 379 380 15 15 16 - 381: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 378 19 34 379 380 15 15 16 - 382: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 378 19 34 379 380 15 15 16 - 385: 10(int) Constant 47 - 386: 10(int) Constant 21 - 383: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 384 374 34 385 386 15 15 16 - 387: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 388 37 34 366 15 36 388 15 16 377 381 382 383 - 389: TypeArray 376(Light) 16 - 390: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 387 16 - 391(UBO): TypeStruct 17(fvec4) 389 208(int) 208(int) - 392: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 378 19 34 379 380 15 15 16 - 395: 10(int) Constant 53 - 393: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 394 390 34 395 380 15 15 16 - 398: 10(int) Constant 55 - 399: 10(int) Constant 24 - 396: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 397 210 34 398 399 15 15 16 - 400: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 397 210 34 398 399 15 15 16 - 401: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 402 37 34 366 15 36 402 15 16 392 393 396 400 - 403(ubo): TypeStruct 391(UBO) - 406: 10(int) Constant 58 - 407: 10(int) Constant 37 - 404: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 405 401 34 406 407 15 15 16 - 408: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 405 37 34 366 15 36 405 15 16 404 - 409: TypePointer Uniform 403(ubo) - 410: 409(ptr) Variable Uniform - 411: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 35 408 34 366 15 36 35 410 153 - 413: TypePointer Uniform 373 - 419: 10(int) Constant 108 - 418: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 272 8 34 419 15 76 18 - 438: 10(int) Constant 121 - 437: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 84 68 34 438 15 91 18 - 440: TypeImage 7(float) 2D sampled format:Unknown - 441: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 146 15 34 438 15 36 147 148 16 - 442: TypePointer UniformConstant 440 -443(textureposition): 442(ptr) Variable UniformConstant - 444: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 445 441 34 438 15 36 445 443(textureposition) 153 - 447: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 157 37 34 438 15 36 158 148 16 -448(samplerposition): 159(ptr) Variable UniformConstant - 449: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 450 447 34 438 15 36 450 448(samplerposition) 153 - 452: TypeSampledImage 440 - 453: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 166 15 34 438 15 36 167 148 16 - 461: 10(int) Constant 122 - 459: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 460 68 34 461 15 91 18 -463(textureNormal): 442(ptr) Variable UniformConstant - 464: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 465 441 34 461 15 36 465 463(textureNormal) 153 - 467: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 157 37 34 461 15 36 158 148 16 -468(samplerNormal): 159(ptr) Variable UniformConstant - 469: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 470 467 34 461 15 36 470 468(samplerNormal) 153 - 479: 10(int) Constant 123 - 477: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 478 19 34 479 15 91 18 -481(textureAlbedo): 442(ptr) Variable UniformConstant - 482: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 483 441 34 479 15 36 483 481(textureAlbedo) 153 - 485: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 157 37 34 479 15 36 158 148 16 -486(samplerAlbedo): 159(ptr) Variable UniformConstant - 487: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 488 485 34 479 15 36 488 486(samplerAlbedo) 153 - 493: TypePointer Uniform 208(int) - 496: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 13 23 15 - 510: 10(int) Constant 131 - 509: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 81 68 34 510 15 91 18 - 512: 67(fvec3) ConstantComposite 103 103 103 - 537: 7(float) Constant 1036831949 - 542: 10(int) Constant 152 - 540: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 541 68 34 542 15 91 18 - 548: 10(int) Constant 154 - 547: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 351 210 34 548 15 91 18 - 556: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 13 23 15 - 561: 10(int) Constant 157 - 559: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 560 68 34 561 15 91 18 - 564: TypePointer Uniform 17(fvec4) - 572: 10(int) Constant 159 - 571: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 141 8 34 572 15 91 18 - 581: 10(int) Constant 163 - 579: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 580 68 34 581 15 91 18 - 593: 10(int) Constant 166 - 591: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 592 8 34 593 15 91 18 - 595: 7(float) Constant 1064781546 - 599: 10(int) Constant 167 - 597: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 598 8 34 599 15 91 18 - 601: 7(float) Constant 1063781322 - 605: 10(int) Constant 168 - 603: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 604 8 34 605 15 91 18 - 607: 7(float) Constant 1120403456 - 611: 10(int) Constant 171 - 609: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 610 68 34 611 15 91 18 - 626: 10(int) Constant 174 - 624: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 625 8 34 626 15 91 18 - 634: 10(int) Constant 175 - 632: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 633 8 34 634 15 91 18 - 643: 10(int) Constant 176 - 641: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 642 8 34 643 15 91 18 - 651: 10(int) Constant 179 - 649: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 650 8 34 651 15 91 18 - 660: 10(int) Constant 180 - 658: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 659 68 34 660 15 91 18 - 667: 10(int) Constant 183 - 665: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 666 68 34 667 15 91 18 - 676: 10(int) Constant 184 - 674: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 675 8 34 676 15 91 18 - 685: 10(int) Constant 185 - 683: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 684 68 34 685 15 91 18 - 688: 7(float) Constant 1098907648 - 693: 7(float) Constant 1075838976 - 704: 208(int) Constant 2 - 718: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 13 23 15 - 735: TypePointer Input 22(fvec2) - 736(inUV): 735(ptr) Variable Input - 738: TypePointer Output 17(fvec4) -739(@entryPointOutput): 738(ptr) Variable Output - 5(main): 3 Function None 4 - 6: Label - 734(inUV): 25(ptr) Variable Function - 740(param): 25(ptr) Variable Function - 737: 22(fvec2) Load 736(inUV) - Store 734(inUV) 737 - 741: 22(fvec2) Load 734(inUV) - Store 740(param) 741 - 742: 17(fvec4) FunctionCall 89(@main(vf2;) 740(param) - Store 739(@entryPointOutput) 742 + EntryPoint Fragment 6 "main" 879 882 + ExecutionMode 6 OriginUpperLeft + 1: String "" + 10: String "float" + 13: String "uint" + 33: String "textureProj" + 36: String "// OpModuleProcessed auto-map-locations +// OpModuleProcessed auto-map-bindings +// OpModuleProcessed entry-point main +// OpModuleProcessed client vulkan100 +// OpModuleProcessed target-env vulkan1.0 +// OpModuleProcessed keep-uncalled +// OpModuleProcessed hlsl-offsets +#line 1 +" + 44: String "P" + 48: String "layer" + 51: String "offset" + 58: String "filterPCF" + 64: String "sc" + 76: String "shadow" + 82: String "fragcolor" + 85: String "fragPos" + 91: String "@main" + 97: String "inUV" + 111: String "shadowCoord" + 136: String "bool" + 152: String "dist" + 156: String "type.2d.image" + 157: String "@type.2d.image" + 162: String "textureShadowMap" + 167: String "type.sampler" + 168: String "@type.sampler" + 172: String "samplerShadowMap" + 176: String "type.sampled.image" + 177: String "@type.sampled.image" + 224: String "sizeQueryTemp" + 229: String "int" + 236: String "texDim" + 250: String "elements" + 257: String "levels" + 266: String "scale" + 273: String "dx" + 285: String "dy" + 297: String "shadowFactor" + 303: String "count" + 310: String "range" + 317: String "x" + 339: String "y" + 403: String "i" + 423: String "shadowClip" + 435: String "color" + 441: String "viewMatrix" + 445: String "Light" + 451: String "lights" + 454: String "displayDebugTarget" + 459: String "UBO" + 462: String "ubo" + 512: String "textureposition" + 517: String "samplerposition" + 529: String "normal" + 533: String "textureNormal" + 538: String "samplerNormal" + 548: String "albedo" + 552: String "textureAlbedo" + 557: String "samplerAlbedo" + 647: String "N" + 673: String "L" + 697: String "V" + 712: String "lightCosInnerAngle" + 719: String "lightCosOuterAngle" + 726: String "lightRange" + 733: String "dir" + 749: String "cosDir" + 758: String "spotEffect" + 768: String "heightAttenuation" + 777: String "NdotL" + 787: String "diff" + 795: String "R" + 805: String "NdotR" + 815: String "spec" + Name 6 "main" + Name 32 "textureProj(vf4;f1;vf2;" + Name 29 "P" + Name 30 "layer" + Name 31 "offset" + Name 57 "filterPCF(vf4;f1;" + Name 55 "sc" + Name 56 "layer" + Name 75 "shadow(vf3;vf3;" + Name 73 "fragcolor" + Name 74 "fragPos" + Name 90 "@main(vf2;" + Name 89 "inUV" + Name 103 "shadow" + Name 109 "shadowCoord" + Name 150 "dist" + Name 160 "textureShadowMap" + Name 170 "samplerShadowMap" + Name 222 "sizeQueryTemp" + Name 234 "texDim" + Name 248 "elements" + Name 255 "levels" + Name 264 "scale" + Name 271 "dx" + Name 283 "dy" + Name 295 "shadowFactor" + Name 301 "count" + Name 308 "range" + Name 315 "x" + Name 337 "y" + Name 368 "param" + Name 370 "param" + Name 372 "param" + Name 401 "i" + Name 421 "shadowClip" + Name 433 "Light" + MemberName 433(Light) 0 "position" + MemberName 433(Light) 1 "target" + MemberName 433(Light) 2 "color" + MemberName 433(Light) 3 "viewMatrix" + Name 448 "UBO" + MemberName 448(UBO) 0 "viewPos" + MemberName 448(UBO) 1 "lights" + MemberName 448(UBO) 2 "useShadows" + MemberName 448(UBO) 3 "displayDebugTarget" + Name 460 "ubo" + MemberName 460(ubo) 0 "ubo" + Name 467 "" + Name 476 "shadowFactor" + Name 481 "param" + Name 483 "param" + Name 504 "fragPos" + Name 510 "textureposition" + Name 515 "samplerposition" + Name 527 "normal" + Name 531 "textureNormal" + Name 536 "samplerNormal" + Name 546 "albedo" + Name 550 "textureAlbedo" + Name 555 "samplerAlbedo" + Name 585 "fragcolor" + Name 589 "param" + Name 590 "param" + Name 645 "N" + Name 653 "i" + Name 671 "L" + Name 684 "dist" + Name 695 "V" + Name 710 "lightCosInnerAngle" + Name 717 "lightCosOuterAngle" + Name 724 "lightRange" + Name 731 "dir" + Name 747 "cosDir" + Name 756 "spotEffect" + Name 766 "heightAttenuation" + Name 775 "NdotL" + Name 785 "diff" + Name 793 "R" + Name 803 "NdotR" + Name 813 "spec" + Name 862 "param" + Name 864 "param" + Name 877 "inUV" + Name 879 "inUV" + Name 882 "@entryPointOutput" + Name 883 "param" + Decorate 160(textureShadowMap) DescriptorSet 0 + Decorate 160(textureShadowMap) Binding 5 + Decorate 170(samplerShadowMap) DescriptorSet 0 + Decorate 170(samplerShadowMap) Binding 5 + MemberDecorate 433(Light) 0 Offset 0 + MemberDecorate 433(Light) 1 Offset 16 + MemberDecorate 433(Light) 2 Offset 32 + MemberDecorate 433(Light) 3 RowMajor + MemberDecorate 433(Light) 3 Offset 48 + MemberDecorate 433(Light) 3 MatrixStride 16 + Decorate 446 ArrayStride 112 + MemberDecorate 448(UBO) 0 Offset 0 + MemberDecorate 448(UBO) 1 Offset 16 + MemberDecorate 448(UBO) 2 Offset 352 + MemberDecorate 448(UBO) 3 Offset 356 + MemberDecorate 460(ubo) 0 Offset 0 + Decorate 460(ubo) Block + Decorate 467 DescriptorSet 0 + Decorate 467 Binding 4 + Decorate 510(textureposition) DescriptorSet 0 + Decorate 510(textureposition) Binding 1 + Decorate 515(samplerposition) DescriptorSet 0 + Decorate 515(samplerposition) Binding 1 + Decorate 531(textureNormal) DescriptorSet 0 + Decorate 531(textureNormal) Binding 2 + Decorate 536(samplerNormal) DescriptorSet 0 + Decorate 536(samplerNormal) Binding 2 + Decorate 550(textureAlbedo) DescriptorSet 0 + Decorate 550(textureAlbedo) Binding 3 + Decorate 555(samplerAlbedo) DescriptorSet 0 + Decorate 555(samplerAlbedo) Binding 3 + Decorate 879(inUV) Location 0 + Decorate 882(@entryPointOutput) Location 0 + 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 + 12: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 13 14 15 16 + 17: 11(int) Constant 3 + 9: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 10 14 17 16 + 18: TypeVector 8(float) 4 + 19: 11(int) Constant 4 + 20: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 19 + 21: TypePointer Function 18(fvec4) + 22: TypePointer Function 8(float) + 23: TypeVector 8(float) 2 + 24: 11(int) Constant 2 + 25: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 24 + 26: TypePointer Function 23(fvec2) + 27: TypeFunction 8(float) 21(ptr) 22(ptr) 26(ptr) + 28: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 9 20 9 25 + 35: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 36 + 38: 11(int) Constant 1 + 39: 11(int) Constant 5 + 37: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 38 19 35 39 + 34: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 33 28 35 16 16 37 33 17 16 + 43: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 44 20 35 16 16 34 19 38 + 46: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) + 47: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 48 9 35 16 16 34 19 24 + 50: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 51 25 35 16 16 34 19 17 + 53: TypeFunction 8(float) 21(ptr) 22(ptr) + 54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 9 20 9 + 59: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 58 54 35 16 16 37 58 17 16 + 63: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 64 20 35 16 16 59 19 38 + 66: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 48 9 35 16 16 59 19 24 + 68: TypeVector 8(float) 3 + 69: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 17 + 70: TypePointer Function 68(fvec3) + 71: TypeFunction 68(fvec3) 70(ptr) 70(ptr) + 72: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 69 69 69 + 77: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 76 72 35 16 16 37 76 17 16 + 81: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 82 69 35 16 16 77 19 38 + 84: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 85 69 35 16 16 77 19 24 + 87: TypeFunction 18(fvec4) 26(ptr) + 88: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 20 25 + 92: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 91 88 35 16 16 37 91 17 16 + 96: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 97 25 35 16 16 92 19 38 + 102: 11(int) Constant 62 + 104: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 76 9 35 102 16 34 19 + 106: 8(float) Constant 1065353216 + 108: 11(int) Constant 63 + 110: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 111 20 35 108 16 34 19 + 119: 11(int) Constant 64 + 122: 8(float) Constant 1056964608 + 131: 11(int) Constant 66 + 134: 8(float) Constant 3212836864 + 135: TypeBool + 137: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 136 14 24 16 + 141: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 136 14 24 16 + 143: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 136 14 24 16 + 149: 11(int) Constant 68 + 151: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 152 9 35 149 16 34 19 + 154: TypeImage 8(float) 2D array sampled format:Unknown + 158: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) + 155: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 156 16 35 149 16 37 157 158 17 + 159: TypePointer UniformConstant 154 +160(textureShadowMap): 159(ptr) Variable UniformConstant + 163: 11(int) Constant 8 + 161: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 162 155 35 149 16 37 162 160(textureShadowMap) 163 + 165: TypeSampler + 166: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 167 38 35 149 16 37 168 158 17 + 169: TypePointer UniformConstant 165 +170(samplerShadowMap): 169(ptr) Variable UniformConstant + 171: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 172 166 35 149 16 37 172 170(samplerShadowMap) 163 + 174: TypeSampledImage 154 + 175: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 176 16 35 149 16 37 177 158 17 + 190: 11(int) Constant 69 + 193: 8(float) Constant 0 + 194: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 136 14 24 16 + 199: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 136 14 24 16 + 201: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 136 14 24 16 + 207: 11(int) Constant 71 + 208: 8(float) Constant 1048576000 + 211: 11(int) Constant 74 + 218: 11(int) Constant 80 + 219: TypeVector 11(int) 3 + 220: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 12 17 + 221: TypePointer Function 219(ivec3) + 223: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 224 220 35 218 16 59 19 + 228: TypeInt 32 1 + 230: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 229 14 19 16 + 231: TypeVector 228(int) 2 + 232: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 230 24 + 233: TypePointer Function 231(ivec2) + 235: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 236 232 35 218 16 59 19 + 238: TypePointer Function 11(int) + 242: TypePointer Function 228(int) + 249: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 250 230 35 218 16 59 19 + 256: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 257 230 35 218 16 59 19 + 263: 11(int) Constant 81 + 265: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 266 9 35 263 16 59 19 + 268: 8(float) Constant 1069547520 + 270: 11(int) Constant 82 + 272: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 273 9 35 270 16 59 19 + 282: 11(int) Constant 83 + 284: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 285 9 35 282 16 59 19 + 294: 11(int) Constant 85 + 296: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 297 9 35 294 16 59 19 + 300: 11(int) Constant 86 + 302: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 303 230 35 300 16 59 19 + 305: 228(int) Constant 0 + 307: 11(int) Constant 87 + 309: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 310 230 35 307 16 59 19 + 312: 228(int) Constant 1 + 314: 11(int) Constant 89 + 316: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 317 230 35 314 16 59 19 + 332: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 136 14 24 16 + 336: 11(int) Constant 91 + 338: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 339 230 35 336 16 59 19 + 354: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 136 14 24 16 + 358: 11(int) Constant 93 + 377: 11(int) Constant 94 + 390: 11(int) Constant 98 + 400: 11(int) Constant 102 + 402: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 403 230 35 400 16 77 19 + 415: 228(int) Constant 3 + 416: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 136 14 24 16 + 420: 11(int) Constant 104 + 422: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 423 20 35 420 16 77 19 + 430: TypeMatrix 18(fvec4) 4 + 432: 135(bool) ConstantTrue + 431: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 20 19 432 + 433(Light): TypeStruct 18(fvec4) 18(fvec4) 18(fvec4) 430 + 436: 11(int) Constant 46 + 437: 11(int) Constant 14 + 434: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 435 20 35 436 437 16 16 17 + 438: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 435 20 35 436 437 16 16 17 + 439: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 435 20 35 436 437 16 16 17 + 442: 11(int) Constant 47 + 443: 11(int) Constant 21 + 440: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 441 431 35 442 443 16 16 17 + 444: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 445 38 35 420 16 37 445 16 17 434 438 439 440 + 446: TypeArray 433(Light) 17 + 447: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 444 17 + 448(UBO): TypeStruct 18(fvec4) 446 228(int) 228(int) + 449: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 435 20 35 436 437 16 16 17 + 452: 11(int) Constant 53 + 450: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 451 447 35 452 437 16 16 17 + 455: 11(int) Constant 55 + 456: 11(int) Constant 24 + 453: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 454 230 35 455 456 16 16 17 + 457: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 454 230 35 455 456 16 16 17 + 458: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 459 38 35 420 16 37 459 16 17 449 450 453 457 + 460(ubo): TypeStruct 448(UBO) + 463: 11(int) Constant 58 + 464: 11(int) Constant 37 + 461: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 462 458 35 463 464 16 16 17 + 465: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 462 38 35 420 16 37 462 16 17 461 + 466: TypePointer Uniform 460(ubo) + 467: 466(ptr) Variable Uniform + 468: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 465 35 420 16 37 1 467 163 + 470: TypePointer Uniform 430 + 475: 11(int) Constant 108 + 477: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 297 9 35 475 16 77 19 + 486: 11(int) Constant 113 + 496: 11(int) Constant 115 + 503: 11(int) Constant 121 + 505: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 85 69 35 503 16 92 19 + 507: TypeImage 8(float) 2D sampled format:Unknown + 508: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 156 16 35 503 16 37 157 158 17 + 509: TypePointer UniformConstant 507 +510(textureposition): 509(ptr) Variable UniformConstant + 511: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 512 508 35 503 16 37 512 510(textureposition) 163 + 514: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 167 38 35 503 16 37 168 158 17 +515(samplerposition): 169(ptr) Variable UniformConstant + 516: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 517 514 35 503 16 37 517 515(samplerposition) 163 + 519: TypeSampledImage 507 + 520: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 176 16 35 503 16 37 177 158 17 + 526: 11(int) Constant 122 + 528: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 529 69 35 526 16 92 19 +531(textureNormal): 509(ptr) Variable UniformConstant + 532: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 533 508 35 526 16 37 533 531(textureNormal) 163 + 535: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 167 38 35 526 16 37 168 158 17 +536(samplerNormal): 169(ptr) Variable UniformConstant + 537: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 538 535 35 526 16 37 538 536(samplerNormal) 163 + 545: 11(int) Constant 123 + 547: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 548 20 35 545 16 92 19 +550(textureAlbedo): 509(ptr) Variable UniformConstant + 551: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 552 508 35 545 16 37 552 550(textureAlbedo) 163 + 554: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 167 38 35 545 16 37 168 158 17 +555(samplerAlbedo): 169(ptr) Variable UniformConstant + 556: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 557 554 35 545 16 37 557 555(samplerAlbedo) 163 + 563: 11(int) Constant 128 + 564: TypePointer Uniform 228(int) + 567: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 136 14 24 16 + 573: 11(int) Constant 129 + 584: 11(int) Constant 131 + 586: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 82 69 35 584 16 92 19 + 588: 68(fvec3) ConstantComposite 106 106 106 + 594: 11(int) Constant 132 + 598: 11(int) Constant 134 + 601: 11(int) Constant 135 + 605: 11(int) Constant 137 + 608: 11(int) Constant 138 + 612: 11(int) Constant 140 + 616: 11(int) Constant 141 + 620: 11(int) Constant 143 + 624: 11(int) Constant 144 + 629: 11(int) Constant 146 + 638: 11(int) Constant 150 + 641: 8(float) Constant 1036831949 + 644: 11(int) Constant 152 + 646: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 647 69 35 644 16 92 19 + 652: 11(int) Constant 154 + 654: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 403 230 35 652 16 92 19 + 666: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 136 14 24 16 + 670: 11(int) Constant 157 + 672: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 673 69 35 670 16 92 19 + 676: TypePointer Uniform 18(fvec4) + 683: 11(int) Constant 159 + 685: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 152 9 35 683 16 92 19 + 690: 11(int) Constant 160 + 694: 11(int) Constant 163 + 696: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 697 69 35 694 16 92 19 + 705: 11(int) Constant 164 + 709: 11(int) Constant 166 + 711: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 712 9 35 709 16 92 19 + 714: 8(float) Constant 1064781546 + 716: 11(int) Constant 167 + 718: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 719 9 35 716 16 92 19 + 721: 8(float) Constant 1063781322 + 723: 11(int) Constant 168 + 725: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 726 9 35 723 16 92 19 + 728: 8(float) Constant 1120403456 + 730: 11(int) Constant 171 + 732: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 733 69 35 730 16 92 19 + 746: 11(int) Constant 174 + 748: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 749 9 35 746 16 92 19 + 755: 11(int) Constant 175 + 757: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 758 9 35 755 16 92 19 + 765: 11(int) Constant 176 + 767: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 768 9 35 765 16 92 19 + 774: 11(int) Constant 179 + 776: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 777 9 35 774 16 92 19 + 784: 11(int) Constant 180 + 786: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 787 69 35 784 16 92 19 + 792: 11(int) Constant 183 + 794: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 795 69 35 792 16 92 19 + 802: 11(int) Constant 184 + 804: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 805 9 35 802 16 92 19 + 812: 11(int) Constant 185 + 814: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 815 69 35 812 16 92 19 + 818: 8(float) Constant 1098907648 + 823: 8(float) Constant 1075838976 + 827: 11(int) Constant 187 + 836: 228(int) Constant 2 + 852: 11(int) Constant 191 + 855: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 136 14 24 16 + 861: 11(int) Constant 193 + 869: 11(int) Constant 196 + 878: TypePointer Input 23(fvec2) + 879(inUV): 878(ptr) Variable Input + 881: TypePointer Output 18(fvec4) +882(@entryPointOutput): 881(ptr) Variable Output + Line 1 119 1 + 6(main): 4 Function None 5 + 7: Label + 877(inUV): 26(ptr) Variable Function + 883(param): 26(ptr) Variable Function + Line 1 119 0 + 880: 23(fvec2) Load 879(inUV) + Store 877(inUV) 880 + 884: 23(fvec2) Load 877(inUV) + Store 883(param) 884 + 885: 18(fvec4) FunctionCall 90(@main(vf2;) 883(param) + Store 882(@entryPointOutput) 885 Return FunctionEnd -31(textureProj(vf4;f1;vf2;): 7(float) Function None 26 - 28(P): 20(ptr) FunctionParameter - 29(layer): 21(ptr) FunctionParameter - 30(offset): 25(ptr) FunctionParameter - 39: Label - 99(shadow): 21(ptr) Variable Function -104(shadowCoord): 20(ptr) Variable Function - 139(dist): 21(ptr) Variable Function - 40: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 33 - 41: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 15 15 15 15 - 44: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 42 28(P) 45 - 48: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 46 29(layer) 45 - 51: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 49 30(offset) 45 - 98: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 33 31(textureProj(vf4;f1;vf2;) - 102: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 100 99(shadow) 45 - Store 99(shadow) 103 - 108: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 105 104(shadowCoord) 45 - 109: 17(fvec4) Load 28(P) - 110: 21(ptr) AccessChain 28(P) 16 - 111: 7(float) Load 110 - 112: 17(fvec4) CompositeConstruct 111 111 111 111 - 113: 17(fvec4) FDiv 109 112 - Store 104(shadowCoord) 113 - 114: 17(fvec4) Load 104(shadowCoord) - 115: 22(fvec2) VectorShuffle 114 114 0 1 - 117: 22(fvec2) VectorTimesScalar 115 116 - 118: 22(fvec2) CompositeConstruct 116 116 - 119: 22(fvec2) FAdd 117 118 - 120: 21(ptr) AccessChain 104(shadowCoord) 15 - 121: 7(float) CompositeExtract 119 0 - Store 120 121 - 122: 21(ptr) AccessChain 104(shadowCoord) 37 - 123: 7(float) CompositeExtract 119 1 - Store 122 123 - 124: 21(ptr) AccessChain 104(shadowCoord) 23 - 125: 7(float) Load 124 - 130: 127(bool) FOrdGreaterThan 125 126 - 131: 21(ptr) AccessChain 104(shadowCoord) 23 - 132: 7(float) Load 131 - 134: 127(bool) FOrdLessThan 132 103 - 136: 127(bool) LogicalAnd 130 134 - SelectionMerge 138 None - BranchConditional 136 137 138 - 137: Label - 143: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 140 139(dist) 45 - 154: 144 Load 150(textureShadowMap) - 163: 155 Load 160(samplerShadowMap) - 168: 164 SampledImage 154 163 - 169: 17(fvec4) Load 104(shadowCoord) - 170: 22(fvec2) VectorShuffle 169 169 0 1 - 171: 22(fvec2) Load 30(offset) - 172: 22(fvec2) FAdd 170 171 - 173: 7(float) Load 29(layer) - 174: 7(float) CompositeExtract 172 0 - 175: 7(float) CompositeExtract 172 1 - 176: 67(fvec3) CompositeConstruct 174 175 173 - 177: 17(fvec4) ImageSampleImplicitLod 168 176 - 178: 7(float) CompositeExtract 177 0 - Store 139(dist) 178 - 179: 21(ptr) AccessChain 104(shadowCoord) 16 - 180: 7(float) Load 179 - 183: 127(bool) FOrdGreaterThan 180 181 - 184: 7(float) Load 139(dist) - 185: 21(ptr) AccessChain 104(shadowCoord) 23 - 186: 7(float) Load 185 - 188: 127(bool) FOrdLessThan 184 186 - 190: 127(bool) LogicalAnd 183 188 - SelectionMerge 192 None - BranchConditional 190 191 192 - 191: Label - Store 99(shadow) 193 - Branch 192 - 192: Label - Branch 138 - 138: Label - 194: 7(float) Load 99(shadow) - ReturnValue 194 + Line 1 61 1 +32(textureProj(vf4;f1;vf2;): 8(float) Function None 27 + 29(P): 21(ptr) FunctionParameter + 30(layer): 22(ptr) FunctionParameter + 31(offset): 26(ptr) FunctionParameter + 40: Label + 103(shadow): 22(ptr) Variable Function +109(shadowCoord): 21(ptr) Variable Function + 150(dist): 22(ptr) Variable Function + 41: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 34 + 42: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 16 16 16 16 + 45: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 43 29(P) 46 + 49: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 47 30(layer) 46 + 52: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 50 31(offset) 46 + 99: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 34 32(textureProj(vf4;f1;vf2;) + 100: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 34 + 101: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 102 102 16 16 + 105: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 104 103(shadow) 46 + Store 103(shadow) 106 + 107: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 108 108 16 16 + 112: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 110 109(shadowCoord) 46 + 113: 18(fvec4) Load 29(P) + 114: 22(ptr) AccessChain 29(P) 17 + 115: 8(float) Load 114 + 116: 18(fvec4) CompositeConstruct 115 115 115 115 + 117: 18(fvec4) FDiv 113 116 + Store 109(shadowCoord) 117 + 118: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 119 119 16 16 + 120: 18(fvec4) Load 109(shadowCoord) + 121: 23(fvec2) VectorShuffle 120 120 0 1 + 123: 23(fvec2) VectorTimesScalar 121 122 + 124: 23(fvec2) CompositeConstruct 122 122 + 125: 23(fvec2) FAdd 123 124 + 126: 22(ptr) AccessChain 109(shadowCoord) 16 + 127: 8(float) CompositeExtract 125 0 + Store 126 127 + 128: 22(ptr) AccessChain 109(shadowCoord) 38 + 129: 8(float) CompositeExtract 125 1 + Store 128 129 + 130: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 131 131 16 16 + 132: 22(ptr) AccessChain 109(shadowCoord) 24 + 133: 8(float) Load 132 + 138: 135(bool) FOrdGreaterThan 133 134 + 139: 22(ptr) AccessChain 109(shadowCoord) 24 + 140: 8(float) Load 139 + 142: 135(bool) FOrdLessThan 140 106 + 144: 135(bool) LogicalAnd 138 142 + SelectionMerge 146 None + BranchConditional 144 145 146 + 145: Label + 147: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 34 + 148: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 149 149 16 16 + 153: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 151 150(dist) 46 + 164: 154 Load 160(textureShadowMap) + 173: 165 Load 170(samplerShadowMap) + 178: 174 SampledImage 164 173 + 179: 18(fvec4) Load 109(shadowCoord) + 180: 23(fvec2) VectorShuffle 179 179 0 1 + 181: 23(fvec2) Load 31(offset) + 182: 23(fvec2) FAdd 180 181 + 183: 8(float) Load 30(layer) + 184: 8(float) CompositeExtract 182 0 + 185: 8(float) CompositeExtract 182 1 + 186: 68(fvec3) CompositeConstruct 184 185 183 + 187: 18(fvec4) ImageSampleImplicitLod 178 186 + 188: 8(float) CompositeExtract 187 0 + Store 150(dist) 188 + 189: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 190 190 16 16 + 191: 22(ptr) AccessChain 109(shadowCoord) 17 + 192: 8(float) Load 191 + 195: 135(bool) FOrdGreaterThan 192 193 + 196: 8(float) Load 150(dist) + 197: 22(ptr) AccessChain 109(shadowCoord) 24 + 198: 8(float) Load 197 + 200: 135(bool) FOrdLessThan 196 198 + 202: 135(bool) LogicalAnd 195 200 + SelectionMerge 204 None + BranchConditional 202 203 204 + 203: Label + 205: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 34 + 206: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 207 207 16 16 + Store 103(shadow) 208 + Branch 204 + 204: Label + Branch 146 + 146: Label + 209: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 34 + 210: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 211 211 16 16 + 212: 8(float) Load 103(shadow) + ReturnValue 212 FunctionEnd -56(filterPCF(vf4;f1;): 7(float) Function None 52 - 54(sc): 20(ptr) FunctionParameter - 55(layer): 21(ptr) FunctionParameter - 59: Label -201(sizeQueryTemp): 200(ptr) Variable Function - 214(texDim): 213(ptr) Variable Function - 228(elements): 222(ptr) Variable Function - 235(levels): 222(ptr) Variable Function - 242(scale): 21(ptr) Variable Function - 248(dx): 21(ptr) Variable Function - 259(dy): 21(ptr) Variable Function -270(shadowFactor): 21(ptr) Variable Function - 275(count): 222(ptr) Variable Function - 281(range): 222(ptr) Variable Function - 287(x): 222(ptr) Variable Function - 303(y): 222(ptr) Variable Function - 328(param): 20(ptr) Variable Function - 330(param): 21(ptr) Variable Function - 332(param): 25(ptr) Variable Function - 60: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 - 61: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 15 15 15 15 - 64: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 62 54(sc) 45 - 66: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 65 55(layer) 45 - 197: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 58 56(filterPCF(vf4;f1;) - 205: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 202 201(sizeQueryTemp) 45 - 206: 144 Load 150(textureShadowMap) - 207: 198(ivec3) ImageQuerySizeLod 206 15 - Store 201(sizeQueryTemp) 207 - 217: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 215 214(texDim) 45 - 219: 218(ptr) AccessChain 201(sizeQueryTemp) 15 - 220: 10(int) Load 219 - 221: 208(int) Bitcast 220 - 223: 222(ptr) AccessChain 214(texDim) 15 - Store 223 221 - 224: 218(ptr) AccessChain 201(sizeQueryTemp) 37 - 225: 10(int) Load 224 - 226: 208(int) Bitcast 225 - 227: 222(ptr) AccessChain 214(texDim) 37 - Store 227 226 - 231: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 229 228(elements) 45 - 232: 218(ptr) AccessChain 201(sizeQueryTemp) 23 - 233: 10(int) Load 232 - 234: 208(int) Bitcast 233 - Store 228(elements) 234 - 238: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 236 235(levels) 45 - 239: 144 Load 150(textureShadowMap) - 240: 10(int) ImageQueryLevels 239 - 241: 208(int) Bitcast 240 - Store 235(levels) 241 - 246: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 243 242(scale) 45 - Store 242(scale) 247 - 252: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 249 248(dx) 45 - 253: 7(float) Load 242(scale) - 254: 7(float) FMul 253 103 - 255: 222(ptr) AccessChain 214(texDim) 15 - 256: 208(int) Load 255 - 257: 7(float) ConvertSToF 256 - 258: 7(float) FDiv 254 257 - Store 248(dx) 258 - 263: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 260 259(dy) 45 - 264: 7(float) Load 242(scale) - 265: 7(float) FMul 264 103 - 266: 222(ptr) AccessChain 214(texDim) 37 - 267: 208(int) Load 266 - 268: 7(float) ConvertSToF 267 - 269: 7(float) FDiv 265 268 - Store 259(dy) 269 - 274: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 271 270(shadowFactor) 45 - Store 270(shadowFactor) 181 - 279: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 276 275(count) 45 - Store 275(count) 280 - 285: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 282 281(range) 45 - Store 281(range) 286 - 291: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 288 287(x) 45 - 292: 208(int) Load 281(range) - 293: 208(int) SNegate 292 - Store 287(x) 293 - Branch 294 - 294: Label - LoopMerge 296 297 None - Branch 298 - 298: Label - 299: 208(int) Load 287(x) - 300: 208(int) Load 281(range) - 302: 127(bool) SLessThanEqual 299 300 - BranchConditional 302 295 296 - 295: Label - 307: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 304 303(y) 45 - 308: 208(int) Load 281(range) - 309: 208(int) SNegate 308 - Store 303(y) 309 - Branch 310 - 310: Label - LoopMerge 312 313 None - Branch 314 - 314: Label - 315: 208(int) Load 303(y) - 316: 208(int) Load 281(range) - 318: 127(bool) SLessThanEqual 315 316 - BranchConditional 318 311 312 - 311: Label - 319: 7(float) Load 248(dx) - 320: 208(int) Load 287(x) - 321: 7(float) ConvertSToF 320 - 322: 7(float) FMul 319 321 - 323: 7(float) Load 259(dy) - 324: 208(int) Load 303(y) - 325: 7(float) ConvertSToF 324 - 326: 7(float) FMul 323 325 - 327: 22(fvec2) CompositeConstruct 322 326 - 329: 17(fvec4) Load 54(sc) - Store 328(param) 329 - 331: 7(float) Load 55(layer) - Store 330(param) 331 - Store 332(param) 327 - 333: 7(float) FunctionCall 31(textureProj(vf4;f1;vf2;) 328(param) 330(param) 332(param) - 334: 7(float) Load 270(shadowFactor) - 335: 7(float) FAdd 334 333 - Store 270(shadowFactor) 335 - 336: 208(int) Load 275(count) - 337: 208(int) IAdd 336 286 - Store 275(count) 337 - Branch 313 - 313: Label - 338: 208(int) Load 303(y) - 339: 208(int) IAdd 338 286 - Store 303(y) 339 - Branch 310 - 312: Label - Branch 297 - 297: Label - 340: 208(int) Load 287(x) - 341: 208(int) IAdd 340 286 - Store 287(x) 341 - Branch 294 - 296: Label - 342: 7(float) Load 270(shadowFactor) - 343: 208(int) Load 275(count) - 344: 7(float) ConvertSToF 343 - 345: 7(float) FDiv 342 344 - ReturnValue 345 + Line 1 78 1 +57(filterPCF(vf4;f1;): 8(float) Function None 53 + 55(sc): 21(ptr) FunctionParameter + 56(layer): 22(ptr) FunctionParameter + 60: Label +222(sizeQueryTemp): 221(ptr) Variable Function + 234(texDim): 233(ptr) Variable Function + 248(elements): 242(ptr) Variable Function + 255(levels): 242(ptr) Variable Function + 264(scale): 22(ptr) Variable Function + 271(dx): 22(ptr) Variable Function + 283(dy): 22(ptr) Variable Function +295(shadowFactor): 22(ptr) Variable Function + 301(count): 242(ptr) Variable Function + 308(range): 242(ptr) Variable Function + 315(x): 242(ptr) Variable Function + 337(y): 242(ptr) Variable Function + 368(param): 21(ptr) Variable Function + 370(param): 22(ptr) Variable Function + 372(param): 26(ptr) Variable Function + 61: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 59 + 62: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 16 16 16 16 + 65: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 63 55(sc) 46 + 67: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 66 56(layer) 46 + 215: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 59 57(filterPCF(vf4;f1;) + 216: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 59 + 217: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 218 218 16 16 + 225: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 223 222(sizeQueryTemp) 46 + 226: 154 Load 160(textureShadowMap) + 227: 219(ivec3) ImageQuerySizeLod 226 16 + Store 222(sizeQueryTemp) 227 + 237: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 235 234(texDim) 46 + 239: 238(ptr) AccessChain 222(sizeQueryTemp) 16 + 240: 11(int) Load 239 + 241: 228(int) Bitcast 240 + 243: 242(ptr) AccessChain 234(texDim) 16 + Store 243 241 + 244: 238(ptr) AccessChain 222(sizeQueryTemp) 38 + 245: 11(int) Load 244 + 246: 228(int) Bitcast 245 + 247: 242(ptr) AccessChain 234(texDim) 38 + Store 247 246 + 251: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 249 248(elements) 46 + 252: 238(ptr) AccessChain 222(sizeQueryTemp) 24 + 253: 11(int) Load 252 + 254: 228(int) Bitcast 253 + Store 248(elements) 254 + 258: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 256 255(levels) 46 + 259: 154 Load 160(textureShadowMap) + 260: 11(int) ImageQueryLevels 259 + 261: 228(int) Bitcast 260 + Store 255(levels) 261 + 262: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 263 263 16 16 + 267: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 265 264(scale) 46 + Store 264(scale) 268 + 269: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 270 270 16 16 + 274: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 272 271(dx) 46 + 275: 8(float) Load 264(scale) + 276: 8(float) FMul 275 106 + 277: 242(ptr) AccessChain 234(texDim) 16 + 278: 228(int) Load 277 + 279: 8(float) ConvertSToF 278 + 280: 8(float) FDiv 276 279 + Store 271(dx) 280 + 281: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 282 282 16 16 + 286: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 284 283(dy) 46 + 287: 8(float) Load 264(scale) + 288: 8(float) FMul 287 106 + 289: 242(ptr) AccessChain 234(texDim) 38 + 290: 228(int) Load 289 + 291: 8(float) ConvertSToF 290 + 292: 8(float) FDiv 288 291 + Store 283(dy) 292 + 293: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 294 294 16 16 + 298: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 296 295(shadowFactor) 46 + Store 295(shadowFactor) 193 + 299: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 300 300 16 16 + 304: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 302 301(count) 46 + Store 301(count) 305 + 306: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 307 307 16 16 + 311: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 309 308(range) 46 + Store 308(range) 312 + 313: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 314 314 16 16 + 318: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 316 315(x) 46 + 319: 228(int) Load 308(range) + 320: 228(int) SNegate 319 + Store 315(x) 320 + Branch 321 + 321: Label + 325: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 59 + 326: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 314 314 16 16 + LoopMerge 323 324 None + Branch 327 + 327: Label + 328: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 59 + 329: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 314 314 16 16 + 330: 228(int) Load 315(x) + 331: 228(int) Load 308(range) + 333: 135(bool) SLessThanEqual 330 331 + BranchConditional 333 322 323 + 322: Label + 334: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 59 + 335: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 336 336 16 16 + 340: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 338 337(y) 46 + 341: 228(int) Load 308(range) + 342: 228(int) SNegate 341 + Store 337(y) 342 + Branch 343 + 343: Label + 347: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 59 + 348: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 336 336 16 16 + LoopMerge 345 346 None + Branch 349 + 349: Label + 350: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 59 + 351: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 336 336 16 16 + 352: 228(int) Load 337(y) + 353: 228(int) Load 308(range) + 355: 135(bool) SLessThanEqual 352 353 + BranchConditional 355 344 345 + 344: Label + 356: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 59 + 357: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 358 358 16 16 + 359: 8(float) Load 271(dx) + 360: 228(int) Load 315(x) + 361: 8(float) ConvertSToF 360 + 362: 8(float) FMul 359 361 + 363: 8(float) Load 283(dy) + 364: 228(int) Load 337(y) + 365: 8(float) ConvertSToF 364 + 366: 8(float) FMul 363 365 + 367: 23(fvec2) CompositeConstruct 362 366 + 369: 18(fvec4) Load 55(sc) + Store 368(param) 369 + 371: 8(float) Load 56(layer) + Store 370(param) 371 + Store 372(param) 367 + 373: 8(float) FunctionCall 32(textureProj(vf4;f1;vf2;) 368(param) 370(param) 372(param) + 374: 8(float) Load 295(shadowFactor) + 375: 8(float) FAdd 374 373 + Store 295(shadowFactor) 375 + 376: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 377 377 16 16 + 378: 228(int) Load 301(count) + 379: 228(int) IAdd 378 312 + Store 301(count) 379 + Branch 346 + 346: Label + 380: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 59 + 381: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 336 336 16 16 + 382: 228(int) Load 337(y) + 383: 228(int) IAdd 382 312 + Store 337(y) 383 + Branch 343 + 345: Label + Branch 324 + 324: Label + 384: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 59 + 385: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 314 314 16 16 + 386: 228(int) Load 315(x) + 387: 228(int) IAdd 386 312 + Store 315(x) 387 + Branch 321 + 323: Label + 388: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 59 + 389: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 390 390 16 16 + 391: 8(float) Load 295(shadowFactor) + 392: 228(int) Load 301(count) + 393: 8(float) ConvertSToF 392 + 394: 8(float) FDiv 391 393 + ReturnValue 394 FunctionEnd -74(shadow(vf3;vf3;): 67(fvec3) Function None 70 - 72(fragcolor): 69(ptr) FunctionParameter - 73(fragPos): 69(ptr) FunctionParameter - 77: Label - 349(i): 222(ptr) Variable Function - 363(shadowClip): 20(ptr) Variable Function -417(shadowFactor): 21(ptr) Variable Function - 423(param): 20(ptr) Variable Function - 425(param): 21(ptr) Variable Function - 78: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 76 - 79: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 15 15 15 15 - 82: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 80 72(fragcolor) 45 - 85: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 83 73(fragPos) 45 - 348: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 76 74(shadow(vf3;vf3;) - 353: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 350 349(i) 45 - Store 349(i) 280 - Branch 354 - 354: Label - LoopMerge 356 357 None - Branch 358 - 358: Label - 359: 208(int) Load 349(i) - 362: 127(bool) SLessThan 359 360 - BranchConditional 362 355 356 - 355: Label - 367: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 364 363(shadowClip) 45 - 368: 67(fvec3) Load 73(fragPos) - 369: 7(float) CompositeExtract 368 0 - 370: 7(float) CompositeExtract 368 1 - 371: 7(float) CompositeExtract 368 2 - 372: 17(fvec4) CompositeConstruct 369 370 371 103 - 412: 208(int) Load 349(i) - 414: 413(ptr) AccessChain 410 280 286 412 360 - 415: 373 Load 414 - 416: 17(fvec4) VectorTimesMatrix 372 415 - Store 363(shadowClip) 416 - 420: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 418 417(shadowFactor) 45 - 421: 208(int) Load 349(i) - 422: 7(float) ConvertSToF 421 - 424: 17(fvec4) Load 363(shadowClip) - Store 423(param) 424 - Store 425(param) 422 - 426: 7(float) FunctionCall 56(filterPCF(vf4;f1;) 423(param) 425(param) - Store 417(shadowFactor) 426 - 427: 7(float) Load 417(shadowFactor) - 428: 67(fvec3) Load 72(fragcolor) - 429: 67(fvec3) VectorTimesScalar 428 427 - Store 72(fragcolor) 429 - Branch 357 - 357: Label - 430: 208(int) Load 349(i) - 431: 208(int) IAdd 430 286 - Store 349(i) 431 - Branch 354 - 356: Label - 432: 67(fvec3) Load 72(fragcolor) - ReturnValue 432 + Line 1 101 49 +75(shadow(vf3;vf3;): 68(fvec3) Function None 71 + 73(fragcolor): 70(ptr) FunctionParameter + 74(fragPos): 70(ptr) FunctionParameter + 78: Label + 401(i): 242(ptr) Variable Function + 421(shadowClip): 21(ptr) Variable Function +476(shadowFactor): 22(ptr) Variable Function + 481(param): 21(ptr) Variable Function + 483(param): 22(ptr) Variable Function + 79: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 77 + 80: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 16 16 16 16 + 83: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 81 73(fragcolor) 46 + 86: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 84 74(fragPos) 46 + 397: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 77 75(shadow(vf3;vf3;) + 398: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 77 + 399: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 400 400 16 16 + 404: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 402 401(i) 46 + Store 401(i) 305 + Branch 405 + 405: Label + 409: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 77 + 410: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 400 400 16 16 + LoopMerge 407 408 None + Branch 411 + 411: Label + 412: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 77 + 413: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 400 400 16 16 + 414: 228(int) Load 401(i) + 417: 135(bool) SLessThan 414 415 + BranchConditional 417 406 407 + 406: Label + 418: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 77 + 419: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 420 420 16 16 + 424: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 422 421(shadowClip) 46 + 425: 68(fvec3) Load 74(fragPos) + 426: 8(float) CompositeExtract 425 0 + 427: 8(float) CompositeExtract 425 1 + 428: 8(float) CompositeExtract 425 2 + 429: 18(fvec4) CompositeConstruct 426 427 428 106 + 469: 228(int) Load 401(i) + 471: 470(ptr) AccessChain 467 305 312 469 415 + 472: 430 Load 471 + 473: 18(fvec4) VectorTimesMatrix 429 472 + Store 421(shadowClip) 473 + 474: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 475 475 16 16 + 478: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 477 476(shadowFactor) 46 + 479: 228(int) Load 401(i) + 480: 8(float) ConvertSToF 479 + 482: 18(fvec4) Load 421(shadowClip) + Store 481(param) 482 + Store 483(param) 480 + 484: 8(float) FunctionCall 57(filterPCF(vf4;f1;) 481(param) 483(param) + Store 476(shadowFactor) 484 + 485: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 486 486 16 16 + 487: 8(float) Load 476(shadowFactor) + 488: 68(fvec3) Load 73(fragcolor) + 489: 68(fvec3) VectorTimesScalar 488 487 + Store 73(fragcolor) 489 + Branch 408 + 408: Label + 490: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 77 + 491: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 400 400 16 16 + 492: 228(int) Load 401(i) + 493: 228(int) IAdd 492 312 + Store 401(i) 493 + Branch 405 + 407: Label + 494: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 77 + 495: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 496 496 16 16 + 497: 68(fvec3) Load 73(fragcolor) + ReturnValue 497 FunctionEnd - 89(@main(vf2;): 17(fvec4) Function None 86 - 88(inUV): 25(ptr) FunctionParameter - 92: Label - 436(fragPos): 69(ptr) Variable Function - 458(normal): 69(ptr) Variable Function - 476(albedo): 20(ptr) Variable Function - 508(fragcolor): 69(ptr) Variable Function - 513(param): 69(ptr) Variable Function - 514(param): 69(ptr) Variable Function - 539(N): 69(ptr) Variable Function - 546(i): 222(ptr) Variable Function - 558(L): 69(ptr) Variable Function - 570(dist): 21(ptr) Variable Function - 578(V): 69(ptr) Variable Function -590(lightCosInnerAngle): 21(ptr) Variable Function -596(lightCosOuterAngle): 21(ptr) Variable Function - 602(lightRange): 21(ptr) Variable Function - 608(dir): 69(ptr) Variable Function - 623(cosDir): 21(ptr) Variable Function - 631(spotEffect): 21(ptr) Variable Function -640(heightAttenuation): 21(ptr) Variable Function - 648(NdotL): 21(ptr) Variable Function - 657(diff): 69(ptr) Variable Function - 664(R): 69(ptr) Variable Function - 673(NdotR): 21(ptr) Variable Function - 682(spec): 69(ptr) Variable Function - 722(param): 69(ptr) Variable Function - 724(param): 69(ptr) Variable Function - 93: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 91 - 94: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 15 15 15 15 - 97: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 95 88(inUV) 45 - 435: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 91 89(@main(vf2;) - 439: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 437 436(fragPos) 45 - 446: 440 Load 443(textureposition) - 451: 155 Load 448(samplerposition) - 454: 452 SampledImage 446 451 - 455: 22(fvec2) Load 88(inUV) - 456: 17(fvec4) ImageSampleImplicitLod 454 455 - 457: 67(fvec3) VectorShuffle 456 456 0 1 2 - Store 436(fragPos) 457 - 462: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 459 458(normal) 45 - 466: 440 Load 463(textureNormal) - 471: 155 Load 468(samplerNormal) - 472: 452 SampledImage 466 471 - 473: 22(fvec2) Load 88(inUV) - 474: 17(fvec4) ImageSampleImplicitLod 472 473 - 475: 67(fvec3) VectorShuffle 474 474 0 1 2 - Store 458(normal) 475 - 480: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 477 476(albedo) 45 - 484: 440 Load 481(textureAlbedo) - 489: 155 Load 486(samplerAlbedo) - 490: 452 SampledImage 484 489 - 491: 22(fvec2) Load 88(inUV) - 492: 17(fvec4) ImageSampleImplicitLod 490 491 - Store 476(albedo) 492 - 494: 493(ptr) AccessChain 410 280 360 - 495: 208(int) Load 494 - 497: 127(bool) SGreaterThan 495 280 - SelectionMerge 499 None - BranchConditional 497 498 499 - 498: Label - 500: 493(ptr) AccessChain 410 280 360 - 501: 208(int) Load 500 - SelectionMerge 507 None - Switch 501 507 - case 1: 502 - case 2: 503 - case 3: 504 - case 4: 505 - case 5: 506 - 502: Label - 511: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 509 508(fragcolor) 45 - Store 513(param) 512 - 515: 67(fvec3) Load 436(fragPos) - Store 514(param) 515 - 516: 67(fvec3) FunctionCall 74(shadow(vf3;vf3;) 513(param) 514(param) - Store 508(fragcolor) 516 - Branch 507 - 503: Label - 518: 67(fvec3) Load 436(fragPos) - Store 508(fragcolor) 518 - Branch 507 - 504: Label - 520: 67(fvec3) Load 458(normal) - Store 508(fragcolor) 520 - Branch 507 - 505: Label - 522: 17(fvec4) Load 476(albedo) - 523: 67(fvec3) VectorShuffle 522 522 0 1 2 - Store 508(fragcolor) 523 - Branch 507 - 506: Label - 525: 17(fvec4) Load 476(albedo) - 526: 67(fvec3) VectorShuffle 525 525 3 3 3 - Store 508(fragcolor) 526 - Branch 507 - 507: Label - 529: 67(fvec3) Load 508(fragcolor) - 530: 7(float) CompositeExtract 529 0 - 531: 7(float) CompositeExtract 529 1 - 532: 7(float) CompositeExtract 529 2 - 533: 17(fvec4) CompositeConstruct 530 531 532 103 - ReturnValue 533 - 499: Label - 535: 17(fvec4) Load 476(albedo) - 536: 67(fvec3) VectorShuffle 535 535 0 1 2 - 538: 67(fvec3) VectorTimesScalar 536 537 - Store 508(fragcolor) 538 - 543: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 540 539(N) 45 - 544: 67(fvec3) Load 458(normal) - 545: 67(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 544 - Store 539(N) 545 - 549: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 547 546(i) 45 - Store 546(i) 280 - Branch 550 - 550: Label - LoopMerge 552 553 None - Branch 554 - 554: Label - 555: 208(int) Load 546(i) - 557: 127(bool) SLessThan 555 360 - BranchConditional 557 551 552 - 551: Label - 562: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 559 558(L) 45 - 563: 208(int) Load 546(i) - 565: 564(ptr) AccessChain 410 280 286 563 280 - 566: 17(fvec4) Load 565 - 567: 67(fvec3) VectorShuffle 566 566 0 1 2 - 568: 67(fvec3) Load 436(fragPos) - 569: 67(fvec3) FSub 567 568 - Store 558(L) 569 - 573: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 571 570(dist) 45 - 574: 67(fvec3) Load 558(L) - 575: 7(float) ExtInst 2(GLSL.std.450) 66(Length) 574 - Store 570(dist) 575 - 576: 67(fvec3) Load 558(L) - 577: 67(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 576 - Store 558(L) 577 - 582: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 579 578(V) 45 - 583: 564(ptr) AccessChain 410 280 280 - 584: 17(fvec4) Load 583 - 585: 67(fvec3) VectorShuffle 584 584 0 1 2 - 586: 67(fvec3) Load 436(fragPos) - 587: 67(fvec3) FSub 585 586 - Store 578(V) 587 - 588: 67(fvec3) Load 578(V) - 589: 67(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 588 - Store 578(V) 589 - 594: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 591 590(lightCosInnerAngle) 45 - Store 590(lightCosInnerAngle) 595 - 600: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 597 596(lightCosOuterAngle) 45 - Store 596(lightCosOuterAngle) 601 - 606: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 603 602(lightRange) 45 - Store 602(lightRange) 607 - 612: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 609 608(dir) 45 - 613: 208(int) Load 546(i) - 614: 564(ptr) AccessChain 410 280 286 613 280 - 615: 17(fvec4) Load 614 - 616: 67(fvec3) VectorShuffle 615 615 0 1 2 - 617: 208(int) Load 546(i) - 618: 564(ptr) AccessChain 410 280 286 617 286 - 619: 17(fvec4) Load 618 - 620: 67(fvec3) VectorShuffle 619 619 0 1 2 - 621: 67(fvec3) FSub 616 620 - 622: 67(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 621 - Store 608(dir) 622 - 627: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 624 623(cosDir) 45 - 628: 67(fvec3) Load 558(L) - 629: 67(fvec3) Load 608(dir) - 630: 7(float) Dot 628 629 - Store 623(cosDir) 630 - 635: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 632 631(spotEffect) 45 - 636: 7(float) Load 596(lightCosOuterAngle) - 637: 7(float) Load 590(lightCosInnerAngle) - 638: 7(float) Load 623(cosDir) - 639: 7(float) ExtInst 2(GLSL.std.450) 49(SmoothStep) 636 637 638 - Store 631(spotEffect) 639 - 644: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 641 640(heightAttenuation) 45 - 645: 7(float) Load 602(lightRange) - 646: 7(float) Load 570(dist) - 647: 7(float) ExtInst 2(GLSL.std.450) 49(SmoothStep) 645 181 646 - Store 640(heightAttenuation) 647 - 652: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 649 648(NdotL) 45 - 653: 67(fvec3) Load 539(N) - 654: 67(fvec3) Load 558(L) - 655: 7(float) Dot 653 654 - 656: 7(float) ExtInst 2(GLSL.std.450) 40(FMax) 181 655 - Store 648(NdotL) 656 - 661: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 658 657(diff) 45 - 662: 7(float) Load 648(NdotL) - 663: 67(fvec3) CompositeConstruct 662 662 662 - Store 657(diff) 663 - 668: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 665 664(R) 45 - 669: 67(fvec3) Load 558(L) - 670: 67(fvec3) FNegate 669 - 671: 67(fvec3) Load 539(N) - 672: 67(fvec3) ExtInst 2(GLSL.std.450) 71(Reflect) 670 671 - Store 664(R) 672 - 677: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 674 673(NdotR) 45 - 678: 67(fvec3) Load 664(R) - 679: 67(fvec3) Load 578(V) - 680: 7(float) Dot 678 679 - 681: 7(float) ExtInst 2(GLSL.std.450) 40(FMax) 181 680 - Store 673(NdotR) 681 - 686: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 683 682(spec) 45 - 687: 7(float) Load 673(NdotR) - 689: 7(float) ExtInst 2(GLSL.std.450) 26(Pow) 687 688 - 690: 21(ptr) AccessChain 476(albedo) 16 - 691: 7(float) Load 690 - 692: 7(float) FMul 689 691 - 694: 7(float) FMul 692 693 - 695: 67(fvec3) CompositeConstruct 694 694 694 - Store 682(spec) 695 - 696: 67(fvec3) Load 657(diff) - 697: 67(fvec3) Load 682(spec) - 698: 67(fvec3) FAdd 696 697 - 699: 7(float) Load 631(spotEffect) - 700: 67(fvec3) VectorTimesScalar 698 699 - 701: 7(float) Load 640(heightAttenuation) - 702: 67(fvec3) VectorTimesScalar 700 701 - 703: 208(int) Load 546(i) - 705: 564(ptr) AccessChain 410 280 286 703 704 - 706: 17(fvec4) Load 705 - 707: 67(fvec3) VectorShuffle 706 706 0 1 2 - 708: 67(fvec3) FMul 702 707 - 709: 17(fvec4) Load 476(albedo) - 710: 67(fvec3) VectorShuffle 709 709 0 1 2 - 711: 67(fvec3) FMul 708 710 - 712: 67(fvec3) Load 508(fragcolor) - 713: 67(fvec3) FAdd 712 711 - Store 508(fragcolor) 713 - Branch 553 - 553: Label - 714: 208(int) Load 546(i) - 715: 208(int) IAdd 714 286 - Store 546(i) 715 - Branch 550 - 552: Label - 716: 493(ptr) AccessChain 410 280 704 - 717: 208(int) Load 716 - 719: 127(bool) SGreaterThan 717 280 - SelectionMerge 721 None - BranchConditional 719 720 721 - 720: Label - 723: 67(fvec3) Load 508(fragcolor) - Store 722(param) 723 - 725: 67(fvec3) Load 436(fragPos) - Store 724(param) 725 - 726: 67(fvec3) FunctionCall 74(shadow(vf3;vf3;) 722(param) 724(param) - Store 508(fragcolor) 726 - Branch 721 - 721: Label - 727: 67(fvec3) Load 508(fragcolor) - 728: 7(float) CompositeExtract 727 0 - 729: 7(float) CompositeExtract 727 1 - 730: 7(float) CompositeExtract 727 2 - 731: 17(fvec4) CompositeConstruct 728 729 730 103 - ReturnValue 731 + Line 1 119 1 + 90(@main(vf2;): 18(fvec4) Function None 87 + 89(inUV): 26(ptr) FunctionParameter + 93: Label + 504(fragPos): 70(ptr) Variable Function + 527(normal): 70(ptr) Variable Function + 546(albedo): 21(ptr) Variable Function + 585(fragcolor): 70(ptr) Variable Function + 589(param): 70(ptr) Variable Function + 590(param): 70(ptr) Variable Function + 645(N): 70(ptr) Variable Function + 653(i): 242(ptr) Variable Function + 671(L): 70(ptr) Variable Function + 684(dist): 22(ptr) Variable Function + 695(V): 70(ptr) Variable Function +710(lightCosInnerAngle): 22(ptr) Variable Function +717(lightCosOuterAngle): 22(ptr) Variable Function + 724(lightRange): 22(ptr) Variable Function + 731(dir): 70(ptr) Variable Function + 747(cosDir): 22(ptr) Variable Function + 756(spotEffect): 22(ptr) Variable Function +766(heightAttenuation): 22(ptr) Variable Function + 775(NdotL): 22(ptr) Variable Function + 785(diff): 70(ptr) Variable Function + 793(R): 70(ptr) Variable Function + 803(NdotR): 22(ptr) Variable Function + 813(spec): 70(ptr) Variable Function + 862(param): 70(ptr) Variable Function + 864(param): 70(ptr) Variable Function + 94: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 92 + 95: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 16 16 16 16 + 98: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 96 89(inUV) 46 + 500: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 92 90(@main(vf2;) + 501: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 92 + 502: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 503 503 16 16 + 506: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 505 504(fragPos) 46 + 513: 507 Load 510(textureposition) + 518: 165 Load 515(samplerposition) + 521: 519 SampledImage 513 518 + 522: 23(fvec2) Load 89(inUV) + 523: 18(fvec4) ImageSampleImplicitLod 521 522 + 524: 68(fvec3) VectorShuffle 523 523 0 1 2 + Store 504(fragPos) 524 + 525: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 526 526 16 16 + 530: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 528 527(normal) 46 + 534: 507 Load 531(textureNormal) + 539: 165 Load 536(samplerNormal) + 540: 519 SampledImage 534 539 + 541: 23(fvec2) Load 89(inUV) + 542: 18(fvec4) ImageSampleImplicitLod 540 541 + 543: 68(fvec3) VectorShuffle 542 542 0 1 2 + Store 527(normal) 543 + 544: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 545 545 16 16 + 549: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 547 546(albedo) 46 + 553: 507 Load 550(textureAlbedo) + 558: 165 Load 555(samplerAlbedo) + 559: 519 SampledImage 553 558 + 560: 23(fvec2) Load 89(inUV) + 561: 18(fvec4) ImageSampleImplicitLod 559 560 + Store 546(albedo) 561 + 562: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 563 563 16 16 + 565: 564(ptr) AccessChain 467 305 415 + 566: 228(int) Load 565 + 568: 135(bool) SGreaterThan 566 305 + SelectionMerge 570 None + BranchConditional 568 569 570 + 569: Label + 571: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 92 + 572: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 573 573 16 16 + 574: 564(ptr) AccessChain 467 305 415 + 575: 228(int) Load 574 + SelectionMerge 581 None + Switch 575 581 + case 1: 576 + case 2: 577 + case 3: 578 + case 4: 579 + case 5: 580 + 576: Label + 582: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 92 + 583: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 584 584 16 16 + 587: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 586 585(fragcolor) 46 + Store 589(param) 588 + 591: 68(fvec3) Load 504(fragPos) + Store 590(param) 591 + 592: 68(fvec3) FunctionCall 75(shadow(vf3;vf3;) 589(param) 590(param) + Store 585(fragcolor) 592 + 593: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 594 594 16 16 + Branch 581 + 577: Label + 596: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 92 + 597: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 598 598 16 16 + 599: 68(fvec3) Load 504(fragPos) + Store 585(fragcolor) 599 + 600: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 601 601 16 16 + Branch 581 + 578: Label + 603: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 92 + 604: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 605 605 16 16 + 606: 68(fvec3) Load 527(normal) + Store 585(fragcolor) 606 + 607: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 608 608 16 16 + Branch 581 + 579: Label + 610: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 92 + 611: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 612 612 16 16 + 613: 18(fvec4) Load 546(albedo) + 614: 68(fvec3) VectorShuffle 613 613 0 1 2 + Store 585(fragcolor) 614 + 615: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 616 616 16 16 + Branch 581 + 580: Label + 618: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 92 + 619: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 620 620 16 16 + 621: 18(fvec4) Load 546(albedo) + 622: 68(fvec3) VectorShuffle 621 621 3 3 3 + Store 585(fragcolor) 622 + 623: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 624 624 16 16 + Branch 581 + 581: Label + 627: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 92 + 628: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 629 629 16 16 + 630: 68(fvec3) Load 585(fragcolor) + 631: 8(float) CompositeExtract 630 0 + 632: 8(float) CompositeExtract 630 1 + 633: 8(float) CompositeExtract 630 2 + 634: 18(fvec4) CompositeConstruct 631 632 633 106 + ReturnValue 634 + 570: Label + 636: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 92 + 637: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 638 638 16 16 + 639: 18(fvec4) Load 546(albedo) + 640: 68(fvec3) VectorShuffle 639 639 0 1 2 + 642: 68(fvec3) VectorTimesScalar 640 641 + Store 585(fragcolor) 642 + 643: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 644 644 16 16 + 648: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 646 645(N) 46 + 649: 68(fvec3) Load 527(normal) + 650: 68(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 649 + Store 645(N) 650 + 651: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 652 652 16 16 + 655: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 654 653(i) 46 + Store 653(i) 305 + Branch 656 + 656: Label + 660: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 92 + 661: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 652 652 16 16 + LoopMerge 658 659 None + Branch 662 + 662: Label + 663: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 92 + 664: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 652 652 16 16 + 665: 228(int) Load 653(i) + 667: 135(bool) SLessThan 665 415 + BranchConditional 667 657 658 + 657: Label + 668: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 92 + 669: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 670 670 16 16 + 674: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 672 671(L) 46 + 675: 228(int) Load 653(i) + 677: 676(ptr) AccessChain 467 305 312 675 305 + 678: 18(fvec4) Load 677 + 679: 68(fvec3) VectorShuffle 678 678 0 1 2 + 680: 68(fvec3) Load 504(fragPos) + 681: 68(fvec3) FSub 679 680 + Store 671(L) 681 + 682: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 683 683 16 16 + 686: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 685 684(dist) 46 + 687: 68(fvec3) Load 671(L) + 688: 8(float) ExtInst 3(GLSL.std.450) 66(Length) 687 + Store 684(dist) 688 + 689: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 690 690 16 16 + 691: 68(fvec3) Load 671(L) + 692: 68(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 691 + Store 671(L) 692 + 693: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 694 694 16 16 + 698: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 696 695(V) 46 + 699: 676(ptr) AccessChain 467 305 305 + 700: 18(fvec4) Load 699 + 701: 68(fvec3) VectorShuffle 700 700 0 1 2 + 702: 68(fvec3) Load 504(fragPos) + 703: 68(fvec3) FSub 701 702 + Store 695(V) 703 + 704: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 705 705 16 16 + 706: 68(fvec3) Load 695(V) + 707: 68(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 706 + Store 695(V) 707 + 708: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 709 709 16 16 + 713: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 711 710(lightCosInnerAngle) 46 + Store 710(lightCosInnerAngle) 714 + 715: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 716 716 16 16 + 720: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 718 717(lightCosOuterAngle) 46 + Store 717(lightCosOuterAngle) 721 + 722: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 723 723 16 16 + 727: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 725 724(lightRange) 46 + Store 724(lightRange) 728 + 729: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 730 730 16 16 + 734: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 732 731(dir) 46 + 735: 228(int) Load 653(i) + 736: 676(ptr) AccessChain 467 305 312 735 305 + 737: 18(fvec4) Load 736 + 738: 68(fvec3) VectorShuffle 737 737 0 1 2 + 739: 228(int) Load 653(i) + 740: 676(ptr) AccessChain 467 305 312 739 312 + 741: 18(fvec4) Load 740 + 742: 68(fvec3) VectorShuffle 741 741 0 1 2 + 743: 68(fvec3) FSub 738 742 + 744: 68(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 743 + Store 731(dir) 744 + 745: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 746 746 16 16 + 750: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 748 747(cosDir) 46 + 751: 68(fvec3) Load 671(L) + 752: 68(fvec3) Load 731(dir) + 753: 8(float) Dot 751 752 + Store 747(cosDir) 753 + 754: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 755 755 16 16 + 759: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 757 756(spotEffect) 46 + 760: 8(float) Load 717(lightCosOuterAngle) + 761: 8(float) Load 710(lightCosInnerAngle) + 762: 8(float) Load 747(cosDir) + 763: 8(float) ExtInst 3(GLSL.std.450) 49(SmoothStep) 760 761 762 + Store 756(spotEffect) 763 + 764: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 765 765 16 16 + 769: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 767 766(heightAttenuation) 46 + 770: 8(float) Load 724(lightRange) + 771: 8(float) Load 684(dist) + 772: 8(float) ExtInst 3(GLSL.std.450) 49(SmoothStep) 770 193 771 + Store 766(heightAttenuation) 772 + 773: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 774 774 16 16 + 778: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 776 775(NdotL) 46 + 779: 68(fvec3) Load 645(N) + 780: 68(fvec3) Load 671(L) + 781: 8(float) Dot 779 780 + 782: 8(float) ExtInst 3(GLSL.std.450) 40(FMax) 193 781 + Store 775(NdotL) 782 + 783: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 784 784 16 16 + 788: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 786 785(diff) 46 + 789: 8(float) Load 775(NdotL) + 790: 68(fvec3) CompositeConstruct 789 789 789 + Store 785(diff) 790 + 791: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 792 792 16 16 + 796: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 794 793(R) 46 + 797: 68(fvec3) Load 671(L) + 798: 68(fvec3) FNegate 797 + 799: 68(fvec3) Load 645(N) + 800: 68(fvec3) ExtInst 3(GLSL.std.450) 71(Reflect) 798 799 + Store 793(R) 800 + 801: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 802 802 16 16 + 806: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 804 803(NdotR) 46 + 807: 68(fvec3) Load 793(R) + 808: 68(fvec3) Load 695(V) + 809: 8(float) Dot 807 808 + 810: 8(float) ExtInst 3(GLSL.std.450) 40(FMax) 193 809 + Store 803(NdotR) 810 + 811: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 812 812 16 16 + 816: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 814 813(spec) 46 + 817: 8(float) Load 803(NdotR) + 819: 8(float) ExtInst 3(GLSL.std.450) 26(Pow) 817 818 + 820: 22(ptr) AccessChain 546(albedo) 17 + 821: 8(float) Load 820 + 822: 8(float) FMul 819 821 + 824: 8(float) FMul 822 823 + 825: 68(fvec3) CompositeConstruct 824 824 824 + Store 813(spec) 825 + 826: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 827 827 16 16 + 828: 68(fvec3) Load 785(diff) + 829: 68(fvec3) Load 813(spec) + 830: 68(fvec3) FAdd 828 829 + 831: 8(float) Load 756(spotEffect) + 832: 68(fvec3) VectorTimesScalar 830 831 + 833: 8(float) Load 766(heightAttenuation) + 834: 68(fvec3) VectorTimesScalar 832 833 + 835: 228(int) Load 653(i) + 837: 676(ptr) AccessChain 467 305 312 835 836 + 838: 18(fvec4) Load 837 + 839: 68(fvec3) VectorShuffle 838 838 0 1 2 + 840: 68(fvec3) FMul 834 839 + 841: 18(fvec4) Load 546(albedo) + 842: 68(fvec3) VectorShuffle 841 841 0 1 2 + 843: 68(fvec3) FMul 840 842 + 844: 68(fvec3) Load 585(fragcolor) + 845: 68(fvec3) FAdd 844 843 + Store 585(fragcolor) 845 + Branch 659 + 659: Label + 846: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 92 + 847: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 652 652 16 16 + 848: 228(int) Load 653(i) + 849: 228(int) IAdd 848 312 + Store 653(i) 849 + Branch 656 + 658: Label + 850: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 92 + 851: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 852 852 16 16 + 853: 564(ptr) AccessChain 467 305 836 + 854: 228(int) Load 853 + 856: 135(bool) SGreaterThan 854 305 + SelectionMerge 858 None + BranchConditional 856 857 858 + 857: Label + 859: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 92 + 860: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 861 861 16 16 + 863: 68(fvec3) Load 585(fragcolor) + Store 862(param) 863 + 865: 68(fvec3) Load 504(fragPos) + Store 864(param) 865 + 866: 68(fvec3) FunctionCall 75(shadow(vf3;vf3;) 862(param) 864(param) + Store 585(fragcolor) 866 + Branch 858 + 858: Label + 867: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 92 + 868: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 35 869 869 16 16 + 870: 68(fvec3) Load 585(fragcolor) + 871: 8(float) CompositeExtract 870 0 + 872: 8(float) CompositeExtract 870 1 + 873: 8(float) CompositeExtract 870 2 + 874: 18(fvec4) CompositeConstruct 871 872 873 106 + ReturnValue 874 FunctionEnd diff --git a/Test/baseResults/spv.debuginfo.hlsl.geom.out b/Test/baseResults/spv.debuginfo.hlsl.geom.out index 52db5892..3bb8b318 100644 --- a/Test/baseResults/spv.debuginfo.hlsl.geom.out +++ b/Test/baseResults/spv.debuginfo.hlsl.geom.out @@ -1,458 +1,499 @@ spv.debuginfo.hlsl.geom -Validation failed // Module Version 10000 // Generated by (magic number): 8000b -// Id's are bound by 322 +// Id's are bound by 353 Capability Geometry Capability MultiViewport Extension "SPV_KHR_non_semantic_info" - 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" - 2: ExtInstImport "GLSL.std.450" + 2: ExtInstImport "NonSemantic.Shader.DebugInfo.100" + 3: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 - EntryPoint Geometry 5 "main" 228 235 240 246 251 256 261 271 278 283 307 310 - ExecutionMode 5 Triangles - ExecutionMode 5 Invocations 2 - ExecutionMode 5 OutputTriangleStrip - ExecutionMode 5 OutputVertices 3 - 9: String "float" - 12: String "uint" - 24: String "Pos" - 26: String "" - 30: String "Color" - 35: String "VSOutput" - 46: String "PrimitiveID" - 51: String "LightVec" - 57: String "GSOutput" - 67: String "@main" - 73: String "input" - 77: String "outStream" - 81: String "InvocationID" - 87: String "int" - 92: String "i" - 104: String "bool" - 109: String "output" - 130: String "projection" - 134: String "modelview" - 138: String "lightPos" - 142: String "UBO" - 146: String "ubo" - 177: String "pos" - 185: String "worldPos" - 195: String "lPos" - 230: String "outStream.Pos" - 237: String "outStream.ViewportIndex" - 242: String "outStream.PrimitiveID" - 248: String "outStream.Normal" - 253: String "outStream.Color" - 258: String "outStream.ViewVec" - 263: String "outStream.LightVec" - Name 5 "main" - Name 22 "VSOutput" - MemberName 22(VSOutput) 0 "Pos" - MemberName 22(VSOutput) 1 "Normal" - MemberName 22(VSOutput) 2 "Color" - Name 42 "GSOutput" - MemberName 42(GSOutput) 0 "Pos" - MemberName 42(GSOutput) 1 "ViewportIndex" - MemberName 42(GSOutput) 2 "PrimitiveID" - MemberName 42(GSOutput) 3 "Normal" - MemberName 42(GSOutput) 4 "Color" - MemberName 42(GSOutput) 5 "ViewVec" - MemberName 42(GSOutput) 6 "LightVec" - Name 66 "@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;" - Name 62 "input" - Name 63 "outStream" - Name 64 "InvocationID" - Name 65 "PrimitiveID" - Name 90 "i" - Name 107 "output" - Name 128 "UBO" - MemberName 128(UBO) 0 "projection" - MemberName 128(UBO) 1 "modelview" - MemberName 128(UBO) 2 "lightPos" - Name 144 "ubo" - MemberName 144(ubo) 0 "ubo" - Name 150 "" - Name 175 "pos" - Name 183 "worldPos" - Name 193 "lPos" - Name 228 "outStream.Pos" - Name 235 "outStream.ViewportIndex" - Name 240 "outStream.PrimitiveID" - Name 246 "outStream.Normal" - Name 251 "outStream.Color" - Name 256 "outStream.ViewVec" - Name 261 "outStream.LightVec" - Name 268 "input" - Name 271 "input.Pos" - Name 278 "input.Normal" - Name 283 "input.Color" - Name 305 "InvocationID" - Name 307 "InvocationID" - Name 309 "PrimitiveID" - Name 310 "PrimitiveID" - Name 312 "outStream" - Name 313 "param" - Name 315 "param" - Name 316 "param" - Name 318 "param" - Decorate 124 ArrayStride 64 - Decorate 126 ArrayStride 64 - MemberDecorate 128(UBO) 0 RowMajor - MemberDecorate 128(UBO) 0 Offset 0 - MemberDecorate 128(UBO) 0 MatrixStride 16 - MemberDecorate 128(UBO) 1 RowMajor - MemberDecorate 128(UBO) 1 Offset 128 - MemberDecorate 128(UBO) 1 MatrixStride 16 - MemberDecorate 128(UBO) 2 Offset 256 - MemberDecorate 144(ubo) 0 Offset 0 - Decorate 144(ubo) Block - Decorate 150 DescriptorSet 0 - Decorate 150 Binding 0 - Decorate 228(outStream.Pos) BuiltIn Position - Decorate 235(outStream.ViewportIndex) BuiltIn ViewportIndex - Decorate 240(outStream.PrimitiveID) BuiltIn PrimitiveId - Decorate 246(outStream.Normal) Location 0 - Decorate 251(outStream.Color) Location 1 - Decorate 256(outStream.ViewVec) Location 2 - Decorate 261(outStream.LightVec) Location 3 - Decorate 271(input.Pos) BuiltIn Position - Decorate 278(input.Normal) Location 0 - Decorate 283(input.Color) Location 1 - Decorate 307(InvocationID) BuiltIn InvocationId - Decorate 310(PrimitiveID) BuiltIn PrimitiveId - 3: TypeVoid - 4: TypeFunction 3 - 7: TypeFloat 32 - 10: TypeInt 32 0 - 13: 10(int) Constant 32 - 14: 10(int) Constant 6 - 15: 10(int) Constant 0 - 11: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 12 13 14 15 - 16: 10(int) Constant 3 - 8: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 13 16 15 - 17: TypeVector 7(float) 4 - 18: 10(int) Constant 4 - 19: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 8 18 - 20: TypeVector 7(float) 3 - 21: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 8 16 - 22(VSOutput): TypeStruct 17(fvec4) 20(fvec3) 20(fvec3) - 25: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 0 26 - 27: 10(int) Constant 37 - 28: 10(int) Constant 13 - 23: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 24 19 25 27 28 15 15 16 - 31: 10(int) Constant 39 - 32: 10(int) Constant 34 - 29: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 30 21 25 31 32 15 15 16 - 33: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 30 21 25 31 32 15 15 16 - 36: 10(int) Constant 1 - 38: 10(int) Constant 5 - 37: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 36 18 25 38 - 34: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 35 36 25 15 15 37 35 15 16 23 29 33 - 39: TypeArray 22(VSOutput) 16 - 40: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 34 16 - 41: TypePointer Function 39 - 42(GSOutput): TypeStruct 17(fvec4) 10(int) 10(int) 20(fvec3) 20(fvec3) 20(fvec3) 20(fvec3) - 44: 10(int) Constant 44 - 43: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 24 19 25 44 28 15 15 16 - 47: 10(int) Constant 46 - 48: 10(int) Constant 19 - 45: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 46 11 25 47 48 15 15 16 - 49: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 46 11 25 47 48 15 15 16 - 52: 10(int) Constant 50 - 50: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 51 21 25 52 27 15 15 16 - 53: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 51 21 25 52 27 15 15 16 - 54: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 51 21 25 52 27 15 15 16 - 55: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 51 21 25 52 27 15 15 16 - 56: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 57 36 25 15 15 37 57 15 16 43 45 49 50 53 54 55 - 58: TypePointer Function 42(GSOutput) - 59: TypePointer Function 10(int) - 60: TypeFunction 3 41(ptr) 58(ptr) 59(ptr) 59(ptr) - 61: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 16 3 40 56 11 11 - 68: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 67 61 25 15 15 37 67 16 15 - 72: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 73 40 25 15 15 68 18 36 - 75: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) - 78: 10(int) Constant 2 - 76: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 77 56 25 15 15 68 18 78 - 80: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 81 11 25 15 15 68 18 16 - 83: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 46 11 25 15 15 68 18 18 - 86: TypeInt 32 1 - 88: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 87 13 18 15 - 89: TypePointer Function 86(int) - 93: 10(int) Constant 57 - 91: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 92 88 25 93 15 68 18 - 95: 86(int) Constant 0 - 102: 86(int) Constant 3 - 103: TypeBool - 105: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 104 13 78 15 - 110: 10(int) Constant 59 - 108: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 109 56 25 110 15 68 18 - 112: 7(float) Constant 0 - 113: 17(fvec4) ConstantComposite 112 112 112 112 - 114: 20(fvec3) ConstantComposite 112 112 112 - 115:42(GSOutput) ConstantComposite 113 15 15 114 114 114 114 - 117: 86(int) Constant 1 - 118: TypePointer Function 20(fvec3) - 121: TypeMatrix 17(fvec4) 4 - 123: 103(bool) ConstantTrue - 122: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 19 18 123 - 124: TypeArray 121 78 - 125: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 122 78 - 126: TypeArray 121 78 - 127: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 122 78 - 128(UBO): TypeStruct 124 126 17(fvec4) - 131: 10(int) Constant 28 - 132: 10(int) Constant 21 - 129: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 130 125 25 131 132 15 15 16 - 135: 10(int) Constant 29 - 136: 10(int) Constant 20 - 133: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 134 127 25 135 136 15 15 16 - 139: 10(int) Constant 30 - 140: 10(int) Constant 17 - 137: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 138 19 25 139 140 15 15 16 - 143: 10(int) Constant 60 - 141: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 142 36 25 143 15 37 142 15 16 129 133 137 - 144(ubo): TypeStruct 128(UBO) - 147: 10(int) Constant 33 - 145: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 146 141 25 147 27 15 15 16 - 148: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 146 36 25 143 15 37 146 15 16 145 - 149: TypePointer Uniform 144(ubo) - 150: 149(ptr) Variable Uniform - 152: 10(int) Constant 8 - 151: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 26 148 25 143 15 37 26 150 152 - 154: TypePointer Uniform 121 - 157: TypeMatrix 20(fvec3) 3 - 158: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 21 16 123 - 168: 86(int) Constant 4 - 170: 86(int) Constant 2 - 174: TypePointer Function 17(fvec4) - 178: 10(int) Constant 63 - 176: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 177 19 25 178 15 68 18 - 186: 10(int) Constant 64 - 184: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 185 19 25 186 15 68 18 - 196: 10(int) Constant 66 - 194: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 195 21 25 196 15 68 18 - 198: TypePointer Uniform 17(fvec4) - 206: 86(int) Constant 6 - 212: 86(int) Constant 5 - 227: TypePointer Output 17(fvec4) -228(outStream.Pos): 227(ptr) Variable Output - 231: 10(int) Constant 75 - 229: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 230 19 25 231 15 37 230 228(outStream.Pos) 152 - 234: TypePointer Output 10(int) -235(outStream.ViewportIndex): 234(ptr) Variable Output - 236: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 237 11 25 231 15 37 237 235(outStream.ViewportIndex) 152 -240(outStream.PrimitiveID): 234(ptr) Variable Output - 241: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 242 11 25 231 15 37 242 240(outStream.PrimitiveID) 152 - 245: TypePointer Output 20(fvec3) -246(outStream.Normal): 245(ptr) Variable Output - 247: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 248 21 25 231 15 37 248 246(outStream.Normal) 152 -251(outStream.Color): 245(ptr) Variable Output - 252: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 253 21 25 231 15 37 253 251(outStream.Color) 152 -256(outStream.ViewVec): 245(ptr) Variable Output - 257: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 258 21 25 231 15 37 258 256(outStream.ViewVec) 152 -261(outStream.LightVec): 245(ptr) Variable Output - 262: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 263 21 25 231 15 37 263 261(outStream.LightVec) 152 - 269: TypeArray 17(fvec4) 16 - 270: TypePointer Input 269 - 271(input.Pos): 270(ptr) Variable Input - 272: TypePointer Input 17(fvec4) - 276: TypeArray 20(fvec3) 16 - 277: TypePointer Input 276 -278(input.Normal): 277(ptr) Variable Input - 279: TypePointer Input 20(fvec3) -283(input.Color): 277(ptr) Variable Input - 306: TypePointer Input 10(int) -307(InvocationID): 306(ptr) Variable Input -310(PrimitiveID): 306(ptr) Variable Input - 5(main): 3 Function None 4 - 6: Label - 268(input): 41(ptr) Variable Function -305(InvocationID): 59(ptr) Variable Function -309(PrimitiveID): 59(ptr) Variable Function - 312(outStream): 58(ptr) Variable Function - 313(param): 41(ptr) Variable Function - 315(param): 58(ptr) Variable Function - 316(param): 59(ptr) Variable Function - 318(param): 59(ptr) Variable Function - 273: 272(ptr) AccessChain 271(input.Pos) 95 - 274: 17(fvec4) Load 273 - 275: 174(ptr) AccessChain 268(input) 95 95 - Store 275 274 - 280: 279(ptr) AccessChain 278(input.Normal) 95 - 281: 20(fvec3) Load 280 - 282: 118(ptr) AccessChain 268(input) 95 117 - Store 282 281 - 284: 279(ptr) AccessChain 283(input.Color) 95 - 285: 20(fvec3) Load 284 - 286: 118(ptr) AccessChain 268(input) 95 170 - Store 286 285 - 287: 272(ptr) AccessChain 271(input.Pos) 117 - 288: 17(fvec4) Load 287 - 289: 174(ptr) AccessChain 268(input) 117 95 - Store 289 288 - 290: 279(ptr) AccessChain 278(input.Normal) 117 - 291: 20(fvec3) Load 290 - 292: 118(ptr) AccessChain 268(input) 117 117 - Store 292 291 - 293: 279(ptr) AccessChain 283(input.Color) 117 - 294: 20(fvec3) Load 293 - 295: 118(ptr) AccessChain 268(input) 117 170 - Store 295 294 - 296: 272(ptr) AccessChain 271(input.Pos) 170 - 297: 17(fvec4) Load 296 - 298: 174(ptr) AccessChain 268(input) 170 95 - Store 298 297 - 299: 279(ptr) AccessChain 278(input.Normal) 170 - 300: 20(fvec3) Load 299 - 301: 118(ptr) AccessChain 268(input) 170 117 - Store 301 300 - 302: 279(ptr) AccessChain 283(input.Color) 170 - 303: 20(fvec3) Load 302 - 304: 118(ptr) AccessChain 268(input) 170 170 - Store 304 303 - 308: 10(int) Load 307(InvocationID) - Store 305(InvocationID) 308 - 311: 10(int) Load 310(PrimitiveID) - Store 309(PrimitiveID) 311 - 314: 39 Load 268(input) - Store 313(param) 314 - 317: 10(int) Load 305(InvocationID) - Store 316(param) 317 - 319: 10(int) Load 309(PrimitiveID) - Store 318(param) 319 - 320: 3 FunctionCall 66(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;) 313(param) 315(param) 316(param) 318(param) - 321:42(GSOutput) Load 315(param) - Store 312(outStream) 321 + EntryPoint Geometry 6 "main" 255 261 266 272 277 282 287 302 309 314 338 341 + ExecutionMode 6 Triangles + ExecutionMode 6 Invocations 2 + ExecutionMode 6 OutputTriangleStrip + ExecutionMode 6 OutputVertices 3 + 1: String "" + 10: String "float" + 13: String "uint" + 25: String "Pos" + 27: String "// OpModuleProcessed auto-map-locations +// OpModuleProcessed auto-map-bindings +// OpModuleProcessed entry-point main +// OpModuleProcessed client vulkan100 +// OpModuleProcessed target-env vulkan1.0 +// OpModuleProcessed keep-uncalled +// OpModuleProcessed hlsl-offsets +#line 1 +" + 31: String "Color" + 36: String "VSOutput" + 47: String "PrimitiveID" + 52: String "LightVec" + 58: String "GSOutput" + 68: String "@main" + 74: String "input" + 78: String "outStream" + 82: String "InvocationID" + 91: String "int" + 96: String "i" + 111: String "bool" + 119: String "output" + 141: String "projection" + 145: String "modelview" + 149: String "lightPos" + 153: String "UBO" + 156: String "ubo" + 191: String "pos" + 200: String "worldPos" + 211: String "lPos" + 257: String "outStream.Pos" + 263: String "outStream.ViewportIndex" + 268: String "outStream.PrimitiveID" + 274: String "outStream.Normal" + 279: String "outStream.Color" + 284: String "outStream.ViewVec" + 289: String "outStream.LightVec" + Name 6 "main" + Name 23 "VSOutput" + MemberName 23(VSOutput) 0 "Pos" + MemberName 23(VSOutput) 1 "Normal" + MemberName 23(VSOutput) 2 "Color" + Name 43 "GSOutput" + MemberName 43(GSOutput) 0 "Pos" + MemberName 43(GSOutput) 1 "ViewportIndex" + MemberName 43(GSOutput) 2 "PrimitiveID" + MemberName 43(GSOutput) 3 "Normal" + MemberName 43(GSOutput) 4 "Color" + MemberName 43(GSOutput) 5 "ViewVec" + MemberName 43(GSOutput) 6 "LightVec" + Name 67 "@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;" + Name 63 "input" + Name 64 "outStream" + Name 65 "InvocationID" + Name 66 "PrimitiveID" + Name 94 "i" + Name 117 "output" + Name 139 "UBO" + MemberName 139(UBO) 0 "projection" + MemberName 139(UBO) 1 "modelview" + MemberName 139(UBO) 2 "lightPos" + Name 154 "ubo" + MemberName 154(ubo) 0 "ubo" + Name 160 "" + Name 189 "pos" + Name 198 "worldPos" + Name 209 "lPos" + Name 255 "outStream.Pos" + Name 261 "outStream.ViewportIndex" + Name 266 "outStream.PrimitiveID" + Name 272 "outStream.Normal" + Name 277 "outStream.Color" + Name 282 "outStream.ViewVec" + Name 287 "outStream.LightVec" + Name 299 "input" + Name 302 "input.Pos" + Name 309 "input.Normal" + Name 314 "input.Color" + Name 336 "InvocationID" + Name 338 "InvocationID" + Name 340 "PrimitiveID" + Name 341 "PrimitiveID" + Name 343 "outStream" + Name 344 "param" + Name 346 "param" + Name 347 "param" + Name 349 "param" + Decorate 135 ArrayStride 64 + Decorate 137 ArrayStride 64 + MemberDecorate 139(UBO) 0 RowMajor + MemberDecorate 139(UBO) 0 Offset 0 + MemberDecorate 139(UBO) 0 MatrixStride 16 + MemberDecorate 139(UBO) 1 RowMajor + MemberDecorate 139(UBO) 1 Offset 128 + MemberDecorate 139(UBO) 1 MatrixStride 16 + MemberDecorate 139(UBO) 2 Offset 256 + MemberDecorate 154(ubo) 0 Offset 0 + Decorate 154(ubo) Block + Decorate 160 DescriptorSet 0 + Decorate 160 Binding 0 + Decorate 255(outStream.Pos) BuiltIn Position + Decorate 261(outStream.ViewportIndex) BuiltIn ViewportIndex + Decorate 266(outStream.PrimitiveID) BuiltIn PrimitiveId + Decorate 272(outStream.Normal) Location 0 + Decorate 277(outStream.Color) Location 1 + Decorate 282(outStream.ViewVec) Location 2 + Decorate 287(outStream.LightVec) Location 3 + Decorate 302(input.Pos) BuiltIn Position + Decorate 309(input.Normal) Location 0 + Decorate 314(input.Color) Location 1 + Decorate 338(InvocationID) BuiltIn InvocationId + Decorate 341(PrimitiveID) BuiltIn PrimitiveId + 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 + 12: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 13 14 15 16 + 17: 11(int) Constant 3 + 9: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 10 14 17 16 + 18: TypeVector 8(float) 4 + 19: 11(int) Constant 4 + 20: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 19 + 21: TypeVector 8(float) 3 + 22: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 17 + 23(VSOutput): TypeStruct 18(fvec4) 21(fvec3) 21(fvec3) + 26: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 27 + 28: 11(int) Constant 37 + 29: 11(int) Constant 13 + 24: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 25 20 26 28 29 16 16 17 + 32: 11(int) Constant 39 + 33: 11(int) Constant 34 + 30: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 31 22 26 32 33 16 16 17 + 34: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 31 22 26 32 33 16 16 17 + 37: 11(int) Constant 1 + 39: 11(int) Constant 5 + 38: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 37 19 26 39 + 35: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 36 37 26 16 16 38 36 16 17 24 30 34 + 40: TypeArray 23(VSOutput) 17 + 41: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 35 17 + 42: TypePointer Function 40 + 43(GSOutput): TypeStruct 18(fvec4) 11(int) 11(int) 21(fvec3) 21(fvec3) 21(fvec3) 21(fvec3) + 45: 11(int) Constant 44 + 44: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 25 20 26 45 29 16 16 17 + 48: 11(int) Constant 46 + 49: 11(int) Constant 19 + 46: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 47 12 26 48 49 16 16 17 + 50: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 47 12 26 48 49 16 16 17 + 53: 11(int) Constant 50 + 51: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 22 26 53 28 16 16 17 + 54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 22 26 53 28 16 16 17 + 55: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 22 26 53 28 16 16 17 + 56: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 22 26 53 28 16 16 17 + 57: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 58 37 26 16 16 38 58 16 17 44 46 50 51 54 55 56 + 59: TypePointer Function 43(GSOutput) + 60: TypePointer Function 11(int) + 61: TypeFunction 4 42(ptr) 59(ptr) 60(ptr) 60(ptr) + 62: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 4 41 57 12 12 + 69: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 68 62 26 16 16 38 68 17 16 + 73: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 74 41 26 16 16 69 19 37 + 76: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) + 79: 11(int) Constant 2 + 77: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 78 57 26 16 16 69 19 79 + 81: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 82 12 26 16 16 69 19 17 + 84: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 47 12 26 16 16 69 19 19 + 89: 11(int) Constant 57 + 90: TypeInt 32 1 + 92: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 91 14 19 16 + 93: TypePointer Function 90(int) + 95: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 96 92 26 89 16 69 19 + 98: 90(int) Constant 0 + 109: 90(int) Constant 3 + 110: TypeBool + 112: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 111 14 79 16 + 116: 11(int) Constant 59 + 118: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 119 57 26 116 16 69 19 + 121: 8(float) Constant 0 + 122: 18(fvec4) ConstantComposite 121 121 121 121 + 123: 21(fvec3) ConstantComposite 121 121 121 + 124:43(GSOutput) ConstantComposite 122 16 16 123 123 123 123 + 126: 11(int) Constant 60 + 128: 90(int) Constant 1 + 129: TypePointer Function 21(fvec3) + 132: TypeMatrix 18(fvec4) 4 + 134: 110(bool) ConstantTrue + 133: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 20 19 134 + 135: TypeArray 132 79 + 136: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 133 79 + 137: TypeArray 132 79 + 138: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 133 79 + 139(UBO): TypeStruct 135 137 18(fvec4) + 142: 11(int) Constant 28 + 143: 11(int) Constant 21 + 140: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 141 136 26 142 143 16 16 17 + 146: 11(int) Constant 29 + 147: 11(int) Constant 20 + 144: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 145 138 26 146 147 16 16 17 + 150: 11(int) Constant 30 + 151: 11(int) Constant 17 + 148: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 149 20 26 150 151 16 16 17 + 152: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 153 37 26 126 16 38 153 16 17 140 144 148 + 154(ubo): TypeStruct 139(UBO) + 157: 11(int) Constant 33 + 155: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 156 152 26 157 28 16 16 17 + 158: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 156 37 26 126 16 38 156 16 17 155 + 159: TypePointer Uniform 154(ubo) + 160: 159(ptr) Variable Uniform + 162: 11(int) Constant 8 + 161: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 158 26 126 16 38 1 160 162 + 164: TypePointer Uniform 132 + 167: TypeMatrix 21(fvec3) 3 + 168: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 22 17 134 + 179: 11(int) Constant 61 + 180: 90(int) Constant 4 + 182: 90(int) Constant 2 + 187: 11(int) Constant 63 + 188: TypePointer Function 18(fvec4) + 190: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 191 20 26 187 16 69 19 + 197: 11(int) Constant 64 + 199: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 200 20 26 197 16 69 19 + 208: 11(int) Constant 66 + 210: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 211 22 26 208 16 69 19 + 213: TypePointer Uniform 18(fvec4) + 222: 11(int) Constant 67 + 223: 90(int) Constant 6 + 230: 11(int) Constant 68 + 231: 90(int) Constant 5 + 237: 11(int) Constant 70 + 245: 11(int) Constant 73 + 249: 11(int) Constant 74 + 253: 11(int) Constant 75 + 254: TypePointer Output 18(fvec4) +255(outStream.Pos): 254(ptr) Variable Output + 256: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 257 20 26 253 16 38 257 255(outStream.Pos) 162 + 260: TypePointer Output 11(int) +261(outStream.ViewportIndex): 260(ptr) Variable Output + 262: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 263 12 26 253 16 38 263 261(outStream.ViewportIndex) 162 +266(outStream.PrimitiveID): 260(ptr) Variable Output + 267: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 268 12 26 253 16 38 268 266(outStream.PrimitiveID) 162 + 271: TypePointer Output 21(fvec3) +272(outStream.Normal): 271(ptr) Variable Output + 273: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 274 22 26 253 16 38 274 272(outStream.Normal) 162 +277(outStream.Color): 271(ptr) Variable Output + 278: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 279 22 26 253 16 38 279 277(outStream.Color) 162 +282(outStream.ViewVec): 271(ptr) Variable Output + 283: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 284 22 26 253 16 38 284 282(outStream.ViewVec) 162 +287(outStream.LightVec): 271(ptr) Variable Output + 288: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 289 22 26 253 16 38 289 287(outStream.LightVec) 162 + 298: 11(int) Constant 78 + 300: TypeArray 18(fvec4) 17 + 301: TypePointer Input 300 + 302(input.Pos): 301(ptr) Variable Input + 303: TypePointer Input 18(fvec4) + 307: TypeArray 21(fvec3) 17 + 308: TypePointer Input 307 +309(input.Normal): 308(ptr) Variable Input + 310: TypePointer Input 21(fvec3) +314(input.Color): 308(ptr) Variable Input + 337: TypePointer Input 11(int) +338(InvocationID): 337(ptr) Variable Input +341(PrimitiveID): 337(ptr) Variable Input + Line 1 56 1 + 6(main): 4 Function None 5 + 7: Label + 299(input): 42(ptr) Variable Function +336(InvocationID): 60(ptr) Variable Function +340(PrimitiveID): 60(ptr) Variable Function + 343(outStream): 59(ptr) Variable Function + 344(param): 42(ptr) Variable Function + 346(param): 59(ptr) Variable Function + 347(param): 60(ptr) Variable Function + 349(param): 60(ptr) Variable Function + Line 1 56 0 + 304: 303(ptr) AccessChain 302(input.Pos) 98 + 305: 18(fvec4) Load 304 + 306: 188(ptr) AccessChain 299(input) 98 98 + Store 306 305 + 311: 310(ptr) AccessChain 309(input.Normal) 98 + 312: 21(fvec3) Load 311 + 313: 129(ptr) AccessChain 299(input) 98 128 + Store 313 312 + 315: 310(ptr) AccessChain 314(input.Color) 98 + 316: 21(fvec3) Load 315 + 317: 129(ptr) AccessChain 299(input) 98 182 + Store 317 316 + 318: 303(ptr) AccessChain 302(input.Pos) 128 + 319: 18(fvec4) Load 318 + 320: 188(ptr) AccessChain 299(input) 128 98 + Store 320 319 + 321: 310(ptr) AccessChain 309(input.Normal) 128 + 322: 21(fvec3) Load 321 + 323: 129(ptr) AccessChain 299(input) 128 128 + Store 323 322 + 324: 310(ptr) AccessChain 314(input.Color) 128 + 325: 21(fvec3) Load 324 + 326: 129(ptr) AccessChain 299(input) 128 182 + Store 326 325 + 327: 303(ptr) AccessChain 302(input.Pos) 182 + 328: 18(fvec4) Load 327 + 329: 188(ptr) AccessChain 299(input) 182 98 + Store 329 328 + 330: 310(ptr) AccessChain 309(input.Normal) 182 + 331: 21(fvec3) Load 330 + 332: 129(ptr) AccessChain 299(input) 182 128 + Store 332 331 + 333: 310(ptr) AccessChain 314(input.Color) 182 + 334: 21(fvec3) Load 333 + 335: 129(ptr) AccessChain 299(input) 182 182 + Store 335 334 + 339: 11(int) Load 338(InvocationID) + Store 336(InvocationID) 339 + 342: 11(int) Load 341(PrimitiveID) + Store 340(PrimitiveID) 342 + 345: 40 Load 299(input) + Store 344(param) 345 + 348: 11(int) Load 336(InvocationID) + Store 347(param) 348 + 350: 11(int) Load 340(PrimitiveID) + Store 349(param) 350 + 351: 4 FunctionCall 67(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;) 344(param) 346(param) 347(param) 349(param) + 352:43(GSOutput) Load 346(param) + Store 343(outStream) 352 Return FunctionEnd -66(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;): 3 Function None 60 - 62(input): 41(ptr) FunctionParameter - 63(outStream): 58(ptr) FunctionParameter -64(InvocationID): 59(ptr) FunctionParameter - 65(PrimitiveID): 59(ptr) FunctionParameter - 69: Label - 90(i): 89(ptr) Variable Function - 107(output): 58(ptr) Variable Function - 175(pos): 174(ptr) Variable Function - 183(worldPos): 174(ptr) Variable Function - 193(lPos): 118(ptr) Variable Function - 70: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 68 - 71: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 25 15 15 15 15 - 74: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 72 62(input) 75 - 79: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 76 63(outStream) 75 - 82: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 80 64(InvocationID) 75 - 84: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 83 65(PrimitiveID) 75 - 85: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 68 66(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;) - 94: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 91 90(i) 75 - Store 90(i) 95 - Branch 96 - 96: Label - LoopMerge 98 99 None - Branch 100 - 100: Label - 101: 86(int) Load 90(i) - 106: 103(bool) SLessThan 101 102 - BranchConditional 106 97 98 - 97: Label - 111: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 108 107(output) 75 - Store 107(output) 115 - 116: 86(int) Load 90(i) - 119: 118(ptr) AccessChain 62(input) 116 117 - 120: 20(fvec3) Load 119 - 153: 10(int) Load 64(InvocationID) - 155: 154(ptr) AccessChain 150 95 117 153 - 156: 121 Load 155 - 159: 17(fvec4) CompositeExtract 156 0 - 160: 20(fvec3) VectorShuffle 159 159 0 1 2 - 161: 17(fvec4) CompositeExtract 156 1 - 162: 20(fvec3) VectorShuffle 161 161 0 1 2 - 163: 17(fvec4) CompositeExtract 156 2 - 164: 20(fvec3) VectorShuffle 163 163 0 1 2 - 165: 157 CompositeConstruct 160 162 164 - 166: 20(fvec3) VectorTimesMatrix 120 165 - 167: 118(ptr) AccessChain 107(output) 102 - Store 167 166 - 169: 86(int) Load 90(i) - 171: 118(ptr) AccessChain 62(input) 169 170 - 172: 20(fvec3) Load 171 - 173: 118(ptr) AccessChain 107(output) 168 - Store 173 172 - 179: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 176 175(pos) 75 - 180: 86(int) Load 90(i) - 181: 174(ptr) AccessChain 62(input) 180 95 - 182: 17(fvec4) Load 181 - Store 175(pos) 182 - 187: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 184 183(worldPos) 75 - 188: 17(fvec4) Load 175(pos) - 189: 10(int) Load 64(InvocationID) - 190: 154(ptr) AccessChain 150 95 117 189 - 191: 121 Load 190 - 192: 17(fvec4) VectorTimesMatrix 188 191 - Store 183(worldPos) 192 - 197: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 194 193(lPos) 75 - 199: 198(ptr) AccessChain 150 95 170 - 200: 17(fvec4) Load 199 - 201: 10(int) Load 64(InvocationID) - 202: 154(ptr) AccessChain 150 95 117 201 - 203: 121 Load 202 - 204: 17(fvec4) VectorTimesMatrix 200 203 - 205: 20(fvec3) VectorShuffle 204 204 0 1 2 - Store 193(lPos) 205 - 207: 20(fvec3) Load 193(lPos) - 208: 17(fvec4) Load 183(worldPos) - 209: 20(fvec3) VectorShuffle 208 208 0 1 2 - 210: 20(fvec3) FSub 207 209 - 211: 118(ptr) AccessChain 107(output) 206 - Store 211 210 - 213: 17(fvec4) Load 183(worldPos) - 214: 20(fvec3) VectorShuffle 213 213 0 1 2 - 215: 20(fvec3) FNegate 214 - 216: 118(ptr) AccessChain 107(output) 212 - Store 216 215 - 217: 17(fvec4) Load 183(worldPos) - 218: 10(int) Load 64(InvocationID) - 219: 154(ptr) AccessChain 150 95 95 218 - 220: 121 Load 219 - 221: 17(fvec4) VectorTimesMatrix 217 220 - 222: 174(ptr) AccessChain 107(output) 95 - Store 222 221 - 223: 10(int) Load 64(InvocationID) - 224: 59(ptr) AccessChain 107(output) 117 - Store 224 223 - 225: 10(int) Load 65(PrimitiveID) - 226: 59(ptr) AccessChain 107(output) 170 - Store 226 225 - 232: 174(ptr) AccessChain 107(output) 95 - 233: 17(fvec4) Load 232 - Store 228(outStream.Pos) 233 - 238: 59(ptr) AccessChain 107(output) 117 - 239: 10(int) Load 238 - Store 235(outStream.ViewportIndex) 239 - 243: 59(ptr) AccessChain 107(output) 170 - 244: 10(int) Load 243 - Store 240(outStream.PrimitiveID) 244 - 249: 118(ptr) AccessChain 107(output) 102 - 250: 20(fvec3) Load 249 - Store 246(outStream.Normal) 250 - 254: 118(ptr) AccessChain 107(output) 168 - 255: 20(fvec3) Load 254 - Store 251(outStream.Color) 255 - 259: 118(ptr) AccessChain 107(output) 212 - 260: 20(fvec3) Load 259 - Store 256(outStream.ViewVec) 260 - 264: 118(ptr) AccessChain 107(output) 206 - 265: 20(fvec3) Load 264 - Store 261(outStream.LightVec) 265 + Line 1 56 1 +67(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;): 4 Function None 61 + 63(input): 42(ptr) FunctionParameter + 64(outStream): 59(ptr) FunctionParameter +65(InvocationID): 60(ptr) FunctionParameter + 66(PrimitiveID): 60(ptr) FunctionParameter + 70: Label + 94(i): 93(ptr) Variable Function + 117(output): 59(ptr) Variable Function + 189(pos): 188(ptr) Variable Function + 198(worldPos): 188(ptr) Variable Function + 209(lPos): 129(ptr) Variable Function + 71: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 69 + 72: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 16 16 16 16 + 75: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 73 63(input) 76 + 80: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 77 64(outStream) 76 + 83: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 81 65(InvocationID) 76 + 85: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 84 66(PrimitiveID) 76 + 86: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 69 67(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;) + 87: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 69 + 88: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 89 89 16 16 + 97: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 95 94(i) 76 + Store 94(i) 98 + Branch 99 + 99: Label + 103: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 69 + 104: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 89 89 16 16 + LoopMerge 101 102 None + Branch 105 + 105: Label + 106: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 69 + 107: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 89 89 16 16 + 108: 90(int) Load 94(i) + 113: 110(bool) SLessThan 108 109 + BranchConditional 113 100 101 + 100: Label + 114: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 69 + 115: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 116 116 16 16 + 120: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 118 117(output) 76 + Store 117(output) 124 + 125: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 126 126 16 16 + 127: 90(int) Load 94(i) + 130: 129(ptr) AccessChain 63(input) 127 128 + 131: 21(fvec3) Load 130 + 163: 11(int) Load 65(InvocationID) + 165: 164(ptr) AccessChain 160 98 128 163 + 166: 132 Load 165 + 169: 18(fvec4) CompositeExtract 166 0 + 170: 21(fvec3) VectorShuffle 169 169 0 1 2 + 171: 18(fvec4) CompositeExtract 166 1 + 172: 21(fvec3) VectorShuffle 171 171 0 1 2 + 173: 18(fvec4) CompositeExtract 166 2 + 174: 21(fvec3) VectorShuffle 173 173 0 1 2 + 175: 167 CompositeConstruct 170 172 174 + 176: 21(fvec3) VectorTimesMatrix 131 175 + 177: 129(ptr) AccessChain 117(output) 109 + Store 177 176 + 178: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 179 179 16 16 + 181: 90(int) Load 94(i) + 183: 129(ptr) AccessChain 63(input) 181 182 + 184: 21(fvec3) Load 183 + 185: 129(ptr) AccessChain 117(output) 180 + Store 185 184 + 186: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 187 187 16 16 + 192: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 190 189(pos) 76 + 193: 90(int) Load 94(i) + 194: 188(ptr) AccessChain 63(input) 193 98 + 195: 18(fvec4) Load 194 + Store 189(pos) 195 + 196: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 197 197 16 16 + 201: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 199 198(worldPos) 76 + 202: 18(fvec4) Load 189(pos) + 203: 11(int) Load 65(InvocationID) + 204: 164(ptr) AccessChain 160 98 128 203 + 205: 132 Load 204 + 206: 18(fvec4) VectorTimesMatrix 202 205 + Store 198(worldPos) 206 + 207: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 208 208 16 16 + 212: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 210 209(lPos) 76 + 214: 213(ptr) AccessChain 160 98 182 + 215: 18(fvec4) Load 214 + 216: 11(int) Load 65(InvocationID) + 217: 164(ptr) AccessChain 160 98 128 216 + 218: 132 Load 217 + 219: 18(fvec4) VectorTimesMatrix 215 218 + 220: 21(fvec3) VectorShuffle 219 219 0 1 2 + Store 209(lPos) 220 + 221: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 222 222 16 16 + 224: 21(fvec3) Load 209(lPos) + 225: 18(fvec4) Load 198(worldPos) + 226: 21(fvec3) VectorShuffle 225 225 0 1 2 + 227: 21(fvec3) FSub 224 226 + 228: 129(ptr) AccessChain 117(output) 223 + Store 228 227 + 229: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 230 230 16 16 + 232: 18(fvec4) Load 198(worldPos) + 233: 21(fvec3) VectorShuffle 232 232 0 1 2 + 234: 21(fvec3) FNegate 233 + 235: 129(ptr) AccessChain 117(output) 231 + Store 235 234 + 236: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 237 237 16 16 + 238: 18(fvec4) Load 198(worldPos) + 239: 11(int) Load 65(InvocationID) + 240: 164(ptr) AccessChain 160 98 98 239 + 241: 132 Load 240 + 242: 18(fvec4) VectorTimesMatrix 238 241 + 243: 188(ptr) AccessChain 117(output) 98 + Store 243 242 + 244: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 245 245 16 16 + 246: 11(int) Load 65(InvocationID) + 247: 60(ptr) AccessChain 117(output) 128 + Store 247 246 + 248: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 249 249 16 16 + 250: 11(int) Load 66(PrimitiveID) + 251: 60(ptr) AccessChain 117(output) 182 + Store 251 250 + 252: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 253 253 16 16 + 258: 188(ptr) AccessChain 117(output) 98 + 259: 18(fvec4) Load 258 + Store 255(outStream.Pos) 259 + 264: 60(ptr) AccessChain 117(output) 128 + 265: 11(int) Load 264 + Store 261(outStream.ViewportIndex) 265 + 269: 60(ptr) AccessChain 117(output) 182 + 270: 11(int) Load 269 + Store 266(outStream.PrimitiveID) 270 + 275: 129(ptr) AccessChain 117(output) 109 + 276: 21(fvec3) Load 275 + Store 272(outStream.Normal) 276 + 280: 129(ptr) AccessChain 117(output) 180 + 281: 21(fvec3) Load 280 + Store 277(outStream.Color) 281 + 285: 129(ptr) AccessChain 117(output) 231 + 286: 21(fvec3) Load 285 + Store 282(outStream.ViewVec) 286 + 290: 129(ptr) AccessChain 117(output) 223 + 291: 21(fvec3) Load 290 + Store 287(outStream.LightVec) 291 EmitVertex + Branch 102 + 102: Label + 292: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 69 + 293: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 89 89 16 16 + 294: 90(int) Load 94(i) + 295: 90(int) IAdd 294 128 + Store 94(i) 295 Branch 99 - 99: Label - 266: 86(int) Load 90(i) - 267: 86(int) IAdd 266 117 - Store 90(i) 267 - Branch 96 - 98: Label + 101: Label + 296: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 69 + 297: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 298 298 16 16 EndPrimitive Return FunctionEnd diff --git a/Test/baseResults/spv.debuginfo.hlsl.tesc.out b/Test/baseResults/spv.debuginfo.hlsl.tesc.out index c3736818..aa419a43 100644 --- a/Test/baseResults/spv.debuginfo.hlsl.tesc.out +++ b/Test/baseResults/spv.debuginfo.hlsl.tesc.out @@ -1,809 +1,917 @@ spv.debuginfo.hlsl.tesc WARNING: 0:158: '' : attribute does not apply to entry point -Validation failed // Module Version 10000 // Generated by (magic number): 8000b -// Id's are bound by 593 +// Id's are bound by 688 Capability Tessellation Extension "SPV_KHR_non_semantic_info" - 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" - 2: ExtInstImport "GLSL.std.450" + 2: ExtInstImport "NonSemantic.Shader.DebugInfo.100" + 3: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 - EntryPoint TessellationControl 5 "main" 485 492 499 533 542 549 556 571 586 - ExecutionMode 5 OutputVertices 4 - ExecutionMode 5 Quads - ExecutionMode 5 SpacingEqual - ExecutionMode 5 VertexOrderCw - 9: String "float" - 12: String "uint" - 26: String "screenSpaceTessFactor" - 29: String "" - 37: String "p0" - 41: String "p1" - 48: String "bool" - 55: String "frustumCheck" - 61: String "Pos" - 64: String "inUV" - 73: String "Normal" - 77: String "UV" - 81: String "VSOutput" - 91: String "TessLevelOuter" - 95: String "TessLevelInner" - 98: String "ConstantsHSOutput" - 103: String "ConstantsHS" - 109: String "patch" - 120: String "HSOutput" - 126: String "@main" - 134: String "InvocationID" - 139: String "midPoint" - 150: String "radius" - 160: String "v0" - 171: String "modelview" - 176: String "lightPos" - 180: String "frustumPlanes" - 183: String "tessellatedEdgeSize" - 187: String "viewportDim" - 191: String "UBO" - 194: String "ubo" - 202: String "int" - 212: String "clip0" - 229: String "clip1" - 292: String "pos" - 298: String "type.2d.image" - 300: String "@type.2d.image" - 305: String "textureHeight" - 309: String "type.sampler" - 310: String "@type.sampler" - 314: String "samplerHeight" - 318: String "type.sampled.image" - 319: String "@type.sampled.image" - 335: String "i" - 371: String "output" - Name 5 "main" - Name 25 "screenSpaceTessFactor(vf4;vf4;" - Name 23 "p0" - Name 24 "p1" - Name 54 "frustumCheck(vf4;vf2;" - Name 52 "Pos" - Name 53 "inUV" - Name 68 "VSOutput" - MemberName 68(VSOutput) 0 "Pos" - MemberName 68(VSOutput) 1 "Normal" - MemberName 68(VSOutput) 2 "UV" - Name 89 "ConstantsHSOutput" - MemberName 89(ConstantsHSOutput) 0 "TessLevelOuter" - MemberName 89(ConstantsHSOutput) 1 "TessLevelInner" - Name 102 "ConstantsHS(struct-VSOutput-vf4-vf3-vf21[4];" - Name 101 "patch" - Name 112 "HSOutput" - MemberName 112(HSOutput) 0 "Pos" - MemberName 112(HSOutput) 1 "Normal" - MemberName 112(HSOutput) 2 "UV" - Name 125 "@main(struct-VSOutput-vf4-vf3-vf21[4];u1;" - Name 123 "patch" - Name 124 "InvocationID" - Name 137 "midPoint" - Name 148 "radius" - Name 158 "v0" - Name 169 "UBO" - MemberName 169(UBO) 0 "projection" - MemberName 169(UBO) 1 "modelview" - MemberName 169(UBO) 2 "lightPos" - MemberName 169(UBO) 3 "frustumPlanes" - MemberName 169(UBO) 4 "displacementFactor" - MemberName 169(UBO) 5 "tessellationFactor" - MemberName 169(UBO) 6 "viewportDim" - MemberName 169(UBO) 7 "tessellatedEdgeSize" - Name 192 "ubo" - MemberName 192(ubo) 0 "ubo" - Name 198 "" - Name 210 "clip0" - Name 227 "clip1" - Name 290 "pos" - Name 303 "textureHeight" - Name 312 "samplerHeight" - Name 333 "i" - Name 369 "output" - Name 378 "param" - Name 381 "param" - Name 403 "param" - Name 406 "param" - Name 411 "param" - Name 414 "param" - Name 419 "param" - Name 422 "param" - Name 427 "param" - Name 430 "param" - Name 459 "output" - Name 482 "patch" - Name 485 "patch.Pos" - Name 492 "patch.Normal" - Name 499 "patch.UV" - Name 531 "InvocationID" - Name 533 "InvocationID" - Name 535 "flattenTemp" - Name 536 "param" - Name 538 "param" - Name 542 "@entryPointOutput.Pos" - Name 549 "@entryPointOutput.Normal" - Name 556 "@entryPointOutput.UV" - Name 566 "@patchConstantResult" - Name 567 "param" - Name 571 "@patchConstantOutput.TessLevelOuter" - Name 586 "@patchConstantOutput.TessLevelInner" - Decorate 167 ArrayStride 16 - MemberDecorate 169(UBO) 0 RowMajor - MemberDecorate 169(UBO) 0 Offset 0 - MemberDecorate 169(UBO) 0 MatrixStride 16 - MemberDecorate 169(UBO) 1 RowMajor - MemberDecorate 169(UBO) 1 Offset 64 - MemberDecorate 169(UBO) 1 MatrixStride 16 - MemberDecorate 169(UBO) 2 Offset 128 - MemberDecorate 169(UBO) 3 Offset 144 - MemberDecorate 169(UBO) 4 Offset 240 - MemberDecorate 169(UBO) 5 Offset 244 - MemberDecorate 169(UBO) 6 Offset 248 - MemberDecorate 169(UBO) 7 Offset 256 - MemberDecorate 192(ubo) 0 Offset 0 - Decorate 192(ubo) Block - Decorate 198 DescriptorSet 0 - Decorate 198 Binding 0 - Decorate 303(textureHeight) DescriptorSet 0 - Decorate 303(textureHeight) Binding 1 - Decorate 312(samplerHeight) DescriptorSet 0 - Decorate 312(samplerHeight) Binding 1 - Decorate 485(patch.Pos) BuiltIn Position - Decorate 492(patch.Normal) Location 0 - Decorate 499(patch.UV) Location 1 - Decorate 533(InvocationID) BuiltIn InvocationId - Decorate 542(@entryPointOutput.Pos) BuiltIn Position - Decorate 549(@entryPointOutput.Normal) Location 0 - Decorate 556(@entryPointOutput.UV) Location 1 - Decorate 571(@patchConstantOutput.TessLevelOuter) Patch - Decorate 571(@patchConstantOutput.TessLevelOuter) BuiltIn TessLevelOuter - Decorate 586(@patchConstantOutput.TessLevelInner) Patch - Decorate 586(@patchConstantOutput.TessLevelInner) BuiltIn TessLevelInner - 3: TypeVoid - 4: TypeFunction 3 - 7: TypeFloat 32 - 10: TypeInt 32 0 - 13: 10(int) Constant 32 - 14: 10(int) Constant 6 - 15: 10(int) Constant 0 - 11: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 12 13 14 15 - 16: 10(int) Constant 3 - 8: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 13 16 15 - 17: TypeVector 7(float) 4 - 18: 10(int) Constant 4 - 19: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 8 18 - 20: TypePointer Function 17(fvec4) - 21: TypeFunction 7(float) 20(ptr) 20(ptr) - 22: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 16 8 19 19 - 28: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 0 29 - 31: 10(int) Constant 1 - 32: 10(int) Constant 5 - 30: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 31 18 28 32 - 27: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 26 22 28 15 15 30 26 16 15 - 36: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 37 19 28 15 15 27 18 31 - 39: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) - 42: 10(int) Constant 2 - 40: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 41 19 28 15 15 27 18 42 - 44: TypeVector 7(float) 2 - 45: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 8 42 - 46: TypePointer Function 44(fvec2) - 47: TypeBool - 49: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 48 13 42 15 - 50: TypeFunction 47(bool) 20(ptr) 46(ptr) - 51: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 16 49 19 45 - 56: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 55 51 28 15 15 30 55 16 15 - 60: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 61 19 28 15 15 56 18 31 - 63: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 64 45 28 15 15 56 18 42 - 66: TypeVector 7(float) 3 - 67: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 8 16 - 68(VSOutput): TypeStruct 17(fvec4) 66(fvec3) 44(fvec2) - 70: 10(int) Constant 44 - 71: 10(int) Constant 13 - 69: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 61 19 28 70 71 15 15 16 - 74: 10(int) Constant 45 - 75: 10(int) Constant 35 - 72: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 73 67 28 74 75 15 15 16 - 78: 10(int) Constant 46 - 79: 10(int) Constant 31 - 76: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 77 45 28 78 79 15 15 16 - 80: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 81 31 28 15 15 30 81 15 16 69 72 76 - 82: TypeArray 68(VSOutput) 18 - 83: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 80 18 - 84: TypePointer Function 82 - 85: TypeArray 7(float) 18 - 86: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 8 18 - 87: TypeArray 7(float) 42 - 88: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 8 42 -89(ConstantsHSOutput): TypeStruct 85 87 - 92: 10(int) Constant 58 - 93: 10(int) Constant 25 - 90: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 91 86 28 92 93 15 15 16 - 96: 10(int) Constant 59 - 94: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 95 88 28 96 93 15 15 16 - 97: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 98 31 28 15 15 30 98 15 16 90 94 - 99: TypeFunction 89(ConstantsHSOutput) 84(ptr) - 100: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 16 97 83 - 104: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 103 100 28 15 15 30 103 16 15 - 108: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 109 83 28 15 15 104 18 31 - 111: TypePointer Function 10(int) - 112(HSOutput): TypeStruct 17(fvec4) 66(fvec3) 44(fvec2) - 114: 10(int) Constant 51 - 113: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 61 19 28 114 13 15 15 16 - 116: 10(int) Constant 52 - 115: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 73 67 28 116 75 15 15 16 - 118: 10(int) Constant 53 - 117: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 77 45 28 118 79 15 15 16 - 119: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 120 31 28 15 15 30 120 15 16 113 115 117 - 121: TypeFunction 112(HSOutput) 84(ptr) 111(ptr) - 122: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 16 119 83 11 - 127: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 126 122 28 15 15 30 126 16 15 - 131: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 109 83 28 15 15 127 18 31 - 133: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 134 11 28 15 15 127 18 42 - 140: 10(int) Constant 67 - 138: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 139 19 28 140 15 27 18 - 142: 7(float) Constant 1056964608 - 147: TypePointer Function 7(float) - 151: 10(int) Constant 69 - 149: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 150 8 28 151 15 27 18 - 156: 7(float) Constant 1073741824 - 161: 10(int) Constant 72 - 159: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 160 19 28 161 15 27 18 - 164: TypeMatrix 17(fvec4) 4 - 166: 47(bool) ConstantTrue - 165: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 19 18 166 - 167: TypeArray 17(fvec4) 14 - 168: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 19 14 - 169(UBO): TypeStruct 164 164 17(fvec4) 167 7(float) 7(float) 44(fvec2) 7(float) - 172: 10(int) Constant 29 - 173: 10(int) Constant 20 - 170: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 171 165 28 172 173 15 15 16 - 174: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 171 165 28 172 173 15 15 16 - 177: 10(int) Constant 30 - 178: 10(int) Constant 17 - 175: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 176 19 28 177 178 15 15 16 - 181: 10(int) Constant 22 - 179: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 180 168 28 79 181 15 15 16 - 184: 10(int) Constant 27 - 182: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 183 8 28 75 184 15 15 16 - 185: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 183 8 28 75 184 15 15 16 - 188: 10(int) Constant 34 - 186: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 187 45 28 188 173 15 15 16 - 189: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 183 8 28 75 184 15 15 16 - 190: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 191 31 28 161 15 30 191 15 16 170 174 175 179 182 185 186 189 - 192(ubo): TypeStruct 169(UBO) - 195: 10(int) Constant 37 - 193: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 194 190 28 195 195 15 15 16 - 196: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 194 31 28 161 15 30 194 15 16 193 - 197: TypePointer Uniform 192(ubo) - 198: 197(ptr) Variable Uniform - 200: 10(int) Constant 8 - 199: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 29 196 28 161 15 30 29 198 200 - 201: TypeInt 32 1 - 203: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 202 13 18 15 - 204: 201(int) Constant 0 - 205: 201(int) Constant 1 - 206: TypePointer Uniform 164 - 213: 10(int) Constant 75 - 211: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 212 19 28 213 15 27 18 - 217: 7(float) Constant 0 - 218: 66(fvec3) ConstantComposite 217 217 217 - 230: 10(int) Constant 76 - 228: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 229 19 28 230 15 27 18 - 252: 201(int) Constant 6 - 253: TypePointer Uniform 44(fvec2) - 275: 201(int) Constant 7 - 276: TypePointer Uniform 7(float) - 280: 201(int) Constant 5 - 284: 7(float) Constant 1065353216 - 285: 7(float) Constant 1115684864 - 293: 10(int) Constant 98 - 291: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 292 19 28 293 15 56 18 - 296: TypeImage 7(float) 2D sampled format:Unknown - 299: 10(int) Constant 99 - 301: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) - 297: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 298 15 28 299 15 30 300 301 16 - 302: TypePointer UniformConstant 296 -303(textureHeight): 302(ptr) Variable UniformConstant - 304: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 305 297 28 299 15 30 305 303(textureHeight) 200 - 307: TypeSampler - 308: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 309 31 28 299 15 30 310 301 16 - 311: TypePointer UniformConstant 307 -312(samplerHeight): 311(ptr) Variable UniformConstant - 313: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 314 308 28 299 15 30 314 312(samplerHeight) 200 - 316: TypeSampledImage 296 - 317: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 318 15 28 299 15 30 319 301 16 - 324: 201(int) Constant 4 - 332: TypePointer Function 201(int) - 336: 10(int) Constant 102 - 334: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 335 203 28 336 15 56 18 - 344: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 48 13 42 15 - 347: 201(int) Constant 3 - 349: TypePointer Uniform 17(fvec4) - 353: 7(float) Constant 1090519040 - 355: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 48 13 42 15 - 359: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 48 13 42 15 - 360: 47(bool) ConstantFalse - 364: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 48 13 42 15 - 368: TypePointer Function 89(ConstantsHSOutput) - 372: 10(int) Constant 113 - 370: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 371 97 28 372 15 104 18 - 374: 85 ConstantComposite 217 217 217 217 - 375: 87 ConstantComposite 217 217 - 376:89(ConstantsHSOutput) ConstantComposite 374 375 - 377: 201(int) Constant 2 - 385: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 48 13 42 15 - 386: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 48 13 42 15 - 399: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 48 13 42 15 - 458: TypePointer Function 112(HSOutput) - 461: 10(int) Constant 159 - 460: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 371 119 28 461 15 127 18 - 463: 17(fvec4) ConstantComposite 217 217 217 217 - 464: 44(fvec2) ConstantComposite 217 217 - 465:112(HSOutput) ConstantComposite 463 218 464 - 471: TypePointer Function 66(fvec3) - 483: TypeArray 17(fvec4) 18 - 484: TypePointer Input 483 - 485(patch.Pos): 484(ptr) Variable Input - 486: TypePointer Input 17(fvec4) - 490: TypeArray 66(fvec3) 18 - 491: TypePointer Input 490 -492(patch.Normal): 491(ptr) Variable Input - 493: TypePointer Input 66(fvec3) - 497: TypeArray 44(fvec2) 18 - 498: TypePointer Input 497 - 499(patch.UV): 498(ptr) Variable Input - 500: TypePointer Input 44(fvec2) - 532: TypePointer Input 10(int) -533(InvocationID): 532(ptr) Variable Input - 541: TypePointer Output 483 -542(@entryPointOutput.Pos): 541(ptr) Variable Output - 546: TypePointer Output 17(fvec4) - 548: TypePointer Output 490 -549(@entryPointOutput.Normal): 548(ptr) Variable Output - 553: TypePointer Output 66(fvec3) - 555: TypePointer Output 497 -556(@entryPointOutput.UV): 555(ptr) Variable Output - 560: TypePointer Output 44(fvec2) - 570: TypePointer Output 85 -571(@patchConstantOutput.TessLevelOuter): 570(ptr) Variable Output - 574: TypePointer Output 7(float) - 585: TypePointer Output 87 -586(@patchConstantOutput.TessLevelInner): 585(ptr) Variable Output - 5(main): 3 Function None 4 - 6: Label - 482(patch): 84(ptr) Variable Function -531(InvocationID): 111(ptr) Variable Function -535(flattenTemp): 458(ptr) Variable Function - 536(param): 84(ptr) Variable Function - 538(param): 111(ptr) Variable Function -566(@patchConstantResult): 368(ptr) Variable Function - 567(param): 84(ptr) Variable Function - 487: 486(ptr) AccessChain 485(patch.Pos) 204 - 488: 17(fvec4) Load 487 - 489: 20(ptr) AccessChain 482(patch) 204 204 - Store 489 488 - 494: 493(ptr) AccessChain 492(patch.Normal) 204 - 495: 66(fvec3) Load 494 - 496: 471(ptr) AccessChain 482(patch) 204 205 - Store 496 495 - 501: 500(ptr) AccessChain 499(patch.UV) 204 - 502: 44(fvec2) Load 501 - 503: 46(ptr) AccessChain 482(patch) 204 377 - Store 503 502 - 504: 486(ptr) AccessChain 485(patch.Pos) 205 - 505: 17(fvec4) Load 504 - 506: 20(ptr) AccessChain 482(patch) 205 204 - Store 506 505 - 507: 493(ptr) AccessChain 492(patch.Normal) 205 - 508: 66(fvec3) Load 507 - 509: 471(ptr) AccessChain 482(patch) 205 205 - Store 509 508 - 510: 500(ptr) AccessChain 499(patch.UV) 205 - 511: 44(fvec2) Load 510 - 512: 46(ptr) AccessChain 482(patch) 205 377 - Store 512 511 - 513: 486(ptr) AccessChain 485(patch.Pos) 377 - 514: 17(fvec4) Load 513 - 515: 20(ptr) AccessChain 482(patch) 377 204 - Store 515 514 - 516: 493(ptr) AccessChain 492(patch.Normal) 377 - 517: 66(fvec3) Load 516 - 518: 471(ptr) AccessChain 482(patch) 377 205 - Store 518 517 - 519: 500(ptr) AccessChain 499(patch.UV) 377 - 520: 44(fvec2) Load 519 - 521: 46(ptr) AccessChain 482(patch) 377 377 - Store 521 520 - 522: 486(ptr) AccessChain 485(patch.Pos) 347 - 523: 17(fvec4) Load 522 - 524: 20(ptr) AccessChain 482(patch) 347 204 - Store 524 523 - 525: 493(ptr) AccessChain 492(patch.Normal) 347 - 526: 66(fvec3) Load 525 - 527: 471(ptr) AccessChain 482(patch) 347 205 - Store 527 526 - 528: 500(ptr) AccessChain 499(patch.UV) 347 - 529: 44(fvec2) Load 528 - 530: 46(ptr) AccessChain 482(patch) 347 377 - Store 530 529 - 534: 10(int) Load 533(InvocationID) - Store 531(InvocationID) 534 - 537: 82 Load 482(patch) - Store 536(param) 537 - 539: 10(int) Load 531(InvocationID) - Store 538(param) 539 - 540:112(HSOutput) FunctionCall 125(@main(struct-VSOutput-vf4-vf3-vf21[4];u1;) 536(param) 538(param) - Store 535(flattenTemp) 540 - 543: 10(int) Load 533(InvocationID) - 544: 20(ptr) AccessChain 535(flattenTemp) 204 - 545: 17(fvec4) Load 544 - 547: 546(ptr) AccessChain 542(@entryPointOutput.Pos) 543 - Store 547 545 - 550: 10(int) Load 533(InvocationID) - 551: 471(ptr) AccessChain 535(flattenTemp) 205 - 552: 66(fvec3) Load 551 - 554: 553(ptr) AccessChain 549(@entryPointOutput.Normal) 550 - Store 554 552 - 557: 10(int) Load 533(InvocationID) - 558: 46(ptr) AccessChain 535(flattenTemp) 377 - 559: 44(fvec2) Load 558 - 561: 560(ptr) AccessChain 556(@entryPointOutput.UV) 557 - Store 561 559 - ControlBarrier 42 18 15 - 562: 10(int) Load 533(InvocationID) - 563: 47(bool) IEqual 562 204 - SelectionMerge 565 None - BranchConditional 563 564 565 - 564: Label - 568: 82 Load 482(patch) - Store 567(param) 568 - 569:89(ConstantsHSOutput) FunctionCall 102(ConstantsHS(struct-VSOutput-vf4-vf3-vf21[4];) 567(param) - Store 566(@patchConstantResult) 569 - 572: 147(ptr) AccessChain 566(@patchConstantResult) 204 204 - 573: 7(float) Load 572 - 575: 574(ptr) AccessChain 571(@patchConstantOutput.TessLevelOuter) 204 - Store 575 573 - 576: 147(ptr) AccessChain 566(@patchConstantResult) 204 205 - 577: 7(float) Load 576 - 578: 574(ptr) AccessChain 571(@patchConstantOutput.TessLevelOuter) 205 - Store 578 577 - 579: 147(ptr) AccessChain 566(@patchConstantResult) 204 377 - 580: 7(float) Load 579 - 581: 574(ptr) AccessChain 571(@patchConstantOutput.TessLevelOuter) 377 - Store 581 580 - 582: 147(ptr) AccessChain 566(@patchConstantResult) 204 347 - 583: 7(float) Load 582 - 584: 574(ptr) AccessChain 571(@patchConstantOutput.TessLevelOuter) 347 - Store 584 583 - 587: 147(ptr) AccessChain 566(@patchConstantResult) 205 204 - 588: 7(float) Load 587 - 589: 574(ptr) AccessChain 586(@patchConstantOutput.TessLevelInner) 204 - Store 589 588 - 590: 147(ptr) AccessChain 566(@patchConstantResult) 205 205 - 591: 7(float) Load 590 - 592: 574(ptr) AccessChain 586(@patchConstantOutput.TessLevelInner) 205 - Store 592 591 - Branch 565 - 565: Label + EntryPoint TessellationControl 6 "main" 580 587 594 628 637 644 651 666 681 + ExecutionMode 6 OutputVertices 4 + ExecutionMode 6 Quads + ExecutionMode 6 SpacingEqual + ExecutionMode 6 VertexOrderCw + 1: String "" + 10: String "float" + 13: String "uint" + 27: String "screenSpaceTessFactor" + 30: String "// OpModuleProcessed auto-map-locations +// OpModuleProcessed auto-map-bindings +// OpModuleProcessed entry-point main +// OpModuleProcessed client vulkan100 +// OpModuleProcessed target-env vulkan1.0 +// OpModuleProcessed keep-uncalled +// OpModuleProcessed hlsl-offsets +#line 1 +" + 38: String "p0" + 42: String "p1" + 49: String "bool" + 56: String "frustumCheck" + 62: String "Pos" + 65: String "inUV" + 74: String "Normal" + 78: String "UV" + 82: String "VSOutput" + 92: String "TessLevelOuter" + 96: String "TessLevelInner" + 99: String "ConstantsHSOutput" + 104: String "ConstantsHS" + 110: String "patch" + 121: String "HSOutput" + 127: String "@main" + 135: String "InvocationID" + 143: String "midPoint" + 155: String "radius" + 166: String "v0" + 176: String "modelview" + 181: String "lightPos" + 185: String "frustumPlanes" + 188: String "tessellatedEdgeSize" + 192: String "viewportDim" + 196: String "UBO" + 199: String "ubo" + 207: String "int" + 219: String "clip0" + 237: String "clip1" + 312: String "pos" + 319: String "type.2d.image" + 320: String "@type.2d.image" + 325: String "textureHeight" + 329: String "type.sampler" + 330: String "@type.sampler" + 334: String "samplerHeight" + 338: String "type.sampled.image" + 339: String "@type.sampled.image" + 357: String "i" + 410: String "output" + Name 6 "main" + Name 26 "screenSpaceTessFactor(vf4;vf4;" + Name 24 "p0" + Name 25 "p1" + Name 55 "frustumCheck(vf4;vf2;" + Name 53 "Pos" + Name 54 "inUV" + Name 69 "VSOutput" + MemberName 69(VSOutput) 0 "Pos" + MemberName 69(VSOutput) 1 "Normal" + MemberName 69(VSOutput) 2 "UV" + Name 90 "ConstantsHSOutput" + MemberName 90(ConstantsHSOutput) 0 "TessLevelOuter" + MemberName 90(ConstantsHSOutput) 1 "TessLevelInner" + Name 103 "ConstantsHS(struct-VSOutput-vf4-vf3-vf21[4];" + Name 102 "patch" + Name 113 "HSOutput" + MemberName 113(HSOutput) 0 "Pos" + MemberName 113(HSOutput) 1 "Normal" + MemberName 113(HSOutput) 2 "UV" + Name 126 "@main(struct-VSOutput-vf4-vf3-vf21[4];u1;" + Name 124 "patch" + Name 125 "InvocationID" + Name 141 "midPoint" + Name 153 "radius" + Name 164 "v0" + Name 174 "UBO" + MemberName 174(UBO) 0 "projection" + MemberName 174(UBO) 1 "modelview" + MemberName 174(UBO) 2 "lightPos" + MemberName 174(UBO) 3 "frustumPlanes" + MemberName 174(UBO) 4 "displacementFactor" + MemberName 174(UBO) 5 "tessellationFactor" + MemberName 174(UBO) 6 "viewportDim" + MemberName 174(UBO) 7 "tessellatedEdgeSize" + Name 197 "ubo" + MemberName 197(ubo) 0 "ubo" + Name 203 "" + Name 217 "clip0" + Name 235 "clip1" + Name 310 "pos" + Name 323 "textureHeight" + Name 332 "samplerHeight" + Name 355 "i" + Name 408 "output" + Name 418 "param" + Name 421 "param" + Name 462 "param" + Name 465 "param" + Name 472 "param" + Name 475 "param" + Name 482 "param" + Name 485 "param" + Name 492 "param" + Name 495 "param" + Name 547 "output" + Name 577 "patch" + Name 580 "patch.Pos" + Name 587 "patch.Normal" + Name 594 "patch.UV" + Name 626 "InvocationID" + Name 628 "InvocationID" + Name 630 "flattenTemp" + Name 631 "param" + Name 633 "param" + Name 637 "@entryPointOutput.Pos" + Name 644 "@entryPointOutput.Normal" + Name 651 "@entryPointOutput.UV" + Name 661 "@patchConstantResult" + Name 662 "param" + Name 666 "@patchConstantOutput.TessLevelOuter" + Name 681 "@patchConstantOutput.TessLevelInner" + Decorate 172 ArrayStride 16 + MemberDecorate 174(UBO) 0 RowMajor + MemberDecorate 174(UBO) 0 Offset 0 + MemberDecorate 174(UBO) 0 MatrixStride 16 + MemberDecorate 174(UBO) 1 RowMajor + MemberDecorate 174(UBO) 1 Offset 64 + MemberDecorate 174(UBO) 1 MatrixStride 16 + MemberDecorate 174(UBO) 2 Offset 128 + MemberDecorate 174(UBO) 3 Offset 144 + MemberDecorate 174(UBO) 4 Offset 240 + MemberDecorate 174(UBO) 5 Offset 244 + MemberDecorate 174(UBO) 6 Offset 248 + MemberDecorate 174(UBO) 7 Offset 256 + MemberDecorate 197(ubo) 0 Offset 0 + Decorate 197(ubo) Block + Decorate 203 DescriptorSet 0 + Decorate 203 Binding 0 + Decorate 323(textureHeight) DescriptorSet 0 + Decorate 323(textureHeight) Binding 1 + Decorate 332(samplerHeight) DescriptorSet 0 + Decorate 332(samplerHeight) Binding 1 + Decorate 580(patch.Pos) BuiltIn Position + Decorate 587(patch.Normal) Location 0 + Decorate 594(patch.UV) Location 1 + Decorate 628(InvocationID) BuiltIn InvocationId + Decorate 637(@entryPointOutput.Pos) BuiltIn Position + Decorate 644(@entryPointOutput.Normal) Location 0 + Decorate 651(@entryPointOutput.UV) Location 1 + Decorate 666(@patchConstantOutput.TessLevelOuter) Patch + Decorate 666(@patchConstantOutput.TessLevelOuter) BuiltIn TessLevelOuter + Decorate 681(@patchConstantOutput.TessLevelInner) Patch + Decorate 681(@patchConstantOutput.TessLevelInner) BuiltIn TessLevelInner + 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 + 12: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 13 14 15 16 + 17: 11(int) Constant 3 + 9: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 10 14 17 16 + 18: TypeVector 8(float) 4 + 19: 11(int) Constant 4 + 20: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 19 + 21: TypePointer Function 18(fvec4) + 22: TypeFunction 8(float) 21(ptr) 21(ptr) + 23: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 9 20 20 + 29: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 30 + 32: 11(int) Constant 1 + 33: 11(int) Constant 5 + 31: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 32 19 29 33 + 28: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 27 23 29 16 16 31 27 17 16 + 37: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 38 20 29 16 16 28 19 32 + 40: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) + 43: 11(int) Constant 2 + 41: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 42 20 29 16 16 28 19 43 + 45: TypeVector 8(float) 2 + 46: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 43 + 47: TypePointer Function 45(fvec2) + 48: TypeBool + 50: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 49 14 43 16 + 51: TypeFunction 48(bool) 21(ptr) 47(ptr) + 52: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 50 20 46 + 57: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 56 52 29 16 16 31 56 17 16 + 61: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 62 20 29 16 16 57 19 32 + 64: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 65 46 29 16 16 57 19 43 + 67: TypeVector 8(float) 3 + 68: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 17 + 69(VSOutput): TypeStruct 18(fvec4) 67(fvec3) 45(fvec2) + 71: 11(int) Constant 44 + 72: 11(int) Constant 13 + 70: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 62 20 29 71 72 16 16 17 + 75: 11(int) Constant 45 + 76: 11(int) Constant 35 + 73: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 74 68 29 75 76 16 16 17 + 79: 11(int) Constant 46 + 80: 11(int) Constant 31 + 77: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 78 46 29 79 80 16 16 17 + 81: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 82 32 29 16 16 31 82 16 17 70 73 77 + 83: TypeArray 69(VSOutput) 19 + 84: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 81 19 + 85: TypePointer Function 83 + 86: TypeArray 8(float) 19 + 87: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 9 19 + 88: TypeArray 8(float) 43 + 89: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 9 43 +90(ConstantsHSOutput): TypeStruct 86 88 + 93: 11(int) Constant 58 + 94: 11(int) Constant 25 + 91: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 92 87 29 93 94 16 16 17 + 97: 11(int) Constant 59 + 95: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 96 89 29 97 94 16 16 17 + 98: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 99 32 29 16 16 31 99 16 17 91 95 + 100: TypeFunction 90(ConstantsHSOutput) 85(ptr) + 101: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 98 84 + 105: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 104 101 29 16 16 31 104 17 16 + 109: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 110 84 29 16 16 105 19 32 + 112: TypePointer Function 11(int) + 113(HSOutput): TypeStruct 18(fvec4) 67(fvec3) 45(fvec2) + 115: 11(int) Constant 51 + 114: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 62 20 29 115 14 16 16 17 + 117: 11(int) Constant 52 + 116: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 74 68 29 117 76 16 16 17 + 119: 11(int) Constant 53 + 118: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 78 46 29 119 80 16 16 17 + 120: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 121 32 29 16 16 31 121 16 17 114 116 118 + 122: TypeFunction 113(HSOutput) 85(ptr) 112(ptr) + 123: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 120 84 12 + 128: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 127 123 29 16 16 31 127 17 16 + 132: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 110 84 29 16 16 128 19 32 + 134: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 135 12 29 16 16 128 19 43 + 140: 11(int) Constant 67 + 142: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 143 20 29 140 16 28 19 + 145: 8(float) Constant 1056964608 + 151: 11(int) Constant 69 + 152: TypePointer Function 8(float) + 154: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 155 9 29 151 16 28 19 + 160: 8(float) Constant 1073741824 + 163: 11(int) Constant 72 + 165: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 166 20 29 163 16 28 19 + 169: TypeMatrix 18(fvec4) 4 + 171: 48(bool) ConstantTrue + 170: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 20 19 171 + 172: TypeArray 18(fvec4) 15 + 173: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 20 15 + 174(UBO): TypeStruct 169 169 18(fvec4) 172 8(float) 8(float) 45(fvec2) 8(float) + 177: 11(int) Constant 29 + 178: 11(int) Constant 20 + 175: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 176 170 29 177 178 16 16 17 + 179: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 176 170 29 177 178 16 16 17 + 182: 11(int) Constant 30 + 183: 11(int) Constant 17 + 180: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 181 20 29 182 183 16 16 17 + 186: 11(int) Constant 22 + 184: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 185 173 29 80 186 16 16 17 + 189: 11(int) Constant 27 + 187: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 188 9 29 76 189 16 16 17 + 190: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 188 9 29 76 189 16 16 17 + 193: 11(int) Constant 34 + 191: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 192 46 29 193 178 16 16 17 + 194: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 188 9 29 76 189 16 16 17 + 195: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 196 32 29 163 16 31 196 16 17 175 179 180 184 187 190 191 194 + 197(ubo): TypeStruct 174(UBO) + 200: 11(int) Constant 37 + 198: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 199 195 29 200 200 16 16 17 + 201: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 199 32 29 163 16 31 199 16 17 198 + 202: TypePointer Uniform 197(ubo) + 203: 202(ptr) Variable Uniform + 205: 11(int) Constant 8 + 204: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 201 29 163 16 31 1 203 205 + 206: TypeInt 32 1 + 208: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 207 14 19 16 + 209: 206(int) Constant 0 + 210: 206(int) Constant 1 + 211: TypePointer Uniform 169 + 216: 11(int) Constant 75 + 218: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 219 20 29 216 16 28 19 + 223: 8(float) Constant 0 + 224: 67(fvec3) ConstantComposite 223 223 223 + 234: 11(int) Constant 76 + 236: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 237 20 29 234 16 28 19 + 250: 11(int) Constant 79 + 257: 11(int) Constant 80 + 264: 11(int) Constant 83 + 265: 206(int) Constant 6 + 266: TypePointer Uniform 45(fvec2) + 277: 11(int) Constant 84 + 288: 11(int) Constant 89 + 292: 206(int) Constant 7 + 293: TypePointer Uniform 8(float) + 297: 206(int) Constant 5 + 301: 8(float) Constant 1065353216 + 302: 8(float) Constant 1115684864 + 309: 11(int) Constant 98 + 311: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 312 20 29 309 16 57 19 + 316: 11(int) Constant 99 + 317: TypeImage 8(float) 2D sampled format:Unknown + 321: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) + 318: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 319 16 29 316 16 31 320 321 17 + 322: TypePointer UniformConstant 317 +323(textureHeight): 322(ptr) Variable UniformConstant + 324: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 325 318 29 316 16 31 325 323(textureHeight) 205 + 327: TypeSampler + 328: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 329 32 29 316 16 31 330 321 17 + 331: TypePointer UniformConstant 327 +332(samplerHeight): 331(ptr) Variable UniformConstant + 333: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 334 328 29 316 16 31 334 332(samplerHeight) 205 + 336: TypeSampledImage 317 + 337: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 338 16 29 316 16 31 339 321 17 + 344: 206(int) Constant 4 + 353: 11(int) Constant 102 + 354: TypePointer Function 206(int) + 356: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 357 208 29 353 16 57 19 + 369: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 49 14 43 16 + 373: 11(int) Constant 103 + 375: 206(int) Constant 3 + 377: TypePointer Uniform 18(fvec4) + 381: 8(float) Constant 1090519040 + 383: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 49 14 43 16 + 387: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 49 14 43 16 + 388: 48(bool) ConstantFalse + 391: 11(int) Constant 105 + 397: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 49 14 43 16 + 400: 11(int) Constant 108 + 406: 11(int) Constant 113 + 407: TypePointer Function 90(ConstantsHSOutput) + 409: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 410 98 29 406 16 105 19 + 412: 86 ConstantComposite 223 223 223 223 + 413: 88 ConstantComposite 223 223 + 414:90(ConstantsHSOutput) ConstantComposite 412 413 + 416: 11(int) Constant 115 + 417: 206(int) Constant 2 + 425: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 49 14 43 16 + 426: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 49 14 43 16 + 432: 11(int) Constant 117 + 435: 11(int) Constant 118 + 438: 11(int) Constant 119 + 441: 11(int) Constant 120 + 444: 11(int) Constant 121 + 447: 11(int) Constant 122 + 452: 11(int) Constant 126 + 455: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 49 14 43 16 + 461: 11(int) Constant 128 + 471: 11(int) Constant 129 + 481: 11(int) Constant 130 + 491: 11(int) Constant 131 + 501: 11(int) Constant 132 + 509: 11(int) Constant 133 + 519: 11(int) Constant 139 + 522: 11(int) Constant 140 + 525: 11(int) Constant 141 + 528: 11(int) Constant 142 + 531: 11(int) Constant 143 + 534: 11(int) Constant 144 + 538: 11(int) Constant 148 + 545: 11(int) Constant 159 + 546: TypePointer Function 113(HSOutput) + 548: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 410 120 29 545 16 128 19 + 550: 18(fvec4) ConstantComposite 223 223 223 223 + 551: 45(fvec2) ConstantComposite 223 223 + 552:113(HSOutput) ConstantComposite 550 224 551 + 554: 11(int) Constant 160 + 560: 11(int) Constant 161 + 562: TypePointer Function 67(fvec3) + 567: 11(int) Constant 162 + 573: 11(int) Constant 163 + 578: TypeArray 18(fvec4) 19 + 579: TypePointer Input 578 + 580(patch.Pos): 579(ptr) Variable Input + 581: TypePointer Input 18(fvec4) + 585: TypeArray 67(fvec3) 19 + 586: TypePointer Input 585 +587(patch.Normal): 586(ptr) Variable Input + 588: TypePointer Input 67(fvec3) + 592: TypeArray 45(fvec2) 19 + 593: TypePointer Input 592 + 594(patch.UV): 593(ptr) Variable Input + 595: TypePointer Input 45(fvec2) + 627: TypePointer Input 11(int) +628(InvocationID): 627(ptr) Variable Input + 636: TypePointer Output 578 +637(@entryPointOutput.Pos): 636(ptr) Variable Output + 641: TypePointer Output 18(fvec4) + 643: TypePointer Output 585 +644(@entryPointOutput.Normal): 643(ptr) Variable Output + 648: TypePointer Output 67(fvec3) + 650: TypePointer Output 592 +651(@entryPointOutput.UV): 650(ptr) Variable Output + 655: TypePointer Output 45(fvec2) + 665: TypePointer Output 86 +666(@patchConstantOutput.TessLevelOuter): 665(ptr) Variable Output + 669: TypePointer Output 8(float) + 680: TypePointer Output 88 +681(@patchConstantOutput.TessLevelInner): 680(ptr) Variable Output + Line 1 158 1 + 6(main): 4 Function None 5 + 7: Label + 577(patch): 85(ptr) Variable Function +626(InvocationID): 112(ptr) Variable Function +630(flattenTemp): 546(ptr) Variable Function + 631(param): 85(ptr) Variable Function + 633(param): 112(ptr) Variable Function +661(@patchConstantResult): 407(ptr) Variable Function + 662(param): 85(ptr) Variable Function + Line 1 158 0 + 582: 581(ptr) AccessChain 580(patch.Pos) 209 + 583: 18(fvec4) Load 582 + 584: 21(ptr) AccessChain 577(patch) 209 209 + Store 584 583 + 589: 588(ptr) AccessChain 587(patch.Normal) 209 + 590: 67(fvec3) Load 589 + 591: 562(ptr) AccessChain 577(patch) 209 210 + Store 591 590 + 596: 595(ptr) AccessChain 594(patch.UV) 209 + 597: 45(fvec2) Load 596 + 598: 47(ptr) AccessChain 577(patch) 209 417 + Store 598 597 + 599: 581(ptr) AccessChain 580(patch.Pos) 210 + 600: 18(fvec4) Load 599 + 601: 21(ptr) AccessChain 577(patch) 210 209 + Store 601 600 + 602: 588(ptr) AccessChain 587(patch.Normal) 210 + 603: 67(fvec3) Load 602 + 604: 562(ptr) AccessChain 577(patch) 210 210 + Store 604 603 + 605: 595(ptr) AccessChain 594(patch.UV) 210 + 606: 45(fvec2) Load 605 + 607: 47(ptr) AccessChain 577(patch) 210 417 + Store 607 606 + 608: 581(ptr) AccessChain 580(patch.Pos) 417 + 609: 18(fvec4) Load 608 + 610: 21(ptr) AccessChain 577(patch) 417 209 + Store 610 609 + 611: 588(ptr) AccessChain 587(patch.Normal) 417 + 612: 67(fvec3) Load 611 + 613: 562(ptr) AccessChain 577(patch) 417 210 + Store 613 612 + 614: 595(ptr) AccessChain 594(patch.UV) 417 + 615: 45(fvec2) Load 614 + 616: 47(ptr) AccessChain 577(patch) 417 417 + Store 616 615 + 617: 581(ptr) AccessChain 580(patch.Pos) 375 + 618: 18(fvec4) Load 617 + 619: 21(ptr) AccessChain 577(patch) 375 209 + Store 619 618 + 620: 588(ptr) AccessChain 587(patch.Normal) 375 + 621: 67(fvec3) Load 620 + 622: 562(ptr) AccessChain 577(patch) 375 210 + Store 622 621 + 623: 595(ptr) AccessChain 594(patch.UV) 375 + 624: 45(fvec2) Load 623 + 625: 47(ptr) AccessChain 577(patch) 375 417 + Store 625 624 + 629: 11(int) Load 628(InvocationID) + Store 626(InvocationID) 629 + 632: 83 Load 577(patch) + Store 631(param) 632 + 634: 11(int) Load 626(InvocationID) + Store 633(param) 634 + 635:113(HSOutput) FunctionCall 126(@main(struct-VSOutput-vf4-vf3-vf21[4];u1;) 631(param) 633(param) + Store 630(flattenTemp) 635 + 638: 11(int) Load 628(InvocationID) + 639: 21(ptr) AccessChain 630(flattenTemp) 209 + 640: 18(fvec4) Load 639 + 642: 641(ptr) AccessChain 637(@entryPointOutput.Pos) 638 + Store 642 640 + 645: 11(int) Load 628(InvocationID) + 646: 562(ptr) AccessChain 630(flattenTemp) 210 + 647: 67(fvec3) Load 646 + 649: 648(ptr) AccessChain 644(@entryPointOutput.Normal) 645 + Store 649 647 + 652: 11(int) Load 628(InvocationID) + 653: 47(ptr) AccessChain 630(flattenTemp) 417 + 654: 45(fvec2) Load 653 + 656: 655(ptr) AccessChain 651(@entryPointOutput.UV) 652 + Store 656 654 + ControlBarrier 43 19 16 + 657: 11(int) Load 628(InvocationID) + 658: 48(bool) IEqual 657 209 + SelectionMerge 660 None + BranchConditional 658 659 660 + 659: Label + 663: 83 Load 577(patch) + Store 662(param) 663 + 664:90(ConstantsHSOutput) FunctionCall 103(ConstantsHS(struct-VSOutput-vf4-vf3-vf21[4];) 662(param) + Store 661(@patchConstantResult) 664 + 667: 152(ptr) AccessChain 661(@patchConstantResult) 209 209 + 668: 8(float) Load 667 + 670: 669(ptr) AccessChain 666(@patchConstantOutput.TessLevelOuter) 209 + Store 670 668 + 671: 152(ptr) AccessChain 661(@patchConstantResult) 209 210 + 672: 8(float) Load 671 + 673: 669(ptr) AccessChain 666(@patchConstantOutput.TessLevelOuter) 210 + Store 673 672 + 674: 152(ptr) AccessChain 661(@patchConstantResult) 209 417 + 675: 8(float) Load 674 + 676: 669(ptr) AccessChain 666(@patchConstantOutput.TessLevelOuter) 417 + Store 676 675 + 677: 152(ptr) AccessChain 661(@patchConstantResult) 209 375 + 678: 8(float) Load 677 + 679: 669(ptr) AccessChain 666(@patchConstantOutput.TessLevelOuter) 375 + Store 679 678 + 682: 152(ptr) AccessChain 661(@patchConstantResult) 210 209 + 683: 8(float) Load 682 + 684: 669(ptr) AccessChain 681(@patchConstantOutput.TessLevelInner) 209 + Store 684 683 + 685: 152(ptr) AccessChain 661(@patchConstantResult) 210 210 + 686: 8(float) Load 685 + 687: 669(ptr) AccessChain 681(@patchConstantOutput.TessLevelInner) 210 + Store 687 686 + Branch 660 + 660: Label Return FunctionEnd -25(screenSpaceTessFactor(vf4;vf4;): 7(float) Function None 21 - 23(p0): 20(ptr) FunctionParameter - 24(p1): 20(ptr) FunctionParameter - 33: Label - 137(midPoint): 20(ptr) Variable Function - 148(radius): 147(ptr) Variable Function - 158(v0): 20(ptr) Variable Function - 210(clip0): 20(ptr) Variable Function - 227(clip1): 20(ptr) Variable Function - 34: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 27 - 35: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 28 15 15 15 15 - 38: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 36 23(p0) 39 - 43: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 40 24(p1) 39 - 136: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 27 25(screenSpaceTessFactor(vf4;vf4;) - 141: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 138 137(midPoint) 39 - 143: 17(fvec4) Load 23(p0) - 144: 17(fvec4) Load 24(p1) - 145: 17(fvec4) FAdd 143 144 - 146: 17(fvec4) VectorTimesScalar 145 142 - Store 137(midPoint) 146 - 152: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 149 148(radius) 39 - 153: 17(fvec4) Load 23(p0) - 154: 17(fvec4) Load 24(p1) - 155: 7(float) ExtInst 2(GLSL.std.450) 67(Distance) 153 154 - 157: 7(float) FDiv 155 156 - Store 148(radius) 157 - 162: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 159 158(v0) 39 - 163: 17(fvec4) Load 137(midPoint) - 207: 206(ptr) AccessChain 198 204 205 - 208: 164 Load 207 - 209: 17(fvec4) VectorTimesMatrix 163 208 - Store 158(v0) 209 - 214: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 211 210(clip0) 39 - 215: 17(fvec4) Load 158(v0) - 216: 7(float) Load 148(radius) - 219: 7(float) CompositeExtract 218 0 - 220: 7(float) CompositeExtract 218 1 - 221: 7(float) CompositeExtract 218 2 - 222: 17(fvec4) CompositeConstruct 216 219 220 221 - 223: 17(fvec4) FSub 215 222 - 224: 206(ptr) AccessChain 198 204 204 - 225: 164 Load 224 - 226: 17(fvec4) VectorTimesMatrix 223 225 - Store 210(clip0) 226 - 231: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 228 227(clip1) 39 - 232: 17(fvec4) Load 158(v0) - 233: 7(float) Load 148(radius) - 234: 7(float) CompositeExtract 218 0 - 235: 7(float) CompositeExtract 218 1 - 236: 7(float) CompositeExtract 218 2 - 237: 17(fvec4) CompositeConstruct 233 234 235 236 - 238: 17(fvec4) FAdd 232 237 - 239: 206(ptr) AccessChain 198 204 204 - 240: 164 Load 239 - 241: 17(fvec4) VectorTimesMatrix 238 240 - Store 227(clip1) 241 - 242: 147(ptr) AccessChain 210(clip0) 16 - 243: 7(float) Load 242 - 244: 17(fvec4) Load 210(clip0) - 245: 17(fvec4) CompositeConstruct 243 243 243 243 - 246: 17(fvec4) FDiv 244 245 - Store 210(clip0) 246 - 247: 147(ptr) AccessChain 227(clip1) 16 - 248: 7(float) Load 247 - 249: 17(fvec4) Load 227(clip1) - 250: 17(fvec4) CompositeConstruct 248 248 248 248 - 251: 17(fvec4) FDiv 249 250 - Store 227(clip1) 251 - 254: 253(ptr) AccessChain 198 204 252 - 255: 44(fvec2) Load 254 - 256: 17(fvec4) Load 210(clip0) - 257: 44(fvec2) VectorShuffle 256 256 0 1 - 258: 44(fvec2) FMul 257 255 - 259: 147(ptr) AccessChain 210(clip0) 15 - 260: 7(float) CompositeExtract 258 0 - Store 259 260 - 261: 147(ptr) AccessChain 210(clip0) 31 - 262: 7(float) CompositeExtract 258 1 - Store 261 262 - 263: 253(ptr) AccessChain 198 204 252 - 264: 44(fvec2) Load 263 - 265: 17(fvec4) Load 227(clip1) - 266: 44(fvec2) VectorShuffle 265 265 0 1 - 267: 44(fvec2) FMul 266 264 - 268: 147(ptr) AccessChain 227(clip1) 15 - 269: 7(float) CompositeExtract 267 0 - Store 268 269 - 270: 147(ptr) AccessChain 227(clip1) 31 - 271: 7(float) CompositeExtract 267 1 - Store 270 271 - 272: 17(fvec4) Load 210(clip0) - 273: 17(fvec4) Load 227(clip1) - 274: 7(float) ExtInst 2(GLSL.std.450) 67(Distance) 272 273 - 277: 276(ptr) AccessChain 198 204 275 - 278: 7(float) Load 277 - 279: 7(float) FDiv 274 278 - 281: 276(ptr) AccessChain 198 204 280 - 282: 7(float) Load 281 - 283: 7(float) FMul 279 282 - 286: 7(float) ExtInst 2(GLSL.std.450) 43(FClamp) 283 284 285 - ReturnValue 286 + Line 1 65 1 +26(screenSpaceTessFactor(vf4;vf4;): 8(float) Function None 22 + 24(p0): 21(ptr) FunctionParameter + 25(p1): 21(ptr) FunctionParameter + 34: Label + 141(midPoint): 21(ptr) Variable Function + 153(radius): 152(ptr) Variable Function + 164(v0): 21(ptr) Variable Function + 217(clip0): 21(ptr) Variable Function + 235(clip1): 21(ptr) Variable Function + 35: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 28 + 36: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 16 16 16 16 + 39: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 37 24(p0) 40 + 44: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 41 25(p1) 40 + 137: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 28 26(screenSpaceTessFactor(vf4;vf4;) + 138: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 28 + 139: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 140 140 16 16 + 144: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 142 141(midPoint) 40 + 146: 18(fvec4) Load 24(p0) + 147: 18(fvec4) Load 25(p1) + 148: 18(fvec4) FAdd 146 147 + 149: 18(fvec4) VectorTimesScalar 148 145 + Store 141(midPoint) 149 + 150: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 151 151 16 16 + 156: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 154 153(radius) 40 + 157: 18(fvec4) Load 24(p0) + 158: 18(fvec4) Load 25(p1) + 159: 8(float) ExtInst 3(GLSL.std.450) 67(Distance) 157 158 + 161: 8(float) FDiv 159 160 + Store 153(radius) 161 + 162: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 163 163 16 16 + 167: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 165 164(v0) 40 + 168: 18(fvec4) Load 141(midPoint) + 212: 211(ptr) AccessChain 203 209 210 + 213: 169 Load 212 + 214: 18(fvec4) VectorTimesMatrix 168 213 + Store 164(v0) 214 + 215: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 216 216 16 16 + 220: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 218 217(clip0) 40 + 221: 18(fvec4) Load 164(v0) + 222: 8(float) Load 153(radius) + 225: 8(float) CompositeExtract 224 0 + 226: 8(float) CompositeExtract 224 1 + 227: 8(float) CompositeExtract 224 2 + 228: 18(fvec4) CompositeConstruct 222 225 226 227 + 229: 18(fvec4) FSub 221 228 + 230: 211(ptr) AccessChain 203 209 209 + 231: 169 Load 230 + 232: 18(fvec4) VectorTimesMatrix 229 231 + Store 217(clip0) 232 + 233: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 234 234 16 16 + 238: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 236 235(clip1) 40 + 239: 18(fvec4) Load 164(v0) + 240: 8(float) Load 153(radius) + 241: 8(float) CompositeExtract 224 0 + 242: 8(float) CompositeExtract 224 1 + 243: 8(float) CompositeExtract 224 2 + 244: 18(fvec4) CompositeConstruct 240 241 242 243 + 245: 18(fvec4) FAdd 239 244 + 246: 211(ptr) AccessChain 203 209 209 + 247: 169 Load 246 + 248: 18(fvec4) VectorTimesMatrix 245 247 + Store 235(clip1) 248 + 249: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 250 250 16 16 + 251: 152(ptr) AccessChain 217(clip0) 17 + 252: 8(float) Load 251 + 253: 18(fvec4) Load 217(clip0) + 254: 18(fvec4) CompositeConstruct 252 252 252 252 + 255: 18(fvec4) FDiv 253 254 + Store 217(clip0) 255 + 256: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 257 257 16 16 + 258: 152(ptr) AccessChain 235(clip1) 17 + 259: 8(float) Load 258 + 260: 18(fvec4) Load 235(clip1) + 261: 18(fvec4) CompositeConstruct 259 259 259 259 + 262: 18(fvec4) FDiv 260 261 + Store 235(clip1) 262 + 263: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 264 264 16 16 + 267: 266(ptr) AccessChain 203 209 265 + 268: 45(fvec2) Load 267 + 269: 18(fvec4) Load 217(clip0) + 270: 45(fvec2) VectorShuffle 269 269 0 1 + 271: 45(fvec2) FMul 270 268 + 272: 152(ptr) AccessChain 217(clip0) 16 + 273: 8(float) CompositeExtract 271 0 + Store 272 273 + 274: 152(ptr) AccessChain 217(clip0) 32 + 275: 8(float) CompositeExtract 271 1 + Store 274 275 + 276: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 277 277 16 16 + 278: 266(ptr) AccessChain 203 209 265 + 279: 45(fvec2) Load 278 + 280: 18(fvec4) Load 235(clip1) + 281: 45(fvec2) VectorShuffle 280 280 0 1 + 282: 45(fvec2) FMul 281 279 + 283: 152(ptr) AccessChain 235(clip1) 16 + 284: 8(float) CompositeExtract 282 0 + Store 283 284 + 285: 152(ptr) AccessChain 235(clip1) 32 + 286: 8(float) CompositeExtract 282 1 + Store 285 286 + 287: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 288 288 16 16 + 289: 18(fvec4) Load 217(clip0) + 290: 18(fvec4) Load 235(clip1) + 291: 8(float) ExtInst 3(GLSL.std.450) 67(Distance) 289 290 + 294: 293(ptr) AccessChain 203 209 292 + 295: 8(float) Load 294 + 296: 8(float) FDiv 291 295 + 298: 293(ptr) AccessChain 203 209 297 + 299: 8(float) Load 298 + 300: 8(float) FMul 296 299 + 303: 8(float) ExtInst 3(GLSL.std.450) 43(FClamp) 300 301 302 + ReturnValue 303 FunctionEnd -54(frustumCheck(vf4;vf2;): 47(bool) Function None 50 - 52(Pos): 20(ptr) FunctionParameter - 53(inUV): 46(ptr) FunctionParameter - 57: Label - 290(pos): 20(ptr) Variable Function - 333(i): 332(ptr) Variable Function - 58: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 56 - 59: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 28 15 15 15 15 - 62: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 60 52(Pos) 39 - 65: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 63 53(inUV) 39 - 289: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 56 54(frustumCheck(vf4;vf2;) - 294: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 291 290(pos) 39 - 295: 17(fvec4) Load 52(Pos) - Store 290(pos) 295 - 306: 296 Load 303(textureHeight) - 315: 307 Load 312(samplerHeight) - 320: 316 SampledImage 306 315 - 321: 44(fvec2) Load 53(inUV) - 322: 17(fvec4) ImageSampleExplicitLod 320 321 Lod 217 - 323: 7(float) CompositeExtract 322 0 - 325: 276(ptr) AccessChain 198 204 324 - 326: 7(float) Load 325 - 327: 7(float) FMul 323 326 - 328: 147(ptr) AccessChain 290(pos) 31 - 329: 7(float) Load 328 - 330: 7(float) FSub 329 327 - 331: 147(ptr) AccessChain 290(pos) 31 - Store 331 330 - 337: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 334 333(i) 39 - Store 333(i) 204 - Branch 338 - 338: Label - LoopMerge 340 341 None - Branch 342 - 342: Label - 343: 201(int) Load 333(i) - 345: 47(bool) SLessThan 343 252 - BranchConditional 345 339 340 - 339: Label - 346: 17(fvec4) Load 290(pos) - 348: 201(int) Load 333(i) - 350: 349(ptr) AccessChain 198 204 347 348 - 351: 17(fvec4) Load 350 - 352: 7(float) Dot 346 351 - 354: 7(float) FAdd 352 353 - 356: 47(bool) FOrdLessThan 354 217 - SelectionMerge 358 None - BranchConditional 356 357 358 - 357: Label - ReturnValue 360 - 358: Label - Branch 341 - 341: Label - 362: 201(int) Load 333(i) - 363: 201(int) IAdd 362 205 - Store 333(i) 363 - Branch 338 - 340: Label - ReturnValue 166 + Line 1 95 1 +55(frustumCheck(vf4;vf2;): 48(bool) Function None 51 + 53(Pos): 21(ptr) FunctionParameter + 54(inUV): 47(ptr) FunctionParameter + 58: Label + 310(pos): 21(ptr) Variable Function + 355(i): 354(ptr) Variable Function + 59: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 57 + 60: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 16 16 16 16 + 63: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 61 53(Pos) 40 + 66: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 64 54(inUV) 40 + 306: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 57 55(frustumCheck(vf4;vf2;) + 307: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 57 + 308: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 309 309 16 16 + 313: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 311 310(pos) 40 + 314: 18(fvec4) Load 53(Pos) + Store 310(pos) 314 + 315: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 316 316 16 16 + 326: 317 Load 323(textureHeight) + 335: 327 Load 332(samplerHeight) + 340: 336 SampledImage 326 335 + 341: 45(fvec2) Load 54(inUV) + 342: 18(fvec4) ImageSampleExplicitLod 340 341 Lod 223 + 343: 8(float) CompositeExtract 342 0 + 345: 293(ptr) AccessChain 203 209 344 + 346: 8(float) Load 345 + 347: 8(float) FMul 343 346 + 348: 152(ptr) AccessChain 310(pos) 32 + 349: 8(float) Load 348 + 350: 8(float) FSub 349 347 + 351: 152(ptr) AccessChain 310(pos) 32 + Store 351 350 + 352: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 353 353 16 16 + 358: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 356 355(i) 40 + Store 355(i) 209 + Branch 359 + 359: Label + 363: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 57 + 364: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 353 353 16 16 + LoopMerge 361 362 None + Branch 365 + 365: Label + 366: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 57 + 367: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 353 353 16 16 + 368: 206(int) Load 355(i) + 370: 48(bool) SLessThan 368 265 + BranchConditional 370 360 361 + 360: Label + 371: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 57 + 372: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 373 373 16 16 + 374: 18(fvec4) Load 310(pos) + 376: 206(int) Load 355(i) + 378: 377(ptr) AccessChain 203 209 375 376 + 379: 18(fvec4) Load 378 + 380: 8(float) Dot 374 379 + 382: 8(float) FAdd 380 381 + 384: 48(bool) FOrdLessThan 382 223 + SelectionMerge 386 None + BranchConditional 384 385 386 + 385: Label + 389: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 57 + 390: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 391 391 16 16 + ReturnValue 388 + 386: Label + Branch 362 + 362: Label + 393: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 57 + 394: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 353 353 16 16 + 395: 206(int) Load 355(i) + 396: 206(int) IAdd 395 210 + Store 355(i) 396 + Branch 359 + 361: Label + 398: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 57 + 399: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 400 400 16 16 + ReturnValue 171 FunctionEnd -102(ConstantsHS(struct-VSOutput-vf4-vf3-vf21[4];):89(ConstantsHSOutput) Function None 99 - 101(patch): 84(ptr) FunctionParameter - 105: Label - 369(output): 368(ptr) Variable Function - 378(param): 20(ptr) Variable Function - 381(param): 46(ptr) Variable Function - 403(param): 20(ptr) Variable Function - 406(param): 20(ptr) Variable Function - 411(param): 20(ptr) Variable Function - 414(param): 20(ptr) Variable Function - 419(param): 20(ptr) Variable Function - 422(param): 20(ptr) Variable Function - 427(param): 20(ptr) Variable Function - 430(param): 20(ptr) Variable Function - 106: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 104 - 107: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 28 15 15 15 15 - 110: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 108 101(patch) 39 - 367: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 104 102(ConstantsHS(struct-VSOutput-vf4-vf3-vf21[4];) - 373: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 370 369(output) 39 - Store 369(output) 376 - 379: 20(ptr) AccessChain 101(patch) 204 204 - 380: 17(fvec4) Load 379 - Store 378(param) 380 - 382: 46(ptr) AccessChain 101(patch) 204 377 - 383: 44(fvec2) Load 382 - Store 381(param) 383 - 384: 47(bool) FunctionCall 54(frustumCheck(vf4;vf2;) 378(param) 381(param) - 387: 47(bool) LogicalNot 384 - SelectionMerge 389 None - BranchConditional 387 388 396 - 388: Label - 390: 147(ptr) AccessChain 369(output) 205 204 - Store 390 217 - 391: 147(ptr) AccessChain 369(output) 205 205 - Store 391 217 - 392: 147(ptr) AccessChain 369(output) 204 204 - Store 392 217 - 393: 147(ptr) AccessChain 369(output) 204 205 - Store 393 217 - 394: 147(ptr) AccessChain 369(output) 204 377 - Store 394 217 - 395: 147(ptr) AccessChain 369(output) 204 347 - Store 395 217 - Branch 389 - 396: Label - 397: 276(ptr) AccessChain 198 204 280 - 398: 7(float) Load 397 - 400: 47(bool) FOrdGreaterThan 398 217 - SelectionMerge 402 None - BranchConditional 400 401 447 - 401: Label - 404: 20(ptr) AccessChain 101(patch) 347 204 - 405: 17(fvec4) Load 404 - Store 403(param) 405 - 407: 20(ptr) AccessChain 101(patch) 204 204 - 408: 17(fvec4) Load 407 - Store 406(param) 408 - 409: 7(float) FunctionCall 25(screenSpaceTessFactor(vf4;vf4;) 403(param) 406(param) - 410: 147(ptr) AccessChain 369(output) 204 204 - Store 410 409 - 412: 20(ptr) AccessChain 101(patch) 204 204 - 413: 17(fvec4) Load 412 - Store 411(param) 413 - 415: 20(ptr) AccessChain 101(patch) 205 204 - 416: 17(fvec4) Load 415 - Store 414(param) 416 - 417: 7(float) FunctionCall 25(screenSpaceTessFactor(vf4;vf4;) 411(param) 414(param) - 418: 147(ptr) AccessChain 369(output) 204 205 - Store 418 417 - 420: 20(ptr) AccessChain 101(patch) 205 204 - 421: 17(fvec4) Load 420 - Store 419(param) 421 - 423: 20(ptr) AccessChain 101(patch) 377 204 - 424: 17(fvec4) Load 423 - Store 422(param) 424 - 425: 7(float) FunctionCall 25(screenSpaceTessFactor(vf4;vf4;) 419(param) 422(param) - 426: 147(ptr) AccessChain 369(output) 204 377 - Store 426 425 - 428: 20(ptr) AccessChain 101(patch) 377 204 - 429: 17(fvec4) Load 428 - Store 427(param) 429 - 431: 20(ptr) AccessChain 101(patch) 347 204 - 432: 17(fvec4) Load 431 - Store 430(param) 432 - 433: 7(float) FunctionCall 25(screenSpaceTessFactor(vf4;vf4;) 427(param) 430(param) - 434: 147(ptr) AccessChain 369(output) 204 347 - Store 434 433 - 435: 147(ptr) AccessChain 369(output) 204 204 - 436: 7(float) Load 435 - 437: 147(ptr) AccessChain 369(output) 204 347 - 438: 7(float) Load 437 - 439: 7(float) ExtInst 2(GLSL.std.450) 46(FMix) 436 438 142 - 440: 147(ptr) AccessChain 369(output) 205 204 - Store 440 439 - 441: 147(ptr) AccessChain 369(output) 204 377 - 442: 7(float) Load 441 - 443: 147(ptr) AccessChain 369(output) 204 205 - 444: 7(float) Load 443 - 445: 7(float) ExtInst 2(GLSL.std.450) 46(FMix) 442 444 142 - 446: 147(ptr) AccessChain 369(output) 205 205 - Store 446 445 - Branch 402 - 447: Label - 448: 147(ptr) AccessChain 369(output) 205 204 - Store 448 284 - 449: 147(ptr) AccessChain 369(output) 205 205 - Store 449 284 - 450: 147(ptr) AccessChain 369(output) 204 204 - Store 450 284 - 451: 147(ptr) AccessChain 369(output) 204 205 - Store 451 284 - 452: 147(ptr) AccessChain 369(output) 204 377 - Store 452 284 - 453: 147(ptr) AccessChain 369(output) 204 347 - Store 453 284 - Branch 402 - 402: Label - Branch 389 - 389: Label - 454:89(ConstantsHSOutput) Load 369(output) - ReturnValue 454 + Line 1 112 1 +103(ConstantsHS(struct-VSOutput-vf4-vf3-vf21[4];):90(ConstantsHSOutput) Function None 100 + 102(patch): 85(ptr) FunctionParameter + 106: Label + 408(output): 407(ptr) Variable Function + 418(param): 21(ptr) Variable Function + 421(param): 47(ptr) Variable Function + 462(param): 21(ptr) Variable Function + 465(param): 21(ptr) Variable Function + 472(param): 21(ptr) Variable Function + 475(param): 21(ptr) Variable Function + 482(param): 21(ptr) Variable Function + 485(param): 21(ptr) Variable Function + 492(param): 21(ptr) Variable Function + 495(param): 21(ptr) Variable Function + 107: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 105 + 108: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 16 16 16 16 + 111: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 109 102(patch) 40 + 403: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 105 103(ConstantsHS(struct-VSOutput-vf4-vf3-vf21[4];) + 404: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 105 + 405: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 406 406 16 16 + 411: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 409 408(output) 40 + Store 408(output) 414 + 415: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 416 416 16 16 + 419: 21(ptr) AccessChain 102(patch) 209 209 + 420: 18(fvec4) Load 419 + Store 418(param) 420 + 422: 47(ptr) AccessChain 102(patch) 209 417 + 423: 45(fvec2) Load 422 + Store 421(param) 423 + 424: 48(bool) FunctionCall 55(frustumCheck(vf4;vf2;) 418(param) 421(param) + 427: 48(bool) LogicalNot 424 + SelectionMerge 429 None + BranchConditional 427 428 449 + 428: Label + 430: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 105 + 431: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 432 432 16 16 + 433: 152(ptr) AccessChain 408(output) 210 209 + Store 433 223 + 434: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 435 435 16 16 + 436: 152(ptr) AccessChain 408(output) 210 210 + Store 436 223 + 437: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 438 438 16 16 + 439: 152(ptr) AccessChain 408(output) 209 209 + Store 439 223 + 440: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 441 441 16 16 + 442: 152(ptr) AccessChain 408(output) 209 210 + Store 442 223 + 443: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 444 444 16 16 + 445: 152(ptr) AccessChain 408(output) 209 417 + Store 445 223 + 446: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 447 447 16 16 + 448: 152(ptr) AccessChain 408(output) 209 375 + Store 448 223 + Branch 429 + 449: Label + 450: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 105 + 451: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 452 452 16 16 + 453: 293(ptr) AccessChain 203 209 297 + 454: 8(float) Load 453 + 456: 48(bool) FOrdGreaterThan 454 223 + SelectionMerge 458 None + BranchConditional 456 457 516 + 457: Label + 459: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 105 + 460: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 461 461 16 16 + 463: 21(ptr) AccessChain 102(patch) 375 209 + 464: 18(fvec4) Load 463 + Store 462(param) 464 + 466: 21(ptr) AccessChain 102(patch) 209 209 + 467: 18(fvec4) Load 466 + Store 465(param) 467 + 468: 8(float) FunctionCall 26(screenSpaceTessFactor(vf4;vf4;) 462(param) 465(param) + 469: 152(ptr) AccessChain 408(output) 209 209 + Store 469 468 + 470: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 471 471 16 16 + 473: 21(ptr) AccessChain 102(patch) 209 209 + 474: 18(fvec4) Load 473 + Store 472(param) 474 + 476: 21(ptr) AccessChain 102(patch) 210 209 + 477: 18(fvec4) Load 476 + Store 475(param) 477 + 478: 8(float) FunctionCall 26(screenSpaceTessFactor(vf4;vf4;) 472(param) 475(param) + 479: 152(ptr) AccessChain 408(output) 209 210 + Store 479 478 + 480: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 481 481 16 16 + 483: 21(ptr) AccessChain 102(patch) 210 209 + 484: 18(fvec4) Load 483 + Store 482(param) 484 + 486: 21(ptr) AccessChain 102(patch) 417 209 + 487: 18(fvec4) Load 486 + Store 485(param) 487 + 488: 8(float) FunctionCall 26(screenSpaceTessFactor(vf4;vf4;) 482(param) 485(param) + 489: 152(ptr) AccessChain 408(output) 209 417 + Store 489 488 + 490: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 491 491 16 16 + 493: 21(ptr) AccessChain 102(patch) 417 209 + 494: 18(fvec4) Load 493 + Store 492(param) 494 + 496: 21(ptr) AccessChain 102(patch) 375 209 + 497: 18(fvec4) Load 496 + Store 495(param) 497 + 498: 8(float) FunctionCall 26(screenSpaceTessFactor(vf4;vf4;) 492(param) 495(param) + 499: 152(ptr) AccessChain 408(output) 209 375 + Store 499 498 + 500: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 501 501 16 16 + 502: 152(ptr) AccessChain 408(output) 209 209 + 503: 8(float) Load 502 + 504: 152(ptr) AccessChain 408(output) 209 375 + 505: 8(float) Load 504 + 506: 8(float) ExtInst 3(GLSL.std.450) 46(FMix) 503 505 145 + 507: 152(ptr) AccessChain 408(output) 210 209 + Store 507 506 + 508: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 509 509 16 16 + 510: 152(ptr) AccessChain 408(output) 209 417 + 511: 8(float) Load 510 + 512: 152(ptr) AccessChain 408(output) 209 210 + 513: 8(float) Load 512 + 514: 8(float) ExtInst 3(GLSL.std.450) 46(FMix) 511 513 145 + 515: 152(ptr) AccessChain 408(output) 210 210 + Store 515 514 + Branch 458 + 516: Label + 517: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 105 + 518: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 519 519 16 16 + 520: 152(ptr) AccessChain 408(output) 210 209 + Store 520 301 + 521: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 522 522 16 16 + 523: 152(ptr) AccessChain 408(output) 210 210 + Store 523 301 + 524: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 525 525 16 16 + 526: 152(ptr) AccessChain 408(output) 209 209 + Store 526 301 + 527: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 528 528 16 16 + 529: 152(ptr) AccessChain 408(output) 209 210 + Store 529 301 + 530: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 531 531 16 16 + 532: 152(ptr) AccessChain 408(output) 209 417 + Store 532 301 + 533: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 534 534 16 16 + 535: 152(ptr) AccessChain 408(output) 209 375 + Store 535 301 + Branch 458 + 458: Label + Branch 429 + 429: Label + 536: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 105 + 537: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 538 538 16 16 + 539:90(ConstantsHSOutput) Load 408(output) + ReturnValue 539 FunctionEnd -125(@main(struct-VSOutput-vf4-vf3-vf21[4];u1;):112(HSOutput) Function None 121 - 123(patch): 84(ptr) FunctionParameter -124(InvocationID): 111(ptr) FunctionParameter - 128: Label - 459(output): 458(ptr) Variable Function - 129: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 127 - 130: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 28 15 15 15 15 - 132: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 131 123(patch) 39 - 135: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 133 124(InvocationID) 39 - 457: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 127 125(@main(struct-VSOutput-vf4-vf3-vf21[4];u1;) - 462: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 460 459(output) 39 - Store 459(output) 465 - 466: 10(int) Load 124(InvocationID) - 467: 20(ptr) AccessChain 123(patch) 466 204 - 468: 17(fvec4) Load 467 - 469: 20(ptr) AccessChain 459(output) 204 - Store 469 468 - 470: 10(int) Load 124(InvocationID) - 472: 471(ptr) AccessChain 123(patch) 470 205 - 473: 66(fvec3) Load 472 - 474: 471(ptr) AccessChain 459(output) 205 - Store 474 473 - 475: 10(int) Load 124(InvocationID) - 476: 46(ptr) AccessChain 123(patch) 475 377 - 477: 44(fvec2) Load 476 - 478: 46(ptr) AccessChain 459(output) 377 - Store 478 477 - 479:112(HSOutput) Load 459(output) - ReturnValue 479 + Line 1 158 1 +126(@main(struct-VSOutput-vf4-vf3-vf21[4];u1;):113(HSOutput) Function None 122 + 124(patch): 85(ptr) FunctionParameter +125(InvocationID): 112(ptr) FunctionParameter + 129: Label + 547(output): 546(ptr) Variable Function + 130: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 128 + 131: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 16 16 16 16 + 133: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 132 124(patch) 40 + 136: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 134 125(InvocationID) 40 + 542: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 128 126(@main(struct-VSOutput-vf4-vf3-vf21[4];u1;) + 543: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 128 + 544: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 545 545 16 16 + 549: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 548 547(output) 40 + Store 547(output) 552 + 553: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 554 554 16 16 + 555: 11(int) Load 125(InvocationID) + 556: 21(ptr) AccessChain 124(patch) 555 209 + 557: 18(fvec4) Load 556 + 558: 21(ptr) AccessChain 547(output) 209 + Store 558 557 + 559: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 560 560 16 16 + 561: 11(int) Load 125(InvocationID) + 563: 562(ptr) AccessChain 124(patch) 561 210 + 564: 67(fvec3) Load 563 + 565: 562(ptr) AccessChain 547(output) 210 + Store 565 564 + 566: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 567 567 16 16 + 568: 11(int) Load 125(InvocationID) + 569: 47(ptr) AccessChain 124(patch) 568 417 + 570: 45(fvec2) Load 569 + 571: 47(ptr) AccessChain 547(output) 417 + Store 571 570 + 572: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 573 573 16 16 + 574:113(HSOutput) Load 547(output) + ReturnValue 574 FunctionEnd diff --git a/Test/baseResults/spv.debuginfo.hlsl.tese.out b/Test/baseResults/spv.debuginfo.hlsl.tese.out index 42c0f718..d5b571c8 100644 --- a/Test/baseResults/spv.debuginfo.hlsl.tese.out +++ b/Test/baseResults/spv.debuginfo.hlsl.tese.out @@ -1,589 +1,626 @@ spv.debuginfo.hlsl.tese -Validation failed // Module Version 10000 // Generated by (magic number): 8000b -// Id's are bound by 434 +// Id's are bound by 461 Capability Tessellation Extension "SPV_KHR_non_semantic_info" - 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" - 2: ExtInstImport "GLSL.std.450" + 2: ExtInstImport "NonSemantic.Shader.DebugInfo.100" + 3: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 - EntryPoint TessellationEvaluation 5 "main" 325 340 349 358 365 371 411 415 419 422 425 428 431 - ExecutionMode 5 Quads - 9: String "float" - 12: String "uint" - 25: String "TessLevelOuter" - 27: String "" - 31: String "TessLevelInner" - 34: String "ConstantsHSOutput" - 48: String "Pos" - 51: String "Normal" - 55: String "UV" - 59: String "HSOutput" - 67: String "WorldPos" - 77: String "DSOutput" - 84: String "@main" - 90: String "input" - 94: String "TessCoord" - 97: String "patch" - 103: String "output" - 113: String "uv1" - 117: String "int" - 131: String "uv2" - 151: String "n1" - 162: String "n2" - 181: String "pos1" - 192: String "pos2" - 203: String "pos" - 214: String "type.2d.image" - 216: String "@type.2d.image" - 221: String "displacementMapTexture" - 226: String "type.sampler" - 227: String "@type.sampler" - 231: String "displacementMapSampler" - 235: String "type.sampled.image" - 236: String "@type.sampled.image" - 250: String "modelview" - 255: String "lightPos" - 259: String "frustumPlanes" - 262: String "tessellatedEdgeSize" - 266: String "viewportDim" - 270: String "UBO" - 273: String "ubo" - Name 5 "main" - Name 23 "ConstantsHSOutput" - MemberName 23(ConstantsHSOutput) 0 "TessLevelOuter" - MemberName 23(ConstantsHSOutput) 1 "TessLevelInner" - Name 46 "HSOutput" - MemberName 46(HSOutput) 0 "Pos" - MemberName 46(HSOutput) 1 "Normal" - MemberName 46(HSOutput) 2 "UV" - Name 62 "DSOutput" - MemberName 62(DSOutput) 0 "Pos" - MemberName 62(DSOutput) 1 "Normal" - MemberName 62(DSOutput) 2 "UV" - MemberName 62(DSOutput) 3 "ViewVec" - MemberName 62(DSOutput) 4 "LightVec" - MemberName 62(DSOutput) 5 "EyePos" - MemberName 62(DSOutput) 6 "WorldPos" - Name 83 "@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];" - Name 80 "input" - Name 81 "TessCoord" - Name 82 "patch" - Name 101 "output" - Name 111 "uv1" - Name 129 "uv2" - Name 149 "n1" - Name 160 "n2" - Name 179 "pos1" - Name 190 "pos2" - Name 201 "pos" - Name 219 "displacementMapTexture" - Name 229 "displacementMapSampler" - Name 248 "UBO" - MemberName 248(UBO) 0 "projection" - MemberName 248(UBO) 1 "modelview" - MemberName 248(UBO) 2 "lightPos" - MemberName 248(UBO) 3 "frustumPlanes" - MemberName 248(UBO) 4 "displacementFactor" - MemberName 248(UBO) 5 "tessellationFactor" - MemberName 248(UBO) 6 "viewportDim" - MemberName 248(UBO) 7 "tessellatedEdgeSize" - Name 271 "ubo" - MemberName 271(ubo) 0 "ubo" - Name 276 "" - Name 323 "input" - Name 325 "input.TessLevelOuter" - Name 340 "input.TessLevelInner" - Name 347 "TessCoord" - Name 349 "TessCoord" - Name 355 "patch" - Name 358 "patch.Pos" - Name 365 "patch.Normal" - Name 371 "patch.UV" - Name 403 "flattenTemp" - Name 405 "param" - Name 407 "param" - Name 411 "@entryPointOutput.Pos" - Name 415 "@entryPointOutput.Normal" - Name 419 "@entryPointOutput.UV" - Name 422 "@entryPointOutput.ViewVec" - Name 425 "@entryPointOutput.LightVec" - Name 428 "@entryPointOutput.EyePos" - Name 431 "@entryPointOutput.WorldPos" - Decorate 219(displacementMapTexture) DescriptorSet 0 - Decorate 219(displacementMapTexture) Binding 1 - Decorate 229(displacementMapSampler) DescriptorSet 0 - Decorate 229(displacementMapSampler) Binding 1 - Decorate 246 ArrayStride 16 - MemberDecorate 248(UBO) 0 RowMajor - MemberDecorate 248(UBO) 0 Offset 0 - MemberDecorate 248(UBO) 0 MatrixStride 16 - MemberDecorate 248(UBO) 1 RowMajor - MemberDecorate 248(UBO) 1 Offset 64 - MemberDecorate 248(UBO) 1 MatrixStride 16 - MemberDecorate 248(UBO) 2 Offset 128 - MemberDecorate 248(UBO) 3 Offset 144 - MemberDecorate 248(UBO) 4 Offset 240 - MemberDecorate 248(UBO) 5 Offset 244 - MemberDecorate 248(UBO) 6 Offset 248 - MemberDecorate 248(UBO) 7 Offset 256 - MemberDecorate 271(ubo) 0 Offset 0 - Decorate 271(ubo) Block - Decorate 276 DescriptorSet 0 - Decorate 276 Binding 0 - Decorate 325(input.TessLevelOuter) Patch - Decorate 325(input.TessLevelOuter) BuiltIn TessLevelOuter - Decorate 340(input.TessLevelInner) Patch - Decorate 340(input.TessLevelInner) BuiltIn TessLevelInner - Decorate 349(TessCoord) Patch - Decorate 349(TessCoord) BuiltIn TessCoord - Decorate 358(patch.Pos) BuiltIn Position - Decorate 365(patch.Normal) Location 0 - Decorate 371(patch.UV) Location 1 - Decorate 411(@entryPointOutput.Pos) BuiltIn Position - Decorate 415(@entryPointOutput.Normal) Location 0 - Decorate 419(@entryPointOutput.UV) Location 1 - Decorate 422(@entryPointOutput.ViewVec) Location 2 - Decorate 425(@entryPointOutput.LightVec) Location 3 - Decorate 428(@entryPointOutput.EyePos) Location 4 - Decorate 431(@entryPointOutput.WorldPos) Location 5 - 3: TypeVoid - 4: TypeFunction 3 - 7: TypeFloat 32 - 10: TypeInt 32 0 - 13: 10(int) Constant 32 - 14: 10(int) Constant 6 - 15: 10(int) Constant 0 - 11: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 12 13 14 15 - 16: 10(int) Constant 3 - 8: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 13 16 15 - 17: 10(int) Constant 4 - 18: TypeArray 7(float) 17 - 19: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 8 17 - 20: 10(int) Constant 2 - 21: TypeArray 7(float) 20 - 22: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 8 20 -23(ConstantsHSOutput): TypeStruct 18 21 - 26: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 0 27 - 28: 10(int) Constant 51 - 29: 10(int) Constant 25 - 24: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 25 19 26 28 29 15 15 16 - 32: 10(int) Constant 52 - 30: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 31 22 26 32 29 15 15 16 - 35: 10(int) Constant 1 - 37: 10(int) Constant 5 - 36: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 35 17 26 37 - 33: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 34 35 26 15 15 36 34 15 16 24 30 - 38: TypePointer Function 23(ConstantsHSOutput) - 39: TypeVector 7(float) 2 - 40: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 8 20 - 41: TypePointer Function 39(fvec2) - 42: TypeVector 7(float) 4 - 43: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 8 17 - 44: TypeVector 7(float) 3 - 45: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 8 16 - 46(HSOutput): TypeStruct 42(fvec4) 44(fvec3) 39(fvec2) - 49: 10(int) Constant 44 - 47: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 48 43 26 49 13 15 15 16 - 52: 10(int) Constant 45 - 53: 10(int) Constant 35 - 50: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 51 45 26 52 53 15 15 16 - 56: 10(int) Constant 46 - 57: 10(int) Constant 31 - 54: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 55 40 26 56 57 15 15 16 - 58: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 59 35 26 15 15 36 59 15 16 47 50 54 - 60: TypeArray 46(HSOutput) 17 - 61: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 58 17 - 62(DSOutput): TypeStruct 42(fvec4) 44(fvec3) 39(fvec2) 44(fvec3) 44(fvec3) 44(fvec3) 44(fvec3) - 64: 10(int) Constant 57 - 65: 10(int) Constant 13 - 63: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 48 43 26 64 65 15 15 16 - 68: 10(int) Constant 63 - 69: 10(int) Constant 37 - 66: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 67 45 26 68 69 15 15 16 - 71: 10(int) Constant 59 - 70: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 55 40 26 71 57 15 15 16 - 72: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 67 45 26 68 69 15 15 16 - 73: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 67 45 26 68 69 15 15 16 - 74: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 67 45 26 68 69 15 15 16 - 75: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 67 45 26 68 69 15 15 16 - 76: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 77 35 26 15 15 36 77 15 16 63 66 70 72 73 74 75 - 78: TypeFunction 62(DSOutput) 38(ptr) 41(ptr) 60 - 79: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 16 76 33 40 58 - 85: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 84 79 26 15 15 36 84 16 15 - 89: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 90 33 26 15 15 85 17 35 - 92: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) - 93: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 94 40 26 15 15 85 17 20 - 96: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 97 58 26 15 15 85 17 16 - 100: TypePointer Function 62(DSOutput) - 104: 10(int) Constant 70 - 102: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 103 76 26 104 15 85 17 - 106: 7(float) Constant 0 - 107: 42(fvec4) ConstantComposite 106 106 106 106 - 108: 44(fvec3) ConstantComposite 106 106 106 - 109: 39(fvec2) ConstantComposite 106 106 - 110:62(DSOutput) ConstantComposite 107 108 109 108 108 108 108 - 114: 10(int) Constant 71 - 112: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 113 40 26 114 15 85 17 - 116: TypeInt 32 1 - 118: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 117 13 17 15 - 119: 116(int) Constant 0 - 120: 116(int) Constant 2 - 122: 116(int) Constant 1 - 124: TypePointer Function 7(float) - 132: 10(int) Constant 72 - 130: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 131 40 26 132 15 85 17 - 134: 116(int) Constant 3 - 148: TypePointer Function 44(fvec3) - 152: 10(int) Constant 75 - 150: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 151 45 26 152 15 85 17 - 163: 10(int) Constant 76 - 161: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 162 45 26 163 15 85 17 - 178: TypePointer Function 42(fvec4) - 182: 10(int) Constant 80 - 180: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 181 43 26 182 15 85 17 - 193: 10(int) Constant 81 - 191: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 192 43 26 193 15 85 17 - 204: 10(int) Constant 82 - 202: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 203 43 26 204 15 85 17 - 212: TypeImage 7(float) 2D sampled format:Unknown - 215: 10(int) Constant 84 - 217: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) - 213: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 214 15 26 215 15 36 216 217 16 - 218: TypePointer UniformConstant 212 -219(displacementMapTexture): 218(ptr) Variable UniformConstant - 222: 10(int) Constant 8 - 220: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 221 213 26 215 15 36 221 219(displacementMapTexture) 222 - 224: TypeSampler - 225: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 226 35 26 215 15 36 227 217 16 - 228: TypePointer UniformConstant 224 -229(displacementMapSampler): 228(ptr) Variable UniformConstant - 230: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 231 225 26 215 15 36 231 229(displacementMapSampler) 222 - 233: TypeSampledImage 212 - 234: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 235 15 26 215 15 36 236 217 16 - 242: TypeMatrix 42(fvec4) 4 - 244: TypeBool - 245: 244(bool) ConstantTrue - 243: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 43 17 245 - 246: TypeArray 42(fvec4) 14 - 247: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 43 14 - 248(UBO): TypeStruct 242 242 42(fvec4) 246 7(float) 7(float) 39(fvec2) 7(float) - 251: 10(int) Constant 29 - 252: 10(int) Constant 20 - 249: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 250 243 26 251 252 15 15 16 - 253: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 250 243 26 251 252 15 15 16 - 256: 10(int) Constant 30 - 257: 10(int) Constant 17 - 254: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 255 43 26 256 257 15 15 16 - 260: 10(int) Constant 22 - 258: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 259 247 26 57 260 15 15 16 - 263: 10(int) Constant 27 - 261: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 262 8 26 53 263 15 15 16 - 264: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 262 8 26 53 263 15 15 16 - 267: 10(int) Constant 34 - 265: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 266 40 26 267 252 15 15 16 - 268: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 262 8 26 53 263 15 15 16 - 269: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 270 35 26 215 15 36 270 15 16 249 253 254 258 261 264 265 268 - 271(ubo): TypeStruct 248(UBO) - 272: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 273 269 26 69 69 15 15 16 - 274: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 273 35 26 215 15 36 273 15 16 272 - 275: TypePointer Uniform 271(ubo) - 276: 275(ptr) Variable Uniform - 277: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 27 274 26 215 15 36 27 276 222 - 278: 116(int) Constant 4 - 279: TypePointer Uniform 7(float) - 288: TypePointer Uniform 242 - 300: TypePointer Uniform 42(fvec4) - 309: 116(int) Constant 6 - 313: 116(int) Constant 5 - 324: TypePointer Input 18 -325(input.TessLevelOuter): 324(ptr) Variable Input - 326: TypePointer Input 7(float) - 339: TypePointer Input 21 -340(input.TessLevelInner): 339(ptr) Variable Input - 348: TypePointer Input 44(fvec3) - 349(TessCoord): 348(ptr) Variable Input - 354: TypePointer Function 60 - 356: TypeArray 42(fvec4) 17 - 357: TypePointer Input 356 - 358(patch.Pos): 357(ptr) Variable Input - 359: TypePointer Input 42(fvec4) - 363: TypeArray 44(fvec3) 17 - 364: TypePointer Input 363 -365(patch.Normal): 364(ptr) Variable Input - 369: TypeArray 39(fvec2) 17 - 370: TypePointer Input 369 - 371(patch.UV): 370(ptr) Variable Input - 372: TypePointer Input 39(fvec2) - 410: TypePointer Output 42(fvec4) -411(@entryPointOutput.Pos): 410(ptr) Variable Output - 414: TypePointer Output 44(fvec3) -415(@entryPointOutput.Normal): 414(ptr) Variable Output - 418: TypePointer Output 39(fvec2) -419(@entryPointOutput.UV): 418(ptr) Variable Output -422(@entryPointOutput.ViewVec): 414(ptr) Variable Output -425(@entryPointOutput.LightVec): 414(ptr) Variable Output -428(@entryPointOutput.EyePos): 414(ptr) Variable Output -431(@entryPointOutput.WorldPos): 414(ptr) Variable Output - 5(main): 3 Function None 4 - 6: Label - 323(input): 38(ptr) Variable Function - 347(TessCoord): 41(ptr) Variable Function - 355(patch): 354(ptr) Variable Function -403(flattenTemp): 100(ptr) Variable Function - 405(param): 38(ptr) Variable Function - 407(param): 41(ptr) Variable Function - 327: 326(ptr) AccessChain 325(input.TessLevelOuter) 119 - 328: 7(float) Load 327 - 329: 124(ptr) AccessChain 323(input) 119 119 - Store 329 328 - 330: 326(ptr) AccessChain 325(input.TessLevelOuter) 122 - 331: 7(float) Load 330 - 332: 124(ptr) AccessChain 323(input) 119 122 - Store 332 331 - 333: 326(ptr) AccessChain 325(input.TessLevelOuter) 120 - 334: 7(float) Load 333 - 335: 124(ptr) AccessChain 323(input) 119 120 - Store 335 334 - 336: 326(ptr) AccessChain 325(input.TessLevelOuter) 134 - 337: 7(float) Load 336 - 338: 124(ptr) AccessChain 323(input) 119 134 - Store 338 337 - 341: 326(ptr) AccessChain 340(input.TessLevelInner) 119 - 342: 7(float) Load 341 - 343: 124(ptr) AccessChain 323(input) 122 119 - Store 343 342 - 344: 326(ptr) AccessChain 340(input.TessLevelInner) 122 - 345: 7(float) Load 344 - 346: 124(ptr) AccessChain 323(input) 122 122 - Store 346 345 - 350: 44(fvec3) Load 349(TessCoord) - 351: 7(float) CompositeExtract 350 0 - 352: 7(float) CompositeExtract 350 1 - 353: 39(fvec2) CompositeConstruct 351 352 - Store 347(TessCoord) 353 - 360: 359(ptr) AccessChain 358(patch.Pos) 119 - 361: 42(fvec4) Load 360 - 362: 178(ptr) AccessChain 355(patch) 119 119 + EntryPoint TessellationEvaluation 6 "main" 352 367 376 385 392 398 438 442 446 449 452 455 458 + ExecutionMode 6 Quads + 1: String "" + 10: String "float" + 13: String "uint" + 26: String "TessLevelOuter" + 28: String "// OpModuleProcessed auto-map-locations +// OpModuleProcessed auto-map-bindings +// OpModuleProcessed entry-point main +// OpModuleProcessed client vulkan100 +// OpModuleProcessed target-env vulkan1.0 +// OpModuleProcessed keep-uncalled +// OpModuleProcessed hlsl-offsets +#line 1 +" + 32: String "TessLevelInner" + 35: String "ConstantsHSOutput" + 49: String "Pos" + 52: String "Normal" + 56: String "UV" + 60: String "HSOutput" + 68: String "WorldPos" + 78: String "DSOutput" + 85: String "@main" + 91: String "input" + 95: String "TessCoord" + 98: String "patch" + 107: String "output" + 118: String "uv1" + 121: String "int" + 137: String "uv2" + 160: String "n1" + 172: String "n2" + 194: String "pos1" + 206: String "pos2" + 218: String "pos" + 230: String "type.2d.image" + 231: String "@type.2d.image" + 236: String "displacementMapTexture" + 241: String "type.sampler" + 242: String "@type.sampler" + 246: String "displacementMapSampler" + 250: String "type.sampled.image" + 251: String "@type.sampled.image" + 265: String "modelview" + 270: String "lightPos" + 274: String "frustumPlanes" + 277: String "tessellatedEdgeSize" + 281: String "viewportDim" + 285: String "UBO" + 288: String "ubo" + Name 6 "main" + Name 24 "ConstantsHSOutput" + MemberName 24(ConstantsHSOutput) 0 "TessLevelOuter" + MemberName 24(ConstantsHSOutput) 1 "TessLevelInner" + Name 47 "HSOutput" + MemberName 47(HSOutput) 0 "Pos" + MemberName 47(HSOutput) 1 "Normal" + MemberName 47(HSOutput) 2 "UV" + Name 63 "DSOutput" + MemberName 63(DSOutput) 0 "Pos" + MemberName 63(DSOutput) 1 "Normal" + MemberName 63(DSOutput) 2 "UV" + MemberName 63(DSOutput) 3 "ViewVec" + MemberName 63(DSOutput) 4 "LightVec" + MemberName 63(DSOutput) 5 "EyePos" + MemberName 63(DSOutput) 6 "WorldPos" + Name 84 "@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];" + Name 81 "input" + Name 82 "TessCoord" + Name 83 "patch" + Name 105 "output" + Name 116 "uv1" + Name 135 "uv2" + Name 158 "n1" + Name 170 "n2" + Name 192 "pos1" + Name 204 "pos2" + Name 216 "pos" + Name 234 "displacementMapTexture" + Name 244 "displacementMapSampler" + Name 263 "UBO" + MemberName 263(UBO) 0 "projection" + MemberName 263(UBO) 1 "modelview" + MemberName 263(UBO) 2 "lightPos" + MemberName 263(UBO) 3 "frustumPlanes" + MemberName 263(UBO) 4 "displacementFactor" + MemberName 263(UBO) 5 "tessellationFactor" + MemberName 263(UBO) 6 "viewportDim" + MemberName 263(UBO) 7 "tessellatedEdgeSize" + Name 286 "ubo" + MemberName 286(ubo) 0 "ubo" + Name 291 "" + Name 350 "input" + Name 352 "input.TessLevelOuter" + Name 367 "input.TessLevelInner" + Name 374 "TessCoord" + Name 376 "TessCoord" + Name 382 "patch" + Name 385 "patch.Pos" + Name 392 "patch.Normal" + Name 398 "patch.UV" + Name 430 "flattenTemp" + Name 432 "param" + Name 434 "param" + Name 438 "@entryPointOutput.Pos" + Name 442 "@entryPointOutput.Normal" + Name 446 "@entryPointOutput.UV" + Name 449 "@entryPointOutput.ViewVec" + Name 452 "@entryPointOutput.LightVec" + Name 455 "@entryPointOutput.EyePos" + Name 458 "@entryPointOutput.WorldPos" + Decorate 234(displacementMapTexture) DescriptorSet 0 + Decorate 234(displacementMapTexture) Binding 1 + Decorate 244(displacementMapSampler) DescriptorSet 0 + Decorate 244(displacementMapSampler) Binding 1 + Decorate 261 ArrayStride 16 + MemberDecorate 263(UBO) 0 RowMajor + MemberDecorate 263(UBO) 0 Offset 0 + MemberDecorate 263(UBO) 0 MatrixStride 16 + MemberDecorate 263(UBO) 1 RowMajor + MemberDecorate 263(UBO) 1 Offset 64 + MemberDecorate 263(UBO) 1 MatrixStride 16 + MemberDecorate 263(UBO) 2 Offset 128 + MemberDecorate 263(UBO) 3 Offset 144 + MemberDecorate 263(UBO) 4 Offset 240 + MemberDecorate 263(UBO) 5 Offset 244 + MemberDecorate 263(UBO) 6 Offset 248 + MemberDecorate 263(UBO) 7 Offset 256 + MemberDecorate 286(ubo) 0 Offset 0 + Decorate 286(ubo) Block + Decorate 291 DescriptorSet 0 + Decorate 291 Binding 0 + Decorate 352(input.TessLevelOuter) Patch + Decorate 352(input.TessLevelOuter) BuiltIn TessLevelOuter + Decorate 367(input.TessLevelInner) Patch + Decorate 367(input.TessLevelInner) BuiltIn TessLevelInner + Decorate 376(TessCoord) Patch + Decorate 376(TessCoord) BuiltIn TessCoord + Decorate 385(patch.Pos) BuiltIn Position + Decorate 392(patch.Normal) Location 0 + Decorate 398(patch.UV) Location 1 + Decorate 438(@entryPointOutput.Pos) BuiltIn Position + Decorate 442(@entryPointOutput.Normal) Location 0 + Decorate 446(@entryPointOutput.UV) Location 1 + Decorate 449(@entryPointOutput.ViewVec) Location 2 + Decorate 452(@entryPointOutput.LightVec) Location 3 + Decorate 455(@entryPointOutput.EyePos) Location 4 + Decorate 458(@entryPointOutput.WorldPos) Location 5 + 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 + 12: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 13 14 15 16 + 17: 11(int) Constant 3 + 9: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 10 14 17 16 + 18: 11(int) Constant 4 + 19: TypeArray 8(float) 18 + 20: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 9 18 + 21: 11(int) Constant 2 + 22: TypeArray 8(float) 21 + 23: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 9 21 +24(ConstantsHSOutput): TypeStruct 19 22 + 27: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 28 + 29: 11(int) Constant 51 + 30: 11(int) Constant 25 + 25: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 26 20 27 29 30 16 16 17 + 33: 11(int) Constant 52 + 31: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 32 23 27 33 30 16 16 17 + 36: 11(int) Constant 1 + 38: 11(int) Constant 5 + 37: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 36 18 27 38 + 34: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 35 36 27 16 16 37 35 16 17 25 31 + 39: TypePointer Function 24(ConstantsHSOutput) + 40: TypeVector 8(float) 2 + 41: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 21 + 42: TypePointer Function 40(fvec2) + 43: TypeVector 8(float) 4 + 44: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 18 + 45: TypeVector 8(float) 3 + 46: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 17 + 47(HSOutput): TypeStruct 43(fvec4) 45(fvec3) 40(fvec2) + 50: 11(int) Constant 44 + 48: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 49 44 27 50 14 16 16 17 + 53: 11(int) Constant 45 + 54: 11(int) Constant 35 + 51: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 46 27 53 54 16 16 17 + 57: 11(int) Constant 46 + 58: 11(int) Constant 31 + 55: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 56 41 27 57 58 16 16 17 + 59: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 60 36 27 16 16 37 60 16 17 48 51 55 + 61: TypeArray 47(HSOutput) 18 + 62: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 59 18 + 63(DSOutput): TypeStruct 43(fvec4) 45(fvec3) 40(fvec2) 45(fvec3) 45(fvec3) 45(fvec3) 45(fvec3) + 65: 11(int) Constant 57 + 66: 11(int) Constant 13 + 64: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 49 44 27 65 66 16 16 17 + 69: 11(int) Constant 63 + 70: 11(int) Constant 37 + 67: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 68 46 27 69 70 16 16 17 + 72: 11(int) Constant 59 + 71: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 56 41 27 72 58 16 16 17 + 73: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 68 46 27 69 70 16 16 17 + 74: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 68 46 27 69 70 16 16 17 + 75: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 68 46 27 69 70 16 16 17 + 76: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 68 46 27 69 70 16 16 17 + 77: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 78 36 27 16 16 37 78 16 17 64 67 71 73 74 75 76 + 79: TypeFunction 63(DSOutput) 39(ptr) 42(ptr) 61 + 80: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 77 34 41 59 + 86: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 85 80 27 16 16 37 85 17 16 + 90: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 91 34 27 16 16 86 18 36 + 93: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) + 94: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 95 41 27 16 16 86 18 21 + 97: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 98 59 27 16 16 86 18 17 + 103: 11(int) Constant 70 + 104: TypePointer Function 63(DSOutput) + 106: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 107 77 27 103 16 86 18 + 109: 8(float) Constant 0 + 110: 43(fvec4) ConstantComposite 109 109 109 109 + 111: 45(fvec3) ConstantComposite 109 109 109 + 112: 40(fvec2) ConstantComposite 109 109 + 113:63(DSOutput) ConstantComposite 110 111 112 111 111 111 111 + 115: 11(int) Constant 71 + 117: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 118 41 27 115 16 86 18 + 120: TypeInt 32 1 + 122: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 121 14 18 16 + 123: 120(int) Constant 0 + 124: 120(int) Constant 2 + 126: 120(int) Constant 1 + 128: TypePointer Function 8(float) + 134: 11(int) Constant 72 + 136: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 137 41 27 134 16 86 18 + 139: 120(int) Constant 3 + 147: 11(int) Constant 73 + 156: 11(int) Constant 75 + 157: TypePointer Function 45(fvec3) + 159: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 160 46 27 156 16 86 18 + 169: 11(int) Constant 76 + 171: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 172 46 27 169 16 86 18 + 181: 11(int) Constant 77 + 190: 11(int) Constant 80 + 191: TypePointer Function 43(fvec4) + 193: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 194 44 27 190 16 86 18 + 203: 11(int) Constant 81 + 205: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 206 44 27 203 16 86 18 + 215: 11(int) Constant 82 + 217: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 218 44 27 215 16 86 18 + 227: 11(int) Constant 84 + 228: TypeImage 8(float) 2D sampled format:Unknown + 232: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) + 229: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 230 16 27 227 16 37 231 232 17 + 233: TypePointer UniformConstant 228 +234(displacementMapTexture): 233(ptr) Variable UniformConstant + 237: 11(int) Constant 8 + 235: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 236 229 27 227 16 37 236 234(displacementMapTexture) 237 + 239: TypeSampler + 240: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 241 36 27 227 16 37 242 232 17 + 243: TypePointer UniformConstant 239 +244(displacementMapSampler): 243(ptr) Variable UniformConstant + 245: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 246 240 27 227 16 37 246 244(displacementMapSampler) 237 + 248: TypeSampledImage 228 + 249: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 250 16 27 227 16 37 251 232 17 + 257: TypeMatrix 43(fvec4) 4 + 259: TypeBool + 260: 259(bool) ConstantTrue + 258: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 44 18 260 + 261: TypeArray 43(fvec4) 15 + 262: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 44 15 + 263(UBO): TypeStruct 257 257 43(fvec4) 261 8(float) 8(float) 40(fvec2) 8(float) + 266: 11(int) Constant 29 + 267: 11(int) Constant 20 + 264: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 265 258 27 266 267 16 16 17 + 268: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 265 258 27 266 267 16 16 17 + 271: 11(int) Constant 30 + 272: 11(int) Constant 17 + 269: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 270 44 27 271 272 16 16 17 + 275: 11(int) Constant 22 + 273: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 274 262 27 58 275 16 16 17 + 278: 11(int) Constant 27 + 276: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 277 9 27 54 278 16 16 17 + 279: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 277 9 27 54 278 16 16 17 + 282: 11(int) Constant 34 + 280: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 281 41 27 282 267 16 16 17 + 283: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 277 9 27 54 278 16 16 17 + 284: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 285 36 27 227 16 37 285 16 17 264 268 269 273 276 279 280 283 + 286(ubo): TypeStruct 263(UBO) + 287: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 288 284 27 70 70 16 16 17 + 289: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 288 36 27 227 16 37 288 16 17 287 + 290: TypePointer Uniform 286(ubo) + 291: 290(ptr) Variable Uniform + 292: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 289 27 227 16 37 1 291 237 + 293: 120(int) Constant 4 + 294: TypePointer Uniform 8(float) + 303: 11(int) Constant 86 + 305: TypePointer Uniform 257 + 314: 11(int) Constant 89 + 320: 11(int) Constant 90 + 321: TypePointer Uniform 43(fvec4) + 331: 11(int) Constant 91 + 332: 120(int) Constant 6 + 337: 11(int) Constant 92 + 338: 120(int) Constant 5 + 346: 11(int) Constant 93 + 351: TypePointer Input 19 +352(input.TessLevelOuter): 351(ptr) Variable Input + 353: TypePointer Input 8(float) + 366: TypePointer Input 22 +367(input.TessLevelInner): 366(ptr) Variable Input + 375: TypePointer Input 45(fvec3) + 376(TessCoord): 375(ptr) Variable Input + 381: TypePointer Function 61 + 383: TypeArray 43(fvec4) 18 + 384: TypePointer Input 383 + 385(patch.Pos): 384(ptr) Variable Input + 386: TypePointer Input 43(fvec4) + 390: TypeArray 45(fvec3) 18 + 391: TypePointer Input 390 +392(patch.Normal): 391(ptr) Variable Input + 396: TypeArray 40(fvec2) 18 + 397: TypePointer Input 396 + 398(patch.UV): 397(ptr) Variable Input + 399: TypePointer Input 40(fvec2) + 437: TypePointer Output 43(fvec4) +438(@entryPointOutput.Pos): 437(ptr) Variable Output + 441: TypePointer Output 45(fvec3) +442(@entryPointOutput.Normal): 441(ptr) Variable Output + 445: TypePointer Output 40(fvec2) +446(@entryPointOutput.UV): 445(ptr) Variable Output +449(@entryPointOutput.ViewVec): 441(ptr) Variable Output +452(@entryPointOutput.LightVec): 441(ptr) Variable Output +455(@entryPointOutput.EyePos): 441(ptr) Variable Output +458(@entryPointOutput.WorldPos): 441(ptr) Variable Output + Line 1 68 1 + 6(main): 4 Function None 5 + 7: Label + 350(input): 39(ptr) Variable Function + 374(TessCoord): 42(ptr) Variable Function + 382(patch): 381(ptr) Variable Function +430(flattenTemp): 104(ptr) Variable Function + 432(param): 39(ptr) Variable Function + 434(param): 42(ptr) Variable Function + Line 1 68 0 + 354: 353(ptr) AccessChain 352(input.TessLevelOuter) 123 + 355: 8(float) Load 354 + 356: 128(ptr) AccessChain 350(input) 123 123 + Store 356 355 + 357: 353(ptr) AccessChain 352(input.TessLevelOuter) 126 + 358: 8(float) Load 357 + 359: 128(ptr) AccessChain 350(input) 123 126 + Store 359 358 + 360: 353(ptr) AccessChain 352(input.TessLevelOuter) 124 + 361: 8(float) Load 360 + 362: 128(ptr) AccessChain 350(input) 123 124 Store 362 361 - 366: 348(ptr) AccessChain 365(patch.Normal) 119 - 367: 44(fvec3) Load 366 - 368: 148(ptr) AccessChain 355(patch) 119 122 - Store 368 367 - 373: 372(ptr) AccessChain 371(patch.UV) 119 - 374: 39(fvec2) Load 373 - 375: 41(ptr) AccessChain 355(patch) 119 120 - Store 375 374 - 376: 359(ptr) AccessChain 358(patch.Pos) 122 - 377: 42(fvec4) Load 376 - 378: 178(ptr) AccessChain 355(patch) 122 119 - Store 378 377 - 379: 348(ptr) AccessChain 365(patch.Normal) 122 - 380: 44(fvec3) Load 379 - 381: 148(ptr) AccessChain 355(patch) 122 122 - Store 381 380 - 382: 372(ptr) AccessChain 371(patch.UV) 122 - 383: 39(fvec2) Load 382 - 384: 41(ptr) AccessChain 355(patch) 122 120 - Store 384 383 - 385: 359(ptr) AccessChain 358(patch.Pos) 120 - 386: 42(fvec4) Load 385 - 387: 178(ptr) AccessChain 355(patch) 120 119 - Store 387 386 - 388: 348(ptr) AccessChain 365(patch.Normal) 120 - 389: 44(fvec3) Load 388 - 390: 148(ptr) AccessChain 355(patch) 120 122 - Store 390 389 - 391: 372(ptr) AccessChain 371(patch.UV) 120 - 392: 39(fvec2) Load 391 - 393: 41(ptr) AccessChain 355(patch) 120 120 - Store 393 392 - 394: 359(ptr) AccessChain 358(patch.Pos) 134 - 395: 42(fvec4) Load 394 - 396: 178(ptr) AccessChain 355(patch) 134 119 - Store 396 395 - 397: 348(ptr) AccessChain 365(patch.Normal) 134 - 398: 44(fvec3) Load 397 - 399: 148(ptr) AccessChain 355(patch) 134 122 - Store 399 398 - 400: 372(ptr) AccessChain 371(patch.UV) 134 - 401: 39(fvec2) Load 400 - 402: 41(ptr) AccessChain 355(patch) 134 120 + 363: 353(ptr) AccessChain 352(input.TessLevelOuter) 139 + 364: 8(float) Load 363 + 365: 128(ptr) AccessChain 350(input) 123 139 + Store 365 364 + 368: 353(ptr) AccessChain 367(input.TessLevelInner) 123 + 369: 8(float) Load 368 + 370: 128(ptr) AccessChain 350(input) 126 123 + Store 370 369 + 371: 353(ptr) AccessChain 367(input.TessLevelInner) 126 + 372: 8(float) Load 371 + 373: 128(ptr) AccessChain 350(input) 126 126 + Store 373 372 + 377: 45(fvec3) Load 376(TessCoord) + 378: 8(float) CompositeExtract 377 0 + 379: 8(float) CompositeExtract 377 1 + 380: 40(fvec2) CompositeConstruct 378 379 + Store 374(TessCoord) 380 + 387: 386(ptr) AccessChain 385(patch.Pos) 123 + 388: 43(fvec4) Load 387 + 389: 191(ptr) AccessChain 382(patch) 123 123 + Store 389 388 + 393: 375(ptr) AccessChain 392(patch.Normal) 123 + 394: 45(fvec3) Load 393 + 395: 157(ptr) AccessChain 382(patch) 123 126 + Store 395 394 + 400: 399(ptr) AccessChain 398(patch.UV) 123 + 401: 40(fvec2) Load 400 + 402: 42(ptr) AccessChain 382(patch) 123 124 Store 402 401 - 404: 60 Load 355(patch) - 406:23(ConstantsHSOutput) Load 323(input) - Store 405(param) 406 - 408: 39(fvec2) Load 347(TessCoord) - Store 407(param) 408 - 409:62(DSOutput) FunctionCall 83(@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];) 405(param) 407(param) 404 - Store 403(flattenTemp) 409 - 412: 178(ptr) AccessChain 403(flattenTemp) 119 - 413: 42(fvec4) Load 412 - Store 411(@entryPointOutput.Pos) 413 - 416: 148(ptr) AccessChain 403(flattenTemp) 122 - 417: 44(fvec3) Load 416 - Store 415(@entryPointOutput.Normal) 417 - 420: 41(ptr) AccessChain 403(flattenTemp) 120 - 421: 39(fvec2) Load 420 - Store 419(@entryPointOutput.UV) 421 - 423: 148(ptr) AccessChain 403(flattenTemp) 134 - 424: 44(fvec3) Load 423 - Store 422(@entryPointOutput.ViewVec) 424 - 426: 148(ptr) AccessChain 403(flattenTemp) 278 - 427: 44(fvec3) Load 426 - Store 425(@entryPointOutput.LightVec) 427 - 429: 148(ptr) AccessChain 403(flattenTemp) 313 - 430: 44(fvec3) Load 429 - Store 428(@entryPointOutput.EyePos) 430 - 432: 148(ptr) AccessChain 403(flattenTemp) 309 - 433: 44(fvec3) Load 432 - Store 431(@entryPointOutput.WorldPos) 433 + 403: 386(ptr) AccessChain 385(patch.Pos) 126 + 404: 43(fvec4) Load 403 + 405: 191(ptr) AccessChain 382(patch) 126 123 + Store 405 404 + 406: 375(ptr) AccessChain 392(patch.Normal) 126 + 407: 45(fvec3) Load 406 + 408: 157(ptr) AccessChain 382(patch) 126 126 + Store 408 407 + 409: 399(ptr) AccessChain 398(patch.UV) 126 + 410: 40(fvec2) Load 409 + 411: 42(ptr) AccessChain 382(patch) 126 124 + Store 411 410 + 412: 386(ptr) AccessChain 385(patch.Pos) 124 + 413: 43(fvec4) Load 412 + 414: 191(ptr) AccessChain 382(patch) 124 123 + Store 414 413 + 415: 375(ptr) AccessChain 392(patch.Normal) 124 + 416: 45(fvec3) Load 415 + 417: 157(ptr) AccessChain 382(patch) 124 126 + Store 417 416 + 418: 399(ptr) AccessChain 398(patch.UV) 124 + 419: 40(fvec2) Load 418 + 420: 42(ptr) AccessChain 382(patch) 124 124 + Store 420 419 + 421: 386(ptr) AccessChain 385(patch.Pos) 139 + 422: 43(fvec4) Load 421 + 423: 191(ptr) AccessChain 382(patch) 139 123 + Store 423 422 + 424: 375(ptr) AccessChain 392(patch.Normal) 139 + 425: 45(fvec3) Load 424 + 426: 157(ptr) AccessChain 382(patch) 139 126 + Store 426 425 + 427: 399(ptr) AccessChain 398(patch.UV) 139 + 428: 40(fvec2) Load 427 + 429: 42(ptr) AccessChain 382(patch) 139 124 + Store 429 428 + 431: 61 Load 382(patch) + 433:24(ConstantsHSOutput) Load 350(input) + Store 432(param) 433 + 435: 40(fvec2) Load 374(TessCoord) + Store 434(param) 435 + 436:63(DSOutput) FunctionCall 84(@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];) 432(param) 434(param) 431 + Store 430(flattenTemp) 436 + 439: 191(ptr) AccessChain 430(flattenTemp) 123 + 440: 43(fvec4) Load 439 + Store 438(@entryPointOutput.Pos) 440 + 443: 157(ptr) AccessChain 430(flattenTemp) 126 + 444: 45(fvec3) Load 443 + Store 442(@entryPointOutput.Normal) 444 + 447: 42(ptr) AccessChain 430(flattenTemp) 124 + 448: 40(fvec2) Load 447 + Store 446(@entryPointOutput.UV) 448 + 450: 157(ptr) AccessChain 430(flattenTemp) 139 + 451: 45(fvec3) Load 450 + Store 449(@entryPointOutput.ViewVec) 451 + 453: 157(ptr) AccessChain 430(flattenTemp) 293 + 454: 45(fvec3) Load 453 + Store 452(@entryPointOutput.LightVec) 454 + 456: 157(ptr) AccessChain 430(flattenTemp) 338 + 457: 45(fvec3) Load 456 + Store 455(@entryPointOutput.EyePos) 457 + 459: 157(ptr) AccessChain 430(flattenTemp) 332 + 460: 45(fvec3) Load 459 + Store 458(@entryPointOutput.WorldPos) 460 Return FunctionEnd -83(@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];):62(DSOutput) Function None 78 - 80(input): 38(ptr) FunctionParameter - 81(TessCoord): 41(ptr) FunctionParameter - 82(patch): 60 FunctionParameter - 86: Label - 101(output): 100(ptr) Variable Function - 111(uv1): 41(ptr) Variable Function - 129(uv2): 41(ptr) Variable Function - 149(n1): 148(ptr) Variable Function - 160(n2): 148(ptr) Variable Function - 179(pos1): 178(ptr) Variable Function - 190(pos2): 178(ptr) Variable Function - 201(pos): 178(ptr) Variable Function - 87: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85 - 88: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 15 15 15 15 - 91: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 89 80(input) 92 - 95: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 93 81(TessCoord) 92 - 98: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 96 82(patch) 92 - 99: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 85 83(@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];) - 105: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 102 101(output) 92 - Store 101(output) 110 - 115: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 112 111(uv1) 92 - 121: 39(fvec2) CompositeExtract 82(patch) 0 2 - 123: 39(fvec2) CompositeExtract 82(patch) 1 2 - 125: 124(ptr) AccessChain 81(TessCoord) 15 - 126: 7(float) Load 125 - 127: 39(fvec2) CompositeConstruct 126 126 - 128: 39(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 121 123 127 - Store 111(uv1) 128 - 133: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 130 129(uv2) 92 - 135: 39(fvec2) CompositeExtract 82(patch) 3 2 - 136: 39(fvec2) CompositeExtract 82(patch) 2 2 - 137: 124(ptr) AccessChain 81(TessCoord) 15 - 138: 7(float) Load 137 - 139: 39(fvec2) CompositeConstruct 138 138 - 140: 39(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 135 136 139 - Store 129(uv2) 140 - 141: 39(fvec2) Load 111(uv1) - 142: 39(fvec2) Load 129(uv2) - 143: 124(ptr) AccessChain 81(TessCoord) 35 - 144: 7(float) Load 143 - 145: 39(fvec2) CompositeConstruct 144 144 - 146: 39(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 141 142 145 - 147: 41(ptr) AccessChain 101(output) 120 - Store 147 146 - 153: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 150 149(n1) 92 - 154: 44(fvec3) CompositeExtract 82(patch) 0 1 - 155: 44(fvec3) CompositeExtract 82(patch) 1 1 - 156: 124(ptr) AccessChain 81(TessCoord) 15 - 157: 7(float) Load 156 - 158: 44(fvec3) CompositeConstruct 157 157 157 - 159: 44(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 154 155 158 - Store 149(n1) 159 - 164: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 161 160(n2) 92 - 165: 44(fvec3) CompositeExtract 82(patch) 3 1 - 166: 44(fvec3) CompositeExtract 82(patch) 2 1 - 167: 124(ptr) AccessChain 81(TessCoord) 15 - 168: 7(float) Load 167 - 169: 44(fvec3) CompositeConstruct 168 168 168 - 170: 44(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 165 166 169 - Store 160(n2) 170 - 171: 44(fvec3) Load 149(n1) - 172: 44(fvec3) Load 160(n2) - 173: 124(ptr) AccessChain 81(TessCoord) 35 - 174: 7(float) Load 173 - 175: 44(fvec3) CompositeConstruct 174 174 174 - 176: 44(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 171 172 175 - 177: 148(ptr) AccessChain 101(output) 122 - Store 177 176 - 183: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 180 179(pos1) 92 - 184: 42(fvec4) CompositeExtract 82(patch) 0 0 - 185: 42(fvec4) CompositeExtract 82(patch) 1 0 - 186: 124(ptr) AccessChain 81(TessCoord) 15 - 187: 7(float) Load 186 - 188: 42(fvec4) CompositeConstruct 187 187 187 187 - 189: 42(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 184 185 188 - Store 179(pos1) 189 - 194: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 191 190(pos2) 92 - 195: 42(fvec4) CompositeExtract 82(patch) 3 0 - 196: 42(fvec4) CompositeExtract 82(patch) 2 0 - 197: 124(ptr) AccessChain 81(TessCoord) 15 - 198: 7(float) Load 197 - 199: 42(fvec4) CompositeConstruct 198 198 198 198 - 200: 42(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 195 196 199 - Store 190(pos2) 200 - 205: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 202 201(pos) 92 - 206: 42(fvec4) Load 179(pos1) - 207: 42(fvec4) Load 190(pos2) - 208: 124(ptr) AccessChain 81(TessCoord) 35 - 209: 7(float) Load 208 - 210: 42(fvec4) CompositeConstruct 209 209 209 209 - 211: 42(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 206 207 210 - Store 201(pos) 211 - 223: 212 Load 219(displacementMapTexture) - 232: 224 Load 229(displacementMapSampler) - 237: 233 SampledImage 223 232 - 238: 41(ptr) AccessChain 101(output) 120 - 239: 39(fvec2) Load 238 - 240: 42(fvec4) ImageSampleExplicitLod 237 239 Lod 106 - 241: 7(float) CompositeExtract 240 0 - 280: 279(ptr) AccessChain 276 119 278 - 281: 7(float) Load 280 - 282: 7(float) FMul 241 281 - 283: 124(ptr) AccessChain 201(pos) 35 - 284: 7(float) Load 283 - 285: 7(float) FSub 284 282 - 286: 124(ptr) AccessChain 201(pos) 35 - Store 286 285 - 287: 42(fvec4) Load 201(pos) - 289: 288(ptr) AccessChain 276 119 122 - 290: 242 Load 289 - 291: 42(fvec4) VectorTimesMatrix 287 290 - 292: 288(ptr) AccessChain 276 119 119 - 293: 242 Load 292 - 294: 42(fvec4) VectorTimesMatrix 291 293 - 295: 178(ptr) AccessChain 101(output) 119 - Store 295 294 - 296: 42(fvec4) Load 201(pos) - 297: 44(fvec3) VectorShuffle 296 296 0 1 2 - 298: 44(fvec3) FNegate 297 - 299: 148(ptr) AccessChain 101(output) 134 - Store 299 298 - 301: 300(ptr) AccessChain 276 119 120 - 302: 42(fvec4) Load 301 - 303: 44(fvec3) VectorShuffle 302 302 0 1 2 - 304: 148(ptr) AccessChain 101(output) 134 - 305: 44(fvec3) Load 304 - 306: 44(fvec3) FAdd 303 305 - 307: 44(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 306 - 308: 148(ptr) AccessChain 101(output) 278 - Store 308 307 - 310: 42(fvec4) Load 201(pos) - 311: 44(fvec3) VectorShuffle 310 310 0 1 2 - 312: 148(ptr) AccessChain 101(output) 309 + Line 1 68 1 +84(@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];):63(DSOutput) Function None 79 + 81(input): 39(ptr) FunctionParameter + 82(TessCoord): 42(ptr) FunctionParameter + 83(patch): 61 FunctionParameter + 87: Label + 105(output): 104(ptr) Variable Function + 116(uv1): 42(ptr) Variable Function + 135(uv2): 42(ptr) Variable Function + 158(n1): 157(ptr) Variable Function + 170(n2): 157(ptr) Variable Function + 192(pos1): 191(ptr) Variable Function + 204(pos2): 191(ptr) Variable Function + 216(pos): 191(ptr) Variable Function + 88: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 86 + 89: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 16 16 16 16 + 92: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 90 81(input) 93 + 96: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 94 82(TessCoord) 93 + 99: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 97 83(patch) 93 + 100: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 86 84(@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];) + 101: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 86 + 102: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 103 103 16 16 + 108: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 106 105(output) 93 + Store 105(output) 113 + 114: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 115 115 16 16 + 119: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 117 116(uv1) 93 + 125: 40(fvec2) CompositeExtract 83(patch) 0 2 + 127: 40(fvec2) CompositeExtract 83(patch) 1 2 + 129: 128(ptr) AccessChain 82(TessCoord) 16 + 130: 8(float) Load 129 + 131: 40(fvec2) CompositeConstruct 130 130 + 132: 40(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 125 127 131 + Store 116(uv1) 132 + 133: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 134 134 16 16 + 138: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 136 135(uv2) 93 + 140: 40(fvec2) CompositeExtract 83(patch) 3 2 + 141: 40(fvec2) CompositeExtract 83(patch) 2 2 + 142: 128(ptr) AccessChain 82(TessCoord) 16 + 143: 8(float) Load 142 + 144: 40(fvec2) CompositeConstruct 143 143 + 145: 40(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 140 141 144 + Store 135(uv2) 145 + 146: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 147 147 16 16 + 148: 40(fvec2) Load 116(uv1) + 149: 40(fvec2) Load 135(uv2) + 150: 128(ptr) AccessChain 82(TessCoord) 36 + 151: 8(float) Load 150 + 152: 40(fvec2) CompositeConstruct 151 151 + 153: 40(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 148 149 152 + 154: 42(ptr) AccessChain 105(output) 124 + Store 154 153 + 155: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 156 156 16 16 + 161: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 159 158(n1) 93 + 162: 45(fvec3) CompositeExtract 83(patch) 0 1 + 163: 45(fvec3) CompositeExtract 83(patch) 1 1 + 164: 128(ptr) AccessChain 82(TessCoord) 16 + 165: 8(float) Load 164 + 166: 45(fvec3) CompositeConstruct 165 165 165 + 167: 45(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 162 163 166 + Store 158(n1) 167 + 168: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 169 169 16 16 + 173: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 171 170(n2) 93 + 174: 45(fvec3) CompositeExtract 83(patch) 3 1 + 175: 45(fvec3) CompositeExtract 83(patch) 2 1 + 176: 128(ptr) AccessChain 82(TessCoord) 16 + 177: 8(float) Load 176 + 178: 45(fvec3) CompositeConstruct 177 177 177 + 179: 45(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 174 175 178 + Store 170(n2) 179 + 180: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 181 181 16 16 + 182: 45(fvec3) Load 158(n1) + 183: 45(fvec3) Load 170(n2) + 184: 128(ptr) AccessChain 82(TessCoord) 36 + 185: 8(float) Load 184 + 186: 45(fvec3) CompositeConstruct 185 185 185 + 187: 45(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 182 183 186 + 188: 157(ptr) AccessChain 105(output) 126 + Store 188 187 + 189: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 190 190 16 16 + 195: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 193 192(pos1) 93 + 196: 43(fvec4) CompositeExtract 83(patch) 0 0 + 197: 43(fvec4) CompositeExtract 83(patch) 1 0 + 198: 128(ptr) AccessChain 82(TessCoord) 16 + 199: 8(float) Load 198 + 200: 43(fvec4) CompositeConstruct 199 199 199 199 + 201: 43(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 196 197 200 + Store 192(pos1) 201 + 202: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 203 203 16 16 + 207: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 205 204(pos2) 93 + 208: 43(fvec4) CompositeExtract 83(patch) 3 0 + 209: 43(fvec4) CompositeExtract 83(patch) 2 0 + 210: 128(ptr) AccessChain 82(TessCoord) 16 + 211: 8(float) Load 210 + 212: 43(fvec4) CompositeConstruct 211 211 211 211 + 213: 43(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 208 209 212 + Store 204(pos2) 213 + 214: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 215 215 16 16 + 219: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 217 216(pos) 93 + 220: 43(fvec4) Load 192(pos1) + 221: 43(fvec4) Load 204(pos2) + 222: 128(ptr) AccessChain 82(TessCoord) 36 + 223: 8(float) Load 222 + 224: 43(fvec4) CompositeConstruct 223 223 223 223 + 225: 43(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 220 221 224 + Store 216(pos) 225 + 226: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 227 227 16 16 + 238: 228 Load 234(displacementMapTexture) + 247: 239 Load 244(displacementMapSampler) + 252: 248 SampledImage 238 247 + 253: 42(ptr) AccessChain 105(output) 124 + 254: 40(fvec2) Load 253 + 255: 43(fvec4) ImageSampleExplicitLod 252 254 Lod 109 + 256: 8(float) CompositeExtract 255 0 + 295: 294(ptr) AccessChain 291 123 293 + 296: 8(float) Load 295 + 297: 8(float) FMul 256 296 + 298: 128(ptr) AccessChain 216(pos) 36 + 299: 8(float) Load 298 + 300: 8(float) FSub 299 297 + 301: 128(ptr) AccessChain 216(pos) 36 + Store 301 300 + 302: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 303 303 16 16 + 304: 43(fvec4) Load 216(pos) + 306: 305(ptr) AccessChain 291 123 126 + 307: 257 Load 306 + 308: 43(fvec4) VectorTimesMatrix 304 307 + 309: 305(ptr) AccessChain 291 123 123 + 310: 257 Load 309 + 311: 43(fvec4) VectorTimesMatrix 308 310 + 312: 191(ptr) AccessChain 105(output) 123 Store 312 311 - 314: 42(fvec4) Load 201(pos) - 315: 288(ptr) AccessChain 276 119 122 - 316: 242 Load 315 - 317: 42(fvec4) VectorTimesMatrix 314 316 - 318: 44(fvec3) VectorShuffle 317 317 0 1 2 - 319: 148(ptr) AccessChain 101(output) 313 - Store 319 318 - 320:62(DSOutput) Load 101(output) - ReturnValue 320 + 313: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 314 314 16 16 + 315: 43(fvec4) Load 216(pos) + 316: 45(fvec3) VectorShuffle 315 315 0 1 2 + 317: 45(fvec3) FNegate 316 + 318: 157(ptr) AccessChain 105(output) 139 + Store 318 317 + 319: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 320 320 16 16 + 322: 321(ptr) AccessChain 291 123 124 + 323: 43(fvec4) Load 322 + 324: 45(fvec3) VectorShuffle 323 323 0 1 2 + 325: 157(ptr) AccessChain 105(output) 139 + 326: 45(fvec3) Load 325 + 327: 45(fvec3) FAdd 324 326 + 328: 45(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 327 + 329: 157(ptr) AccessChain 105(output) 293 + Store 329 328 + 330: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 331 331 16 16 + 333: 43(fvec4) Load 216(pos) + 334: 45(fvec3) VectorShuffle 333 333 0 1 2 + 335: 157(ptr) AccessChain 105(output) 332 + Store 335 334 + 336: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 337 337 16 16 + 339: 43(fvec4) Load 216(pos) + 340: 305(ptr) AccessChain 291 123 126 + 341: 257 Load 340 + 342: 43(fvec4) VectorTimesMatrix 339 341 + 343: 45(fvec3) VectorShuffle 342 342 0 1 2 + 344: 157(ptr) AccessChain 105(output) 338 + Store 344 343 + 345: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 346 346 16 16 + 347:63(DSOutput) Load 105(output) + ReturnValue 347 FunctionEnd diff --git a/Test/baseResults/spv.debuginfo.hlsl.vert.out b/Test/baseResults/spv.debuginfo.hlsl.vert.out index 77c3fb20..2fa1774b 100644 --- a/Test/baseResults/spv.debuginfo.hlsl.vert.out +++ b/Test/baseResults/spv.debuginfo.hlsl.vert.out @@ -1,574 +1,642 @@ spv.debuginfo.hlsl.vert -Validation failed // Module Version 10000 // Generated by (magic number): 8000b -// Id's are bound by 437 +// Id's are bound by 495 Capability Shader Extension "SPV_KHR_non_semantic_info" - 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" - 2: ExtInstImport "GLSL.std.450" + 2: ExtInstImport "NonSemantic.Shader.DebugInfo.100" + 3: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 - EntryPoint Vertex 5 "main" 386 389 393 396 399 402 406 410 418 422 425 428 431 434 - 9: String "float" - 12: String "uint" - 23: String "int" - 28: String "instanceRot" - 30: String "" - 35: String "UV" - 42: String "instanceScale" - 46: String "instanceTexIndex" - 50: String "VSInput" - 59: String "Pos" - 63: String "LightVec" - 70: String "VSOutput" - 75: String "@main" - 81: String "input" - 88: String "output" - 116: String "s" - 128: String "modelview" - 133: String "lightPos" - 137: String "globSpeed" - 141: String "UBO" - 144: String "ubo" - 159: String "c" - 173: String "mx" - 200: String "my" - 226: String "mz" - 240: String "rotMat" - 264: String "gRotMat" - 284: String "locPos" - 297: String "pos" - 355: String "lPos" - Name 5 "main" - Name 26 "VSInput" - MemberName 26(VSInput) 0 "Pos" - MemberName 26(VSInput) 1 "Normal" - MemberName 26(VSInput) 2 "UV" - MemberName 26(VSInput) 3 "Color" - MemberName 26(VSInput) 4 "instancePos" - MemberName 26(VSInput) 5 "instanceRot" - MemberName 26(VSInput) 6 "instanceScale" - MemberName 26(VSInput) 7 "instanceTexIndex" - Name 57 "VSOutput" - MemberName 57(VSOutput) 0 "Pos" - MemberName 57(VSOutput) 1 "Normal" - MemberName 57(VSOutput) 2 "Color" - MemberName 57(VSOutput) 3 "UV" - MemberName 57(VSOutput) 4 "ViewVec" - MemberName 57(VSOutput) 5 "LightVec" - Name 74 "@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;" - Name 73 "input" - Name 86 "output" - Name 114 "s" - Name 126 "UBO" - MemberName 126(UBO) 0 "projection" - MemberName 126(UBO) 1 "modelview" - MemberName 126(UBO) 2 "lightPos" - MemberName 126(UBO) 3 "locSpeed" - MemberName 126(UBO) 4 "globSpeed" - Name 142 "ubo" - MemberName 142(ubo) 0 "ubo" - Name 148 "" - Name 157 "c" - Name 171 "mx" - Name 198 "my" - Name 224 "mz" - Name 238 "rotMat" - Name 262 "gRotMat" - Name 282 "locPos" - Name 295 "pos" - Name 353 "lPos" - Name 384 "input" - Name 386 "input.Pos" - Name 389 "input.Normal" - Name 393 "input.UV" - Name 396 "input.Color" - Name 399 "input.instancePos" - Name 402 "input.instanceRot" - Name 406 "input.instanceScale" - Name 410 "input.instanceTexIndex" - Name 413 "flattenTemp" - Name 414 "param" - Name 418 "@entryPointOutput.Pos" - Name 422 "@entryPointOutput.Normal" - Name 425 "@entryPointOutput.Color" - Name 428 "@entryPointOutput.UV" - Name 431 "@entryPointOutput.ViewVec" - Name 434 "@entryPointOutput.LightVec" - MemberDecorate 126(UBO) 0 RowMajor - MemberDecorate 126(UBO) 0 Offset 0 - MemberDecorate 126(UBO) 0 MatrixStride 16 - MemberDecorate 126(UBO) 1 RowMajor - MemberDecorate 126(UBO) 1 Offset 64 - MemberDecorate 126(UBO) 1 MatrixStride 16 - MemberDecorate 126(UBO) 2 Offset 128 - MemberDecorate 126(UBO) 3 Offset 144 - MemberDecorate 126(UBO) 4 Offset 148 - MemberDecorate 142(ubo) 0 Offset 0 - Decorate 142(ubo) Block - Decorate 148 DescriptorSet 0 - Decorate 148 Binding 0 - Decorate 386(input.Pos) Location 0 - Decorate 389(input.Normal) Location 1 - Decorate 393(input.UV) Location 2 - Decorate 396(input.Color) Location 3 - Decorate 399(input.instancePos) Location 4 - Decorate 402(input.instanceRot) Location 5 - Decorate 406(input.instanceScale) Location 6 - Decorate 410(input.instanceTexIndex) Location 7 - Decorate 418(@entryPointOutput.Pos) BuiltIn Position - Decorate 422(@entryPointOutput.Normal) Location 0 - Decorate 425(@entryPointOutput.Color) Location 1 - Decorate 428(@entryPointOutput.UV) Location 2 - Decorate 431(@entryPointOutput.ViewVec) Location 3 - Decorate 434(@entryPointOutput.LightVec) Location 4 - 3: TypeVoid - 4: TypeFunction 3 - 7: TypeFloat 32 - 10: TypeInt 32 0 - 13: 10(int) Constant 32 - 14: 10(int) Constant 6 - 15: 10(int) Constant 0 - 11: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 12 13 14 15 - 16: 10(int) Constant 3 - 8: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 13 16 15 - 17: TypeVector 7(float) 3 - 18: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 8 16 - 19: TypeVector 7(float) 2 - 20: 10(int) Constant 2 - 21: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 8 20 - 22: TypeInt 32 1 - 25: 10(int) Constant 4 - 24: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 23 13 25 15 - 26(VSInput): TypeStruct 17(fvec3) 17(fvec3) 19(fvec2) 17(fvec3) 17(fvec3) 17(fvec3) 7(float) 22(int) - 29: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 0 30 - 31: 10(int) Constant 35 - 32: 10(int) Constant 40 - 27: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 28 18 29 31 32 15 15 16 - 33: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 28 18 29 31 32 15 15 16 - 36: 10(int) Constant 30 - 37: 10(int) Constant 31 - 34: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 35 21 29 36 37 15 15 16 - 38: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 28 18 29 31 32 15 15 16 - 39: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 28 18 29 31 32 15 15 16 - 40: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 28 18 29 31 32 15 15 16 - 43: 10(int) Constant 36 - 44: 10(int) Constant 41 - 41: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 42 8 29 43 44 15 15 16 - 47: 10(int) Constant 37 - 48: 10(int) Constant 42 - 45: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 46 24 29 47 48 15 15 16 - 51: 10(int) Constant 1 - 53: 10(int) Constant 5 - 52: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 51 25 29 53 - 49: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 50 51 29 15 15 52 50 15 16 27 33 34 38 39 40 41 45 - 54: TypePointer Function 26(VSInput) - 55: TypeVector 7(float) 4 - 56: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 8 25 - 57(VSOutput): TypeStruct 55(fvec4) 17(fvec3) 17(fvec3) 17(fvec3) 17(fvec3) 17(fvec3) - 60: 10(int) Constant 53 - 61: 10(int) Constant 13 - 58: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 59 56 29 60 61 15 15 16 - 64: 10(int) Constant 58 - 62: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 63 18 29 64 47 15 15 16 - 65: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 63 18 29 64 47 15 15 16 - 66: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 63 18 29 64 47 15 15 16 - 67: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 63 18 29 64 47 15 15 16 - 68: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 63 18 29 64 47 15 15 16 - 69: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 70 51 29 15 15 52 70 15 16 58 62 65 66 67 68 - 71: TypeFunction 57(VSOutput) 54(ptr) - 72: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 16 69 49 - 76: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 75 72 29 15 15 52 75 16 15 - 80: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 81 49 29 15 15 76 25 51 - 83: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) - 85: TypePointer Function 57(VSOutput) - 89: 10(int) Constant 63 - 87: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 88 69 29 89 15 76 25 - 91: 7(float) Constant 0 - 92: 55(fvec4) ConstantComposite 91 91 91 91 - 93: 17(fvec3) ConstantComposite 91 91 91 - 94:57(VSOutput) ConstantComposite 92 93 93 93 93 93 - 95: 22(int) Constant 2 - 96: 22(int) Constant 3 - 97: TypePointer Function 17(fvec3) - 101: TypePointer Function 19(fvec2) - 104: 22(int) Constant 7 - 105: TypePointer Function 22(int) - 113: TypePointer Function 7(float) - 117: 10(int) Constant 68 - 115: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 116 8 29 117 15 76 25 - 119: 22(int) Constant 5 - 122: TypeMatrix 55(fvec4) 4 - 124: TypeBool - 125: 124(bool) ConstantTrue - 123: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 56 25 125 - 126(UBO): TypeStruct 122 122 55(fvec4) 7(float) 7(float) - 129: 10(int) Constant 43 - 130: 10(int) Constant 20 - 127: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 128 123 29 129 130 15 15 16 - 131: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 128 123 29 129 130 15 15 16 - 134: 10(int) Constant 44 - 135: 10(int) Constant 17 - 132: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 133 56 29 134 135 15 15 16 - 138: 10(int) Constant 46 - 136: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 137 8 29 138 135 15 15 16 - 139: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 137 8 29 138 135 15 15 16 - 140: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 141 51 29 117 15 52 141 15 16 127 131 132 136 139 - 142(ubo): TypeStruct 126(UBO) - 145: 10(int) Constant 49 - 143: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 144 140 29 145 47 15 15 16 - 146: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 144 51 29 117 15 52 144 15 16 143 - 147: TypePointer Uniform 142(ubo) - 148: 147(ptr) Variable Uniform - 150: 10(int) Constant 8 - 149: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 30 146 29 117 15 52 30 148 150 - 151: 22(int) Constant 0 - 152: TypePointer Uniform 7(float) - 160: 10(int) Constant 69 - 158: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 159 8 29 160 15 76 25 - 168: TypeMatrix 17(fvec3) 3 - 169: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 18 16 125 - 170: TypePointer Function 168 - 174: 10(int) Constant 71 - 172: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 173 169 29 174 15 76 25 - 181: 7(float) Constant 1065353216 - 201: 10(int) Constant 79 - 199: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 200 169 29 201 15 76 25 - 227: 10(int) Constant 87 - 225: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 226 169 29 227 15 76 25 - 241: 10(int) Constant 91 - 239: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 240 169 29 241 15 76 25 - 250: 22(int) Constant 4 - 261: TypePointer Function 122 - 265: 10(int) Constant 96 - 263: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 264 123 29 265 15 76 25 - 271: TypePointer Function 55(fvec4) - 273: 22(int) Constant 1 - 274: 55(fvec4) ConstantComposite 91 181 91 91 - 280: 55(fvec4) ConstantComposite 91 91 91 181 - 285: 10(int) Constant 101 - 283: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 284 56 29 285 15 76 25 - 298: 10(int) Constant 102 - 296: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 297 56 29 298 15 76 25 - 302: 22(int) Constant 6 - 316: TypePointer Uniform 122 - 356: 10(int) Constant 108 - 354: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 355 18 29 356 15 76 25 - 358: TypePointer Uniform 55(fvec4) - 385: TypePointer Input 17(fvec3) - 386(input.Pos): 385(ptr) Variable Input -389(input.Normal): 385(ptr) Variable Input - 392: TypePointer Input 19(fvec2) - 393(input.UV): 392(ptr) Variable Input -396(input.Color): 385(ptr) Variable Input -399(input.instancePos): 385(ptr) Variable Input -402(input.instanceRot): 385(ptr) Variable Input - 405: TypePointer Input 7(float) -406(input.instanceScale): 405(ptr) Variable Input - 409: TypePointer Input 22(int) -410(input.instanceTexIndex): 409(ptr) Variable Input - 417: TypePointer Output 55(fvec4) -418(@entryPointOutput.Pos): 417(ptr) Variable Output - 421: TypePointer Output 17(fvec3) -422(@entryPointOutput.Normal): 421(ptr) Variable Output -425(@entryPointOutput.Color): 421(ptr) Variable Output -428(@entryPointOutput.UV): 421(ptr) Variable Output -431(@entryPointOutput.ViewVec): 421(ptr) Variable Output -434(@entryPointOutput.LightVec): 421(ptr) Variable Output - 5(main): 3 Function None 4 - 6: Label - 384(input): 54(ptr) Variable Function -413(flattenTemp): 85(ptr) Variable Function - 414(param): 54(ptr) Variable Function - 387: 17(fvec3) Load 386(input.Pos) - 388: 97(ptr) AccessChain 384(input) 151 - Store 388 387 - 390: 17(fvec3) Load 389(input.Normal) - 391: 97(ptr) AccessChain 384(input) 273 - Store 391 390 - 394: 19(fvec2) Load 393(input.UV) - 395: 101(ptr) AccessChain 384(input) 95 - Store 395 394 - 397: 17(fvec3) Load 396(input.Color) - 398: 97(ptr) AccessChain 384(input) 96 - Store 398 397 - 400: 17(fvec3) Load 399(input.instancePos) - 401: 97(ptr) AccessChain 384(input) 250 - Store 401 400 - 403: 17(fvec3) Load 402(input.instanceRot) - 404: 97(ptr) AccessChain 384(input) 119 - Store 404 403 - 407: 7(float) Load 406(input.instanceScale) - 408: 113(ptr) AccessChain 384(input) 302 - Store 408 407 - 411: 22(int) Load 410(input.instanceTexIndex) - 412: 105(ptr) AccessChain 384(input) 104 - Store 412 411 - 415: 26(VSInput) Load 384(input) - Store 414(param) 415 - 416:57(VSOutput) FunctionCall 74(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;) 414(param) - Store 413(flattenTemp) 416 - 419: 271(ptr) AccessChain 413(flattenTemp) 151 - 420: 55(fvec4) Load 419 - Store 418(@entryPointOutput.Pos) 420 - 423: 97(ptr) AccessChain 413(flattenTemp) 273 - 424: 17(fvec3) Load 423 - Store 422(@entryPointOutput.Normal) 424 - 426: 97(ptr) AccessChain 413(flattenTemp) 95 - 427: 17(fvec3) Load 426 - Store 425(@entryPointOutput.Color) 427 - 429: 97(ptr) AccessChain 413(flattenTemp) 96 - 430: 17(fvec3) Load 429 - Store 428(@entryPointOutput.UV) 430 - 432: 97(ptr) AccessChain 413(flattenTemp) 250 - 433: 17(fvec3) Load 432 - Store 431(@entryPointOutput.ViewVec) 433 - 435: 97(ptr) AccessChain 413(flattenTemp) 119 - 436: 17(fvec3) Load 435 - Store 434(@entryPointOutput.LightVec) 436 + EntryPoint Vertex 6 "main" 444 447 451 454 457 460 464 468 476 480 483 486 489 492 + 1: String "" + 10: String "float" + 13: String "uint" + 24: String "int" + 29: String "instanceRot" + 31: String "// OpModuleProcessed auto-map-locations +// OpModuleProcessed auto-map-bindings +// OpModuleProcessed entry-point main +// OpModuleProcessed client vulkan100 +// OpModuleProcessed target-env vulkan1.0 +// OpModuleProcessed keep-uncalled +// OpModuleProcessed hlsl-offsets +#line 1 +" + 36: String "UV" + 43: String "instanceScale" + 47: String "instanceTexIndex" + 51: String "VSInput" + 60: String "Pos" + 64: String "LightVec" + 71: String "VSOutput" + 76: String "@main" + 82: String "input" + 92: String "output" + 125: String "s" + 136: String "modelview" + 141: String "lightPos" + 145: String "globSpeed" + 149: String "UBO" + 152: String "ubo" + 169: String "c" + 184: String "mx" + 219: String "my" + 253: String "mz" + 273: String "rotMat" + 302: String "gRotMat" + 329: String "locPos" + 343: String "pos" + 408: 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 58 "VSOutput" + MemberName 58(VSOutput) 0 "Pos" + MemberName 58(VSOutput) 1 "Normal" + MemberName 58(VSOutput) 2 "Color" + MemberName 58(VSOutput) 3 "UV" + MemberName 58(VSOutput) 4 "ViewVec" + MemberName 58(VSOutput) 5 "LightVec" + Name 75 "@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;" + Name 74 "input" + Name 90 "output" + Name 123 "s" + Name 134 "UBO" + MemberName 134(UBO) 0 "projection" + MemberName 134(UBO) 1 "modelview" + MemberName 134(UBO) 2 "lightPos" + MemberName 134(UBO) 3 "locSpeed" + MemberName 134(UBO) 4 "globSpeed" + Name 150 "ubo" + MemberName 150(ubo) 0 "ubo" + Name 156 "" + Name 167 "c" + Name 182 "mx" + Name 217 "my" + Name 251 "mz" + Name 271 "rotMat" + Name 300 "gRotMat" + Name 327 "locPos" + Name 341 "pos" + Name 406 "lPos" + Name 442 "input" + Name 444 "input.Pos" + Name 447 "input.Normal" + Name 451 "input.UV" + Name 454 "input.Color" + Name 457 "input.instancePos" + Name 460 "input.instanceRot" + Name 464 "input.instanceScale" + Name 468 "input.instanceTexIndex" + Name 471 "flattenTemp" + Name 472 "param" + Name 476 "@entryPointOutput.Pos" + Name 480 "@entryPointOutput.Normal" + Name 483 "@entryPointOutput.Color" + Name 486 "@entryPointOutput.UV" + Name 489 "@entryPointOutput.ViewVec" + Name 492 "@entryPointOutput.LightVec" + MemberDecorate 134(UBO) 0 RowMajor + MemberDecorate 134(UBO) 0 Offset 0 + MemberDecorate 134(UBO) 0 MatrixStride 16 + MemberDecorate 134(UBO) 1 RowMajor + MemberDecorate 134(UBO) 1 Offset 64 + MemberDecorate 134(UBO) 1 MatrixStride 16 + MemberDecorate 134(UBO) 2 Offset 128 + MemberDecorate 134(UBO) 3 Offset 144 + MemberDecorate 134(UBO) 4 Offset 148 + MemberDecorate 150(ubo) 0 Offset 0 + Decorate 150(ubo) Block + Decorate 156 DescriptorSet 0 + Decorate 156 Binding 0 + Decorate 444(input.Pos) Location 0 + Decorate 447(input.Normal) Location 1 + Decorate 451(input.UV) Location 2 + Decorate 454(input.Color) Location 3 + Decorate 457(input.instancePos) Location 4 + Decorate 460(input.instanceRot) Location 5 + Decorate 464(input.instanceScale) Location 6 + Decorate 468(input.instanceTexIndex) Location 7 + Decorate 476(@entryPointOutput.Pos) BuiltIn Position + Decorate 480(@entryPointOutput.Normal) Location 0 + Decorate 483(@entryPointOutput.Color) Location 1 + Decorate 486(@entryPointOutput.UV) Location 2 + Decorate 489(@entryPointOutput.ViewVec) Location 3 + Decorate 492(@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 + 12: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 13 14 15 16 + 17: 11(int) Constant 3 + 9: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 10 14 17 16 + 18: TypeVector 8(float) 3 + 19: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 17 + 20: TypeVector 8(float) 2 + 21: 11(int) Constant 2 + 22: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 21 + 23: TypeInt 32 1 + 26: 11(int) Constant 4 + 25: 4 ExtInst 2(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 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 31 + 32: 11(int) Constant 35 + 33: 11(int) Constant 40 + 28: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 29 19 30 32 33 16 16 17 + 34: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 29 19 30 32 33 16 16 17 + 37: 11(int) Constant 30 + 38: 11(int) Constant 31 + 35: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 36 22 30 37 38 16 16 17 + 39: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 29 19 30 32 33 16 16 17 + 40: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 29 19 30 32 33 16 16 17 + 41: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 29 19 30 32 33 16 16 17 + 44: 11(int) Constant 36 + 45: 11(int) Constant 41 + 42: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 43 9 30 44 45 16 16 17 + 48: 11(int) Constant 37 + 49: 11(int) Constant 42 + 46: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 47 25 30 48 49 16 16 17 + 52: 11(int) Constant 1 + 54: 11(int) Constant 5 + 53: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 52 26 30 54 + 50: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 51 52 30 16 16 53 51 16 17 28 34 35 39 40 41 42 46 + 55: TypePointer Function 27(VSInput) + 56: TypeVector 8(float) 4 + 57: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 26 + 58(VSOutput): TypeStruct 56(fvec4) 18(fvec3) 18(fvec3) 18(fvec3) 18(fvec3) 18(fvec3) + 61: 11(int) Constant 53 + 62: 11(int) Constant 13 + 59: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 60 57 30 61 62 16 16 17 + 65: 11(int) Constant 58 + 63: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 64 19 30 65 48 16 16 17 + 66: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 64 19 30 65 48 16 16 17 + 67: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 64 19 30 65 48 16 16 17 + 68: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 64 19 30 65 48 16 16 17 + 69: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 64 19 30 65 48 16 16 17 + 70: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 71 52 30 16 16 53 71 16 17 59 63 66 67 68 69 + 72: TypeFunction 58(VSOutput) 55(ptr) + 73: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 70 50 + 77: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 76 73 30 16 16 53 76 17 16 + 81: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 82 50 30 16 16 77 26 52 + 84: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) + 88: 11(int) Constant 63 + 89: TypePointer Function 58(VSOutput) + 91: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 92 70 30 88 16 77 26 + 94: 8(float) Constant 0 + 95: 56(fvec4) ConstantComposite 94 94 94 94 + 96: 18(fvec3) ConstantComposite 94 94 94 + 97:58(VSOutput) ConstantComposite 95 96 96 96 96 96 + 99: 11(int) Constant 64 + 100: 23(int) Constant 2 + 101: 23(int) Constant 3 + 102: TypePointer Function 18(fvec3) + 107: 11(int) Constant 65 + 108: TypePointer Function 20(fvec2) + 111: 23(int) Constant 7 + 112: TypePointer Function 23(int) + 121: 11(int) Constant 68 + 122: TypePointer Function 8(float) + 124: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 125 9 30 121 16 77 26 + 127: 23(int) Constant 5 + 130: TypeMatrix 56(fvec4) 4 + 132: TypeBool + 133: 132(bool) ConstantTrue + 131: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 57 26 133 + 134(UBO): TypeStruct 130 130 56(fvec4) 8(float) 8(float) + 137: 11(int) Constant 43 + 138: 11(int) Constant 20 + 135: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 136 131 30 137 138 16 16 17 + 139: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 136 131 30 137 138 16 16 17 + 142: 11(int) Constant 44 + 143: 11(int) Constant 17 + 140: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 141 57 30 142 143 16 16 17 + 146: 11(int) Constant 46 + 144: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 145 9 30 146 143 16 16 17 + 147: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 145 9 30 146 143 16 16 17 + 148: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 149 52 30 121 16 53 149 16 17 135 139 140 144 147 + 150(ubo): TypeStruct 134(UBO) + 153: 11(int) Constant 49 + 151: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 152 148 30 153 48 16 16 17 + 154: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 152 52 30 121 16 53 152 16 17 151 + 155: TypePointer Uniform 150(ubo) + 156: 155(ptr) Variable Uniform + 158: 11(int) Constant 8 + 157: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 154 30 121 16 53 1 156 158 + 159: 23(int) Constant 0 + 160: TypePointer Uniform 8(float) + 166: 11(int) Constant 69 + 168: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 169 9 30 166 16 77 26 + 178: 11(int) Constant 71 + 179: TypeMatrix 18(fvec3) 3 + 180: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 19 17 133 + 181: TypePointer Function 179 + 183: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 184 180 30 178 16 77 26 + 190: 11(int) Constant 72 + 193: 8(float) Constant 1065353216 + 200: 11(int) Constant 76 + 208: 11(int) Constant 77 + 216: 11(int) Constant 79 + 218: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 219 180 30 216 16 77 26 + 225: 11(int) Constant 81 + 234: 11(int) Constant 84 + 242: 11(int) Constant 85 + 250: 11(int) Constant 87 + 252: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 253 180 30 250 16 77 26 + 256: 11(int) Constant 88 + 261: 11(int) Constant 89 + 270: 11(int) Constant 91 + 272: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 273 180 30 270 16 77 26 + 281: 11(int) Constant 94 + 284: 23(int) Constant 4 + 290: 11(int) Constant 95 + 298: 11(int) Constant 96 + 299: TypePointer Function 130 + 301: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 302 131 30 298 16 77 26 + 308: TypePointer Function 56(fvec4) + 311: 11(int) Constant 97 + 312: 23(int) Constant 1 + 313: 56(fvec4) ConstantComposite 94 193 94 94 + 316: 11(int) Constant 98 + 322: 11(int) Constant 99 + 323: 56(fvec4) ConstantComposite 94 94 94 193 + 326: 11(int) Constant 101 + 328: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 329 57 30 326 16 77 26 + 340: 11(int) Constant 102 + 342: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 343 57 30 340 16 77 26 + 347: 23(int) Constant 6 + 359: 11(int) Constant 104 + 363: TypePointer Uniform 130 + 372: 11(int) Constant 105 + 391: 11(int) Constant 107 + 405: 11(int) Constant 108 + 407: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 408 19 30 405 16 77 26 + 410: TypePointer Uniform 56(fvec4) + 425: 11(int) Constant 109 + 432: 11(int) Constant 110 + 438: 11(int) Constant 111 + 443: TypePointer Input 18(fvec3) + 444(input.Pos): 443(ptr) Variable Input +447(input.Normal): 443(ptr) Variable Input + 450: TypePointer Input 20(fvec2) + 451(input.UV): 450(ptr) Variable Input +454(input.Color): 443(ptr) Variable Input +457(input.instancePos): 443(ptr) Variable Input +460(input.instanceRot): 443(ptr) Variable Input + 463: TypePointer Input 8(float) +464(input.instanceScale): 463(ptr) Variable Input + 467: TypePointer Input 23(int) +468(input.instanceTexIndex): 467(ptr) Variable Input + 475: TypePointer Output 56(fvec4) +476(@entryPointOutput.Pos): 475(ptr) Variable Output + 479: TypePointer Output 18(fvec3) +480(@entryPointOutput.Normal): 479(ptr) Variable Output +483(@entryPointOutput.Color): 479(ptr) Variable Output +486(@entryPointOutput.UV): 479(ptr) Variable Output +489(@entryPointOutput.ViewVec): 479(ptr) Variable Output +492(@entryPointOutput.LightVec): 479(ptr) Variable Output + Line 1 62 1 + 6(main): 4 Function None 5 + 7: Label + 442(input): 55(ptr) Variable Function +471(flattenTemp): 89(ptr) Variable Function + 472(param): 55(ptr) Variable Function + Line 1 62 0 + 445: 18(fvec3) Load 444(input.Pos) + 446: 102(ptr) AccessChain 442(input) 159 + Store 446 445 + 448: 18(fvec3) Load 447(input.Normal) + 449: 102(ptr) AccessChain 442(input) 312 + Store 449 448 + 452: 20(fvec2) Load 451(input.UV) + 453: 108(ptr) AccessChain 442(input) 100 + Store 453 452 + 455: 18(fvec3) Load 454(input.Color) + 456: 102(ptr) AccessChain 442(input) 101 + Store 456 455 + 458: 18(fvec3) Load 457(input.instancePos) + 459: 102(ptr) AccessChain 442(input) 284 + Store 459 458 + 461: 18(fvec3) Load 460(input.instanceRot) + 462: 102(ptr) AccessChain 442(input) 127 + Store 462 461 + 465: 8(float) Load 464(input.instanceScale) + 466: 122(ptr) AccessChain 442(input) 347 + Store 466 465 + 469: 23(int) Load 468(input.instanceTexIndex) + 470: 112(ptr) AccessChain 442(input) 111 + Store 470 469 + 473: 27(VSInput) Load 442(input) + Store 472(param) 473 + 474:58(VSOutput) FunctionCall 75(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;) 472(param) + Store 471(flattenTemp) 474 + 477: 308(ptr) AccessChain 471(flattenTemp) 159 + 478: 56(fvec4) Load 477 + Store 476(@entryPointOutput.Pos) 478 + 481: 102(ptr) AccessChain 471(flattenTemp) 312 + 482: 18(fvec3) Load 481 + Store 480(@entryPointOutput.Normal) 482 + 484: 102(ptr) AccessChain 471(flattenTemp) 100 + 485: 18(fvec3) Load 484 + Store 483(@entryPointOutput.Color) 485 + 487: 102(ptr) AccessChain 471(flattenTemp) 101 + 488: 18(fvec3) Load 487 + Store 486(@entryPointOutput.UV) 488 + 490: 102(ptr) AccessChain 471(flattenTemp) 284 + 491: 18(fvec3) Load 490 + Store 489(@entryPointOutput.ViewVec) 491 + 493: 102(ptr) AccessChain 471(flattenTemp) 127 + 494: 18(fvec3) Load 493 + Store 492(@entryPointOutput.LightVec) 494 Return FunctionEnd -74(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;):57(VSOutput) Function None 71 - 73(input): 54(ptr) FunctionParameter - 77: Label - 86(output): 85(ptr) Variable Function - 114(s): 113(ptr) Variable Function - 157(c): 113(ptr) Variable Function - 171(mx): 170(ptr) Variable Function - 198(my): 170(ptr) Variable Function - 224(mz): 170(ptr) Variable Function - 238(rotMat): 170(ptr) Variable Function - 262(gRotMat): 261(ptr) Variable Function - 282(locPos): 271(ptr) Variable Function - 295(pos): 271(ptr) Variable Function - 353(lPos): 97(ptr) Variable Function - 78: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 76 - 79: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 29 15 15 15 15 - 82: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 80 73(input) 83 - 84: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 76 74(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;) - 90: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 87 86(output) 83 - Store 86(output) 94 - 98: 97(ptr) AccessChain 73(input) 96 - 99: 17(fvec3) Load 98 - 100: 97(ptr) AccessChain 86(output) 95 - Store 100 99 - 102: 101(ptr) AccessChain 73(input) 95 - 103: 19(fvec2) Load 102 - 106: 105(ptr) AccessChain 73(input) 104 - 107: 22(int) Load 106 - 108: 7(float) ConvertSToF 107 - 109: 7(float) CompositeExtract 103 0 - 110: 7(float) CompositeExtract 103 1 - 111: 17(fvec3) CompositeConstruct 109 110 108 - 112: 97(ptr) AccessChain 86(output) 96 - Store 112 111 - 118: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 115 114(s) 83 - 120: 113(ptr) AccessChain 73(input) 119 15 - 121: 7(float) Load 120 - 153: 152(ptr) AccessChain 148 151 96 - 154: 7(float) Load 153 - 155: 7(float) FAdd 121 154 - 156: 7(float) ExtInst 2(GLSL.std.450) 13(Sin) 155 - Store 114(s) 156 - 161: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 158 157(c) 83 - 162: 113(ptr) AccessChain 73(input) 119 15 - 163: 7(float) Load 162 - 164: 152(ptr) AccessChain 148 151 96 - 165: 7(float) Load 164 - 166: 7(float) FAdd 163 165 - 167: 7(float) ExtInst 2(GLSL.std.450) 14(Cos) 166 - Store 157(c) 167 - 175: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 172 171(mx) 83 - 176: 7(float) Load 157(c) - 177: 7(float) Load 114(s) - 178: 7(float) FNegate 177 - 179: 7(float) Load 114(s) - 180: 7(float) Load 157(c) - 182: 17(fvec3) CompositeConstruct 176 178 91 - 183: 17(fvec3) CompositeConstruct 179 180 91 - 184: 17(fvec3) CompositeConstruct 91 91 181 - 185: 168 CompositeConstruct 182 183 184 - Store 171(mx) 185 - 186: 113(ptr) AccessChain 73(input) 119 51 - 187: 7(float) Load 186 - 188: 152(ptr) AccessChain 148 151 96 - 189: 7(float) Load 188 - 190: 7(float) FAdd 187 189 - 191: 7(float) ExtInst 2(GLSL.std.450) 13(Sin) 190 - Store 114(s) 191 - 192: 113(ptr) AccessChain 73(input) 119 51 - 193: 7(float) Load 192 - 194: 152(ptr) AccessChain 148 151 96 - 195: 7(float) Load 194 - 196: 7(float) FAdd 193 195 - 197: 7(float) ExtInst 2(GLSL.std.450) 14(Cos) 196 - Store 157(c) 197 - 202: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 199 198(my) 83 - 203: 7(float) Load 157(c) - 204: 7(float) Load 114(s) - 205: 7(float) FNegate 204 - 206: 7(float) Load 114(s) - 207: 7(float) Load 157(c) - 208: 17(fvec3) CompositeConstruct 203 91 205 - 209: 17(fvec3) CompositeConstruct 91 181 91 - 210: 17(fvec3) CompositeConstruct 206 91 207 - 211: 168 CompositeConstruct 208 209 210 - Store 198(my) 211 - 212: 113(ptr) AccessChain 73(input) 119 20 - 213: 7(float) Load 212 - 214: 152(ptr) AccessChain 148 151 96 - 215: 7(float) Load 214 - 216: 7(float) FAdd 213 215 - 217: 7(float) ExtInst 2(GLSL.std.450) 13(Sin) 216 - Store 114(s) 217 - 218: 113(ptr) AccessChain 73(input) 119 20 - 219: 7(float) Load 218 - 220: 152(ptr) AccessChain 148 151 96 - 221: 7(float) Load 220 - 222: 7(float) FAdd 219 221 - 223: 7(float) ExtInst 2(GLSL.std.450) 14(Cos) 222 - Store 157(c) 223 - 228: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 225 224(mz) 83 - 229: 7(float) Load 157(c) - 230: 7(float) Load 114(s) - 231: 7(float) FNegate 230 - 232: 7(float) Load 114(s) - 233: 7(float) Load 157(c) - 234: 17(fvec3) CompositeConstruct 181 91 91 - 235: 17(fvec3) CompositeConstruct 91 229 231 - 236: 17(fvec3) CompositeConstruct 91 232 233 - 237: 168 CompositeConstruct 234 235 236 - Store 224(mz) 237 - 242: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 239 238(rotMat) 83 - 243: 168 Load 171(mx) - 244: 168 Load 198(my) - 245: 168 MatrixTimesMatrix 243 244 - 246: 168 Load 224(mz) - 247: 168 MatrixTimesMatrix 245 246 - Store 238(rotMat) 247 - 248: 113(ptr) AccessChain 73(input) 119 51 - 249: 7(float) Load 248 - 251: 152(ptr) AccessChain 148 151 250 - 252: 7(float) Load 251 - 253: 7(float) FAdd 249 252 - 254: 7(float) ExtInst 2(GLSL.std.450) 13(Sin) 253 - Store 114(s) 254 - 255: 113(ptr) AccessChain 73(input) 119 51 - 256: 7(float) Load 255 - 257: 152(ptr) AccessChain 148 151 250 - 258: 7(float) Load 257 - 259: 7(float) FAdd 256 258 - 260: 7(float) ExtInst 2(GLSL.std.450) 14(Cos) 259 - Store 157(c) 260 - 266: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 263 262(gRotMat) 83 - 267: 7(float) Load 157(c) - 268: 7(float) Load 114(s) - 269: 7(float) FNegate 268 - 270: 55(fvec4) CompositeConstruct 267 91 269 91 - 272: 271(ptr) AccessChain 262(gRotMat) 151 - Store 272 270 - 275: 271(ptr) AccessChain 262(gRotMat) 273 - Store 275 274 - 276: 7(float) Load 114(s) - 277: 7(float) Load 157(c) - 278: 55(fvec4) CompositeConstruct 276 91 277 91 - 279: 271(ptr) AccessChain 262(gRotMat) 95 - Store 279 278 - 281: 271(ptr) AccessChain 262(gRotMat) 96 - Store 281 280 - 286: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 283 282(locPos) 83 - 287: 97(ptr) AccessChain 73(input) 151 - 288: 17(fvec3) Load 287 - 289: 168 Load 238(rotMat) - 290: 17(fvec3) VectorTimesMatrix 288 289 - 291: 7(float) CompositeExtract 290 0 - 292: 7(float) CompositeExtract 290 1 - 293: 7(float) CompositeExtract 290 2 - 294: 55(fvec4) CompositeConstruct 291 292 293 181 - Store 282(locPos) 294 - 299: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 296 295(pos) 83 - 300: 55(fvec4) Load 282(locPos) - 301: 17(fvec3) VectorShuffle 300 300 0 1 2 - 303: 113(ptr) AccessChain 73(input) 302 - 304: 7(float) Load 303 - 305: 17(fvec3) VectorTimesScalar 301 304 - 306: 97(ptr) AccessChain 73(input) 250 - 307: 17(fvec3) Load 306 - 308: 17(fvec3) FAdd 305 307 - 309: 7(float) CompositeExtract 308 0 - 310: 7(float) CompositeExtract 308 1 - 311: 7(float) CompositeExtract 308 2 - 312: 55(fvec4) CompositeConstruct 309 310 311 181 - Store 295(pos) 312 - 313: 55(fvec4) Load 295(pos) - 314: 122 Load 262(gRotMat) - 315: 55(fvec4) VectorTimesMatrix 313 314 - 317: 316(ptr) AccessChain 148 151 273 - 318: 122 Load 317 - 319: 55(fvec4) VectorTimesMatrix 315 318 - 320: 316(ptr) AccessChain 148 151 151 - 321: 122 Load 320 - 322: 55(fvec4) VectorTimesMatrix 319 321 - 323: 271(ptr) AccessChain 86(output) 151 - Store 323 322 - 324: 97(ptr) AccessChain 73(input) 273 - 325: 17(fvec3) Load 324 - 326: 168 Load 238(rotMat) - 327: 17(fvec3) VectorTimesMatrix 325 326 - 328: 122 Load 262(gRotMat) - 329: 316(ptr) AccessChain 148 151 273 - 330: 122 Load 329 - 331: 122 MatrixTimesMatrix 328 330 - 332: 55(fvec4) CompositeExtract 331 0 - 333: 17(fvec3) VectorShuffle 332 332 0 1 2 - 334: 55(fvec4) CompositeExtract 331 1 - 335: 17(fvec3) VectorShuffle 334 334 0 1 2 - 336: 55(fvec4) CompositeExtract 331 2 - 337: 17(fvec3) VectorShuffle 336 336 0 1 2 - 338: 168 CompositeConstruct 333 335 337 - 339: 17(fvec3) VectorTimesMatrix 327 338 - 340: 97(ptr) AccessChain 86(output) 273 - Store 340 339 - 341: 97(ptr) AccessChain 73(input) 151 - 342: 17(fvec3) Load 341 - 343: 97(ptr) AccessChain 73(input) 250 - 344: 17(fvec3) Load 343 - 345: 17(fvec3) FAdd 342 344 - 346: 7(float) CompositeExtract 345 0 - 347: 7(float) CompositeExtract 345 1 - 348: 7(float) CompositeExtract 345 2 - 349: 55(fvec4) CompositeConstruct 346 347 348 181 - 350: 316(ptr) AccessChain 148 151 273 - 351: 122 Load 350 - 352: 55(fvec4) VectorTimesMatrix 349 351 - Store 295(pos) 352 - 357: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 354 353(lPos) 83 - 359: 358(ptr) AccessChain 148 151 95 - 360: 55(fvec4) Load 359 - 361: 17(fvec3) VectorShuffle 360 360 0 1 2 - 362: 316(ptr) AccessChain 148 151 273 - 363: 122 Load 362 - 364: 55(fvec4) CompositeExtract 363 0 - 365: 17(fvec3) VectorShuffle 364 364 0 1 2 - 366: 55(fvec4) CompositeExtract 363 1 - 367: 17(fvec3) VectorShuffle 366 366 0 1 2 - 368: 55(fvec4) CompositeExtract 363 2 - 369: 17(fvec3) VectorShuffle 368 368 0 1 2 - 370: 168 CompositeConstruct 365 367 369 - 371: 17(fvec3) VectorTimesMatrix 361 370 - Store 353(lPos) 371 - 372: 17(fvec3) Load 353(lPos) - 373: 55(fvec4) Load 295(pos) - 374: 17(fvec3) VectorShuffle 373 373 0 1 2 - 375: 17(fvec3) FSub 372 374 - 376: 97(ptr) AccessChain 86(output) 119 - Store 376 375 - 377: 55(fvec4) Load 295(pos) - 378: 17(fvec3) VectorShuffle 377 377 0 1 2 - 379: 17(fvec3) FNegate 378 - 380: 97(ptr) AccessChain 86(output) 250 - Store 380 379 - 381:57(VSOutput) Load 86(output) - ReturnValue 381 + Line 1 62 1 +75(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;):58(VSOutput) Function None 72 + 74(input): 55(ptr) FunctionParameter + 78: Label + 90(output): 89(ptr) Variable Function + 123(s): 122(ptr) Variable Function + 167(c): 122(ptr) Variable Function + 182(mx): 181(ptr) Variable Function + 217(my): 181(ptr) Variable Function + 251(mz): 181(ptr) Variable Function + 271(rotMat): 181(ptr) Variable Function + 300(gRotMat): 299(ptr) Variable Function + 327(locPos): 308(ptr) Variable Function + 341(pos): 308(ptr) Variable Function + 406(lPos): 102(ptr) Variable Function + 79: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 77 + 80: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 16 16 16 16 + 83: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 81 74(input) 84 + 85: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 77 75(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;) + 86: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 77 + 87: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 88 88 16 16 + 93: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 91 90(output) 84 + Store 90(output) 97 + 98: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 99 99 16 16 + 103: 102(ptr) AccessChain 74(input) 101 + 104: 18(fvec3) Load 103 + 105: 102(ptr) AccessChain 90(output) 100 + Store 105 104 + 106: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 107 107 16 16 + 109: 108(ptr) AccessChain 74(input) 100 + 110: 20(fvec2) Load 109 + 113: 112(ptr) AccessChain 74(input) 111 + 114: 23(int) Load 113 + 115: 8(float) ConvertSToF 114 + 116: 8(float) CompositeExtract 110 0 + 117: 8(float) CompositeExtract 110 1 + 118: 18(fvec3) CompositeConstruct 116 117 115 + 119: 102(ptr) AccessChain 90(output) 101 + Store 119 118 + 120: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 121 121 16 16 + 126: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 124 123(s) 84 + 128: 122(ptr) AccessChain 74(input) 127 16 + 129: 8(float) Load 128 + 161: 160(ptr) AccessChain 156 159 101 + 162: 8(float) Load 161 + 163: 8(float) FAdd 129 162 + 164: 8(float) ExtInst 3(GLSL.std.450) 13(Sin) 163 + Store 123(s) 164 + 165: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 166 166 16 16 + 170: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 168 167(c) 84 + 171: 122(ptr) AccessChain 74(input) 127 16 + 172: 8(float) Load 171 + 173: 160(ptr) AccessChain 156 159 101 + 174: 8(float) Load 173 + 175: 8(float) FAdd 172 174 + 176: 8(float) ExtInst 3(GLSL.std.450) 14(Cos) 175 + Store 167(c) 176 + 177: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 178 178 16 16 + 185: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 183 182(mx) 84 + 186: 8(float) Load 167(c) + 187: 8(float) Load 123(s) + 188: 8(float) FNegate 187 + 189: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 190 190 16 16 + 191: 8(float) Load 123(s) + 192: 8(float) Load 167(c) + 194: 18(fvec3) CompositeConstruct 186 188 94 + 195: 18(fvec3) CompositeConstruct 191 192 94 + 196: 18(fvec3) CompositeConstruct 94 94 193 + 197: 179 CompositeConstruct 194 195 196 + 198: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 178 178 16 16 + Store 182(mx) 197 + 199: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 200 200 16 16 + 201: 122(ptr) AccessChain 74(input) 127 52 + 202: 8(float) Load 201 + 203: 160(ptr) AccessChain 156 159 101 + 204: 8(float) Load 203 + 205: 8(float) FAdd 202 204 + 206: 8(float) ExtInst 3(GLSL.std.450) 13(Sin) 205 + Store 123(s) 206 + 207: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 208 208 16 16 + 209: 122(ptr) AccessChain 74(input) 127 52 + 210: 8(float) Load 209 + 211: 160(ptr) AccessChain 156 159 101 + 212: 8(float) Load 211 + 213: 8(float) FAdd 210 212 + 214: 8(float) ExtInst 3(GLSL.std.450) 14(Cos) 213 + Store 167(c) 214 + 215: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 216 216 16 16 + 220: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 218 217(my) 84 + 221: 8(float) Load 167(c) + 222: 8(float) Load 123(s) + 223: 8(float) FNegate 222 + 224: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 225 225 16 16 + 226: 8(float) Load 123(s) + 227: 8(float) Load 167(c) + 228: 18(fvec3) CompositeConstruct 221 94 223 + 229: 18(fvec3) CompositeConstruct 94 193 94 + 230: 18(fvec3) CompositeConstruct 226 94 227 + 231: 179 CompositeConstruct 228 229 230 + 232: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 216 216 16 16 + Store 217(my) 231 + 233: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 234 234 16 16 + 235: 122(ptr) AccessChain 74(input) 127 21 + 236: 8(float) Load 235 + 237: 160(ptr) AccessChain 156 159 101 + 238: 8(float) Load 237 + 239: 8(float) FAdd 236 238 + 240: 8(float) ExtInst 3(GLSL.std.450) 13(Sin) 239 + Store 123(s) 240 + 241: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 242 242 16 16 + 243: 122(ptr) AccessChain 74(input) 127 21 + 244: 8(float) Load 243 + 245: 160(ptr) AccessChain 156 159 101 + 246: 8(float) Load 245 + 247: 8(float) FAdd 244 246 + 248: 8(float) ExtInst 3(GLSL.std.450) 14(Cos) 247 + Store 167(c) 248 + 249: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 250 250 16 16 + 254: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 252 251(mz) 84 + 255: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 256 256 16 16 + 257: 8(float) Load 167(c) + 258: 8(float) Load 123(s) + 259: 8(float) FNegate 258 + 260: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 261 261 16 16 + 262: 8(float) Load 123(s) + 263: 8(float) Load 167(c) + 264: 18(fvec3) CompositeConstruct 193 94 94 + 265: 18(fvec3) CompositeConstruct 94 257 259 + 266: 18(fvec3) CompositeConstruct 94 262 263 + 267: 179 CompositeConstruct 264 265 266 + 268: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 250 250 16 16 + Store 251(mz) 267 + 269: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 270 270 16 16 + 274: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 272 271(rotMat) 84 + 275: 179 Load 182(mx) + 276: 179 Load 217(my) + 277: 179 MatrixTimesMatrix 275 276 + 278: 179 Load 251(mz) + 279: 179 MatrixTimesMatrix 277 278 + Store 271(rotMat) 279 + 280: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 281 281 16 16 + 282: 122(ptr) AccessChain 74(input) 127 52 + 283: 8(float) Load 282 + 285: 160(ptr) AccessChain 156 159 284 + 286: 8(float) Load 285 + 287: 8(float) FAdd 283 286 + 288: 8(float) ExtInst 3(GLSL.std.450) 13(Sin) 287 + Store 123(s) 288 + 289: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 290 290 16 16 + 291: 122(ptr) AccessChain 74(input) 127 52 + 292: 8(float) Load 291 + 293: 160(ptr) AccessChain 156 159 284 + 294: 8(float) Load 293 + 295: 8(float) FAdd 292 294 + 296: 8(float) ExtInst 3(GLSL.std.450) 14(Cos) 295 + Store 167(c) 296 + 297: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 298 298 16 16 + 303: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 301 300(gRotMat) 84 + 304: 8(float) Load 167(c) + 305: 8(float) Load 123(s) + 306: 8(float) FNegate 305 + 307: 56(fvec4) CompositeConstruct 304 94 306 94 + 309: 308(ptr) AccessChain 300(gRotMat) 159 + Store 309 307 + 310: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 311 311 16 16 + 314: 308(ptr) AccessChain 300(gRotMat) 312 + Store 314 313 + 315: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 316 316 16 16 + 317: 8(float) Load 123(s) + 318: 8(float) Load 167(c) + 319: 56(fvec4) CompositeConstruct 317 94 318 94 + 320: 308(ptr) AccessChain 300(gRotMat) 100 + Store 320 319 + 321: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 322 322 16 16 + 324: 308(ptr) AccessChain 300(gRotMat) 101 + Store 324 323 + 325: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 326 326 16 16 + 330: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 328 327(locPos) 84 + 331: 102(ptr) AccessChain 74(input) 159 + 332: 18(fvec3) Load 331 + 333: 179 Load 271(rotMat) + 334: 18(fvec3) VectorTimesMatrix 332 333 + 335: 8(float) CompositeExtract 334 0 + 336: 8(float) CompositeExtract 334 1 + 337: 8(float) CompositeExtract 334 2 + 338: 56(fvec4) CompositeConstruct 335 336 337 193 + Store 327(locPos) 338 + 339: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 340 340 16 16 + 344: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 342 341(pos) 84 + 345: 56(fvec4) Load 327(locPos) + 346: 18(fvec3) VectorShuffle 345 345 0 1 2 + 348: 122(ptr) AccessChain 74(input) 347 + 349: 8(float) Load 348 + 350: 18(fvec3) VectorTimesScalar 346 349 + 351: 102(ptr) AccessChain 74(input) 284 + 352: 18(fvec3) Load 351 + 353: 18(fvec3) FAdd 350 352 + 354: 8(float) CompositeExtract 353 0 + 355: 8(float) CompositeExtract 353 1 + 356: 8(float) CompositeExtract 353 2 + 357: 56(fvec4) CompositeConstruct 354 355 356 193 + Store 341(pos) 357 + 358: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 359 359 16 16 + 360: 56(fvec4) Load 341(pos) + 361: 130 Load 300(gRotMat) + 362: 56(fvec4) VectorTimesMatrix 360 361 + 364: 363(ptr) AccessChain 156 159 312 + 365: 130 Load 364 + 366: 56(fvec4) VectorTimesMatrix 362 365 + 367: 363(ptr) AccessChain 156 159 159 + 368: 130 Load 367 + 369: 56(fvec4) VectorTimesMatrix 366 368 + 370: 308(ptr) AccessChain 90(output) 159 + Store 370 369 + 371: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 372 372 16 16 + 373: 102(ptr) AccessChain 74(input) 312 + 374: 18(fvec3) Load 373 + 375: 179 Load 271(rotMat) + 376: 18(fvec3) VectorTimesMatrix 374 375 + 377: 130 Load 300(gRotMat) + 378: 363(ptr) AccessChain 156 159 312 + 379: 130 Load 378 + 380: 130 MatrixTimesMatrix 377 379 + 381: 56(fvec4) CompositeExtract 380 0 + 382: 18(fvec3) VectorShuffle 381 381 0 1 2 + 383: 56(fvec4) CompositeExtract 380 1 + 384: 18(fvec3) VectorShuffle 383 383 0 1 2 + 385: 56(fvec4) CompositeExtract 380 2 + 386: 18(fvec3) VectorShuffle 385 385 0 1 2 + 387: 179 CompositeConstruct 382 384 386 + 388: 18(fvec3) VectorTimesMatrix 376 387 + 389: 102(ptr) AccessChain 90(output) 312 + Store 389 388 + 390: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 391 391 16 16 + 392: 102(ptr) AccessChain 74(input) 159 + 393: 18(fvec3) Load 392 + 394: 102(ptr) AccessChain 74(input) 284 + 395: 18(fvec3) Load 394 + 396: 18(fvec3) FAdd 393 395 + 397: 8(float) CompositeExtract 396 0 + 398: 8(float) CompositeExtract 396 1 + 399: 8(float) CompositeExtract 396 2 + 400: 56(fvec4) CompositeConstruct 397 398 399 193 + 401: 363(ptr) AccessChain 156 159 312 + 402: 130 Load 401 + 403: 56(fvec4) VectorTimesMatrix 400 402 + Store 341(pos) 403 + 404: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 405 405 16 16 + 409: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 407 406(lPos) 84 + 411: 410(ptr) AccessChain 156 159 100 + 412: 56(fvec4) Load 411 + 413: 18(fvec3) VectorShuffle 412 412 0 1 2 + 414: 363(ptr) AccessChain 156 159 312 + 415: 130 Load 414 + 416: 56(fvec4) CompositeExtract 415 0 + 417: 18(fvec3) VectorShuffle 416 416 0 1 2 + 418: 56(fvec4) CompositeExtract 415 1 + 419: 18(fvec3) VectorShuffle 418 418 0 1 2 + 420: 56(fvec4) CompositeExtract 415 2 + 421: 18(fvec3) VectorShuffle 420 420 0 1 2 + 422: 179 CompositeConstruct 417 419 421 + 423: 18(fvec3) VectorTimesMatrix 413 422 + Store 406(lPos) 423 + 424: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 425 425 16 16 + 426: 18(fvec3) Load 406(lPos) + 427: 56(fvec4) Load 341(pos) + 428: 18(fvec3) VectorShuffle 427 427 0 1 2 + 429: 18(fvec3) FSub 426 428 + 430: 102(ptr) AccessChain 90(output) 127 + Store 430 429 + 431: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 432 432 16 16 + 433: 56(fvec4) Load 341(pos) + 434: 18(fvec3) VectorShuffle 433 433 0 1 2 + 435: 18(fvec3) FNegate 434 + 436: 102(ptr) AccessChain 90(output) 284 + Store 436 435 + 437: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 438 438 16 16 + 439:58(VSOutput) Load 90(output) + ReturnValue 439 FunctionEnd