Force generateDebugInfo when non-semantic debug info is enabled

From the command line, the debug options "stack", with -gVS enabling all
of generateDebugInfo, emitNonSemanticShaderDebugInfo and
emitNonSemanticShaderDebugSource, however the programmatic interface
allows setting the latter options without the former. In this case, the
string corresponding to the source filename never gets emitted and some
debuginfo instructions end up with zero ID operands, resulting in
invalid SPIR-V.

Fixes #3240
This commit is contained in:
Arcady Goldmints-Orlov 2023-06-22 16:06:41 -04:00 committed by arcady-lunarg
parent 9575e33186
commit d89c0b1d13
14 changed files with 9392 additions and 8284 deletions

View file

@ -1580,7 +1580,12 @@ TGlslangToSpvTraverser::TGlslangToSpvTraverser(unsigned int spvVersion,
builder.setSource(TranslateSourceLanguage(glslangIntermediate->getSource(), glslangIntermediate->getProfile()), builder.setSource(TranslateSourceLanguage(glslangIntermediate->getSource(), glslangIntermediate->getProfile()),
glslangIntermediate->getVersion()); 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.setEmitOpLines();
builder.setSourceFile(glslangIntermediate->getSourceFile()); builder.setSourceFile(glslangIntermediate->getSourceFile());
@ -1607,8 +1612,8 @@ TGlslangToSpvTraverser::TGlslangToSpvTraverser(unsigned int spvVersion,
builder.addInclude(iItr->first, iItr->second); builder.addInclude(iItr->first, iItr->second);
} }
builder.setEmitNonSemanticShaderDebugInfo(options.emitNonSemanticShaderDebugInfo); builder.setEmitNonSemanticShaderDebugInfo(this->options.emitNonSemanticShaderDebugInfo);
builder.setEmitNonSemanticShaderDebugSource(options.emitNonSemanticShaderDebugSource); builder.setEmitNonSemanticShaderDebugSource(this->options.emitNonSemanticShaderDebugSource);
stdBuiltins = builder.import("GLSL.std.450"); stdBuiltins = builder.import("GLSL.std.450");

View file

@ -1,84 +1,96 @@
spv.debuginfo.const_params.glsl.comp spv.debuginfo.const_params.glsl.comp
Validation failed
// Module Version 10000 // Module Version 10000
// Generated by (magic number): 8000b // Generated by (magic number): 8000b
// Id's are bound by 64 // Id's are bound by 68
Capability Shader Capability Shader
Extension "SPV_KHR_non_semantic_info" Extension "SPV_KHR_non_semantic_info"
1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" 2: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
2: ExtInstImport "GLSL.std.450" 3: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450 MemoryModel Logical GLSL450
EntryPoint GLCompute 13 "main" EntryPoint GLCompute 14 "main"
ExecutionMode 13 LocalSize 1 1 1 ExecutionMode 14 LocalSize 1 1 1
8: String "uint" 1: String ""
14: String "main" 9: String "uint"
17: String "" 15: String "main"
24: String "float" 18: String "// OpModuleProcessed auto-map-locations
39: String "function" // OpModuleProcessed auto-map-bindings
45: String "f" // OpModuleProcessed client vulkan100
49: String "f2" // OpModuleProcessed target-env vulkan1.0
52: String "f3" // OpModuleProcessed keep-uncalled
55: String "f4" // OpModuleProcessed entry-point main
Name 13 "main" #line 1
Name 38 "function(f1;vf2;vf3;vf4;" "
Name 34 "f" 25: String "float"
Name 35 "f2" 40: String "function"
Name 36 "f3" 46: String "f"
Name 37 "f4" 50: String "f2"
3: TypeVoid 53: String "f3"
4: TypeFunction 3 56: String "f4"
6: TypeInt 32 0 Name 14 "main"
9: 6(int) Constant 32 Name 39 "function(f1;vf2;vf3;vf4;"
10: 6(int) Constant 6 Name 35 "f"
11: 6(int) Constant 0 Name 36 "f2"
7: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 9 10 11 Name 37 "f3"
12: 6(int) Constant 3 Name 38 "f4"
5: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 12 3 4: TypeVoid
16: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 0 17 5: TypeFunction 4
19: 6(int) Constant 1 7: TypeInt 32 0
20: 6(int) Constant 4 10: 7(int) Constant 32
21: 6(int) Constant 2 11: 7(int) Constant 6
18: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 19 20 16 21 12: 7(int) Constant 0
15: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 14 5 16 11 11 18 14 12 11 8: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 10 11 12
23: TypeFloat 32 13: 7(int) Constant 3
25: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 24 9 12 11 6: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4
26: TypeVector 23(float) 2 17: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 18
27: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 25 21 20: 7(int) Constant 1
28: TypeVector 23(float) 3 21: 7(int) Constant 4
29: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 25 12 22: 7(int) Constant 2
30: TypeVector 23(float) 4 19: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 20 21 17 22
31: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 25 20 16: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 15 6 17 12 12 19 15 13 12
32: TypeFunction 3 23(float) 26(fvec2) 28(fvec3) 30(fvec4) 24: TypeFloat 32
33: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 12 3 25 27 29 31 26: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 25 10 13 12
40: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 39 33 16 11 11 18 39 12 11 27: TypeVector 24(float) 2
44: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 45 25 16 11 11 40 20 19 28: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 22
47: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) 29: TypeVector 24(float) 3
48: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 49 27 16 11 11 40 20 21 30: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 13
51: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 52 29 16 11 11 40 20 12 31: TypeVector 24(float) 4
54: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 55 31 16 11 11 40 20 20 32: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 21
59: 23(float) Constant 0 33: TypeFunction 4 24(float) 27(fvec2) 29(fvec3) 31(fvec4)
60: 26(fvec2) ConstantComposite 59 59 34: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 26 28 30 32
61: 28(fvec3) ConstantComposite 59 59 59 41: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 40 34 17 12 12 19 40 13 12
62: 30(fvec4) ConstantComposite 59 59 59 59 45: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 46 26 17 12 12 41 21 20
13(main): 3 Function None 4 48: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
22: Label 49: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 50 28 17 12 12 41 21 22
58: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 15 13(main) 52: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 53 30 17 12 12 41 21 13
63: 3 FunctionCall 38(function(f1;vf2;vf3;vf4;) 59 60 61 62 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 Return
FunctionEnd FunctionEnd
38(function(f1;vf2;vf3;vf4;): 3 Function None 32 Line 1 7 18
34(f): 23(float) FunctionParameter 39(function(f1;vf2;vf3;vf4;): 4 Function None 33
35(f2): 26(fvec2) FunctionParameter 35(f): 24(float) FunctionParameter
36(f3): 28(fvec3) FunctionParameter 36(f2): 27(fvec2) FunctionParameter
37(f4): 30(fvec4) FunctionParameter 37(f3): 29(fvec3) FunctionParameter
41: Label 38(f4): 31(fvec4) FunctionParameter
42: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 42: Label
43: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 16 11 11 11 11 43: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 41
46: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 44 34(f) 47 44: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 12 12 12 12
50: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 48 35(f2) 47 47: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 45 35(f) 48
53: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 51 36(f3) 47 51: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 49 36(f2) 48
56: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 54 37(f4) 47 54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 52 37(f3) 48
57: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 40 38(function(f1;vf2;vf3;vf4;) 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 Return
FunctionEnd FunctionEnd

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,332 +1,364 @@
spv.debuginfo.glsl.geom spv.debuginfo.glsl.geom
Validation failed
// Module Version 10000 // Module Version 10000
// Generated by (magic number): 8000b // Generated by (magic number): 8000b
// Id's are bound by 231 // Id's are bound by 256
Capability Geometry Capability Geometry
Capability MultiViewport Capability MultiViewport
Extension "SPV_KHR_non_semantic_info" Extension "SPV_KHR_non_semantic_info"
1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" 2: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
2: ExtInstImport "GLSL.std.450" 3: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450 MemoryModel Logical GLSL450
EntryPoint Geometry 13 "main" 52 85 104 112 116 146 181 189 206 216 221 225 EntryPoint Geometry 14 "main" 62 94 113 123 126 157 196 205 222 234 240 243
ExecutionMode 13 Triangles ExecutionMode 14 Triangles
ExecutionMode 13 Invocations 2 ExecutionMode 14 Invocations 2
ExecutionMode 13 OutputTriangleStrip ExecutionMode 14 OutputTriangleStrip
ExecutionMode 13 OutputVertices 3 ExecutionMode 14 OutputVertices 3
8: String "uint" 1: String ""
14: String "main" 9: String "uint"
17: String "" 15: String "main"
25: String "int" 18: String "// OpModuleProcessed auto-map-locations
30: String "i" // OpModuleProcessed auto-map-bindings
43: String "bool" // OpModuleProcessed client vulkan100
47: String "float" // OpModuleProcessed target-env vulkan1.0
54: String "outNormal" // OpModuleProcessed keep-uncalled
68: String "projection" // OpModuleProcessed entry-point main
72: String "modelview" #line 1
75: String "lightPos" "
78: String "UBO" 29: String "int"
82: String "ubo" 34: String "i"
87: String "gl_InvocationID" 50: String "bool"
106: String "inNormal" 57: String "float"
114: String "outColor" 64: String "outNormal"
118: String "inColor" 77: String "projection"
125: String "pos" 81: String "modelview"
132: String "gl_Position" 84: String "lightPos"
135: String "gl_PointSize" 87: String "UBO"
138: String "gl_CullDistance" 91: String "ubo"
142: String "gl_PerVertex" 96: String "gl_InvocationID"
148: String "gl_in" 115: String "inNormal"
155: String "worldPos" 125: String "outColor"
166: String "lPos" 128: String "inColor"
183: String "outLightVec" 137: String "pos"
191: String "outViewVec" 143: String "gl_Position"
218: String "gl_ViewportIndex" 146: String "gl_PointSize"
223: String "gl_PrimitiveID" 149: String "gl_CullDistance"
227: String "gl_PrimitiveIDIn" 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" SourceExtension "GL_ARB_viewport_array"
Name 13 "main" Name 14 "main"
Name 28 "i" Name 32 "i"
Name 52 "outNormal" Name 62 "outNormal"
Name 66 "UBO" Name 75 "UBO"
MemberName 66(UBO) 0 "projection" MemberName 75(UBO) 0 "projection"
MemberName 66(UBO) 1 "modelview" MemberName 75(UBO) 1 "modelview"
MemberName 66(UBO) 2 "lightPos" MemberName 75(UBO) 2 "lightPos"
Name 80 "ubo" Name 89 "ubo"
Name 85 "gl_InvocationID" Name 94 "gl_InvocationID"
Name 104 "inNormal" Name 113 "inNormal"
Name 112 "outColor" Name 123 "outColor"
Name 116 "inColor" Name 126 "inColor"
Name 123 "pos" Name 135 "pos"
Name 130 "gl_PerVertex" Name 141 "gl_PerVertex"
MemberName 130(gl_PerVertex) 0 "gl_Position" MemberName 141(gl_PerVertex) 0 "gl_Position"
MemberName 130(gl_PerVertex) 1 "gl_PointSize" MemberName 141(gl_PerVertex) 1 "gl_PointSize"
MemberName 130(gl_PerVertex) 2 "gl_ClipDistance" MemberName 141(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 130(gl_PerVertex) 3 "gl_CullDistance" MemberName 141(gl_PerVertex) 3 "gl_CullDistance"
Name 146 "gl_in" Name 157 "gl_in"
Name 153 "worldPos" Name 166 "worldPos"
Name 164 "lPos" Name 178 "lPos"
Name 181 "outLightVec" Name 196 "outLightVec"
Name 189 "outViewVec" Name 205 "outViewVec"
Name 196 "gl_PerVertex" Name 213 "gl_PerVertex"
MemberName 196(gl_PerVertex) 0 "gl_Position" MemberName 213(gl_PerVertex) 0 "gl_Position"
MemberName 196(gl_PerVertex) 1 "gl_PointSize" MemberName 213(gl_PerVertex) 1 "gl_PointSize"
MemberName 196(gl_PerVertex) 2 "gl_ClipDistance" MemberName 213(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 196(gl_PerVertex) 3 "gl_CullDistance" MemberName 213(gl_PerVertex) 3 "gl_CullDistance"
Name 206 "" Name 222 ""
Name 216 "gl_ViewportIndex" Name 234 "gl_ViewportIndex"
Name 221 "gl_PrimitiveID" Name 240 "gl_PrimitiveID"
Name 225 "gl_PrimitiveIDIn" Name 243 "gl_PrimitiveIDIn"
Decorate 52(outNormal) Location 0 Decorate 62(outNormal) Location 0
Decorate 62 ArrayStride 64 Decorate 71 ArrayStride 64
Decorate 64 ArrayStride 64 Decorate 73 ArrayStride 64
MemberDecorate 66(UBO) 0 ColMajor MemberDecorate 75(UBO) 0 ColMajor
MemberDecorate 66(UBO) 0 Offset 0 MemberDecorate 75(UBO) 0 Offset 0
MemberDecorate 66(UBO) 0 MatrixStride 16 MemberDecorate 75(UBO) 0 MatrixStride 16
MemberDecorate 66(UBO) 1 ColMajor MemberDecorate 75(UBO) 1 ColMajor
MemberDecorate 66(UBO) 1 Offset 128 MemberDecorate 75(UBO) 1 Offset 128
MemberDecorate 66(UBO) 1 MatrixStride 16 MemberDecorate 75(UBO) 1 MatrixStride 16
MemberDecorate 66(UBO) 2 Offset 256 MemberDecorate 75(UBO) 2 Offset 256
Decorate 66(UBO) Block Decorate 75(UBO) Block
Decorate 80(ubo) DescriptorSet 0 Decorate 89(ubo) DescriptorSet 0
Decorate 80(ubo) Binding 0 Decorate 89(ubo) Binding 0
Decorate 85(gl_InvocationID) BuiltIn InvocationId Decorate 94(gl_InvocationID) BuiltIn InvocationId
Decorate 104(inNormal) Location 0 Decorate 113(inNormal) Location 0
Decorate 112(outColor) Location 1 Decorate 123(outColor) Location 1
Decorate 116(inColor) Location 1 Decorate 126(inColor) Location 1
MemberDecorate 130(gl_PerVertex) 0 BuiltIn Position MemberDecorate 141(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 130(gl_PerVertex) 1 BuiltIn PointSize MemberDecorate 141(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 130(gl_PerVertex) 2 BuiltIn ClipDistance MemberDecorate 141(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 130(gl_PerVertex) 3 BuiltIn CullDistance MemberDecorate 141(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 130(gl_PerVertex) Block Decorate 141(gl_PerVertex) Block
Decorate 181(outLightVec) Location 3 Decorate 196(outLightVec) Location 3
Decorate 189(outViewVec) Location 2 Decorate 205(outViewVec) Location 2
MemberDecorate 196(gl_PerVertex) 0 BuiltIn Position MemberDecorate 213(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 196(gl_PerVertex) 1 BuiltIn PointSize MemberDecorate 213(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 196(gl_PerVertex) 2 BuiltIn ClipDistance MemberDecorate 213(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 196(gl_PerVertex) 3 BuiltIn CullDistance MemberDecorate 213(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 196(gl_PerVertex) Block Decorate 213(gl_PerVertex) Block
Decorate 216(gl_ViewportIndex) BuiltIn ViewportIndex Decorate 234(gl_ViewportIndex) BuiltIn ViewportIndex
Decorate 221(gl_PrimitiveID) BuiltIn PrimitiveId Decorate 240(gl_PrimitiveID) BuiltIn PrimitiveId
Decorate 225(gl_PrimitiveIDIn) BuiltIn PrimitiveId Decorate 243(gl_PrimitiveIDIn) BuiltIn PrimitiveId
3: TypeVoid 4: TypeVoid
4: TypeFunction 3 5: TypeFunction 4
6: TypeInt 32 0 7: TypeInt 32 0
9: 6(int) Constant 32 10: 7(int) Constant 32
10: 6(int) Constant 6 11: 7(int) Constant 6
11: 6(int) Constant 0 12: 7(int) Constant 0
7: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 9 10 11 8: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 10 11 12
12: 6(int) Constant 3 13: 7(int) Constant 3
5: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 12 3 6: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4
16: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 0 17 17: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 18
19: 6(int) Constant 1 20: 7(int) Constant 1
20: 6(int) Constant 4 21: 7(int) Constant 4
21: 6(int) Constant 2 22: 7(int) Constant 2
18: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 19 20 16 21 19: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 20 21 17 22
15: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 14 5 16 11 11 18 14 12 11 16: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 15 6 17 12 12 19 15 13 12
24: TypeInt 32 1 27: 7(int) Constant 49
26: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 25 9 20 11 28: TypeInt 32 1
27: TypePointer Function 24(int) 30: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 29 10 21 12
31: 6(int) Constant 49 31: TypePointer Function 28(int)
29: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 30 26 16 31 11 15 20 33: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 34 30 17 27 12 16 21
33: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) 36: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
34: 24(int) Constant 0 37: 28(int) Constant 0
41: 24(int) Constant 3 48: 28(int) Constant 3
42: TypeBool 49: TypeBool
44: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 43 9 21 11 51: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 50 10 22 12
46: TypeFloat 32 55: 7(int) Constant 51
48: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 9 12 11 56: TypeFloat 32
49: TypeVector 46(float) 3 58: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 57 10 13 12
50: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 48 12 59: TypeVector 56(float) 3
51: TypePointer Output 49(fvec3) 60: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 58 13
52(outNormal): 51(ptr) Variable Output 61: TypePointer Output 59(fvec3)
55: 6(int) Constant 51 62(outNormal): 61(ptr) Variable Output
56: 6(int) Constant 8 65: 7(int) Constant 8
53: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 54 50 16 55 11 18 54 52(outNormal) 56 63: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 64 60 17 55 12 19 64 62(outNormal) 65
57: TypeVector 46(float) 4 66: TypeVector 56(float) 4
58: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 48 20 67: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 58 21
59: TypeMatrix 57(fvec4) 4 68: TypeMatrix 66(fvec4) 4
61: 42(bool) ConstantTrue 70: 49(bool) ConstantTrue
60: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 58 20 61 69: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 67 21 70
62: TypeArray 59 21 71: TypeArray 68 22
63: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 60 21 72: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 69 22
64: TypeArray 59 21 73: TypeArray 68 22
65: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 60 21 74: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 69 22
66(UBO): TypeStruct 62 64 57(fvec4) 75(UBO): TypeStruct 71 73 66(fvec4)
69: 6(int) Constant 34 78: 7(int) Constant 34
70: 6(int) Constant 7 79: 7(int) Constant 7
67: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 68 63 16 69 70 11 11 12 76: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 77 72 17 78 79 12 12 13
73: 6(int) Constant 35 82: 7(int) Constant 35
71: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 72 65 16 73 70 11 11 12 80: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 81 74 17 82 79 12 12 13
76: 6(int) Constant 36 85: 7(int) Constant 36
74: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 75 58 16 76 70 11 11 12 83: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 84 67 17 85 79 12 12 13
77: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 78 19 16 55 11 18 78 11 12 67 71 74 86: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 87 20 17 55 12 19 87 12 13 76 80 83
79: TypePointer Uniform 66(UBO) 88: TypePointer Uniform 75(UBO)
80(ubo): 79(ptr) Variable Uniform 89(ubo): 88(ptr) Variable Uniform
81: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 82 77 16 55 11 18 82 80(ubo) 56 90: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 91 86 17 55 12 19 91 89(ubo) 65
83: 24(int) Constant 1 92: 28(int) Constant 1
84: TypePointer Input 24(int) 93: TypePointer Input 28(int)
85(gl_InvocationID): 84(ptr) Variable Input 94(gl_InvocationID): 93(ptr) Variable Input
86: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 87 26 16 55 11 18 87 85(gl_InvocationID) 56 95: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 96 30 17 55 12 19 96 94(gl_InvocationID) 65
89: TypePointer Uniform 59 98: TypePointer Uniform 68
92: TypeMatrix 49(fvec3) 3 101: TypeMatrix 59(fvec3) 3
93: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 50 12 61 102: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 60 13 70
101: TypeArray 49(fvec3) 12 110: TypeArray 59(fvec3) 13
102: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 50 12 111: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 60 13
103: TypePointer Input 101 112: TypePointer Input 110
104(inNormal): 103(ptr) Variable Input 113(inNormal): 112(ptr) Variable Input
105: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 106 102 16 55 11 18 106 104(inNormal) 56 114: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 115 111 17 55 12 19 115 113(inNormal) 65
108: TypePointer Input 49(fvec3) 117: TypePointer Input 59(fvec3)
112(outColor): 51(ptr) Variable Output 122: 7(int) Constant 52
115: 6(int) Constant 52 123(outColor): 61(ptr) Variable Output
113: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 114 50 16 115 11 18 114 112(outColor) 56 124: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 125 60 17 122 12 19 125 123(outColor) 65
116(inColor): 103(ptr) Variable Input 126(inColor): 112(ptr) Variable Input
117: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 118 102 16 115 11 18 118 116(inColor) 56 127: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 128 111 17 122 12 19 128 126(inColor) 65
122: TypePointer Function 57(fvec4) 133: 7(int) Constant 54
126: 6(int) Constant 54 134: TypePointer Function 66(fvec4)
124: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 125 58 16 126 11 15 20 136: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 137 67 17 133 12 16 21
128: TypeArray 46(float) 19 139: TypeArray 56(float) 20
129: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 48 19 140: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 58 20
130(gl_PerVertex): TypeStruct 57(fvec4) 46(float) 128 128 141(gl_PerVertex): TypeStruct 66(fvec4) 56(float) 139 139
133: 6(int) Constant 23 144: 7(int) Constant 23
131: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 132 58 16 21 133 11 11 12 142: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 143 67 17 22 144 12 12 13
136: 6(int) Constant 41 147: 7(int) Constant 41
134: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 135 48 16 21 136 11 11 12 145: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 146 58 17 22 147 12 12 13
139: 6(int) Constant 84 150: 7(int) Constant 84
137: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 138 129 16 21 139 11 11 12 148: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 149 140 17 22 150 12 12 13
140: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 138 129 16 21 139 11 11 12 151: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 149 140 17 22 150 12 12 13
141: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 142 19 16 126 11 18 142 11 12 131 134 137 140 152: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 153 20 17 133 12 19 153 12 13 142 145 148 151
143: TypeArray 130(gl_PerVertex) 12 154: TypeArray 141(gl_PerVertex) 13
144: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 141 12 155: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 152 13
145: TypePointer Input 143 156: TypePointer Input 154
146(gl_in): 145(ptr) Variable Input 157(gl_in): 156(ptr) Variable Input
147: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 148 144 16 126 11 18 148 146(gl_in) 56 158: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 159 155 17 133 12 19 159 157(gl_in) 65
150: TypePointer Input 57(fvec4) 161: TypePointer Input 66(fvec4)
156: 6(int) Constant 55 165: 7(int) Constant 55
154: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 155 58 16 156 11 15 20 167: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 168 67 17 165 12 16 21
163: TypePointer Function 49(fvec3) 176: 7(int) Constant 57
167: 6(int) Constant 57 177: TypePointer Function 59(fvec3)
165: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 166 50 16 167 11 15 20 179: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 180 60 17 176 12 16 21
172: 24(int) Constant 2 185: 28(int) Constant 2
173: TypePointer Uniform 57(fvec4) 186: TypePointer Uniform 66(fvec4)
181(outLightVec): 51(ptr) Variable Output 195: 7(int) Constant 58
184: 6(int) Constant 58 196(outLightVec): 61(ptr) Variable Output
182: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 183 50 16 184 11 18 183 181(outLightVec) 56 197: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 198 60 17 195 12 19 198 196(outLightVec) 65
189(outViewVec): 51(ptr) Variable Output 204: 7(int) Constant 59
192: 6(int) Constant 59 205(outViewVec): 61(ptr) Variable Output
190: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 191 50 16 192 11 18 191 189(outViewVec) 56 206: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 207 60 17 204 12 19 207 205(outViewVec) 65
196(gl_PerVertex): TypeStruct 57(fvec4) 46(float) 128 128 212: 7(int) Constant 61
198: 6(int) Constant 215 213(gl_PerVertex): TypeStruct 66(fvec4) 56(float) 139 139
197: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 132 58 16 21 198 11 11 12 215: 7(int) Constant 215
200: 6(int) Constant 233 214: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 143 67 17 22 215 12 12 13
199: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 135 48 16 21 200 11 11 12 217: 7(int) Constant 233
201: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 138 129 16 12 70 11 11 12 216: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 146 58 17 22 217 12 12 13
202: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 138 129 16 12 70 11 11 12 218: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 149 140 17 13 79 12 12 13
204: 6(int) Constant 61 219: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 149 140 17 13 79 12 12 13
203: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 142 19 16 204 11 18 142 11 12 197 199 201 202 220: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 153 20 17 212 12 19 153 12 13 214 216 218 219
205: TypePointer Output 196(gl_PerVertex) 221: TypePointer Output 213(gl_PerVertex)
206: 205(ptr) Variable Output 222: 221(ptr) Variable Output
207: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 17 203 16 204 11 18 17 206 56 223: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 220 17 212 12 19 1 222 65
213: TypePointer Output 57(fvec4) 229: TypePointer Output 66(fvec4)
215: TypePointer Output 24(int) 232: 7(int) Constant 64
216(gl_ViewportIndex): 215(ptr) Variable Output 233: TypePointer Output 28(int)
219: 6(int) Constant 64 234(gl_ViewportIndex): 233(ptr) Variable Output
217: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 218 26 16 219 11 18 218 216(gl_ViewportIndex) 56 235: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 236 30 17 232 12 19 236 234(gl_ViewportIndex) 65
221(gl_PrimitiveID): 215(ptr) Variable Output 239: 7(int) Constant 65
224: 6(int) Constant 65 240(gl_PrimitiveID): 233(ptr) Variable Output
222: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 223 26 16 224 11 18 223 221(gl_PrimitiveID) 56 241: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 242 30 17 239 12 19 242 240(gl_PrimitiveID) 65
225(gl_PrimitiveIDIn): 84(ptr) Variable Input 243(gl_PrimitiveIDIn): 93(ptr) Variable Input
226: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 227 26 16 224 11 18 227 225(gl_PrimitiveIDIn) 56 244: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 245 30 17 239 12 19 245 243(gl_PrimitiveIDIn) 65
13(main): 3 Function None 4 248: 7(int) Constant 66
22: Label 255: 7(int) Constant 68
28(i): 27(ptr) Variable Function Line 1 47 15
123(pos): 122(ptr) Variable Function 14(main): 4 Function None 5
153(worldPos): 122(ptr) Variable Function 23: Label
164(lPos): 163(ptr) Variable Function 32(i): 31(ptr) Variable Function
23: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 15 13(main) 135(pos): 134(ptr) Variable Function
32: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 29 28(i) 33 166(worldPos): 134(ptr) Variable Function
Store 28(i) 34 178(lPos): 177(ptr) Variable Function
Branch 35 24: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 16 14(main)
35: Label 25: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16
LoopMerge 37 38 None 26: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 27 27 12 12
Branch 39 35: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 33 32(i) 36
39: Label Store 32(i) 37
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
EmitVertex
Branch 38 Branch 38
38: Label 38: Label
229: 24(int) Load 28(i) 42: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16
230: 24(int) IAdd 229 83 43: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 27 27 12 12
Store 28(i) 230 LoopMerge 40 41 None
Branch 35 Branch 44
37: Label 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
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 EndPrimitive
Return Return
FunctionEnd FunctionEnd

File diff suppressed because it is too large Load diff

View file

@ -1,421 +1,445 @@
spv.debuginfo.glsl.tese spv.debuginfo.glsl.tese
Validation failed
// Module Version 10000 // Module Version 10000
// Generated by (magic number): 8000b // Generated by (magic number): 8000b
// Id's are bound by 315 // Id's are bound by 332
Capability Tessellation Capability Tessellation
Extension "SPV_KHR_non_semantic_info" Extension "SPV_KHR_non_semantic_info"
1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" 2: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
2: ExtInstImport "GLSL.std.450" 3: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450 MemoryModel Logical GLSL450
EntryPoint TessellationEvaluation 13 "main" 39 56 80 99 124 160 267 279 286 297 303 EntryPoint TessellationEvaluation 14 "main" 42 59 86 105 133 169 280 294 302 314 321
ExecutionMode 13 Quads ExecutionMode 14 Quads
ExecutionMode 13 SpacingEqual ExecutionMode 14 SpacingEqual
ExecutionMode 13 VertexOrderCw ExecutionMode 14 VertexOrderCw
8: String "uint" 1: String ""
14: String "main" 9: String "uint"
17: String "" 15: String "main"
25: String "float" 18: String "// OpModuleProcessed auto-map-locations
32: String "uv1" // OpModuleProcessed auto-map-bindings
41: String "inUV" // OpModuleProcessed client vulkan100
44: String "int" // OpModuleProcessed target-env vulkan1.0
58: String "gl_TessCoord" // OpModuleProcessed keep-uncalled
66: String "uv2" // OpModuleProcessed entry-point main
82: String "outUV" #line 1
93: String "n1" "
101: String "inNormal" 29: String "float"
112: String "n2" 36: String "uv1"
126: String "outNormal" 44: String "inUV"
139: String "pos1" 47: String "int"
146: String "gl_Position" 61: String "gl_TessCoord"
149: String "gl_PointSize" 71: String "uv2"
152: String "gl_CullDistance" 88: String "outUV"
156: String "gl_PerVertex" 100: String "n1"
162: String "gl_in" 107: String "inNormal"
174: String "pos2" 120: String "n2"
187: String "pos" 135: String "outNormal"
198: String "type.2d.image" 149: String "pos1"
200: String "@type.2d.image" 155: String "gl_Position"
204: String "type.sampled.image" 158: String "gl_PointSize"
205: String "@type.sampled.image" 161: String "gl_CullDistance"
209: String "displacementMap" 165: String "gl_PerVertex"
223: String "modelview" 171: String "gl_in"
228: String "lightPos" 185: String "pos2"
231: String "frustumPlanes" 199: String "pos"
233: String "tessellatedEdgeSize" 211: String "type.2d.image"
237: String "viewportDim" 212: String "@type.2d.image"
241: String "UBO" 216: String "type.sampled.image"
245: String "ubo" 217: String "@type.sampled.image"
281: String "outViewVec" 221: String "displacementMap"
288: String "outLightVec" 235: String "modelview"
299: String "outWorldPos" 240: String "lightPos"
305: String "outEyePos" 243: String "frustumPlanes"
Name 13 "main" 245: String "tessellatedEdgeSize"
Name 30 "uv1" 249: String "viewportDim"
Name 39 "inUV" 253: String "UBO"
Name 56 "gl_TessCoord" 257: String "ubo"
Name 64 "uv2" 296: String "outViewVec"
Name 80 "outUV" 304: String "outLightVec"
Name 91 "n1" 316: String "outWorldPos"
Name 99 "inNormal" 323: String "outEyePos"
Name 110 "n2" Name 14 "main"
Name 124 "outNormal" Name 34 "uv1"
Name 137 "pos1" Name 42 "inUV"
Name 144 "gl_PerVertex" Name 59 "gl_TessCoord"
MemberName 144(gl_PerVertex) 0 "gl_Position" Name 69 "uv2"
MemberName 144(gl_PerVertex) 1 "gl_PointSize" Name 86 "outUV"
MemberName 144(gl_PerVertex) 2 "gl_ClipDistance" Name 98 "n1"
MemberName 144(gl_PerVertex) 3 "gl_CullDistance" Name 105 "inNormal"
Name 160 "gl_in" Name 118 "n2"
Name 172 "pos2" Name 133 "outNormal"
Name 185 "pos" Name 147 "pos1"
Name 207 "displacementMap" Name 153 "gl_PerVertex"
Name 221 "UBO" MemberName 153(gl_PerVertex) 0 "gl_Position"
MemberName 221(UBO) 0 "projection" MemberName 153(gl_PerVertex) 1 "gl_PointSize"
MemberName 221(UBO) 1 "modelview" MemberName 153(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 221(UBO) 2 "lightPos" MemberName 153(gl_PerVertex) 3 "gl_CullDistance"
MemberName 221(UBO) 3 "frustumPlanes" Name 169 "gl_in"
MemberName 221(UBO) 4 "displacementFactor" Name 183 "pos2"
MemberName 221(UBO) 5 "tessellationFactor" Name 197 "pos"
MemberName 221(UBO) 6 "viewportDim" Name 219 "displacementMap"
MemberName 221(UBO) 7 "tessellatedEdgeSize" Name 233 "UBO"
Name 243 "ubo" MemberName 233(UBO) 0 "projection"
Name 256 "gl_PerVertex" MemberName 233(UBO) 1 "modelview"
MemberName 256(gl_PerVertex) 0 "gl_Position" MemberName 233(UBO) 2 "lightPos"
MemberName 256(gl_PerVertex) 1 "gl_PointSize" MemberName 233(UBO) 3 "frustumPlanes"
MemberName 256(gl_PerVertex) 2 "gl_ClipDistance" MemberName 233(UBO) 4 "displacementFactor"
MemberName 256(gl_PerVertex) 3 "gl_CullDistance" MemberName 233(UBO) 5 "tessellationFactor"
Name 267 "" MemberName 233(UBO) 6 "viewportDim"
Name 279 "outViewVec" MemberName 233(UBO) 7 "tessellatedEdgeSize"
Name 286 "outLightVec" Name 255 "ubo"
Name 297 "outWorldPos" Name 270 "gl_PerVertex"
Name 303 "outEyePos" MemberName 270(gl_PerVertex) 0 "gl_Position"
Decorate 39(inUV) Location 1 MemberName 270(gl_PerVertex) 1 "gl_PointSize"
Decorate 56(gl_TessCoord) BuiltIn TessCoord MemberName 270(gl_PerVertex) 2 "gl_ClipDistance"
Decorate 80(outUV) Location 1 MemberName 270(gl_PerVertex) 3 "gl_CullDistance"
Decorate 99(inNormal) Location 0 Name 280 ""
Decorate 124(outNormal) Location 0 Name 294 "outViewVec"
MemberDecorate 144(gl_PerVertex) 0 BuiltIn Position Name 302 "outLightVec"
MemberDecorate 144(gl_PerVertex) 1 BuiltIn PointSize Name 314 "outWorldPos"
MemberDecorate 144(gl_PerVertex) 2 BuiltIn ClipDistance Name 321 "outEyePos"
MemberDecorate 144(gl_PerVertex) 3 BuiltIn CullDistance Decorate 42(inUV) Location 1
Decorate 144(gl_PerVertex) Block Decorate 59(gl_TessCoord) BuiltIn TessCoord
Decorate 207(displacementMap) DescriptorSet 0 Decorate 86(outUV) Location 1
Decorate 207(displacementMap) Binding 1 Decorate 105(inNormal) Location 0
Decorate 219 ArrayStride 16 Decorate 133(outNormal) Location 0
MemberDecorate 221(UBO) 0 ColMajor MemberDecorate 153(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 221(UBO) 0 Offset 0 MemberDecorate 153(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 221(UBO) 0 MatrixStride 16 MemberDecorate 153(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 221(UBO) 1 ColMajor MemberDecorate 153(gl_PerVertex) 3 BuiltIn CullDistance
MemberDecorate 221(UBO) 1 Offset 64 Decorate 153(gl_PerVertex) Block
MemberDecorate 221(UBO) 1 MatrixStride 16 Decorate 219(displacementMap) DescriptorSet 0
MemberDecorate 221(UBO) 2 Offset 128 Decorate 219(displacementMap) Binding 1
MemberDecorate 221(UBO) 3 Offset 144 Decorate 231 ArrayStride 16
MemberDecorate 221(UBO) 4 Offset 240 MemberDecorate 233(UBO) 0 ColMajor
MemberDecorate 221(UBO) 5 Offset 244 MemberDecorate 233(UBO) 0 Offset 0
MemberDecorate 221(UBO) 6 Offset 248 MemberDecorate 233(UBO) 0 MatrixStride 16
MemberDecorate 221(UBO) 7 Offset 256 MemberDecorate 233(UBO) 1 ColMajor
Decorate 221(UBO) Block MemberDecorate 233(UBO) 1 Offset 64
Decorate 243(ubo) DescriptorSet 0 MemberDecorate 233(UBO) 1 MatrixStride 16
Decorate 243(ubo) Binding 0 MemberDecorate 233(UBO) 2 Offset 128
MemberDecorate 256(gl_PerVertex) 0 BuiltIn Position MemberDecorate 233(UBO) 3 Offset 144
MemberDecorate 256(gl_PerVertex) 1 BuiltIn PointSize MemberDecorate 233(UBO) 4 Offset 240
MemberDecorate 256(gl_PerVertex) 2 BuiltIn ClipDistance MemberDecorate 233(UBO) 5 Offset 244
MemberDecorate 256(gl_PerVertex) 3 BuiltIn CullDistance MemberDecorate 233(UBO) 6 Offset 248
Decorate 256(gl_PerVertex) Block MemberDecorate 233(UBO) 7 Offset 256
Decorate 279(outViewVec) Location 2 Decorate 233(UBO) Block
Decorate 286(outLightVec) Location 3 Decorate 255(ubo) DescriptorSet 0
Decorate 297(outWorldPos) Location 5 Decorate 255(ubo) Binding 0
Decorate 303(outEyePos) Location 4 MemberDecorate 270(gl_PerVertex) 0 BuiltIn Position
3: TypeVoid MemberDecorate 270(gl_PerVertex) 1 BuiltIn PointSize
4: TypeFunction 3 MemberDecorate 270(gl_PerVertex) 2 BuiltIn ClipDistance
6: TypeInt 32 0 MemberDecorate 270(gl_PerVertex) 3 BuiltIn CullDistance
9: 6(int) Constant 32 Decorate 270(gl_PerVertex) Block
10: 6(int) Constant 6 Decorate 294(outViewVec) Location 2
11: 6(int) Constant 0 Decorate 302(outLightVec) Location 3
7: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 9 10 11 Decorate 314(outWorldPos) Location 5
12: 6(int) Constant 3 Decorate 321(outEyePos) Location 4
5: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 12 3 4: TypeVoid
16: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 0 17 5: TypeFunction 4
19: 6(int) Constant 1 7: TypeInt 32 0
20: 6(int) Constant 4 10: 7(int) Constant 32
21: 6(int) Constant 2 11: 7(int) Constant 6
18: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 19 20 16 21 12: 7(int) Constant 0
15: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 14 5 16 11 11 18 14 12 11 8: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 10 11 12
24: TypeFloat 32 13: 7(int) Constant 3
26: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 25 9 12 11 6: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4
27: TypeVector 24(float) 2 17: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 18
28: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 21 20: 7(int) Constant 1
29: TypePointer Function 27(fvec2) 21: 7(int) Constant 4
33: 6(int) Constant 56 22: 7(int) Constant 2
31: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 32 28 16 33 11 15 20 19: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 20 21 17 22
35: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) 16: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 15 6 17 12 12 19 15 13 12
36: TypeArray 27(fvec2) 9 27: 7(int) Constant 56
37: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 28 9 28: TypeFloat 32
38: TypePointer Input 36 30: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 29 10 13 12
39(inUV): 38(ptr) Variable Input 31: TypeVector 28(float) 2
42: 6(int) Constant 8 32: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 30 22
40: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 41 37 16 33 11 18 41 39(inUV) 42 33: TypePointer Function 31(fvec2)
43: TypeInt 32 1 35: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 36 32 17 27 12 16 21
45: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 44 9 20 11 38: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
46: 43(int) Constant 0 39: TypeArray 31(fvec2) 10
47: TypePointer Input 27(fvec2) 40: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 32 10
50: 43(int) Constant 1 41: TypePointer Input 39
53: TypeVector 24(float) 3 42(inUV): 41(ptr) Variable Input
54: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 12 45: 7(int) Constant 8
55: TypePointer Input 53(fvec3) 43: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 44 40 17 27 12 19 44 42(inUV) 45
56(gl_TessCoord): 55(ptr) Variable Input 46: TypeInt 32 1
57: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 58 54 16 33 11 18 58 56(gl_TessCoord) 42 48: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 10 21 12
59: TypePointer Input 24(float) 49: 46(int) Constant 0
67: 6(int) Constant 57 50: TypePointer Input 31(fvec2)
65: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 66 28 16 67 11 15 20 53: 46(int) Constant 1
69: 43(int) Constant 3 56: TypeVector 28(float) 3
72: 43(int) Constant 2 57: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 30 13
79: TypePointer Output 27(fvec2) 58: TypePointer Input 56(fvec3)
80(outUV): 79(ptr) Variable Output 59(gl_TessCoord): 58(ptr) Variable Input
83: 6(int) Constant 58 60: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 61 57 17 27 12 19 61 59(gl_TessCoord) 45
81: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 82 28 16 83 11 18 82 80(outUV) 42 62: TypePointer Input 28(float)
90: TypePointer Function 53(fvec3) 68: 7(int) Constant 57
94: 6(int) Constant 60 70: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 71 32 17 68 12 16 21
92: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 93 54 16 94 11 15 20 73: 46(int) Constant 3
96: TypeArray 53(fvec3) 9 76: 46(int) Constant 2
97: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 54 9 84: 7(int) Constant 58
98: TypePointer Input 96 85: TypePointer Output 31(fvec2)
99(inNormal): 98(ptr) Variable Input 86(outUV): 85(ptr) Variable Output
100: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 101 97 16 94 11 18 101 99(inNormal) 42 87: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 88 32 17 84 12 19 88 86(outUV) 45
113: 6(int) Constant 61 96: 7(int) Constant 60
111: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 112 54 16 113 11 15 20 97: TypePointer Function 56(fvec3)
123: TypePointer Output 53(fvec3) 99: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 100 57 17 96 12 16 21
124(outNormal): 123(ptr) Variable Output 102: TypeArray 56(fvec3) 10
127: 6(int) Constant 62 103: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 57 10
125: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 126 54 16 127 11 18 126 124(outNormal) 42 104: TypePointer Input 102
134: TypeVector 24(float) 4 105(inNormal): 104(ptr) Variable Input
135: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 26 20 106: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 107 103 17 96 12 19 107 105(inNormal) 45
136: TypePointer Function 134(fvec4) 117: 7(int) Constant 61
140: 6(int) Constant 65 119: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 120 57 17 117 12 16 21
138: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 139 135 16 140 11 15 20 131: 7(int) Constant 62
142: TypeArray 24(float) 19 132: TypePointer Output 56(fvec3)
143: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 26 19 133(outNormal): 132(ptr) Variable Output
144(gl_PerVertex): TypeStruct 134(fvec4) 24(float) 142 142 134: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 135 57 17 131 12 19 135 133(outNormal) 45
147: 6(int) Constant 1756 143: 7(int) Constant 65
145: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 146 135 16 19 147 11 11 12 144: TypeVector 28(float) 4
150: 6(int) Constant 1774 145: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 30 21
148: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 149 26 16 19 150 11 11 12 146: TypePointer Function 144(fvec4)
153: 6(int) Constant 1817 148: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 149 145 17 143 12 16 21
151: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 152 143 16 19 153 11 11 12 151: TypeArray 28(float) 20
154: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 152 143 16 19 153 11 11 12 152: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 30 20
155: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 156 19 16 140 11 18 156 11 12 145 148 151 154 153(gl_PerVertex): TypeStruct 144(fvec4) 28(float) 151 151
157: TypeArray 144(gl_PerVertex) 9 156: 7(int) Constant 1756
158: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 155 9 154: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 155 145 17 20 156 12 12 13
159: TypePointer Input 157 159: 7(int) Constant 1774
160(gl_in): 159(ptr) Variable Input 157: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 158 30 17 20 159 12 12 13
161: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 162 158 16 140 11 18 162 160(gl_in) 42 162: 7(int) Constant 1817
163: TypePointer Input 134(fvec4) 160: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 161 152 17 20 162 12 12 13
175: 6(int) Constant 66 163: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 161 152 17 20 162 12 12 13
173: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 174 135 16 175 11 15 20 164: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 165 20 17 143 12 19 165 12 13 154 157 160 163
188: 6(int) Constant 67 166: TypeArray 153(gl_PerVertex) 10
186: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 187 135 16 188 11 15 20 167: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 164 10
196: TypeImage 24(float) 2D sampled format:Unknown 168: TypePointer Input 166
199: 6(int) Constant 69 169(gl_in): 168(ptr) Variable Input
201: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) 170: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 171 167 17 143 12 19 171 169(gl_in) 45
197: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 198 11 16 199 11 18 200 201 12 172: TypePointer Input 144(fvec4)
202: TypeSampledImage 196 182: 7(int) Constant 66
203: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 204 11 16 199 11 18 205 201 12 184: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 185 145 17 182 12 16 21
206: TypePointer UniformConstant 202 196: 7(int) Constant 67
207(displacementMap): 206(ptr) Variable UniformConstant 198: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 199 145 17 196 12 16 21
208: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 209 203 16 199 11 18 209 207(displacementMap) 42 208: 7(int) Constant 69
212: 24(float) Constant 0 209: TypeImage 28(float) 2D sampled format:Unknown
215: TypeMatrix 134(fvec4) 4 213: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone)
217: TypeBool 210: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 211 12 17 208 12 19 212 213 13
218: 217(bool) ConstantTrue 214: TypeSampledImage 209
216: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 135 20 218 215: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 216 12 17 208 12 19 217 213 13
219: TypeArray 134(fvec4) 10 218: TypePointer UniformConstant 214
220: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 135 10 219(displacementMap): 218(ptr) Variable UniformConstant
221(UBO): TypeStruct 215 215 134(fvec4) 219 24(float) 24(float) 27(fvec2) 24(float) 220: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 221 215 17 208 12 19 221 219(displacementMap) 45
224: 6(int) Constant 30 224: 28(float) Constant 0
225: 6(int) Constant 7 227: TypeMatrix 144(fvec4) 4
222: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 223 216 16 224 225 11 11 12 229: TypeBool
226: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 223 216 16 224 225 11 11 12 230: 229(bool) ConstantTrue
229: 6(int) Constant 31 228: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 145 21 230
227: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 228 135 16 229 225 11 11 12 231: TypeArray 144(fvec4) 11
230: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 231 220 16 9 225 11 11 12 232: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 145 11
234: 6(int) Constant 36 233(UBO): TypeStruct 227 227 144(fvec4) 231 28(float) 28(float) 31(fvec2) 28(float)
232: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 233 26 16 234 42 11 11 12 236: 7(int) Constant 30
235: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 233 26 16 234 42 11 11 12 237: 7(int) Constant 7
238: 6(int) Constant 35 234: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 235 228 17 236 237 12 12 13
236: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 237 28 16 238 225 11 11 12 238: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 235 228 17 236 237 12 12 13
239: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 233 26 16 234 42 11 11 12 241: 7(int) Constant 31
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 239: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 240 145 17 241 237 12 12 13
242: TypePointer Uniform 221(UBO) 242: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 243 232 17 10 237 12 12 13
243(ubo): 242(ptr) Variable Uniform 246: 7(int) Constant 36
244: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 245 240 16 199 11 18 245 243(ubo) 42 244: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 245 30 17 246 45 12 12 13
246: 43(int) Constant 4 247: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 245 30 17 246 45 12 12 13
247: TypePointer Uniform 24(float) 250: 7(int) Constant 35
251: TypePointer Function 24(float) 248: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 249 32 17 250 237 12 12 13
256(gl_PerVertex): TypeStruct 134(fvec4) 24(float) 142 142 251: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 245 30 17 246 45 12 12 13
258: 6(int) Constant 165 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
257: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 146 135 16 19 258 11 11 12 254: TypePointer Uniform 233(UBO)
260: 6(int) Constant 183 255(ubo): 254(ptr) Variable Uniform
259: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 149 26 16 19 260 11 11 12 256: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 257 252 17 208 12 19 257 255(ubo) 45
262: 6(int) Constant 226 258: 46(int) Constant 4
261: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 152 143 16 19 262 11 11 12 259: TypePointer Uniform 28(float)
263: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 152 143 16 19 262 11 11 12 263: TypePointer Function 28(float)
265: 6(int) Constant 71 269: 7(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 270(gl_PerVertex): TypeStruct 144(fvec4) 28(float) 151 151
266: TypePointer Output 256(gl_PerVertex) 272: 7(int) Constant 165
267: 266(ptr) Variable Output 271: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 155 145 17 20 272 12 12 13
268: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 17 264 16 265 11 18 17 267 42 274: 7(int) Constant 183
269: TypePointer Uniform 215 273: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 158 30 17 20 274 12 12 13
277: TypePointer Output 134(fvec4) 276: 7(int) Constant 226
279(outViewVec): 123(ptr) Variable Output 275: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 161 152 17 20 276 12 12 13
282: 6(int) Constant 74 277: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 161 152 17 20 276 12 12 13
280: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 281 54 16 282 11 18 281 279(outViewVec) 42 278: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 165 20 17 269 12 19 165 12 13 271 273 275 277
286(outLightVec): 123(ptr) Variable Output 279: TypePointer Output 270(gl_PerVertex)
289: 6(int) Constant 75 280: 279(ptr) Variable Output
287: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 288 54 16 289 11 18 288 286(outLightVec) 42 281: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 278 17 269 12 19 1 280 45
290: TypePointer Uniform 134(fvec4) 282: TypePointer Uniform 227
297(outWorldPos): 123(ptr) Variable Output 290: TypePointer Output 144(fvec4)
300: 6(int) Constant 76 293: 7(int) Constant 74
298: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 299 54 16 300 11 18 299 297(outWorldPos) 42 294(outViewVec): 132(ptr) Variable Output
303(outEyePos): 123(ptr) Variable Output 295: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 296 57 17 293 12 19 296 294(outViewVec) 45
306: 6(int) Constant 77 301: 7(int) Constant 75
304: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 305 54 16 306 11 18 305 303(outEyePos) 42 302(outLightVec): 132(ptr) Variable Output
13(main): 3 Function None 4 303: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 304 57 17 301 12 19 304 302(outLightVec) 45
22: Label 305: TypePointer Uniform 144(fvec4)
30(uv1): 29(ptr) Variable Function 313: 7(int) Constant 76
64(uv2): 29(ptr) Variable Function 314(outWorldPos): 132(ptr) Variable Output
91(n1): 90(ptr) Variable Function 315: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 316 57 17 313 12 19 316 314(outWorldPos) 45
110(n2): 90(ptr) Variable Function 320: 7(int) Constant 77
137(pos1): 136(ptr) Variable Function 321(outEyePos): 132(ptr) Variable Output
172(pos2): 136(ptr) Variable Function 322: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 323 57 17 320 12 19 323 321(outEyePos) 45
185(pos): 136(ptr) Variable Function Line 1 53 11
23: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 15 13(main) 14(main): 4 Function None 5
34: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 31 30(uv1) 35 23: Label
48: 47(ptr) AccessChain 39(inUV) 46 34(uv1): 33(ptr) Variable Function
49: 27(fvec2) Load 48 69(uv2): 33(ptr) Variable Function
51: 47(ptr) AccessChain 39(inUV) 50 98(n1): 97(ptr) Variable Function
52: 27(fvec2) Load 51 118(n2): 97(ptr) Variable Function
60: 59(ptr) AccessChain 56(gl_TessCoord) 11 147(pos1): 146(ptr) Variable Function
61: 24(float) Load 60 183(pos2): 146(ptr) Variable Function
62: 27(fvec2) CompositeConstruct 61 61 197(pos): 146(ptr) Variable Function
63: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 49 52 62 24: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 16 14(main)
Store 30(uv1) 63 25: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 16
68: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 65 64(uv2) 35 26: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 27 27 12 12
70: 47(ptr) AccessChain 39(inUV) 69 37: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 35 34(uv1) 38
71: 27(fvec2) Load 70 51: 50(ptr) AccessChain 42(inUV) 49
73: 47(ptr) AccessChain 39(inUV) 72 52: 31(fvec2) Load 51
74: 27(fvec2) Load 73 54: 50(ptr) AccessChain 42(inUV) 53
75: 59(ptr) AccessChain 56(gl_TessCoord) 11 55: 31(fvec2) Load 54
76: 24(float) Load 75 63: 62(ptr) AccessChain 59(gl_TessCoord) 12
77: 27(fvec2) CompositeConstruct 76 76 64: 28(float) Load 63
78: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 71 74 77 65: 31(fvec2) CompositeConstruct 64 64
Store 64(uv2) 78 66: 31(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 52 55 65
84: 27(fvec2) Load 30(uv1) Store 34(uv1) 66
85: 27(fvec2) Load 64(uv2) 67: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 68 68 12 12
86: 59(ptr) AccessChain 56(gl_TessCoord) 19 72: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 70 69(uv2) 38
87: 24(float) Load 86 74: 50(ptr) AccessChain 42(inUV) 73
88: 27(fvec2) CompositeConstruct 87 87 75: 31(fvec2) Load 74
89: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 84 85 88 77: 50(ptr) AccessChain 42(inUV) 76
Store 80(outUV) 89 78: 31(fvec2) Load 77
95: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 92 91(n1) 35 79: 62(ptr) AccessChain 59(gl_TessCoord) 12
102: 55(ptr) AccessChain 99(inNormal) 46 80: 28(float) Load 79
103: 53(fvec3) Load 102 81: 31(fvec2) CompositeConstruct 80 80
104: 55(ptr) AccessChain 99(inNormal) 50 82: 31(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 75 78 81
105: 53(fvec3) Load 104 Store 69(uv2) 82
106: 59(ptr) AccessChain 56(gl_TessCoord) 11 83: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 84 84 12 12
107: 24(float) Load 106 89: 31(fvec2) Load 34(uv1)
108: 53(fvec3) CompositeConstruct 107 107 107 90: 31(fvec2) Load 69(uv2)
109: 53(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 103 105 108 91: 62(ptr) AccessChain 59(gl_TessCoord) 20
Store 91(n1) 109 92: 28(float) Load 91
114: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 111 110(n2) 35 93: 31(fvec2) CompositeConstruct 92 92
115: 55(ptr) AccessChain 99(inNormal) 69 94: 31(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 89 90 93
116: 53(fvec3) Load 115 Store 86(outUV) 94
117: 55(ptr) AccessChain 99(inNormal) 72 95: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 96 96 12 12
118: 53(fvec3) Load 117 101: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 99 98(n1) 38
119: 59(ptr) AccessChain 56(gl_TessCoord) 11 108: 58(ptr) AccessChain 105(inNormal) 49
120: 24(float) Load 119 109: 56(fvec3) Load 108
121: 53(fvec3) CompositeConstruct 120 120 120 110: 58(ptr) AccessChain 105(inNormal) 53
122: 53(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 116 118 121 111: 56(fvec3) Load 110
Store 110(n2) 122 112: 62(ptr) AccessChain 59(gl_TessCoord) 12
128: 53(fvec3) Load 91(n1) 113: 28(float) Load 112
129: 53(fvec3) Load 110(n2) 114: 56(fvec3) CompositeConstruct 113 113 113
130: 59(ptr) AccessChain 56(gl_TessCoord) 19 115: 56(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 109 111 114
131: 24(float) Load 130 Store 98(n1) 115
132: 53(fvec3) CompositeConstruct 131 131 131 116: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 117 117 12 12
133: 53(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 128 129 132 121: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 119 118(n2) 38
Store 124(outNormal) 133 122: 58(ptr) AccessChain 105(inNormal) 73
141: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 138 137(pos1) 35 123: 56(fvec3) Load 122
164: 163(ptr) AccessChain 160(gl_in) 46 46 124: 58(ptr) AccessChain 105(inNormal) 76
165: 134(fvec4) Load 164 125: 56(fvec3) Load 124
166: 163(ptr) AccessChain 160(gl_in) 50 46 126: 62(ptr) AccessChain 59(gl_TessCoord) 12
167: 134(fvec4) Load 166 127: 28(float) Load 126
168: 59(ptr) AccessChain 56(gl_TessCoord) 11 128: 56(fvec3) CompositeConstruct 127 127 127
169: 24(float) Load 168 129: 56(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 123 125 128
170: 134(fvec4) CompositeConstruct 169 169 169 169 Store 118(n2) 129
171: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 165 167 170 130: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 131 131 12 12
Store 137(pos1) 171 136: 56(fvec3) Load 98(n1)
176: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 173 172(pos2) 35 137: 56(fvec3) Load 118(n2)
177: 163(ptr) AccessChain 160(gl_in) 69 46 138: 62(ptr) AccessChain 59(gl_TessCoord) 20
178: 134(fvec4) Load 177 139: 28(float) Load 138
179: 163(ptr) AccessChain 160(gl_in) 72 46 140: 56(fvec3) CompositeConstruct 139 139 139
180: 134(fvec4) Load 179 141: 56(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 136 137 140
181: 59(ptr) AccessChain 56(gl_TessCoord) 11 Store 133(outNormal) 141
182: 24(float) Load 181 142: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 143 143 12 12
183: 134(fvec4) CompositeConstruct 182 182 182 182 150: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 148 147(pos1) 38
184: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 178 180 183 173: 172(ptr) AccessChain 169(gl_in) 49 49
Store 172(pos2) 184 174: 144(fvec4) Load 173
189: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 186 185(pos) 35 175: 172(ptr) AccessChain 169(gl_in) 53 49
190: 134(fvec4) Load 137(pos1) 176: 144(fvec4) Load 175
191: 134(fvec4) Load 172(pos2) 177: 62(ptr) AccessChain 59(gl_TessCoord) 12
192: 59(ptr) AccessChain 56(gl_TessCoord) 19 178: 28(float) Load 177
193: 24(float) Load 192 179: 144(fvec4) CompositeConstruct 178 178 178 178
194: 134(fvec4) CompositeConstruct 193 193 193 193 180: 144(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 174 176 179
195: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 190 191 194 Store 147(pos1) 180
Store 185(pos) 195 181: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 182 182 12 12
210: 202 Load 207(displacementMap) 186: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 184 183(pos2) 38
211: 27(fvec2) Load 80(outUV) 187: 172(ptr) AccessChain 169(gl_in) 73 49
213: 134(fvec4) ImageSampleExplicitLod 210 211 Lod 212 188: 144(fvec4) Load 187
214: 24(float) CompositeExtract 213 0 189: 172(ptr) AccessChain 169(gl_in) 76 49
248: 247(ptr) AccessChain 243(ubo) 246 190: 144(fvec4) Load 189
249: 24(float) Load 248 191: 62(ptr) AccessChain 59(gl_TessCoord) 12
250: 24(float) FMul 214 249 192: 28(float) Load 191
252: 251(ptr) AccessChain 185(pos) 19 193: 144(fvec4) CompositeConstruct 192 192 192 192
253: 24(float) Load 252 194: 144(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 188 190 193
254: 24(float) FSub 253 250 Store 183(pos2) 194
255: 251(ptr) AccessChain 185(pos) 19 195: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 196 196 12 12
Store 255 254 200: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 198 197(pos) 38
270: 269(ptr) AccessChain 243(ubo) 46 201: 144(fvec4) Load 147(pos1)
271: 215 Load 270 202: 144(fvec4) Load 183(pos2)
272: 269(ptr) AccessChain 243(ubo) 50 203: 62(ptr) AccessChain 59(gl_TessCoord) 20
273: 215 Load 272 204: 28(float) Load 203
274: 215 MatrixTimesMatrix 271 273 205: 144(fvec4) CompositeConstruct 204 204 204 204
275: 134(fvec4) Load 185(pos) 206: 144(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 201 202 205
276: 134(fvec4) MatrixTimesVector 274 275 Store 197(pos) 206
278: 277(ptr) AccessChain 267 46 207: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 208 208 12 12
Store 278 276 222: 214 Load 219(displacementMap)
283: 134(fvec4) Load 185(pos) 223: 31(fvec2) Load 86(outUV)
284: 53(fvec3) VectorShuffle 283 283 0 1 2 225: 144(fvec4) ImageSampleExplicitLod 222 223 Lod 224
285: 53(fvec3) FNegate 284 226: 28(float) CompositeExtract 225 0
Store 279(outViewVec) 285 260: 259(ptr) AccessChain 255(ubo) 258
291: 290(ptr) AccessChain 243(ubo) 72 261: 28(float) Load 260
292: 134(fvec4) Load 291 262: 28(float) FMul 226 261
293: 53(fvec3) VectorShuffle 292 292 0 1 2 264: 263(ptr) AccessChain 197(pos) 20
294: 53(fvec3) Load 279(outViewVec) 265: 28(float) Load 264
295: 53(fvec3) FAdd 293 294 266: 28(float) FSub 265 262
296: 53(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 295 267: 263(ptr) AccessChain 197(pos) 20
Store 286(outLightVec) 296 Store 267 266
301: 134(fvec4) Load 185(pos) 268: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 269 269 12 12
302: 53(fvec3) VectorShuffle 301 301 0 1 2 283: 282(ptr) AccessChain 255(ubo) 49
Store 297(outWorldPos) 302 284: 227 Load 283
307: 269(ptr) AccessChain 243(ubo) 50 285: 282(ptr) AccessChain 255(ubo) 53
308: 215 Load 307 286: 227 Load 285
309: 134(fvec4) Load 185(pos) 287: 227 MatrixTimesMatrix 284 286
310: 134(fvec4) MatrixTimesVector 308 309 288: 144(fvec4) Load 197(pos)
311: 24(float) CompositeExtract 310 0 289: 144(fvec4) MatrixTimesVector 287 288
312: 24(float) CompositeExtract 310 1 291: 290(ptr) AccessChain 280 49
313: 24(float) CompositeExtract 310 2 Store 291 289
314: 53(fvec3) CompositeConstruct 311 312 313 292: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 17 293 293 12 12
Store 303(outEyePos) 314 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 Return
FunctionEnd FunctionEnd

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,458 +1,499 @@
spv.debuginfo.hlsl.geom spv.debuginfo.hlsl.geom
Validation failed
// Module Version 10000 // Module Version 10000
// Generated by (magic number): 8000b // Generated by (magic number): 8000b
// Id's are bound by 322 // Id's are bound by 353
Capability Geometry Capability Geometry
Capability MultiViewport Capability MultiViewport
Extension "SPV_KHR_non_semantic_info" Extension "SPV_KHR_non_semantic_info"
1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" 2: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
2: ExtInstImport "GLSL.std.450" 3: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450 MemoryModel Logical GLSL450
EntryPoint Geometry 5 "main" 228 235 240 246 251 256 261 271 278 283 307 310 EntryPoint Geometry 6 "main" 255 261 266 272 277 282 287 302 309 314 338 341
ExecutionMode 5 Triangles ExecutionMode 6 Triangles
ExecutionMode 5 Invocations 2 ExecutionMode 6 Invocations 2
ExecutionMode 5 OutputTriangleStrip ExecutionMode 6 OutputTriangleStrip
ExecutionMode 5 OutputVertices 3 ExecutionMode 6 OutputVertices 3
9: String "float" 1: String ""
12: String "uint" 10: String "float"
24: String "Pos" 13: String "uint"
26: String "" 25: String "Pos"
30: String "Color" 27: String "// OpModuleProcessed auto-map-locations
35: String "VSOutput" // OpModuleProcessed auto-map-bindings
46: String "PrimitiveID" // OpModuleProcessed entry-point main
51: String "LightVec" // OpModuleProcessed client vulkan100
57: String "GSOutput" // OpModuleProcessed target-env vulkan1.0
67: String "@main" // OpModuleProcessed keep-uncalled
73: String "input" // OpModuleProcessed hlsl-offsets
77: String "outStream" #line 1
81: String "InvocationID" "
87: String "int" 31: String "Color"
92: String "i" 36: String "VSOutput"
104: String "bool" 47: String "PrimitiveID"
109: String "output" 52: String "LightVec"
130: String "projection" 58: String "GSOutput"
134: String "modelview" 68: String "@main"
138: String "lightPos" 74: String "input"
142: String "UBO" 78: String "outStream"
146: String "ubo" 82: String "InvocationID"
177: String "pos" 91: String "int"
185: String "worldPos" 96: String "i"
195: String "lPos" 111: String "bool"
230: String "outStream.Pos" 119: String "output"
237: String "outStream.ViewportIndex" 141: String "projection"
242: String "outStream.PrimitiveID" 145: String "modelview"
248: String "outStream.Normal" 149: String "lightPos"
253: String "outStream.Color" 153: String "UBO"
258: String "outStream.ViewVec" 156: String "ubo"
263: String "outStream.LightVec" 191: String "pos"
Name 5 "main" 200: String "worldPos"
Name 22 "VSOutput" 211: String "lPos"
MemberName 22(VSOutput) 0 "Pos" 257: String "outStream.Pos"
MemberName 22(VSOutput) 1 "Normal" 263: String "outStream.ViewportIndex"
MemberName 22(VSOutput) 2 "Color" 268: String "outStream.PrimitiveID"
Name 42 "GSOutput" 274: String "outStream.Normal"
MemberName 42(GSOutput) 0 "Pos" 279: String "outStream.Color"
MemberName 42(GSOutput) 1 "ViewportIndex" 284: String "outStream.ViewVec"
MemberName 42(GSOutput) 2 "PrimitiveID" 289: String "outStream.LightVec"
MemberName 42(GSOutput) 3 "Normal" Name 6 "main"
MemberName 42(GSOutput) 4 "Color" Name 23 "VSOutput"
MemberName 42(GSOutput) 5 "ViewVec" MemberName 23(VSOutput) 0 "Pos"
MemberName 42(GSOutput) 6 "LightVec" MemberName 23(VSOutput) 1 "Normal"
Name 66 "@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;" MemberName 23(VSOutput) 2 "Color"
Name 62 "input" Name 43 "GSOutput"
Name 63 "outStream" MemberName 43(GSOutput) 0 "Pos"
Name 64 "InvocationID" MemberName 43(GSOutput) 1 "ViewportIndex"
Name 65 "PrimitiveID" MemberName 43(GSOutput) 2 "PrimitiveID"
Name 90 "i" MemberName 43(GSOutput) 3 "Normal"
Name 107 "output" MemberName 43(GSOutput) 4 "Color"
Name 128 "UBO" MemberName 43(GSOutput) 5 "ViewVec"
MemberName 128(UBO) 0 "projection" MemberName 43(GSOutput) 6 "LightVec"
MemberName 128(UBO) 1 "modelview" Name 67 "@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;"
MemberName 128(UBO) 2 "lightPos" Name 63 "input"
Name 144 "ubo" Name 64 "outStream"
MemberName 144(ubo) 0 "ubo" Name 65 "InvocationID"
Name 150 "" Name 66 "PrimitiveID"
Name 175 "pos" Name 94 "i"
Name 183 "worldPos" Name 117 "output"
Name 193 "lPos" Name 139 "UBO"
Name 228 "outStream.Pos" MemberName 139(UBO) 0 "projection"
Name 235 "outStream.ViewportIndex" MemberName 139(UBO) 1 "modelview"
Name 240 "outStream.PrimitiveID" MemberName 139(UBO) 2 "lightPos"
Name 246 "outStream.Normal" Name 154 "ubo"
Name 251 "outStream.Color" MemberName 154(ubo) 0 "ubo"
Name 256 "outStream.ViewVec" Name 160 ""
Name 261 "outStream.LightVec" Name 189 "pos"
Name 268 "input" Name 198 "worldPos"
Name 271 "input.Pos" Name 209 "lPos"
Name 278 "input.Normal" Name 255 "outStream.Pos"
Name 283 "input.Color" Name 261 "outStream.ViewportIndex"
Name 305 "InvocationID" Name 266 "outStream.PrimitiveID"
Name 307 "InvocationID" Name 272 "outStream.Normal"
Name 309 "PrimitiveID" Name 277 "outStream.Color"
Name 310 "PrimitiveID" Name 282 "outStream.ViewVec"
Name 312 "outStream" Name 287 "outStream.LightVec"
Name 313 "param" Name 299 "input"
Name 315 "param" Name 302 "input.Pos"
Name 316 "param" Name 309 "input.Normal"
Name 318 "param" Name 314 "input.Color"
Decorate 124 ArrayStride 64 Name 336 "InvocationID"
Decorate 126 ArrayStride 64 Name 338 "InvocationID"
MemberDecorate 128(UBO) 0 RowMajor Name 340 "PrimitiveID"
MemberDecorate 128(UBO) 0 Offset 0 Name 341 "PrimitiveID"
MemberDecorate 128(UBO) 0 MatrixStride 16 Name 343 "outStream"
MemberDecorate 128(UBO) 1 RowMajor Name 344 "param"
MemberDecorate 128(UBO) 1 Offset 128 Name 346 "param"
MemberDecorate 128(UBO) 1 MatrixStride 16 Name 347 "param"
MemberDecorate 128(UBO) 2 Offset 256 Name 349 "param"
MemberDecorate 144(ubo) 0 Offset 0 Decorate 135 ArrayStride 64
Decorate 144(ubo) Block Decorate 137 ArrayStride 64
Decorate 150 DescriptorSet 0 MemberDecorate 139(UBO) 0 RowMajor
Decorate 150 Binding 0 MemberDecorate 139(UBO) 0 Offset 0
Decorate 228(outStream.Pos) BuiltIn Position MemberDecorate 139(UBO) 0 MatrixStride 16
Decorate 235(outStream.ViewportIndex) BuiltIn ViewportIndex MemberDecorate 139(UBO) 1 RowMajor
Decorate 240(outStream.PrimitiveID) BuiltIn PrimitiveId MemberDecorate 139(UBO) 1 Offset 128
Decorate 246(outStream.Normal) Location 0 MemberDecorate 139(UBO) 1 MatrixStride 16
Decorate 251(outStream.Color) Location 1 MemberDecorate 139(UBO) 2 Offset 256
Decorate 256(outStream.ViewVec) Location 2 MemberDecorate 154(ubo) 0 Offset 0
Decorate 261(outStream.LightVec) Location 3 Decorate 154(ubo) Block
Decorate 271(input.Pos) BuiltIn Position Decorate 160 DescriptorSet 0
Decorate 278(input.Normal) Location 0 Decorate 160 Binding 0
Decorate 283(input.Color) Location 1 Decorate 255(outStream.Pos) BuiltIn Position
Decorate 307(InvocationID) BuiltIn InvocationId Decorate 261(outStream.ViewportIndex) BuiltIn ViewportIndex
Decorate 310(PrimitiveID) BuiltIn PrimitiveId Decorate 266(outStream.PrimitiveID) BuiltIn PrimitiveId
3: TypeVoid Decorate 272(outStream.Normal) Location 0
4: TypeFunction 3 Decorate 277(outStream.Color) Location 1
7: TypeFloat 32 Decorate 282(outStream.ViewVec) Location 2
10: TypeInt 32 0 Decorate 287(outStream.LightVec) Location 3
13: 10(int) Constant 32 Decorate 302(input.Pos) BuiltIn Position
14: 10(int) Constant 6 Decorate 309(input.Normal) Location 0
15: 10(int) Constant 0 Decorate 314(input.Color) Location 1
11: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 12 13 14 15 Decorate 338(InvocationID) BuiltIn InvocationId
16: 10(int) Constant 3 Decorate 341(PrimitiveID) BuiltIn PrimitiveId
8: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 13 16 15 4: TypeVoid
17: TypeVector 7(float) 4 5: TypeFunction 4
18: 10(int) Constant 4 8: TypeFloat 32
19: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 8 18 11: TypeInt 32 0
20: TypeVector 7(float) 3 14: 11(int) Constant 32
21: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 8 16 15: 11(int) Constant 6
22(VSOutput): TypeStruct 17(fvec4) 20(fvec3) 20(fvec3) 16: 11(int) Constant 0
25: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 0 26 12: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 13 14 15 16
27: 10(int) Constant 37 17: 11(int) Constant 3
28: 10(int) Constant 13 9: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 10 14 17 16
23: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 24 19 25 27 28 15 15 16 18: TypeVector 8(float) 4
31: 10(int) Constant 39 19: 11(int) Constant 4
32: 10(int) Constant 34 20: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 19
29: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 30 21 25 31 32 15 15 16 21: TypeVector 8(float) 3
33: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 30 21 25 31 32 15 15 16 22: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 17
36: 10(int) Constant 1 23(VSOutput): TypeStruct 18(fvec4) 21(fvec3) 21(fvec3)
38: 10(int) Constant 5 26: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 27
37: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 36 18 25 38 28: 11(int) Constant 37
34: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 35 36 25 15 15 37 35 15 16 23 29 33 29: 11(int) Constant 13
39: TypeArray 22(VSOutput) 16 24: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 25 20 26 28 29 16 16 17
40: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 34 16 32: 11(int) Constant 39
41: TypePointer Function 39 33: 11(int) Constant 34
42(GSOutput): TypeStruct 17(fvec4) 10(int) 10(int) 20(fvec3) 20(fvec3) 20(fvec3) 20(fvec3) 30: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 31 22 26 32 33 16 16 17
44: 10(int) Constant 44 34: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 31 22 26 32 33 16 16 17
43: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 24 19 25 44 28 15 15 16 37: 11(int) Constant 1
47: 10(int) Constant 46 39: 11(int) Constant 5
48: 10(int) Constant 19 38: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 37 19 26 39
45: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 46 11 25 47 48 15 15 16 35: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 36 37 26 16 16 38 36 16 17 24 30 34
49: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 46 11 25 47 48 15 15 16 40: TypeArray 23(VSOutput) 17
52: 10(int) Constant 50 41: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 35 17
50: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 51 21 25 52 27 15 15 16 42: TypePointer Function 40
53: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 51 21 25 52 27 15 15 16 43(GSOutput): TypeStruct 18(fvec4) 11(int) 11(int) 21(fvec3) 21(fvec3) 21(fvec3) 21(fvec3)
54: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 51 21 25 52 27 15 15 16 45: 11(int) Constant 44
55: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 51 21 25 52 27 15 15 16 44: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 25 20 26 45 29 16 16 17
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 48: 11(int) Constant 46
58: TypePointer Function 42(GSOutput) 49: 11(int) Constant 19
59: TypePointer Function 10(int) 46: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 47 12 26 48 49 16 16 17
60: TypeFunction 3 41(ptr) 58(ptr) 59(ptr) 59(ptr) 50: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 47 12 26 48 49 16 16 17
61: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 16 3 40 56 11 11 53: 11(int) Constant 50
68: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 67 61 25 15 15 37 67 16 15 51: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 22 26 53 28 16 16 17
72: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 73 40 25 15 15 68 18 36 54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 22 26 53 28 16 16 17
75: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) 55: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 22 26 53 28 16 16 17
78: 10(int) Constant 2 56: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 22 26 53 28 16 16 17
76: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 77 56 25 15 15 68 18 78 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
80: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 81 11 25 15 15 68 18 16 59: TypePointer Function 43(GSOutput)
83: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 46 11 25 15 15 68 18 18 60: TypePointer Function 11(int)
86: TypeInt 32 1 61: TypeFunction 4 42(ptr) 59(ptr) 60(ptr) 60(ptr)
88: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 87 13 18 15 62: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 4 41 57 12 12
89: TypePointer Function 86(int) 69: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 68 62 26 16 16 38 68 17 16
93: 10(int) Constant 57 73: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 74 41 26 16 16 69 19 37
91: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 92 88 25 93 15 68 18 76: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
95: 86(int) Constant 0 79: 11(int) Constant 2
102: 86(int) Constant 3 77: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 78 57 26 16 16 69 19 79
103: TypeBool 81: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 82 12 26 16 16 69 19 17
105: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 104 13 78 15 84: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 47 12 26 16 16 69 19 19
110: 10(int) Constant 59 89: 11(int) Constant 57
108: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 109 56 25 110 15 68 18 90: TypeInt 32 1
112: 7(float) Constant 0 92: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 91 14 19 16
113: 17(fvec4) ConstantComposite 112 112 112 112 93: TypePointer Function 90(int)
114: 20(fvec3) ConstantComposite 112 112 112 95: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 96 92 26 89 16 69 19
115:42(GSOutput) ConstantComposite 113 15 15 114 114 114 114 98: 90(int) Constant 0
117: 86(int) Constant 1 109: 90(int) Constant 3
118: TypePointer Function 20(fvec3) 110: TypeBool
121: TypeMatrix 17(fvec4) 4 112: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 111 14 79 16
123: 103(bool) ConstantTrue 116: 11(int) Constant 59
122: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 19 18 123 118: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 119 57 26 116 16 69 19
124: TypeArray 121 78 121: 8(float) Constant 0
125: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 122 78 122: 18(fvec4) ConstantComposite 121 121 121 121
126: TypeArray 121 78 123: 21(fvec3) ConstantComposite 121 121 121
127: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 122 78 124:43(GSOutput) ConstantComposite 122 16 16 123 123 123 123
128(UBO): TypeStruct 124 126 17(fvec4) 126: 11(int) Constant 60
131: 10(int) Constant 28 128: 90(int) Constant 1
132: 10(int) Constant 21 129: TypePointer Function 21(fvec3)
129: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 130 125 25 131 132 15 15 16 132: TypeMatrix 18(fvec4) 4
135: 10(int) Constant 29 134: 110(bool) ConstantTrue
136: 10(int) Constant 20 133: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 20 19 134
133: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 134 127 25 135 136 15 15 16 135: TypeArray 132 79
139: 10(int) Constant 30 136: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 133 79
140: 10(int) Constant 17 137: TypeArray 132 79
137: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 138 19 25 139 140 15 15 16 138: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 133 79
143: 10(int) Constant 60 139(UBO): TypeStruct 135 137 18(fvec4)
141: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 142 36 25 143 15 37 142 15 16 129 133 137 142: 11(int) Constant 28
144(ubo): TypeStruct 128(UBO) 143: 11(int) Constant 21
147: 10(int) Constant 33 140: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 141 136 26 142 143 16 16 17
145: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 146 141 25 147 27 15 15 16 146: 11(int) Constant 29
148: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 146 36 25 143 15 37 146 15 16 145 147: 11(int) Constant 20
149: TypePointer Uniform 144(ubo) 144: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 145 138 26 146 147 16 16 17
150: 149(ptr) Variable Uniform 150: 11(int) Constant 30
152: 10(int) Constant 8 151: 11(int) Constant 17
151: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 26 148 25 143 15 37 26 150 152 148: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 149 20 26 150 151 16 16 17
154: TypePointer Uniform 121 152: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 153 37 26 126 16 38 153 16 17 140 144 148
157: TypeMatrix 20(fvec3) 3 154(ubo): TypeStruct 139(UBO)
158: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 21 16 123 157: 11(int) Constant 33
168: 86(int) Constant 4 155: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 156 152 26 157 28 16 16 17
170: 86(int) Constant 2 158: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 156 37 26 126 16 38 156 16 17 155
174: TypePointer Function 17(fvec4) 159: TypePointer Uniform 154(ubo)
178: 10(int) Constant 63 160: 159(ptr) Variable Uniform
176: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 177 19 25 178 15 68 18 162: 11(int) Constant 8
186: 10(int) Constant 64 161: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 158 26 126 16 38 1 160 162
184: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 185 19 25 186 15 68 18 164: TypePointer Uniform 132
196: 10(int) Constant 66 167: TypeMatrix 21(fvec3) 3
194: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 195 21 25 196 15 68 18 168: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 22 17 134
198: TypePointer Uniform 17(fvec4) 179: 11(int) Constant 61
206: 86(int) Constant 6 180: 90(int) Constant 4
212: 86(int) Constant 5 182: 90(int) Constant 2
227: TypePointer Output 17(fvec4) 187: 11(int) Constant 63
228(outStream.Pos): 227(ptr) Variable Output 188: TypePointer Function 18(fvec4)
231: 10(int) Constant 75 190: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 191 20 26 187 16 69 19
229: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 230 19 25 231 15 37 230 228(outStream.Pos) 152 197: 11(int) Constant 64
234: TypePointer Output 10(int) 199: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 200 20 26 197 16 69 19
235(outStream.ViewportIndex): 234(ptr) Variable Output 208: 11(int) Constant 66
236: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 237 11 25 231 15 37 237 235(outStream.ViewportIndex) 152 210: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 211 22 26 208 16 69 19
240(outStream.PrimitiveID): 234(ptr) Variable Output 213: TypePointer Uniform 18(fvec4)
241: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 242 11 25 231 15 37 242 240(outStream.PrimitiveID) 152 222: 11(int) Constant 67
245: TypePointer Output 20(fvec3) 223: 90(int) Constant 6
246(outStream.Normal): 245(ptr) Variable Output 230: 11(int) Constant 68
247: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 248 21 25 231 15 37 248 246(outStream.Normal) 152 231: 90(int) Constant 5
251(outStream.Color): 245(ptr) Variable Output 237: 11(int) Constant 70
252: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 253 21 25 231 15 37 253 251(outStream.Color) 152 245: 11(int) Constant 73
256(outStream.ViewVec): 245(ptr) Variable Output 249: 11(int) Constant 74
257: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 258 21 25 231 15 37 258 256(outStream.ViewVec) 152 253: 11(int) Constant 75
261(outStream.LightVec): 245(ptr) Variable Output 254: TypePointer Output 18(fvec4)
262: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 263 21 25 231 15 37 263 261(outStream.LightVec) 152 255(outStream.Pos): 254(ptr) Variable Output
269: TypeArray 17(fvec4) 16 256: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 257 20 26 253 16 38 257 255(outStream.Pos) 162
270: TypePointer Input 269 260: TypePointer Output 11(int)
271(input.Pos): 270(ptr) Variable Input 261(outStream.ViewportIndex): 260(ptr) Variable Output
272: TypePointer Input 17(fvec4) 262: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 263 12 26 253 16 38 263 261(outStream.ViewportIndex) 162
276: TypeArray 20(fvec3) 16 266(outStream.PrimitiveID): 260(ptr) Variable Output
277: TypePointer Input 276 267: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 268 12 26 253 16 38 268 266(outStream.PrimitiveID) 162
278(input.Normal): 277(ptr) Variable Input 271: TypePointer Output 21(fvec3)
279: TypePointer Input 20(fvec3) 272(outStream.Normal): 271(ptr) Variable Output
283(input.Color): 277(ptr) Variable Input 273: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 274 22 26 253 16 38 274 272(outStream.Normal) 162
306: TypePointer Input 10(int) 277(outStream.Color): 271(ptr) Variable Output
307(InvocationID): 306(ptr) Variable Input 278: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 279 22 26 253 16 38 279 277(outStream.Color) 162
310(PrimitiveID): 306(ptr) Variable Input 282(outStream.ViewVec): 271(ptr) Variable Output
5(main): 3 Function None 4 283: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 284 22 26 253 16 38 284 282(outStream.ViewVec) 162
6: Label 287(outStream.LightVec): 271(ptr) Variable Output
268(input): 41(ptr) Variable Function 288: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 289 22 26 253 16 38 289 287(outStream.LightVec) 162
305(InvocationID): 59(ptr) Variable Function 298: 11(int) Constant 78
309(PrimitiveID): 59(ptr) Variable Function 300: TypeArray 18(fvec4) 17
312(outStream): 58(ptr) Variable Function 301: TypePointer Input 300
313(param): 41(ptr) Variable Function 302(input.Pos): 301(ptr) Variable Input
315(param): 58(ptr) Variable Function 303: TypePointer Input 18(fvec4)
316(param): 59(ptr) Variable Function 307: TypeArray 21(fvec3) 17
318(param): 59(ptr) Variable Function 308: TypePointer Input 307
273: 272(ptr) AccessChain 271(input.Pos) 95 309(input.Normal): 308(ptr) Variable Input
274: 17(fvec4) Load 273 310: TypePointer Input 21(fvec3)
275: 174(ptr) AccessChain 268(input) 95 95 314(input.Color): 308(ptr) Variable Input
Store 275 274 337: TypePointer Input 11(int)
280: 279(ptr) AccessChain 278(input.Normal) 95 338(InvocationID): 337(ptr) Variable Input
281: 20(fvec3) Load 280 341(PrimitiveID): 337(ptr) Variable Input
282: 118(ptr) AccessChain 268(input) 95 117 Line 1 56 1
Store 282 281 6(main): 4 Function None 5
284: 279(ptr) AccessChain 283(input.Color) 95 7: Label
285: 20(fvec3) Load 284 299(input): 42(ptr) Variable Function
286: 118(ptr) AccessChain 268(input) 95 170 336(InvocationID): 60(ptr) Variable Function
Store 286 285 340(PrimitiveID): 60(ptr) Variable Function
287: 272(ptr) AccessChain 271(input.Pos) 117 343(outStream): 59(ptr) Variable Function
288: 17(fvec4) Load 287 344(param): 42(ptr) Variable Function
289: 174(ptr) AccessChain 268(input) 117 95 346(param): 59(ptr) Variable Function
Store 289 288 347(param): 60(ptr) Variable Function
290: 279(ptr) AccessChain 278(input.Normal) 117 349(param): 60(ptr) Variable Function
291: 20(fvec3) Load 290 Line 1 56 0
292: 118(ptr) AccessChain 268(input) 117 117 304: 303(ptr) AccessChain 302(input.Pos) 98
Store 292 291 305: 18(fvec4) Load 304
293: 279(ptr) AccessChain 283(input.Color) 117 306: 188(ptr) AccessChain 299(input) 98 98
294: 20(fvec3) Load 293 Store 306 305
295: 118(ptr) AccessChain 268(input) 117 170 311: 310(ptr) AccessChain 309(input.Normal) 98
Store 295 294 312: 21(fvec3) Load 311
296: 272(ptr) AccessChain 271(input.Pos) 170 313: 129(ptr) AccessChain 299(input) 98 128
297: 17(fvec4) Load 296 Store 313 312
298: 174(ptr) AccessChain 268(input) 170 95 315: 310(ptr) AccessChain 314(input.Color) 98
Store 298 297 316: 21(fvec3) Load 315
299: 279(ptr) AccessChain 278(input.Normal) 170 317: 129(ptr) AccessChain 299(input) 98 182
300: 20(fvec3) Load 299 Store 317 316
301: 118(ptr) AccessChain 268(input) 170 117 318: 303(ptr) AccessChain 302(input.Pos) 128
Store 301 300 319: 18(fvec4) Load 318
302: 279(ptr) AccessChain 283(input.Color) 170 320: 188(ptr) AccessChain 299(input) 128 98
303: 20(fvec3) Load 302 Store 320 319
304: 118(ptr) AccessChain 268(input) 170 170 321: 310(ptr) AccessChain 309(input.Normal) 128
Store 304 303 322: 21(fvec3) Load 321
308: 10(int) Load 307(InvocationID) 323: 129(ptr) AccessChain 299(input) 128 128
Store 305(InvocationID) 308 Store 323 322
311: 10(int) Load 310(PrimitiveID) 324: 310(ptr) AccessChain 314(input.Color) 128
Store 309(PrimitiveID) 311 325: 21(fvec3) Load 324
314: 39 Load 268(input) 326: 129(ptr) AccessChain 299(input) 128 182
Store 313(param) 314 Store 326 325
317: 10(int) Load 305(InvocationID) 327: 303(ptr) AccessChain 302(input.Pos) 182
Store 316(param) 317 328: 18(fvec4) Load 327
319: 10(int) Load 309(PrimitiveID) 329: 188(ptr) AccessChain 299(input) 182 98
Store 318(param) 319 Store 329 328
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) 330: 310(ptr) AccessChain 309(input.Normal) 182
321:42(GSOutput) Load 315(param) 331: 21(fvec3) Load 330
Store 312(outStream) 321 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 Return
FunctionEnd FunctionEnd
66(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;): 3 Function None 60 Line 1 56 1
62(input): 41(ptr) FunctionParameter 67(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;): 4 Function None 61
63(outStream): 58(ptr) FunctionParameter 63(input): 42(ptr) FunctionParameter
64(InvocationID): 59(ptr) FunctionParameter 64(outStream): 59(ptr) FunctionParameter
65(PrimitiveID): 59(ptr) FunctionParameter 65(InvocationID): 60(ptr) FunctionParameter
69: Label 66(PrimitiveID): 60(ptr) FunctionParameter
90(i): 89(ptr) Variable Function 70: Label
107(output): 58(ptr) Variable Function 94(i): 93(ptr) Variable Function
175(pos): 174(ptr) Variable Function 117(output): 59(ptr) Variable Function
183(worldPos): 174(ptr) Variable Function 189(pos): 188(ptr) Variable Function
193(lPos): 118(ptr) Variable Function 198(worldPos): 188(ptr) Variable Function
70: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 68 209(lPos): 129(ptr) Variable Function
71: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 25 15 15 15 15 71: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 69
74: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 72 62(input) 75 72: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 16 16 16 16
79: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 76 63(outStream) 75 75: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 73 63(input) 76
82: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 80 64(InvocationID) 75 80: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 77 64(outStream) 76
84: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 83 65(PrimitiveID) 75 83: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 81 65(InvocationID) 76
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;) 85: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 84 66(PrimitiveID) 76
94: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 91 90(i) 75 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;)
Store 90(i) 95 87: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 69
Branch 96 88: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 89 89 16 16
96: Label 97: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 95 94(i) 76
LoopMerge 98 99 None Store 94(i) 98
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
EmitVertex
Branch 99 Branch 99
99: Label 99: Label
266: 86(int) Load 90(i) 103: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 69
267: 86(int) IAdd 266 117 104: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 89 89 16 16
Store 90(i) 267 LoopMerge 101 102 None
Branch 96 Branch 105
98: Label 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
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 EndPrimitive
Return Return
FunctionEnd FunctionEnd

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff