Emit DebugTypePointer when non-semantic debug info is enabled

This commit is contained in:
Sajjad Mirza 2023-12-28 08:00:37 -08:00 committed by GitHub
parent 89824a83b7
commit e17ecb0e80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 9174 additions and 8925 deletions

View file

@ -242,6 +242,11 @@ Id Builder::makePointer(StorageClass storageClass, Id pointee)
constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type));
module.mapInstruction(type);
if (emitNonSemanticShaderDebugInfo) {
const Id debugResultId = makePointerDebugType(storageClass, pointee);
debugId[type->getResultId()] = debugResultId;
}
return type->getResultId();
}
@ -1070,6 +1075,34 @@ Id Builder::makeCompositeDebugType(std::vector<Id> const& memberTypes, char cons
return type->getResultId();
}
Id Builder::makePointerDebugType(StorageClass storageClass, Id const baseType)
{
const Id debugBaseType = debugId[baseType];
if (!debugBaseType) {
return makeDebugInfoNone();
}
const Id scID = makeUintConstant(storageClass);
for (Instruction* otherType : groupedDebugTypes[NonSemanticShaderDebugInfo100DebugTypePointer]) {
if (otherType->getIdOperand(2) == debugBaseType &&
otherType->getIdOperand(3) == scID) {
return otherType->getResultId();
}
}
Instruction* type = new Instruction(getUniqueId(), makeVoidType(), OpExtInst);
type->addIdOperand(nonSemanticShaderDebugInfo);
type->addImmediateOperand(NonSemanticShaderDebugInfo100DebugTypePointer);
type->addIdOperand(debugBaseType);
type->addIdOperand(scID);
type->addIdOperand(makeUintConstant(0));
groupedDebugTypes[NonSemanticShaderDebugInfo100DebugTypePointer].push_back(type);
constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type));
module.mapInstruction(type);
return type->getResultId();
}
Id Builder::makeDebugSource(const Id fileName) {
if (debugSourceId.find(fileName) != debugSourceId.end())
return debugSourceId[fileName];

View file

@ -226,6 +226,7 @@ public:
Id makeMemberDebugType(Id const memberType, DebugTypeLoc const& debugTypeLoc);
Id makeCompositeDebugType(std::vector<Id> const& memberTypes, char const*const name,
NonSemanticShaderDebugInfo100DebugCompositeType const tag, bool const isOpaqueType = false);
Id makePointerDebugType(StorageClass storageClass, Id const baseType);
Id makeDebugSource(const Id fileName);
Id makeDebugCompilationUnit();
Id createDebugGlobalVariable(Id const type, char const*const name, Id const variable);

View file

@ -1,7 +1,7 @@
spv.debuginfo.bufferref.glsl.frag
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 132
// Id's are bound by 143
Capability Shader
Capability PhysicalStorageBufferAddressesEXT
@ -11,7 +11,7 @@ spv.debuginfo.bufferref.glsl.frag
2: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
3: ExtInstImport "GLSL.std.450"
MemoryModel PhysicalStorageBuffer64EXT GLSL450
EntryPoint Fragment 14 "main" 70 123
EntryPoint Fragment 14 "main" 75 134
ExecutionMode 14 OriginUpperLeft
1: String ""
8: String "uint"
@ -28,42 +28,42 @@ spv.debuginfo.bufferref.glsl.frag
34: String "float"
40: String "data"
44: String "MeshVertexPositions"
48: String "meshData"
60: String "PerPass_meshes"
64: String "perPass_meshes"
66: String "int"
72: String "tri_idx0"
87: String "vertex_pos0"
125: String "out_fragColor"
50: String "meshData"
62: String "PerPass_meshes"
68: String "perPass_meshes"
70: String "int"
77: String "tri_idx0"
95: String "vertex_pos0"
136: String "out_fragColor"
SourceExtension "GL_EXT_buffer_reference"
Name 14 "main"
Name 30 "Mesh"
MemberName 30(Mesh) 0 "positions"
Name 38 "MeshVertexPositions"
MemberName 38(MeshVertexPositions) 0 "data"
Name 46 "meshData"
Name 51 "Mesh"
MemberName 51(Mesh) 0 "positions"
Name 55 "PerPass_meshes"
MemberName 55(PerPass_meshes) 0 "data"
Name 62 "perPass_meshes"
Name 70 "tri_idx0"
Name 85 "vertex_pos0"
Name 123 "out_fragColor"
Name 48 "meshData"
Name 53 "Mesh"
MemberName 53(Mesh) 0 "positions"
Name 57 "PerPass_meshes"
MemberName 57(PerPass_meshes) 0 "data"
Name 66 "perPass_meshes"
Name 75 "tri_idx0"
Name 93 "vertex_pos0"
Name 134 "out_fragColor"
Decorate 36 ArrayStride 4
MemberDecorate 38(MeshVertexPositions) 0 Offset 0
Decorate 38(MeshVertexPositions) Block
MemberDecorate 51(Mesh) 0 Offset 0
Decorate 53 ArrayStride 8
MemberDecorate 55(PerPass_meshes) 0 NonWritable
MemberDecorate 55(PerPass_meshes) 0 Offset 0
Decorate 55(PerPass_meshes) Block
Decorate 62(perPass_meshes) DescriptorSet 0
Decorate 62(perPass_meshes) Binding 0
Decorate 70(tri_idx0) Flat
Decorate 70(tri_idx0) Location 0
Decorate 123(out_fragColor) Location 0
Decorate 46(meshData) DecorationAliasedPointerEXT
MemberDecorate 53(Mesh) 0 Offset 0
Decorate 55 ArrayStride 8
MemberDecorate 57(PerPass_meshes) 0 NonWritable
MemberDecorate 57(PerPass_meshes) 0 Offset 0
Decorate 57(PerPass_meshes) Block
Decorate 66(perPass_meshes) DescriptorSet 0
Decorate 66(perPass_meshes) Binding 0
Decorate 75(tri_idx0) Flat
Decorate 75(tri_idx0) Location 0
Decorate 134(out_fragColor) Location 0
Decorate 48(meshData) DecorationAliasedPointerEXT
4: TypeVoid
5: TypeFunction 4
7: TypeInt 32 0
@ -95,93 +95,104 @@ spv.debuginfo.bufferref.glsl.frag
43: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 44 22 18 28 12 21 44 12 13 39
29: TypePointer PhysicalStorageBufferEXT 38(MeshVertexPositions)
45: TypePointer Function 30(Mesh)
47: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 48 31 18 28 12 17 23
50: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
51(Mesh): TypeStruct 29(ptr)
52: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 32 22 18 28 12 21 32 12 13
53: TypeRuntimeArray 51(Mesh)
54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 52 12
55(PerPass_meshes): TypeStruct 53
57: 7(int) Constant 13
58: 7(int) Constant 8
56: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 40 54 18 57 58 12 12 13
59: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 60 22 18 28 12 21 60 12 13 56
61: TypePointer StorageBuffer 55(PerPass_meshes)
62(perPass_meshes): 61(ptr) Variable StorageBuffer
63: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 64 59 18 28 12 21 64 62(perPass_meshes) 58
65: TypeInt 32 1
67: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 66 10 23 12
68: 65(int) Constant 0
69: TypePointer Input 7(int)
70(tri_idx0): 69(ptr) Variable Input
71: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 72 9 18 28 12 21 72 70(tri_idx0) 58
74: TypePointer StorageBuffer 51(Mesh)
78: TypePointer Function 29(ptr)
81: 7(int) Constant 23
82: TypeVector 33(float) 3
83: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 35 13
84: TypePointer Function 82(fvec3)
86: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 87 83 18 81 12 17 23
90: 7(int) Constant 25
96: TypePointer PhysicalStorageBufferEXT 33(float)
100: 7(int) Constant 24
119: 7(int) Constant 27
120: TypeVector 33(float) 4
121: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 35 23
122: TypePointer Output 120(fvec4)
123(out_fragColor): 122(ptr) Variable Output
124: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 125 121 18 119 12 21 125 123(out_fragColor) 58
127: 33(float) Constant 1065353216
46: 7(int) Constant 7
47: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 31 46 12
49: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 50 31 18 28 12 17 23
52: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
53(Mesh): TypeStruct 29(ptr)
54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 32 22 18 28 12 21 32 12 13
55: TypeRuntimeArray 53(Mesh)
56: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 54 12
57(PerPass_meshes): TypeStruct 55
59: 7(int) Constant 13
60: 7(int) Constant 8
58: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 40 56 18 59 60 12 12 13
61: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 62 22 18 28 12 21 62 12 13 58
63: TypePointer StorageBuffer 57(PerPass_meshes)
64: 7(int) Constant 12
65: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 61 64 12
66(perPass_meshes): 63(ptr) Variable StorageBuffer
67: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 68 61 18 28 12 21 68 66(perPass_meshes) 60
69: TypeInt 32 1
71: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 70 10 23 12
72: 69(int) Constant 0
73: TypePointer Input 7(int)
74: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 9 22 12
75(tri_idx0): 73(ptr) Variable Input
76: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 77 9 18 28 12 21 77 75(tri_idx0) 60
79: TypePointer StorageBuffer 53(Mesh)
80: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 54 64 12
84: TypePointer Function 29(ptr)
85: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone)
88: 7(int) Constant 23
89: TypeVector 33(float) 3
90: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 35 13
91: TypePointer Function 89(fvec3)
92: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 90 46 12
94: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 95 90 18 88 12 17 23
98: 7(int) Constant 25
104: TypePointer PhysicalStorageBufferEXT 33(float)
105: 7(int) Constant 5349
106: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 35 105 12
110: 7(int) Constant 24
129: 7(int) Constant 27
130: TypeVector 33(float) 4
131: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 35 23
132: TypePointer Output 130(fvec4)
133: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 131 13 12
134(out_fragColor): 132(ptr) Variable Output
135: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 136 131 18 129 12 21 136 134(out_fragColor) 60
138: 33(float) Constant 1065353216
Line 1 20 11
14(main): 4 Function None 5
15: Label
46(meshData): 45(ptr) Variable Function
85(vertex_pos0): 84(ptr) Variable Function
48(meshData): 45(ptr) Variable Function
93(vertex_pos0): 91(ptr) Variable Function
25: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main)
26: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
27: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 28 28 12 12
49: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 47 46(meshData) 50
73: 7(int) Load 70(tri_idx0)
75: 74(ptr) AccessChain 62(perPass_meshes) 68 73
76: 51(Mesh) Load 75
77: 29(ptr) CompositeExtract 76 0
79: 78(ptr) AccessChain 46(meshData) 68
Store 79 77
80: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 81 81 12 12
88: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 86 85(vertex_pos0) 50
89: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 90 90 12 12
91: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 81 81 12 12
92: 78(ptr) AccessChain 46(meshData) 68
93: 29(ptr) Load 92
94: 7(int) Load 70(tri_idx0)
95: 7(int) IMul 13 94
97: 96(ptr) AccessChain 93 68 95
98: 33(float) Load 97 Aligned 4
99: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 100 100 12 12
101: 78(ptr) AccessChain 46(meshData) 68
102: 29(ptr) Load 101
103: 7(int) Load 70(tri_idx0)
104: 7(int) IMul 13 103
105: 7(int) IAdd 104 22
106: 96(ptr) AccessChain 102 68 105
107: 33(float) Load 106 Aligned 4
108: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 90 90 12 12
109: 78(ptr) AccessChain 46(meshData) 68
110: 29(ptr) Load 109
111: 7(int) Load 70(tri_idx0)
112: 7(int) IMul 13 111
113: 7(int) IAdd 112 24
114: 96(ptr) AccessChain 110 68 113
115: 33(float) Load 114 Aligned 4
116: 82(fvec3) CompositeConstruct 98 107 115
117: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 81 81 12 12
Store 85(vertex_pos0) 116
118: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 119 119 12 12
126: 82(fvec3) Load 85(vertex_pos0)
128: 33(float) CompositeExtract 126 0
129: 33(float) CompositeExtract 126 1
130: 33(float) CompositeExtract 126 2
131: 120(fvec4) CompositeConstruct 128 129 130 127
Store 123(out_fragColor) 131
51: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 49 48(meshData) 52
78: 7(int) Load 75(tri_idx0)
81: 79(ptr) AccessChain 66(perPass_meshes) 72 78
82: 53(Mesh) Load 81
83: 29(ptr) CompositeExtract 82 0
86: 84(ptr) AccessChain 48(meshData) 72
Store 86 83
87: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 88 88 12 12
96: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 94 93(vertex_pos0) 52
97: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 98 98 12 12
99: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 88 88 12 12
100: 84(ptr) AccessChain 48(meshData) 72
101: 29(ptr) Load 100
102: 7(int) Load 75(tri_idx0)
103: 7(int) IMul 13 102
107: 104(ptr) AccessChain 101 72 103
108: 33(float) Load 107 Aligned 4
109: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 110 110 12 12
111: 84(ptr) AccessChain 48(meshData) 72
112: 29(ptr) Load 111
113: 7(int) Load 75(tri_idx0)
114: 7(int) IMul 13 113
115: 7(int) IAdd 114 22
116: 104(ptr) AccessChain 112 72 115
117: 33(float) Load 116 Aligned 4
118: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 98 98 12 12
119: 84(ptr) AccessChain 48(meshData) 72
120: 29(ptr) Load 119
121: 7(int) Load 75(tri_idx0)
122: 7(int) IMul 13 121
123: 7(int) IAdd 122 24
124: 104(ptr) AccessChain 120 72 123
125: 33(float) Load 124 Aligned 4
126: 89(fvec3) CompositeConstruct 108 117 125
127: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 88 88 12 12
Store 93(vertex_pos0) 126
128: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 129 129 12 12
137: 89(fvec3) Load 93(vertex_pos0)
139: 33(float) CompositeExtract 137 0
140: 33(float) CompositeExtract 137 1
141: 33(float) CompositeExtract 137 2
142: 130(fvec4) CompositeConstruct 139 140 141 138
Store 134(out_fragColor) 142
Return
FunctionEnd

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,7 +1,7 @@
spv.debuginfo.glsl.geom
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 257
// Id's are bound by 272
Capability Geometry
Capability MultiViewport
@ -9,7 +9,7 @@ spv.debuginfo.glsl.geom
2: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
3: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Geometry 14 "main" 63 95 114 124 127 158 197 206 223 235 241 244
EntryPoint Geometry 14 "main" 66 99 120 131 134 167 209 218 236 250 256 259
ExecutionMode 14 Triangles
ExecutionMode 14 Invocations 2
ExecutionMode 14 OutputTriangleStrip
@ -26,97 +26,97 @@ spv.debuginfo.glsl.geom
#line 1
"
30: String "int"
35: String "i"
51: String "bool"
58: String "float"
65: String "outNormal"
78: String "projection"
82: String "modelview"
85: String "lightPos"
88: String "UBO"
92: String "ubo"
97: String "gl_InvocationID"
116: String "inNormal"
126: String "outColor"
129: String "inColor"
138: String "pos"
144: String "gl_Position"
147: String "gl_PointSize"
150: String "gl_CullDistance"
154: String "gl_PerVertex"
160: String "gl_in"
169: String "worldPos"
181: String "lPos"
199: String "outLightVec"
208: String "outViewVec"
237: String "gl_ViewportIndex"
243: String "gl_PrimitiveID"
246: String "gl_PrimitiveIDIn"
37: String "i"
53: String "bool"
60: String "float"
68: String "outNormal"
81: String "projection"
84: String "modelview"
87: String "lightPos"
90: String "UBO"
95: String "ubo"
101: String "gl_InvocationID"
122: String "inNormal"
133: String "outColor"
136: String "inColor"
146: String "pos"
152: String "gl_Position"
155: String "gl_PointSize"
158: String "gl_CullDistance"
162: String "gl_PerVertex"
169: String "gl_in"
179: String "worldPos"
192: String "lPos"
211: String "outLightVec"
220: String "outViewVec"
252: String "gl_ViewportIndex"
258: String "gl_PrimitiveID"
261: String "gl_PrimitiveIDIn"
SourceExtension "GL_ARB_viewport_array"
Name 14 "main"
Name 33 "i"
Name 63 "outNormal"
Name 76 "UBO"
MemberName 76(UBO) 0 "projection"
MemberName 76(UBO) 1 "modelview"
MemberName 76(UBO) 2 "lightPos"
Name 90 "ubo"
Name 95 "gl_InvocationID"
Name 114 "inNormal"
Name 124 "outColor"
Name 127 "inColor"
Name 136 "pos"
Name 142 "gl_PerVertex"
MemberName 142(gl_PerVertex) 0 "gl_Position"
MemberName 142(gl_PerVertex) 1 "gl_PointSize"
MemberName 142(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 142(gl_PerVertex) 3 "gl_CullDistance"
Name 158 "gl_in"
Name 167 "worldPos"
Name 179 "lPos"
Name 197 "outLightVec"
Name 206 "outViewVec"
Name 214 "gl_PerVertex"
MemberName 214(gl_PerVertex) 0 "gl_Position"
MemberName 214(gl_PerVertex) 1 "gl_PointSize"
MemberName 214(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 214(gl_PerVertex) 3 "gl_CullDistance"
Name 223 ""
Name 235 "gl_ViewportIndex"
Name 241 "gl_PrimitiveID"
Name 244 "gl_PrimitiveIDIn"
Decorate 63(outNormal) Location 0
Decorate 72 ArrayStride 64
Decorate 74 ArrayStride 64
MemberDecorate 76(UBO) 0 ColMajor
MemberDecorate 76(UBO) 0 Offset 0
MemberDecorate 76(UBO) 0 MatrixStride 16
MemberDecorate 76(UBO) 1 ColMajor
MemberDecorate 76(UBO) 1 Offset 128
MemberDecorate 76(UBO) 1 MatrixStride 16
MemberDecorate 76(UBO) 2 Offset 256
Decorate 76(UBO) Block
Decorate 90(ubo) DescriptorSet 0
Decorate 90(ubo) Binding 0
Decorate 95(gl_InvocationID) BuiltIn InvocationId
Decorate 114(inNormal) Location 0
Decorate 124(outColor) Location 1
Decorate 127(inColor) Location 1
MemberDecorate 142(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 142(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 142(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 142(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 142(gl_PerVertex) Block
Decorate 197(outLightVec) Location 3
Decorate 206(outViewVec) Location 2
MemberDecorate 214(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 214(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 214(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 214(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 214(gl_PerVertex) Block
Decorate 235(gl_ViewportIndex) BuiltIn ViewportIndex
Decorate 241(gl_PrimitiveID) BuiltIn PrimitiveId
Decorate 244(gl_PrimitiveIDIn) BuiltIn PrimitiveId
Name 35 "i"
Name 66 "outNormal"
Name 79 "UBO"
MemberName 79(UBO) 0 "projection"
MemberName 79(UBO) 1 "modelview"
MemberName 79(UBO) 2 "lightPos"
Name 93 "ubo"
Name 99 "gl_InvocationID"
Name 120 "inNormal"
Name 131 "outColor"
Name 134 "inColor"
Name 144 "pos"
Name 150 "gl_PerVertex"
MemberName 150(gl_PerVertex) 0 "gl_Position"
MemberName 150(gl_PerVertex) 1 "gl_PointSize"
MemberName 150(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 150(gl_PerVertex) 3 "gl_CullDistance"
Name 167 "gl_in"
Name 177 "worldPos"
Name 190 "lPos"
Name 209 "outLightVec"
Name 218 "outViewVec"
Name 226 "gl_PerVertex"
MemberName 226(gl_PerVertex) 0 "gl_Position"
MemberName 226(gl_PerVertex) 1 "gl_PointSize"
MemberName 226(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 226(gl_PerVertex) 3 "gl_CullDistance"
Name 236 ""
Name 250 "gl_ViewportIndex"
Name 256 "gl_PrimitiveID"
Name 259 "gl_PrimitiveIDIn"
Decorate 66(outNormal) Location 0
Decorate 75 ArrayStride 64
Decorate 77 ArrayStride 64
MemberDecorate 79(UBO) 0 ColMajor
MemberDecorate 79(UBO) 0 Offset 0
MemberDecorate 79(UBO) 0 MatrixStride 16
MemberDecorate 79(UBO) 1 ColMajor
MemberDecorate 79(UBO) 1 Offset 128
MemberDecorate 79(UBO) 1 MatrixStride 16
MemberDecorate 79(UBO) 2 Offset 256
Decorate 79(UBO) Block
Decorate 93(ubo) DescriptorSet 0
Decorate 93(ubo) Binding 0
Decorate 99(gl_InvocationID) BuiltIn InvocationId
Decorate 120(inNormal) Location 0
Decorate 131(outColor) Location 1
Decorate 134(inColor) Location 1
MemberDecorate 150(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 150(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 150(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 150(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 150(gl_PerVertex) Block
Decorate 209(outLightVec) Location 3
Decorate 218(outViewVec) Location 2
MemberDecorate 226(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 226(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 226(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 226(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 226(gl_PerVertex) Block
Decorate 250(gl_ViewportIndex) BuiltIn ViewportIndex
Decorate 256(gl_PrimitiveID) BuiltIn PrimitiveId
Decorate 259(gl_PrimitiveIDIn) BuiltIn PrimitiveId
4: TypeVoid
5: TypeFunction 4
7: TypeInt 32 0
@ -137,229 +137,244 @@ spv.debuginfo.glsl.geom
29: TypeInt 32 1
31: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 30 10 23 12
32: TypePointer Function 29(int)
34: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 35 31 18 28 12 17 23
37: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
38: 29(int) Constant 0
49: 29(int) Constant 3
50: TypeBool
52: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 51 10 24 12
56: 7(int) Constant 51
57: TypeFloat 32
59: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 58 10 13 12
60: TypeVector 57(float) 3
61: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 59 13
62: TypePointer Output 60(fvec3)
63(outNormal): 62(ptr) Variable Output
66: 7(int) Constant 8
64: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 65 61 18 56 12 21 65 63(outNormal) 66
67: TypeVector 57(float) 4
68: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 59 23
69: TypeMatrix 67(fvec4) 4
71: 50(bool) ConstantTrue
70: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 68 23 71
72: TypeArray 69 24
73: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 70 24
74: TypeArray 69 24
75: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 70 24
76(UBO): TypeStruct 72 74 67(fvec4)
79: 7(int) Constant 34
80: 7(int) Constant 7
77: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 78 73 18 79 80 12 12 13
83: 7(int) Constant 35
81: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 82 75 18 83 80 12 12 13
86: 7(int) Constant 36
84: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 85 68 18 86 80 12 12 13
87: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 88 22 18 56 12 21 88 12 13 77 81 84
89: TypePointer Uniform 76(UBO)
90(ubo): 89(ptr) Variable Uniform
91: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 92 87 18 56 12 21 92 90(ubo) 66
93: 29(int) Constant 1
94: TypePointer Input 29(int)
95(gl_InvocationID): 94(ptr) Variable Input
96: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 97 31 18 56 12 21 97 95(gl_InvocationID) 66
99: TypePointer Uniform 69
102: TypeMatrix 60(fvec3) 3
103: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 61 13 71
111: TypeArray 60(fvec3) 13
112: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 61 13
113: TypePointer Input 111
114(inNormal): 113(ptr) Variable Input
115: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 116 112 18 56 12 21 116 114(inNormal) 66
118: TypePointer Input 60(fvec3)
123: 7(int) Constant 52
124(outColor): 62(ptr) Variable Output
125: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 126 61 18 123 12 21 126 124(outColor) 66
127(inColor): 113(ptr) Variable Input
128: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 129 112 18 123 12 21 129 127(inColor) 66
134: 7(int) Constant 54
135: TypePointer Function 67(fvec4)
137: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 138 68 18 134 12 17 23
140: TypeArray 57(float) 22
141: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 59 22
142(gl_PerVertex): TypeStruct 67(fvec4) 57(float) 140 140
145: 7(int) Constant 23
143: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 144 68 18 24 145 12 12 13
148: 7(int) Constant 41
146: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 147 59 18 24 148 12 12 13
151: 7(int) Constant 84
149: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 150 141 18 24 151 12 12 13
152: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 150 141 18 24 151 12 12 13
153: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 154 22 18 134 12 21 154 12 13 143 146 149 152
155: TypeArray 142(gl_PerVertex) 13
156: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 153 13
157: TypePointer Input 155
158(gl_in): 157(ptr) Variable Input
159: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 160 156 18 134 12 21 160 158(gl_in) 66
162: TypePointer Input 67(fvec4)
166: 7(int) Constant 55
168: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 169 68 18 166 12 17 23
177: 7(int) Constant 57
178: TypePointer Function 60(fvec3)
180: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 181 61 18 177 12 17 23
186: 29(int) Constant 2
187: TypePointer Uniform 67(fvec4)
196: 7(int) Constant 58
197(outLightVec): 62(ptr) Variable Output
198: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 199 61 18 196 12 21 199 197(outLightVec) 66
205: 7(int) Constant 59
206(outViewVec): 62(ptr) Variable Output
207: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 208 61 18 205 12 21 208 206(outViewVec) 66
213: 7(int) Constant 61
214(gl_PerVertex): TypeStruct 67(fvec4) 57(float) 140 140
216: 7(int) Constant 215
215: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 144 68 18 24 216 12 12 13
218: 7(int) Constant 233
217: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 147 59 18 24 218 12 12 13
219: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 150 141 18 13 80 12 12 13
220: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 150 141 18 13 80 12 12 13
221: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 154 22 18 213 12 21 154 12 13 215 217 219 220
222: TypePointer Output 214(gl_PerVertex)
223: 222(ptr) Variable Output
224: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 221 18 213 12 21 1 223 66
230: TypePointer Output 67(fvec4)
233: 7(int) Constant 64
234: TypePointer Output 29(int)
235(gl_ViewportIndex): 234(ptr) Variable Output
236: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 237 31 18 233 12 21 237 235(gl_ViewportIndex) 66
240: 7(int) Constant 65
241(gl_PrimitiveID): 234(ptr) Variable Output
242: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 243 31 18 240 12 21 243 241(gl_PrimitiveID) 66
244(gl_PrimitiveIDIn): 94(ptr) Variable Input
245: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 246 31 18 240 12 21 246 244(gl_PrimitiveIDIn) 66
249: 7(int) Constant 66
256: 7(int) Constant 68
33: 7(int) Constant 7
34: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 31 33 12
36: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 37 31 18 28 12 17 23
39: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
40: 29(int) Constant 0
51: 29(int) Constant 3
52: TypeBool
54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 53 10 24 12
58: 7(int) Constant 51
59: TypeFloat 32
61: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 60 10 13 12
62: TypeVector 59(float) 3
63: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 61 13
64: TypePointer Output 62(fvec3)
65: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 63 13 12
66(outNormal): 64(ptr) Variable Output
69: 7(int) Constant 8
67: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 68 63 18 58 12 21 68 66(outNormal) 69
70: TypeVector 59(float) 4
71: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 61 23
72: TypeMatrix 70(fvec4) 4
74: 52(bool) ConstantTrue
73: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 71 23 74
75: TypeArray 72 24
76: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 73 24
77: TypeArray 72 24
78: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 73 24
79(UBO): TypeStruct 75 77 70(fvec4)
82: 7(int) Constant 34
80: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 81 76 18 82 33 12 12 13
85: 7(int) Constant 35
83: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 84 78 18 85 33 12 12 13
88: 7(int) Constant 36
86: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 87 71 18 88 33 12 12 13
89: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 90 22 18 58 12 21 90 12 13 80 83 86
91: TypePointer Uniform 79(UBO)
92: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 89 24 12
93(ubo): 91(ptr) Variable Uniform
94: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 95 89 18 58 12 21 95 93(ubo) 69
96: 29(int) Constant 1
97: TypePointer Input 29(int)
98: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 31 22 12
99(gl_InvocationID): 97(ptr) Variable Input
100: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 101 31 18 58 12 21 101 99(gl_InvocationID) 69
103: TypePointer Uniform 72
104: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 73 24 12
107: TypeMatrix 62(fvec3) 3
108: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 63 13 74
116: TypeArray 62(fvec3) 13
117: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 63 13
118: TypePointer Input 116
119: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 117 22 12
120(inNormal): 118(ptr) Variable Input
121: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 122 117 18 58 12 21 122 120(inNormal) 69
124: TypePointer Input 62(fvec3)
125: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 63 22 12
130: 7(int) Constant 52
131(outColor): 64(ptr) Variable Output
132: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 133 63 18 130 12 21 133 131(outColor) 69
134(inColor): 118(ptr) Variable Input
135: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 136 117 18 130 12 21 136 134(inColor) 69
141: 7(int) Constant 54
142: TypePointer Function 70(fvec4)
143: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 71 33 12
145: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 146 71 18 141 12 17 23
148: TypeArray 59(float) 22
149: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 61 22
150(gl_PerVertex): TypeStruct 70(fvec4) 59(float) 148 148
153: 7(int) Constant 23
151: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 152 71 18 24 153 12 12 13
156: 7(int) Constant 41
154: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 155 61 18 24 156 12 12 13
159: 7(int) Constant 84
157: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 158 149 18 24 159 12 12 13
160: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 158 149 18 24 159 12 12 13
161: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 162 22 18 141 12 21 162 12 13 151 154 157 160
163: TypeArray 150(gl_PerVertex) 13
164: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 161 13
165: TypePointer Input 163
166: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 164 22 12
167(gl_in): 165(ptr) Variable Input
168: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 169 164 18 141 12 21 169 167(gl_in) 69
171: TypePointer Input 70(fvec4)
172: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 71 22 12
176: 7(int) Constant 55
178: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 179 71 18 176 12 17 23
187: 7(int) Constant 57
188: TypePointer Function 62(fvec3)
189: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 63 33 12
191: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 192 63 18 187 12 17 23
197: 29(int) Constant 2
198: TypePointer Uniform 70(fvec4)
199: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 71 24 12
208: 7(int) Constant 58
209(outLightVec): 64(ptr) Variable Output
210: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 211 63 18 208 12 21 211 209(outLightVec) 69
217: 7(int) Constant 59
218(outViewVec): 64(ptr) Variable Output
219: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 220 63 18 217 12 21 220 218(outViewVec) 69
225: 7(int) Constant 61
226(gl_PerVertex): TypeStruct 70(fvec4) 59(float) 148 148
228: 7(int) Constant 215
227: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 152 71 18 24 228 12 12 13
230: 7(int) Constant 233
229: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 155 61 18 24 230 12 12 13
231: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 158 149 18 13 33 12 12 13
232: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 158 149 18 13 33 12 12 13
233: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 162 22 18 225 12 21 162 12 13 227 229 231 232
234: TypePointer Output 226(gl_PerVertex)
235: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 233 13 12
236: 234(ptr) Variable Output
237: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 233 18 225 12 21 1 236 69
243: TypePointer Output 70(fvec4)
244: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 71 13 12
247: 7(int) Constant 64
248: TypePointer Output 29(int)
249: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 31 13 12
250(gl_ViewportIndex): 248(ptr) Variable Output
251: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 252 31 18 247 12 21 252 250(gl_ViewportIndex) 69
255: 7(int) Constant 65
256(gl_PrimitiveID): 248(ptr) Variable Output
257: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 258 31 18 255 12 21 258 256(gl_PrimitiveID) 69
259(gl_PrimitiveIDIn): 97(ptr) Variable Input
260: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 261 31 18 255 12 21 261 259(gl_PrimitiveIDIn) 69
264: 7(int) Constant 66
271: 7(int) Constant 68
Line 1 47 15
14(main): 4 Function None 5
15: Label
33(i): 32(ptr) Variable Function
136(pos): 135(ptr) Variable Function
167(worldPos): 135(ptr) Variable Function
179(lPos): 178(ptr) Variable Function
35(i): 32(ptr) Variable Function
144(pos): 142(ptr) Variable Function
177(worldPos): 142(ptr) Variable Function
190(lPos): 188(ptr) Variable Function
25: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main)
26: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
27: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 28 28 12 12
36: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 34 33(i) 37
Store 33(i) 38
Branch 39
39: Label
43: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
44: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 28 28 12 12
LoopMerge 41 42 None
Branch 45
45: Label
46: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
47: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 28 28 12 12
48: 29(int) Load 33(i)
53: 50(bool) SLessThan 48 49
BranchConditional 53 40 41
40: Label
54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
55: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 56 56 12 12
98: 29(int) Load 95(gl_InvocationID)
100: 99(ptr) AccessChain 90(ubo) 93 98
101: 69 Load 100
104: 67(fvec4) CompositeExtract 101 0
105: 60(fvec3) VectorShuffle 104 104 0 1 2
106: 67(fvec4) CompositeExtract 101 1
107: 60(fvec3) VectorShuffle 106 106 0 1 2
108: 67(fvec4) CompositeExtract 101 2
109: 60(fvec3) VectorShuffle 108 108 0 1 2
110: 102 CompositeConstruct 105 107 109
117: 29(int) Load 33(i)
119: 118(ptr) AccessChain 114(inNormal) 117
120: 60(fvec3) Load 119
121: 60(fvec3) MatrixTimesVector 110 120
Store 63(outNormal) 121
122: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 123 123 12 12
130: 29(int) Load 33(i)
131: 118(ptr) AccessChain 127(inColor) 130
132: 60(fvec3) Load 131
Store 124(outColor) 132
133: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 134 134 12 12
139: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 137 136(pos) 37
161: 29(int) Load 33(i)
163: 162(ptr) AccessChain 158(gl_in) 161 38
164: 67(fvec4) Load 163
Store 136(pos) 164
165: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 166 166 12 12
170: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 168 167(worldPos) 37
171: 29(int) Load 95(gl_InvocationID)
172: 99(ptr) AccessChain 90(ubo) 93 171
173: 69 Load 172
174: 67(fvec4) Load 136(pos)
175: 67(fvec4) MatrixTimesVector 173 174
Store 167(worldPos) 175
176: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 177 177 12 12
182: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 180 179(lPos) 37
183: 29(int) Load 95(gl_InvocationID)
184: 99(ptr) AccessChain 90(ubo) 93 183
185: 69 Load 184
188: 187(ptr) AccessChain 90(ubo) 186
189: 67(fvec4) Load 188
190: 67(fvec4) MatrixTimesVector 185 189
191: 57(float) CompositeExtract 190 0
192: 57(float) CompositeExtract 190 1
193: 57(float) CompositeExtract 190 2
194: 60(fvec3) CompositeConstruct 191 192 193
Store 179(lPos) 194
195: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 196 196 12 12
200: 60(fvec3) Load 179(lPos)
201: 67(fvec4) Load 167(worldPos)
202: 60(fvec3) VectorShuffle 201 201 0 1 2
203: 60(fvec3) FSub 200 202
Store 197(outLightVec) 203
204: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 205 205 12 12
209: 67(fvec4) Load 167(worldPos)
210: 60(fvec3) VectorShuffle 209 209 0 1 2
211: 60(fvec3) FNegate 210
Store 206(outViewVec) 211
212: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 213 213 12 12
225: 29(int) Load 95(gl_InvocationID)
226: 99(ptr) AccessChain 90(ubo) 38 225
227: 69 Load 226
228: 67(fvec4) Load 167(worldPos)
229: 67(fvec4) MatrixTimesVector 227 228
231: 230(ptr) AccessChain 223 38
Store 231 229
232: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 233 233 12 12
238: 29(int) Load 95(gl_InvocationID)
Store 235(gl_ViewportIndex) 238
239: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 240 240 12 12
247: 29(int) Load 244(gl_PrimitiveIDIn)
Store 241(gl_PrimitiveID) 247
248: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 249 249 12 12
EmitVertex
Branch 42
42: Label
250: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
251: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 28 28 12 12
252: 29(int) Load 33(i)
253: 29(int) IAdd 252 93
Store 33(i) 253
Branch 39
38: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 36 35(i) 39
Store 35(i) 40
Branch 41
41: Label
254: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
255: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 256 256 12 12
45: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
46: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 28 28 12 12
LoopMerge 43 44 None
Branch 47
47: Label
48: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
49: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 28 28 12 12
50: 29(int) Load 35(i)
55: 52(bool) SLessThan 50 51
BranchConditional 55 42 43
42: Label
56: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
57: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 58 58 12 12
102: 29(int) Load 99(gl_InvocationID)
105: 103(ptr) AccessChain 93(ubo) 96 102
106: 72 Load 105
109: 70(fvec4) CompositeExtract 106 0
110: 62(fvec3) VectorShuffle 109 109 0 1 2
111: 70(fvec4) CompositeExtract 106 1
112: 62(fvec3) VectorShuffle 111 111 0 1 2
113: 70(fvec4) CompositeExtract 106 2
114: 62(fvec3) VectorShuffle 113 113 0 1 2
115: 107 CompositeConstruct 110 112 114
123: 29(int) Load 35(i)
126: 124(ptr) AccessChain 120(inNormal) 123
127: 62(fvec3) Load 126
128: 62(fvec3) MatrixTimesVector 115 127
Store 66(outNormal) 128
129: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 130 130 12 12
137: 29(int) Load 35(i)
138: 124(ptr) AccessChain 134(inColor) 137
139: 62(fvec3) Load 138
Store 131(outColor) 139
140: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 141 141 12 12
147: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 145 144(pos) 39
170: 29(int) Load 35(i)
173: 171(ptr) AccessChain 167(gl_in) 170 40
174: 70(fvec4) Load 173
Store 144(pos) 174
175: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 176 176 12 12
180: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 178 177(worldPos) 39
181: 29(int) Load 99(gl_InvocationID)
182: 103(ptr) AccessChain 93(ubo) 96 181
183: 72 Load 182
184: 70(fvec4) Load 144(pos)
185: 70(fvec4) MatrixTimesVector 183 184
Store 177(worldPos) 185
186: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 187 187 12 12
193: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 191 190(lPos) 39
194: 29(int) Load 99(gl_InvocationID)
195: 103(ptr) AccessChain 93(ubo) 96 194
196: 72 Load 195
200: 198(ptr) AccessChain 93(ubo) 197
201: 70(fvec4) Load 200
202: 70(fvec4) MatrixTimesVector 196 201
203: 59(float) CompositeExtract 202 0
204: 59(float) CompositeExtract 202 1
205: 59(float) CompositeExtract 202 2
206: 62(fvec3) CompositeConstruct 203 204 205
Store 190(lPos) 206
207: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 208 208 12 12
212: 62(fvec3) Load 190(lPos)
213: 70(fvec4) Load 177(worldPos)
214: 62(fvec3) VectorShuffle 213 213 0 1 2
215: 62(fvec3) FSub 212 214
Store 209(outLightVec) 215
216: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 217 217 12 12
221: 70(fvec4) Load 177(worldPos)
222: 62(fvec3) VectorShuffle 221 221 0 1 2
223: 62(fvec3) FNegate 222
Store 218(outViewVec) 223
224: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 225 225 12 12
238: 29(int) Load 99(gl_InvocationID)
239: 103(ptr) AccessChain 93(ubo) 40 238
240: 72 Load 239
241: 70(fvec4) Load 177(worldPos)
242: 70(fvec4) MatrixTimesVector 240 241
245: 243(ptr) AccessChain 236 40
Store 245 242
246: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 247 247 12 12
253: 29(int) Load 99(gl_InvocationID)
Store 250(gl_ViewportIndex) 253
254: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 255 255 12 12
262: 29(int) Load 259(gl_PrimitiveIDIn)
Store 256(gl_PrimitiveID) 262
263: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 264 264 12 12
EmitVertex
Branch 44
44: Label
265: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
266: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 28 28 12 12
267: 29(int) Load 35(i)
268: 29(int) IAdd 267 96
Store 35(i) 268
Branch 41
43: Label
269: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
270: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 271 271 12 12
EndPrimitive
Return
FunctionEnd

File diff suppressed because it is too large Load diff

View file

@ -1,14 +1,14 @@
spv.debuginfo.glsl.tese
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 335
// Id's are bound by 355
Capability Tessellation
Extension "SPV_KHR_non_semantic_info"
2: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
3: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint TessellationEvaluation 14 "main" 43 60 87 106 134 170 283 297 305 317 324
EntryPoint TessellationEvaluation 14 "main" 46 65 94 115 144 182 300 316 324 337 344
ExecutionMode 14 Quads
ExecutionMode 14 SpacingEqual
ExecutionMode 14 VertexOrderCw
@ -24,118 +24,118 @@ spv.debuginfo.glsl.tese
#line 1
"
30: String "float"
37: String "uv1"
45: String "inUV"
48: String "int"
62: String "gl_TessCoord"
72: String "uv2"
89: String "outUV"
101: String "n1"
108: String "inNormal"
121: String "n2"
136: String "outNormal"
150: String "pos1"
156: String "gl_Position"
159: String "gl_PointSize"
162: String "gl_CullDistance"
166: String "gl_PerVertex"
172: String "gl_in"
186: String "pos2"
200: String "pos"
212: String "type.2d.image"
213: String "@type.2d.image"
217: String "type.sampled.image"
218: String "@type.sampled.image"
222: String "displacementMap"
231: String "bool"
238: String "modelview"
243: String "lightPos"
246: String "frustumPlanes"
248: String "tessellatedEdgeSize"
252: String "viewportDim"
256: String "UBO"
260: String "ubo"
299: String "outViewVec"
307: String "outLightVec"
319: String "outWorldPos"
326: String "outEyePos"
39: String "uv1"
48: String "inUV"
51: String "int"
67: String "gl_TessCoord"
78: String "uv2"
96: String "outUV"
109: String "n1"
117: String "inNormal"
130: String "n2"
146: String "outNormal"
161: String "pos1"
167: String "gl_Position"
170: String "gl_PointSize"
173: String "gl_CullDistance"
177: String "gl_PerVertex"
184: String "gl_in"
199: String "pos2"
213: String "pos"
225: String "type.2d.image"
226: String "@type.2d.image"
230: String "type.sampled.image"
231: String "@type.sampled.image"
236: String "displacementMap"
245: String "bool"
252: String "modelview"
256: String "lightPos"
259: String "frustumPlanes"
261: String "tessellatedEdgeSize"
265: String "viewportDim"
269: String "UBO"
274: String "ubo"
318: String "outViewVec"
326: String "outLightVec"
339: String "outWorldPos"
346: String "outEyePos"
Name 14 "main"
Name 35 "uv1"
Name 43 "inUV"
Name 60 "gl_TessCoord"
Name 70 "uv2"
Name 87 "outUV"
Name 99 "n1"
Name 106 "inNormal"
Name 119 "n2"
Name 134 "outNormal"
Name 148 "pos1"
Name 154 "gl_PerVertex"
MemberName 154(gl_PerVertex) 0 "gl_Position"
MemberName 154(gl_PerVertex) 1 "gl_PointSize"
MemberName 154(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 154(gl_PerVertex) 3 "gl_CullDistance"
Name 170 "gl_in"
Name 184 "pos2"
Name 198 "pos"
Name 220 "displacementMap"
Name 236 "UBO"
MemberName 236(UBO) 0 "projection"
MemberName 236(UBO) 1 "modelview"
MemberName 236(UBO) 2 "lightPos"
MemberName 236(UBO) 3 "frustumPlanes"
MemberName 236(UBO) 4 "displacementFactor"
MemberName 236(UBO) 5 "tessellationFactor"
MemberName 236(UBO) 6 "viewportDim"
MemberName 236(UBO) 7 "tessellatedEdgeSize"
Name 258 "ubo"
Name 273 "gl_PerVertex"
MemberName 273(gl_PerVertex) 0 "gl_Position"
MemberName 273(gl_PerVertex) 1 "gl_PointSize"
MemberName 273(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 273(gl_PerVertex) 3 "gl_CullDistance"
Name 283 ""
Name 297 "outViewVec"
Name 305 "outLightVec"
Name 317 "outWorldPos"
Name 324 "outEyePos"
Decorate 43(inUV) Location 1
Decorate 60(gl_TessCoord) BuiltIn TessCoord
Decorate 87(outUV) Location 1
Decorate 106(inNormal) Location 0
Decorate 134(outNormal) Location 0
MemberDecorate 154(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 154(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 154(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 154(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 154(gl_PerVertex) Block
Decorate 220(displacementMap) DescriptorSet 0
Decorate 220(displacementMap) Binding 1
Decorate 234 ArrayStride 16
MemberDecorate 236(UBO) 0 ColMajor
MemberDecorate 236(UBO) 0 Offset 0
MemberDecorate 236(UBO) 0 MatrixStride 16
MemberDecorate 236(UBO) 1 ColMajor
MemberDecorate 236(UBO) 1 Offset 64
MemberDecorate 236(UBO) 1 MatrixStride 16
MemberDecorate 236(UBO) 2 Offset 128
MemberDecorate 236(UBO) 3 Offset 144
MemberDecorate 236(UBO) 4 Offset 240
MemberDecorate 236(UBO) 5 Offset 244
MemberDecorate 236(UBO) 6 Offset 248
MemberDecorate 236(UBO) 7 Offset 256
Decorate 236(UBO) Block
Decorate 258(ubo) DescriptorSet 0
Decorate 258(ubo) Binding 0
MemberDecorate 273(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 273(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 273(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 273(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 273(gl_PerVertex) Block
Decorate 297(outViewVec) Location 2
Decorate 305(outLightVec) Location 3
Decorate 317(outWorldPos) Location 5
Decorate 324(outEyePos) Location 4
Name 37 "uv1"
Name 46 "inUV"
Name 65 "gl_TessCoord"
Name 76 "uv2"
Name 94 "outUV"
Name 107 "n1"
Name 115 "inNormal"
Name 128 "n2"
Name 144 "outNormal"
Name 159 "pos1"
Name 165 "gl_PerVertex"
MemberName 165(gl_PerVertex) 0 "gl_Position"
MemberName 165(gl_PerVertex) 1 "gl_PointSize"
MemberName 165(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 165(gl_PerVertex) 3 "gl_CullDistance"
Name 182 "gl_in"
Name 197 "pos2"
Name 211 "pos"
Name 234 "displacementMap"
Name 250 "UBO"
MemberName 250(UBO) 0 "projection"
MemberName 250(UBO) 1 "modelview"
MemberName 250(UBO) 2 "lightPos"
MemberName 250(UBO) 3 "frustumPlanes"
MemberName 250(UBO) 4 "displacementFactor"
MemberName 250(UBO) 5 "tessellationFactor"
MemberName 250(UBO) 6 "viewportDim"
MemberName 250(UBO) 7 "tessellatedEdgeSize"
Name 272 "ubo"
Name 289 "gl_PerVertex"
MemberName 289(gl_PerVertex) 0 "gl_Position"
MemberName 289(gl_PerVertex) 1 "gl_PointSize"
MemberName 289(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 289(gl_PerVertex) 3 "gl_CullDistance"
Name 300 ""
Name 316 "outViewVec"
Name 324 "outLightVec"
Name 337 "outWorldPos"
Name 344 "outEyePos"
Decorate 46(inUV) Location 1
Decorate 65(gl_TessCoord) BuiltIn TessCoord
Decorate 94(outUV) Location 1
Decorate 115(inNormal) Location 0
Decorate 144(outNormal) Location 0
MemberDecorate 165(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 165(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 165(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 165(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 165(gl_PerVertex) Block
Decorate 234(displacementMap) DescriptorSet 0
Decorate 234(displacementMap) Binding 1
Decorate 248 ArrayStride 16
MemberDecorate 250(UBO) 0 ColMajor
MemberDecorate 250(UBO) 0 Offset 0
MemberDecorate 250(UBO) 0 MatrixStride 16
MemberDecorate 250(UBO) 1 ColMajor
MemberDecorate 250(UBO) 1 Offset 64
MemberDecorate 250(UBO) 1 MatrixStride 16
MemberDecorate 250(UBO) 2 Offset 128
MemberDecorate 250(UBO) 3 Offset 144
MemberDecorate 250(UBO) 4 Offset 240
MemberDecorate 250(UBO) 5 Offset 244
MemberDecorate 250(UBO) 6 Offset 248
MemberDecorate 250(UBO) 7 Offset 256
Decorate 250(UBO) Block
Decorate 272(ubo) DescriptorSet 0
Decorate 272(ubo) Binding 0
MemberDecorate 289(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 289(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 289(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 289(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 289(gl_PerVertex) Block
Decorate 316(outViewVec) Location 2
Decorate 324(outLightVec) Location 3
Decorate 337(outWorldPos) Location 5
Decorate 344(outEyePos) Location 4
4: TypeVoid
5: TypeFunction 4
7: TypeInt 32 0
@ -158,291 +158,311 @@ spv.debuginfo.glsl.tese
32: TypeVector 29(float) 2
33: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 31 24
34: TypePointer Function 32(fvec2)
36: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 37 33 18 28 12 17 23
39: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
40: TypeArray 32(fvec2) 10
41: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 33 10
42: TypePointer Input 40
43(inUV): 42(ptr) Variable Input
46: 7(int) Constant 8
44: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 45 41 18 28 12 21 45 43(inUV) 46
47: TypeInt 32 1
49: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 48 10 23 12
50: 47(int) Constant 0
51: TypePointer Input 32(fvec2)
54: 47(int) Constant 1
57: TypeVector 29(float) 3
58: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 31 13
59: TypePointer Input 57(fvec3)
60(gl_TessCoord): 59(ptr) Variable Input
61: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 62 58 18 28 12 21 62 60(gl_TessCoord) 46
63: TypePointer Input 29(float)
69: 7(int) Constant 57
71: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 72 33 18 69 12 17 23
74: 47(int) Constant 3
77: 47(int) Constant 2
85: 7(int) Constant 58
86: TypePointer Output 32(fvec2)
87(outUV): 86(ptr) Variable Output
88: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 89 33 18 85 12 21 89 87(outUV) 46
97: 7(int) Constant 60
98: TypePointer Function 57(fvec3)
100: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 101 58 18 97 12 17 23
103: TypeArray 57(fvec3) 10
104: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 58 10
105: TypePointer Input 103
106(inNormal): 105(ptr) Variable Input
107: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 108 104 18 97 12 21 108 106(inNormal) 46
118: 7(int) Constant 61
120: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 121 58 18 118 12 17 23
132: 7(int) Constant 62
133: TypePointer Output 57(fvec3)
134(outNormal): 133(ptr) Variable Output
135: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 136 58 18 132 12 21 136 134(outNormal) 46
144: 7(int) Constant 65
145: TypeVector 29(float) 4
146: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 31 23
147: TypePointer Function 145(fvec4)
149: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 150 146 18 144 12 17 23
152: TypeArray 29(float) 22
153: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 31 22
154(gl_PerVertex): TypeStruct 145(fvec4) 29(float) 152 152
157: 7(int) Constant 1756
155: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 156 146 18 22 157 12 12 13
160: 7(int) Constant 1774
158: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 159 31 18 22 160 12 12 13
163: 7(int) Constant 1817
161: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 162 153 18 22 163 12 12 13
164: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 162 153 18 22 163 12 12 13
165: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 166 22 18 144 12 21 166 12 13 155 158 161 164
167: TypeArray 154(gl_PerVertex) 10
168: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 165 10
169: TypePointer Input 167
170(gl_in): 169(ptr) Variable Input
171: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 172 168 18 144 12 21 172 170(gl_in) 46
173: TypePointer Input 145(fvec4)
183: 7(int) Constant 66
185: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 186 146 18 183 12 17 23
197: 7(int) Constant 67
199: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 200 146 18 197 12 17 23
209: 7(int) Constant 69
210: TypeImage 29(float) 2D sampled format:Unknown
214: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone)
211: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 212 12 18 209 12 21 213 214 13
215: TypeSampledImage 210
216: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 217 12 18 209 12 21 218 214 13
219: TypePointer UniformConstant 215
220(displacementMap): 219(ptr) Variable UniformConstant
221: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 222 216 18 209 12 21 222 220(displacementMap) 46
225: 29(float) Constant 0
228: TypeMatrix 145(fvec4) 4
230: TypeBool
232: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 231 10 24 12
233: 230(bool) ConstantTrue
229: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 146 23 233
234: TypeArray 145(fvec4) 11
235: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 146 11
236(UBO): TypeStruct 228 228 145(fvec4) 234 29(float) 29(float) 32(fvec2) 29(float)
239: 7(int) Constant 30
240: 7(int) Constant 7
237: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 238 229 18 239 240 12 12 13
241: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 238 229 18 239 240 12 12 13
244: 7(int) Constant 31
242: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 243 146 18 244 240 12 12 13
245: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 246 235 18 10 240 12 12 13
249: 7(int) Constant 36
247: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 248 31 18 249 46 12 12 13
250: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 248 31 18 249 46 12 12 13
253: 7(int) Constant 35
251: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 252 33 18 253 240 12 12 13
254: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 248 31 18 249 46 12 12 13
255: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 256 22 18 209 12 21 256 12 13 237 241 242 245 247 250 251 254
257: TypePointer Uniform 236(UBO)
258(ubo): 257(ptr) Variable Uniform
259: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 260 255 18 209 12 21 260 258(ubo) 46
261: 47(int) Constant 4
262: TypePointer Uniform 29(float)
266: TypePointer Function 29(float)
272: 7(int) Constant 71
273(gl_PerVertex): TypeStruct 145(fvec4) 29(float) 152 152
275: 7(int) Constant 165
274: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 156 146 18 22 275 12 12 13
277: 7(int) Constant 183
276: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 159 31 18 22 277 12 12 13
279: 7(int) Constant 226
278: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 162 153 18 22 279 12 12 13
280: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 162 153 18 22 279 12 12 13
281: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 166 22 18 272 12 21 166 12 13 274 276 278 280
282: TypePointer Output 273(gl_PerVertex)
283: 282(ptr) Variable Output
284: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 281 18 272 12 21 1 283 46
285: TypePointer Uniform 228
293: TypePointer Output 145(fvec4)
296: 7(int) Constant 74
297(outViewVec): 133(ptr) Variable Output
298: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 299 58 18 296 12 21 299 297(outViewVec) 46
304: 7(int) Constant 75
305(outLightVec): 133(ptr) Variable Output
306: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 307 58 18 304 12 21 307 305(outLightVec) 46
308: TypePointer Uniform 145(fvec4)
316: 7(int) Constant 76
317(outWorldPos): 133(ptr) Variable Output
318: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 319 58 18 316 12 21 319 317(outWorldPos) 46
323: 7(int) Constant 77
324(outEyePos): 133(ptr) Variable Output
325: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 326 58 18 323 12 21 326 324(outEyePos) 46
35: 7(int) Constant 7
36: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 33 35 12
38: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 39 33 18 28 12 17 23
41: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
42: TypeArray 32(fvec2) 10
43: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 33 10
44: TypePointer Input 42
45: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 43 22 12
46(inUV): 44(ptr) Variable Input
49: 7(int) Constant 8
47: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 48 43 18 28 12 21 48 46(inUV) 49
50: TypeInt 32 1
52: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 51 10 23 12
53: 50(int) Constant 0
54: TypePointer Input 32(fvec2)
55: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 33 22 12
58: 50(int) Constant 1
61: TypeVector 29(float) 3
62: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 31 13
63: TypePointer Input 61(fvec3)
64: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 62 22 12
65(gl_TessCoord): 63(ptr) Variable Input
66: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 67 62 18 28 12 21 67 65(gl_TessCoord) 49
68: TypePointer Input 29(float)
69: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 31 22 12
75: 7(int) Constant 57
77: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 78 33 18 75 12 17 23
80: 50(int) Constant 3
83: 50(int) Constant 2
91: 7(int) Constant 58
92: TypePointer Output 32(fvec2)
93: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 33 13 12
94(outUV): 92(ptr) Variable Output
95: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 96 33 18 91 12 21 96 94(outUV) 49
104: 7(int) Constant 60
105: TypePointer Function 61(fvec3)
106: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 62 35 12
108: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 109 62 18 104 12 17 23
111: TypeArray 61(fvec3) 10
112: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 62 10
113: TypePointer Input 111
114: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 112 22 12
115(inNormal): 113(ptr) Variable Input
116: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 117 112 18 104 12 21 117 115(inNormal) 49
127: 7(int) Constant 61
129: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 130 62 18 127 12 17 23
141: 7(int) Constant 62
142: TypePointer Output 61(fvec3)
143: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 62 13 12
144(outNormal): 142(ptr) Variable Output
145: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 146 62 18 141 12 21 146 144(outNormal) 49
154: 7(int) Constant 65
155: TypeVector 29(float) 4
156: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 31 23
157: TypePointer Function 155(fvec4)
158: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 156 35 12
160: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 161 156 18 154 12 17 23
163: TypeArray 29(float) 22
164: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 31 22
165(gl_PerVertex): TypeStruct 155(fvec4) 29(float) 163 163
168: 7(int) Constant 1756
166: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 167 156 18 22 168 12 12 13
171: 7(int) Constant 1774
169: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 170 31 18 22 171 12 12 13
174: 7(int) Constant 1817
172: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 173 164 18 22 174 12 12 13
175: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 173 164 18 22 174 12 12 13
176: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 177 22 18 154 12 21 177 12 13 166 169 172 175
178: TypeArray 165(gl_PerVertex) 10
179: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 176 10
180: TypePointer Input 178
181: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 179 22 12
182(gl_in): 180(ptr) Variable Input
183: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 184 179 18 154 12 21 184 182(gl_in) 49
185: TypePointer Input 155(fvec4)
186: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 156 22 12
196: 7(int) Constant 66
198: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 199 156 18 196 12 17 23
210: 7(int) Constant 67
212: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 213 156 18 210 12 17 23
222: 7(int) Constant 69
223: TypeImage 29(float) 2D sampled format:Unknown
227: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone)
224: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 225 12 18 222 12 21 226 227 13
228: TypeSampledImage 223
229: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 230 12 18 222 12 21 231 227 13
232: TypePointer UniformConstant 228
233: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 229 12 12
234(displacementMap): 232(ptr) Variable UniformConstant
235: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 236 229 18 222 12 21 236 234(displacementMap) 49
239: 29(float) Constant 0
242: TypeMatrix 155(fvec4) 4
244: TypeBool
246: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 245 10 24 12
247: 244(bool) ConstantTrue
243: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 156 23 247
248: TypeArray 155(fvec4) 11
249: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 156 11
250(UBO): TypeStruct 242 242 155(fvec4) 248 29(float) 29(float) 32(fvec2) 29(float)
253: 7(int) Constant 30
251: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 252 243 18 253 35 12 12 13
254: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 252 243 18 253 35 12 12 13
257: 7(int) Constant 31
255: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 256 156 18 257 35 12 12 13
258: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 259 249 18 10 35 12 12 13
262: 7(int) Constant 36
260: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 261 31 18 262 49 12 12 13
263: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 261 31 18 262 49 12 12 13
266: 7(int) Constant 35
264: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 265 33 18 266 35 12 12 13
267: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 261 31 18 262 49 12 12 13
268: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 269 22 18 222 12 21 269 12 13 251 254 255 258 260 263 264 267
270: TypePointer Uniform 250(UBO)
271: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 268 24 12
272(ubo): 270(ptr) Variable Uniform
273: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 274 268 18 222 12 21 274 272(ubo) 49
275: 50(int) Constant 4
276: TypePointer Uniform 29(float)
277: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 31 24 12
281: TypePointer Function 29(float)
282: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 31 35 12
288: 7(int) Constant 71
289(gl_PerVertex): TypeStruct 155(fvec4) 29(float) 163 163
291: 7(int) Constant 165
290: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 167 156 18 22 291 12 12 13
293: 7(int) Constant 183
292: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 170 31 18 22 293 12 12 13
295: 7(int) Constant 226
294: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 173 164 18 22 295 12 12 13
296: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 173 164 18 22 295 12 12 13
297: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 177 22 18 288 12 21 177 12 13 290 292 294 296
298: TypePointer Output 289(gl_PerVertex)
299: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 297 13 12
300: 298(ptr) Variable Output
301: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 297 18 288 12 21 1 300 49
302: TypePointer Uniform 242
303: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 243 24 12
311: TypePointer Output 155(fvec4)
312: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 156 13 12
315: 7(int) Constant 74
316(outViewVec): 142(ptr) Variable Output
317: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 318 62 18 315 12 21 318 316(outViewVec) 49
323: 7(int) Constant 75
324(outLightVec): 142(ptr) Variable Output
325: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 326 62 18 323 12 21 326 324(outLightVec) 49
327: TypePointer Uniform 155(fvec4)
328: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 156 24 12
336: 7(int) Constant 76
337(outWorldPos): 142(ptr) Variable Output
338: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 339 62 18 336 12 21 339 337(outWorldPos) 49
343: 7(int) Constant 77
344(outEyePos): 142(ptr) Variable Output
345: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 346 62 18 343 12 21 346 344(outEyePos) 49
Line 1 53 11
14(main): 4 Function None 5
15: Label
35(uv1): 34(ptr) Variable Function
70(uv2): 34(ptr) Variable Function
99(n1): 98(ptr) Variable Function
119(n2): 98(ptr) Variable Function
148(pos1): 147(ptr) Variable Function
184(pos2): 147(ptr) Variable Function
198(pos): 147(ptr) Variable Function
37(uv1): 34(ptr) Variable Function
76(uv2): 34(ptr) Variable Function
107(n1): 105(ptr) Variable Function
128(n2): 105(ptr) Variable Function
159(pos1): 157(ptr) Variable Function
197(pos2): 157(ptr) Variable Function
211(pos): 157(ptr) Variable Function
25: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main)
26: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
27: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 28 28 12 12
38: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 36 35(uv1) 39
52: 51(ptr) AccessChain 43(inUV) 50
53: 32(fvec2) Load 52
55: 51(ptr) AccessChain 43(inUV) 54
56: 32(fvec2) Load 55
64: 63(ptr) AccessChain 60(gl_TessCoord) 12
65: 29(float) Load 64
66: 32(fvec2) CompositeConstruct 65 65
67: 32(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 53 56 66
Store 35(uv1) 67
68: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 69 69 12 12
73: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 71 70(uv2) 39
75: 51(ptr) AccessChain 43(inUV) 74
76: 32(fvec2) Load 75
78: 51(ptr) AccessChain 43(inUV) 77
79: 32(fvec2) Load 78
80: 63(ptr) AccessChain 60(gl_TessCoord) 12
81: 29(float) Load 80
82: 32(fvec2) CompositeConstruct 81 81
83: 32(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 76 79 82
Store 70(uv2) 83
84: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 85 85 12 12
90: 32(fvec2) Load 35(uv1)
91: 32(fvec2) Load 70(uv2)
92: 63(ptr) AccessChain 60(gl_TessCoord) 22
93: 29(float) Load 92
94: 32(fvec2) CompositeConstruct 93 93
95: 32(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 90 91 94
Store 87(outUV) 95
96: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 97 97 12 12
102: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 100 99(n1) 39
109: 59(ptr) AccessChain 106(inNormal) 50
110: 57(fvec3) Load 109
111: 59(ptr) AccessChain 106(inNormal) 54
112: 57(fvec3) Load 111
113: 63(ptr) AccessChain 60(gl_TessCoord) 12
114: 29(float) Load 113
115: 57(fvec3) CompositeConstruct 114 114 114
116: 57(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 110 112 115
Store 99(n1) 116
117: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 118 118 12 12
122: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 120 119(n2) 39
123: 59(ptr) AccessChain 106(inNormal) 74
124: 57(fvec3) Load 123
125: 59(ptr) AccessChain 106(inNormal) 77
126: 57(fvec3) Load 125
127: 63(ptr) AccessChain 60(gl_TessCoord) 12
128: 29(float) Load 127
129: 57(fvec3) CompositeConstruct 128 128 128
130: 57(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 124 126 129
Store 119(n2) 130
131: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 132 132 12 12
137: 57(fvec3) Load 99(n1)
138: 57(fvec3) Load 119(n2)
139: 63(ptr) AccessChain 60(gl_TessCoord) 22
140: 29(float) Load 139
141: 57(fvec3) CompositeConstruct 140 140 140
142: 57(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 137 138 141
Store 134(outNormal) 142
143: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 144 144 12 12
151: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 149 148(pos1) 39
174: 173(ptr) AccessChain 170(gl_in) 50 50
175: 145(fvec4) Load 174
176: 173(ptr) AccessChain 170(gl_in) 54 50
177: 145(fvec4) Load 176
178: 63(ptr) AccessChain 60(gl_TessCoord) 12
179: 29(float) Load 178
180: 145(fvec4) CompositeConstruct 179 179 179 179
181: 145(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 175 177 180
Store 148(pos1) 181
182: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 183 183 12 12
187: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 185 184(pos2) 39
188: 173(ptr) AccessChain 170(gl_in) 74 50
189: 145(fvec4) Load 188
190: 173(ptr) AccessChain 170(gl_in) 77 50
191: 145(fvec4) Load 190
192: 63(ptr) AccessChain 60(gl_TessCoord) 12
193: 29(float) Load 192
194: 145(fvec4) CompositeConstruct 193 193 193 193
195: 145(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 189 191 194
Store 184(pos2) 195
196: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 197 197 12 12
201: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 199 198(pos) 39
202: 145(fvec4) Load 148(pos1)
203: 145(fvec4) Load 184(pos2)
204: 63(ptr) AccessChain 60(gl_TessCoord) 22
205: 29(float) Load 204
206: 145(fvec4) CompositeConstruct 205 205 205 205
207: 145(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 202 203 206
Store 198(pos) 207
208: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 209 209 12 12
223: 215 Load 220(displacementMap)
224: 32(fvec2) Load 87(outUV)
226: 145(fvec4) ImageSampleExplicitLod 223 224 Lod 225
227: 29(float) CompositeExtract 226 0
263: 262(ptr) AccessChain 258(ubo) 261
264: 29(float) Load 263
265: 29(float) FMul 227 264
267: 266(ptr) AccessChain 198(pos) 22
268: 29(float) Load 267
269: 29(float) FSub 268 265
270: 266(ptr) AccessChain 198(pos) 22
Store 270 269
271: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 272 272 12 12
286: 285(ptr) AccessChain 258(ubo) 50
287: 228 Load 286
288: 285(ptr) AccessChain 258(ubo) 54
289: 228 Load 288
290: 228 MatrixTimesMatrix 287 289
291: 145(fvec4) Load 198(pos)
292: 145(fvec4) MatrixTimesVector 290 291
294: 293(ptr) AccessChain 283 50
Store 294 292
295: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 296 296 12 12
300: 145(fvec4) Load 198(pos)
301: 57(fvec3) VectorShuffle 300 300 0 1 2
302: 57(fvec3) FNegate 301
Store 297(outViewVec) 302
303: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 304 304 12 12
309: 308(ptr) AccessChain 258(ubo) 77
310: 145(fvec4) Load 309
311: 57(fvec3) VectorShuffle 310 310 0 1 2
312: 57(fvec3) Load 297(outViewVec)
313: 57(fvec3) FAdd 311 312
314: 57(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 313
Store 305(outLightVec) 314
315: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 316 316 12 12
320: 145(fvec4) Load 198(pos)
321: 57(fvec3) VectorShuffle 320 320 0 1 2
Store 317(outWorldPos) 321
40: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 38 37(uv1) 41
56: 54(ptr) AccessChain 46(inUV) 53
57: 32(fvec2) Load 56
59: 54(ptr) AccessChain 46(inUV) 58
60: 32(fvec2) Load 59
70: 68(ptr) AccessChain 65(gl_TessCoord) 12
71: 29(float) Load 70
72: 32(fvec2) CompositeConstruct 71 71
73: 32(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 57 60 72
Store 37(uv1) 73
74: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 75 75 12 12
79: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 77 76(uv2) 41
81: 54(ptr) AccessChain 46(inUV) 80
82: 32(fvec2) Load 81
84: 54(ptr) AccessChain 46(inUV) 83
85: 32(fvec2) Load 84
86: 68(ptr) AccessChain 65(gl_TessCoord) 12
87: 29(float) Load 86
88: 32(fvec2) CompositeConstruct 87 87
89: 32(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 82 85 88
Store 76(uv2) 89
90: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 91 91 12 12
97: 32(fvec2) Load 37(uv1)
98: 32(fvec2) Load 76(uv2)
99: 68(ptr) AccessChain 65(gl_TessCoord) 22
100: 29(float) Load 99
101: 32(fvec2) CompositeConstruct 100 100
102: 32(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 97 98 101
Store 94(outUV) 102
103: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 104 104 12 12
110: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 108 107(n1) 41
118: 63(ptr) AccessChain 115(inNormal) 53
119: 61(fvec3) Load 118
120: 63(ptr) AccessChain 115(inNormal) 58
121: 61(fvec3) Load 120
122: 68(ptr) AccessChain 65(gl_TessCoord) 12
123: 29(float) Load 122
124: 61(fvec3) CompositeConstruct 123 123 123
125: 61(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 119 121 124
Store 107(n1) 125
126: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 127 127 12 12
131: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 129 128(n2) 41
132: 63(ptr) AccessChain 115(inNormal) 80
133: 61(fvec3) Load 132
134: 63(ptr) AccessChain 115(inNormal) 83
135: 61(fvec3) Load 134
136: 68(ptr) AccessChain 65(gl_TessCoord) 12
137: 29(float) Load 136
138: 61(fvec3) CompositeConstruct 137 137 137
139: 61(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 133 135 138
Store 128(n2) 139
140: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 141 141 12 12
147: 61(fvec3) Load 107(n1)
148: 61(fvec3) Load 128(n2)
149: 68(ptr) AccessChain 65(gl_TessCoord) 22
150: 29(float) Load 149
151: 61(fvec3) CompositeConstruct 150 150 150
152: 61(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 147 148 151
Store 144(outNormal) 152
153: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 154 154 12 12
162: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 160 159(pos1) 41
187: 185(ptr) AccessChain 182(gl_in) 53 53
188: 155(fvec4) Load 187
189: 185(ptr) AccessChain 182(gl_in) 58 53
190: 155(fvec4) Load 189
191: 68(ptr) AccessChain 65(gl_TessCoord) 12
192: 29(float) Load 191
193: 155(fvec4) CompositeConstruct 192 192 192 192
194: 155(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 188 190 193
Store 159(pos1) 194
195: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 196 196 12 12
200: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 198 197(pos2) 41
201: 185(ptr) AccessChain 182(gl_in) 80 53
202: 155(fvec4) Load 201
203: 185(ptr) AccessChain 182(gl_in) 83 53
204: 155(fvec4) Load 203
205: 68(ptr) AccessChain 65(gl_TessCoord) 12
206: 29(float) Load 205
207: 155(fvec4) CompositeConstruct 206 206 206 206
208: 155(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 202 204 207
Store 197(pos2) 208
209: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 210 210 12 12
214: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 212 211(pos) 41
215: 155(fvec4) Load 159(pos1)
216: 155(fvec4) Load 197(pos2)
217: 68(ptr) AccessChain 65(gl_TessCoord) 22
218: 29(float) Load 217
219: 155(fvec4) CompositeConstruct 218 218 218 218
220: 155(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 215 216 219
Store 211(pos) 220
221: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 222 222 12 12
237: 228 Load 234(displacementMap)
238: 32(fvec2) Load 94(outUV)
240: 155(fvec4) ImageSampleExplicitLod 237 238 Lod 239
241: 29(float) CompositeExtract 240 0
278: 276(ptr) AccessChain 272(ubo) 275
279: 29(float) Load 278
280: 29(float) FMul 241 279
283: 281(ptr) AccessChain 211(pos) 22
284: 29(float) Load 283
285: 29(float) FSub 284 280
286: 281(ptr) AccessChain 211(pos) 22
Store 286 285
287: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 288 288 12 12
304: 302(ptr) AccessChain 272(ubo) 53
305: 242 Load 304
306: 302(ptr) AccessChain 272(ubo) 58
307: 242 Load 306
308: 242 MatrixTimesMatrix 305 307
309: 155(fvec4) Load 211(pos)
310: 155(fvec4) MatrixTimesVector 308 309
313: 311(ptr) AccessChain 300 53
Store 313 310
314: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 315 315 12 12
319: 155(fvec4) Load 211(pos)
320: 61(fvec3) VectorShuffle 319 319 0 1 2
321: 61(fvec3) FNegate 320
Store 316(outViewVec) 321
322: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 323 323 12 12
327: 285(ptr) AccessChain 258(ubo) 54
328: 228 Load 327
329: 145(fvec4) Load 198(pos)
330: 145(fvec4) MatrixTimesVector 328 329
331: 29(float) CompositeExtract 330 0
332: 29(float) CompositeExtract 330 1
333: 29(float) CompositeExtract 330 2
334: 57(fvec3) CompositeConstruct 331 332 333
Store 324(outEyePos) 334
329: 327(ptr) AccessChain 272(ubo) 83
330: 155(fvec4) Load 329
331: 61(fvec3) VectorShuffle 330 330 0 1 2
332: 61(fvec3) Load 316(outViewVec)
333: 61(fvec3) FAdd 331 332
334: 61(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 333
Store 324(outLightVec) 334
335: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 336 336 12 12
340: 155(fvec4) Load 211(pos)
341: 61(fvec3) VectorShuffle 340 340 0 1 2
Store 337(outWorldPos) 341
342: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 343 343 12 12
347: 302(ptr) AccessChain 272(ubo) 58
348: 242 Load 347
349: 155(fvec4) Load 211(pos)
350: 155(fvec4) MatrixTimesVector 348 349
351: 29(float) CompositeExtract 350 0
352: 29(float) CompositeExtract 350 1
353: 29(float) CompositeExtract 350 2
354: 61(fvec3) CompositeConstruct 351 352 353
Store 344(outEyePos) 354
Return
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,7 +1,7 @@
spv.debuginfo.hlsl.geom
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 354
// Id's are bound by 367
Capability Geometry
Capability MultiViewport
@ -9,7 +9,7 @@ spv.debuginfo.hlsl.geom
2: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
3: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Geometry 6 "main" 256 262 267 273 278 283 288 303 310 315 339 342
EntryPoint Geometry 6 "main" 267 274 279 286 291 296 301 316 323 328 352 355
ExecutionMode 6 Triangles
ExecutionMode 6 Invocations 2
ExecutionMode 6 OutputTriangleStrip
@ -29,107 +29,107 @@ spv.debuginfo.hlsl.geom
"
31: String "Color"
36: String "VSOutput"
47: String "PrimitiveID"
52: String "LightVec"
58: String "GSOutput"
69: String "@main"
75: String "input"
79: String "outStream"
83: String "InvocationID"
92: String "int"
97: String "i"
112: String "bool"
120: String "output"
142: String "projection"
146: String "modelview"
150: String "lightPos"
154: String "UBO"
157: String "ubo"
192: String "pos"
201: String "worldPos"
212: String "lPos"
258: String "outStream.Pos"
264: String "outStream.ViewportIndex"
269: String "outStream.PrimitiveID"
275: String "outStream.Normal"
280: String "outStream.Color"
285: String "outStream.ViewVec"
290: String "outStream.LightVec"
49: String "PrimitiveID"
54: String "LightVec"
60: String "GSOutput"
73: String "@main"
79: String "input"
83: String "outStream"
87: String "InvocationID"
96: String "int"
102: String "i"
117: String "bool"
125: String "output"
148: String "projection"
152: String "modelview"
156: String "lightPos"
160: String "UBO"
163: String "ubo"
201: String "pos"
210: String "worldPos"
221: String "lPos"
269: String "outStream.Pos"
276: String "outStream.ViewportIndex"
281: String "outStream.PrimitiveID"
288: String "outStream.Normal"
293: String "outStream.Color"
298: String "outStream.ViewVec"
303: String "outStream.LightVec"
Name 6 "main"
Name 23 "VSOutput"
MemberName 23(VSOutput) 0 "Pos"
MemberName 23(VSOutput) 1 "Normal"
MemberName 23(VSOutput) 2 "Color"
Name 43 "GSOutput"
MemberName 43(GSOutput) 0 "Pos"
MemberName 43(GSOutput) 1 "ViewportIndex"
MemberName 43(GSOutput) 2 "PrimitiveID"
MemberName 43(GSOutput) 3 "Normal"
MemberName 43(GSOutput) 4 "Color"
MemberName 43(GSOutput) 5 "ViewVec"
MemberName 43(GSOutput) 6 "LightVec"
Name 67 "@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;"
Name 63 "input"
Name 64 "outStream"
Name 65 "InvocationID"
Name 66 "PrimitiveID"
Name 95 "i"
Name 118 "output"
Name 140 "UBO"
MemberName 140(UBO) 0 "projection"
MemberName 140(UBO) 1 "modelview"
MemberName 140(UBO) 2 "lightPos"
Name 155 "ubo"
MemberName 155(ubo) 0 "ubo"
Name 161 ""
Name 190 "pos"
Name 199 "worldPos"
Name 210 "lPos"
Name 256 "outStream.Pos"
Name 262 "outStream.ViewportIndex"
Name 267 "outStream.PrimitiveID"
Name 273 "outStream.Normal"
Name 278 "outStream.Color"
Name 283 "outStream.ViewVec"
Name 288 "outStream.LightVec"
Name 300 "input"
Name 303 "input.Pos"
Name 310 "input.Normal"
Name 315 "input.Color"
Name 337 "InvocationID"
Name 339 "InvocationID"
Name 341 "PrimitiveID"
Name 342 "PrimitiveID"
Name 344 "outStream"
Name 345 "param"
Name 347 "param"
Name 348 "param"
Name 350 "param"
Decorate 136 ArrayStride 64
Decorate 138 ArrayStride 64
MemberDecorate 140(UBO) 0 RowMajor
MemberDecorate 140(UBO) 0 Offset 0
MemberDecorate 140(UBO) 0 MatrixStride 16
MemberDecorate 140(UBO) 1 RowMajor
MemberDecorate 140(UBO) 1 Offset 128
MemberDecorate 140(UBO) 1 MatrixStride 16
MemberDecorate 140(UBO) 2 Offset 256
MemberDecorate 155(ubo) 0 Offset 0
Decorate 155(ubo) Block
Decorate 161 DescriptorSet 0
Decorate 161 Binding 0
Decorate 256(outStream.Pos) BuiltIn Position
Decorate 262(outStream.ViewportIndex) BuiltIn ViewportIndex
Decorate 267(outStream.PrimitiveID) BuiltIn PrimitiveId
Decorate 273(outStream.Normal) Location 0
Decorate 278(outStream.Color) Location 1
Decorate 283(outStream.ViewVec) Location 2
Decorate 288(outStream.LightVec) Location 3
Decorate 303(input.Pos) BuiltIn Position
Decorate 310(input.Normal) Location 0
Decorate 315(input.Color) Location 1
Decorate 339(InvocationID) BuiltIn InvocationId
Decorate 342(PrimitiveID) BuiltIn PrimitiveId
Name 45 "GSOutput"
MemberName 45(GSOutput) 0 "Pos"
MemberName 45(GSOutput) 1 "ViewportIndex"
MemberName 45(GSOutput) 2 "PrimitiveID"
MemberName 45(GSOutput) 3 "Normal"
MemberName 45(GSOutput) 4 "Color"
MemberName 45(GSOutput) 5 "ViewVec"
MemberName 45(GSOutput) 6 "LightVec"
Name 71 "@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;"
Name 67 "input"
Name 68 "outStream"
Name 69 "InvocationID"
Name 70 "PrimitiveID"
Name 100 "i"
Name 123 "output"
Name 146 "UBO"
MemberName 146(UBO) 0 "projection"
MemberName 146(UBO) 1 "modelview"
MemberName 146(UBO) 2 "lightPos"
Name 161 "ubo"
MemberName 161(ubo) 0 "ubo"
Name 168 ""
Name 199 "pos"
Name 208 "worldPos"
Name 219 "lPos"
Name 267 "outStream.Pos"
Name 274 "outStream.ViewportIndex"
Name 279 "outStream.PrimitiveID"
Name 286 "outStream.Normal"
Name 291 "outStream.Color"
Name 296 "outStream.ViewVec"
Name 301 "outStream.LightVec"
Name 313 "input"
Name 316 "input.Pos"
Name 323 "input.Normal"
Name 328 "input.Color"
Name 350 "InvocationID"
Name 352 "InvocationID"
Name 354 "PrimitiveID"
Name 355 "PrimitiveID"
Name 357 "outStream"
Name 358 "param"
Name 360 "param"
Name 361 "param"
Name 363 "param"
Decorate 142 ArrayStride 64
Decorate 144 ArrayStride 64
MemberDecorate 146(UBO) 0 RowMajor
MemberDecorate 146(UBO) 0 Offset 0
MemberDecorate 146(UBO) 0 MatrixStride 16
MemberDecorate 146(UBO) 1 RowMajor
MemberDecorate 146(UBO) 1 Offset 128
MemberDecorate 146(UBO) 1 MatrixStride 16
MemberDecorate 146(UBO) 2 Offset 256
MemberDecorate 161(ubo) 0 Offset 0
Decorate 161(ubo) Block
Decorate 168 DescriptorSet 0
Decorate 168 Binding 0
Decorate 267(outStream.Pos) BuiltIn Position
Decorate 274(outStream.ViewportIndex) BuiltIn ViewportIndex
Decorate 279(outStream.PrimitiveID) BuiltIn PrimitiveId
Decorate 286(outStream.Normal) Location 0
Decorate 291(outStream.Color) Location 1
Decorate 296(outStream.ViewVec) Location 2
Decorate 301(outStream.LightVec) Location 3
Decorate 316(input.Pos) BuiltIn Position
Decorate 323(input.Normal) Location 0
Decorate 328(input.Color) Location 1
Decorate 352(InvocationID) BuiltIn InvocationId
Decorate 355(PrimitiveID) BuiltIn PrimitiveId
4: TypeVoid
5: TypeFunction 4
8: TypeFloat 32
@ -161,340 +161,353 @@ spv.debuginfo.hlsl.geom
40: TypeArray 23(VSOutput) 17
41: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 35 17
42: TypePointer Function 40
43(GSOutput): TypeStruct 18(fvec4) 11(int) 11(int) 21(fvec3) 21(fvec3) 21(fvec3) 21(fvec3)
45: 11(int) Constant 44
44: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 25 20 26 45 29 16 16 17
48: 11(int) Constant 46
49: 11(int) Constant 19
46: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 47 13 26 48 49 16 16 17
50: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 47 13 26 48 49 16 16 17
53: 11(int) Constant 50
51: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 22 26 53 28 16 16 17
54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 22 26 53 28 16 16 17
55: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 22 26 53 28 16 16 17
56: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 22 26 53 28 16 16 17
57: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 58 37 26 16 16 38 58 16 17 44 46 50 51 54 55 56
59: TypePointer Function 43(GSOutput)
60: TypePointer Function 11(int)
61: TypeFunction 4 42(ptr) 59(ptr) 60(ptr) 60(ptr)
62: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 4 41 57 13 13
71: 11(int) Constant 56
70: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 69 62 26 71 16 38 69 17 71
74: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 75 41 26 71 16 70 19 37
77: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
80: 11(int) Constant 2
78: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 79 57 26 71 16 70 19 80
82: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 83 13 26 71 16 70 19 17
85: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 47 13 26 71 16 70 19 19
90: 11(int) Constant 57
91: TypeInt 32 1
93: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 92 14 19 16
94: TypePointer Function 91(int)
96: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 97 93 26 90 16 70 19
99: 91(int) Constant 0
110: 91(int) Constant 3
111: TypeBool
113: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 112 14 80 16
117: 11(int) Constant 59
119: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 120 57 26 117 16 70 19
122: 8(float) Constant 0
123: 18(fvec4) ConstantComposite 122 122 122 122
124: 21(fvec3) ConstantComposite 122 122 122
125:43(GSOutput) ConstantComposite 123 16 16 124 124 124 124
127: 11(int) Constant 60
129: 91(int) Constant 1
130: TypePointer Function 21(fvec3)
133: TypeMatrix 18(fvec4) 4
135: 111(bool) ConstantTrue
134: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 20 19 135
136: TypeArray 133 80
137: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 134 80
138: TypeArray 133 80
139: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 134 80
140(UBO): TypeStruct 136 138 18(fvec4)
143: 11(int) Constant 28
144: 11(int) Constant 21
141: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 142 137 26 143 144 16 16 17
147: 11(int) Constant 29
148: 11(int) Constant 20
145: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 146 139 26 147 148 16 16 17
151: 11(int) Constant 30
152: 11(int) Constant 17
149: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 150 20 26 151 152 16 16 17
153: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 154 37 26 127 16 38 154 16 17 141 145 149
155(ubo): TypeStruct 140(UBO)
158: 11(int) Constant 33
156: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 157 153 26 158 28 16 16 17
159: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 157 37 26 127 16 38 157 16 17 156
160: TypePointer Uniform 155(ubo)
161: 160(ptr) Variable Uniform
163: 11(int) Constant 8
162: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 159 26 127 16 38 1 161 163
165: TypePointer Uniform 133
168: TypeMatrix 21(fvec3) 3
169: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 22 17 135
180: 11(int) Constant 61
181: 91(int) Constant 4
183: 91(int) Constant 2
188: 11(int) Constant 63
189: TypePointer Function 18(fvec4)
191: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 192 20 26 188 16 70 19
198: 11(int) Constant 64
200: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 201 20 26 198 16 70 19
209: 11(int) Constant 66
211: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 212 22 26 209 16 70 19
214: TypePointer Uniform 18(fvec4)
223: 11(int) Constant 67
224: 91(int) Constant 6
231: 11(int) Constant 68
232: 91(int) Constant 5
238: 11(int) Constant 70
246: 11(int) Constant 73
250: 11(int) Constant 74
254: 11(int) Constant 75
255: TypePointer Output 18(fvec4)
256(outStream.Pos): 255(ptr) Variable Output
257: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 258 20 26 254 16 38 258 256(outStream.Pos) 163
261: TypePointer Output 11(int)
262(outStream.ViewportIndex): 261(ptr) Variable Output
263: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 264 13 26 254 16 38 264 262(outStream.ViewportIndex) 163
267(outStream.PrimitiveID): 261(ptr) Variable Output
268: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 269 13 26 254 16 38 269 267(outStream.PrimitiveID) 163
272: TypePointer Output 21(fvec3)
273(outStream.Normal): 272(ptr) Variable Output
274: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 275 22 26 254 16 38 275 273(outStream.Normal) 163
278(outStream.Color): 272(ptr) Variable Output
279: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 280 22 26 254 16 38 280 278(outStream.Color) 163
283(outStream.ViewVec): 272(ptr) Variable Output
284: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 285 22 26 254 16 38 285 283(outStream.ViewVec) 163
288(outStream.LightVec): 272(ptr) Variable Output
289: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 290 22 26 254 16 38 290 288(outStream.LightVec) 163
299: 11(int) Constant 78
301: TypeArray 18(fvec4) 17
302: TypePointer Input 301
303(input.Pos): 302(ptr) Variable Input
304: TypePointer Input 18(fvec4)
308: TypeArray 21(fvec3) 17
309: TypePointer Input 308
310(input.Normal): 309(ptr) Variable Input
311: TypePointer Input 21(fvec3)
315(input.Color): 309(ptr) Variable Input
338: TypePointer Input 11(int)
339(InvocationID): 338(ptr) Variable Input
342(PrimitiveID): 338(ptr) Variable Input
43: 11(int) Constant 7
44: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 41 43 16
45(GSOutput): TypeStruct 18(fvec4) 11(int) 11(int) 21(fvec3) 21(fvec3) 21(fvec3) 21(fvec3)
47: 11(int) Constant 44
46: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 25 20 26 47 29 16 16 17
50: 11(int) Constant 46
51: 11(int) Constant 19
48: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 49 13 26 50 51 16 16 17
52: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 49 13 26 50 51 16 16 17
55: 11(int) Constant 50
53: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 54 22 26 55 28 16 16 17
56: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 54 22 26 55 28 16 16 17
57: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 54 22 26 55 28 16 16 17
58: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 54 22 26 55 28 16 16 17
59: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 60 37 26 16 16 38 60 16 17 46 48 52 53 56 57 58
61: TypePointer Function 45(GSOutput)
62: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 59 43 16
63: TypePointer Function 11(int)
64: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 13 43 16
65: TypeFunction 4 42(ptr) 61(ptr) 63(ptr) 63(ptr)
66: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 4 41 59 13 13
75: 11(int) Constant 56
74: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 73 66 26 75 16 38 73 17 75
78: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 79 41 26 75 16 74 19 37
81: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
84: 11(int) Constant 2
82: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 83 59 26 75 16 74 19 84
86: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 87 13 26 75 16 74 19 17
89: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 49 13 26 75 16 74 19 19
94: 11(int) Constant 57
95: TypeInt 32 1
97: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 96 14 19 16
98: TypePointer Function 95(int)
99: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 97 43 16
101: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 102 97 26 94 16 74 19
104: 95(int) Constant 0
115: 95(int) Constant 3
116: TypeBool
118: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 117 14 84 16
122: 11(int) Constant 59
124: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 125 59 26 122 16 74 19
127: 8(float) Constant 0
128: 18(fvec4) ConstantComposite 127 127 127 127
129: 21(fvec3) ConstantComposite 127 127 127
130:45(GSOutput) ConstantComposite 128 16 16 129 129 129 129
132: 11(int) Constant 60
134: 95(int) Constant 1
135: TypePointer Function 21(fvec3)
136: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 22 43 16
139: TypeMatrix 18(fvec4) 4
141: 116(bool) ConstantTrue
140: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 20 19 141
142: TypeArray 139 84
143: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 140 84
144: TypeArray 139 84
145: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 140 84
146(UBO): TypeStruct 142 144 18(fvec4)
149: 11(int) Constant 28
150: 11(int) Constant 21
147: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 148 143 26 149 150 16 16 17
153: 11(int) Constant 29
154: 11(int) Constant 20
151: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 152 145 26 153 154 16 16 17
157: 11(int) Constant 30
158: 11(int) Constant 17
155: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 156 20 26 157 158 16 16 17
159: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 160 37 26 132 16 38 160 16 17 147 151 155
161(ubo): TypeStruct 146(UBO)
164: 11(int) Constant 33
162: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 163 159 26 164 28 16 16 17
165: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 163 37 26 132 16 38 163 16 17 162
166: TypePointer Uniform 161(ubo)
167: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 165 84 16
168: 166(ptr) Variable Uniform
170: 11(int) Constant 8
169: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 165 26 132 16 38 1 168 170
172: TypePointer Uniform 139
173: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 140 84 16
176: TypeMatrix 21(fvec3) 3
177: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 22 17 141
188: 11(int) Constant 61
189: 95(int) Constant 4
191: 95(int) Constant 2
196: 11(int) Constant 63
197: TypePointer Function 18(fvec4)
198: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 20 43 16
200: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 201 20 26 196 16 74 19
207: 11(int) Constant 64
209: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 210 20 26 207 16 74 19
218: 11(int) Constant 66
220: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 221 22 26 218 16 74 19
223: TypePointer Uniform 18(fvec4)
224: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 20 84 16
233: 11(int) Constant 67
234: 95(int) Constant 6
241: 11(int) Constant 68
242: 95(int) Constant 5
248: 11(int) Constant 70
256: 11(int) Constant 73
260: 11(int) Constant 74
264: 11(int) Constant 75
265: TypePointer Output 18(fvec4)
266: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 20 17 16
267(outStream.Pos): 265(ptr) Variable Output
268: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 269 20 26 264 16 38 269 267(outStream.Pos) 170
272: TypePointer Output 11(int)
273: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 13 17 16
274(outStream.ViewportIndex): 272(ptr) Variable Output
275: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 276 13 26 264 16 38 276 274(outStream.ViewportIndex) 170
279(outStream.PrimitiveID): 272(ptr) Variable Output
280: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 281 13 26 264 16 38 281 279(outStream.PrimitiveID) 170
284: TypePointer Output 21(fvec3)
285: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 22 17 16
286(outStream.Normal): 284(ptr) Variable Output
287: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 288 22 26 264 16 38 288 286(outStream.Normal) 170
291(outStream.Color): 284(ptr) Variable Output
292: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 293 22 26 264 16 38 293 291(outStream.Color) 170
296(outStream.ViewVec): 284(ptr) Variable Output
297: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 298 22 26 264 16 38 298 296(outStream.ViewVec) 170
301(outStream.LightVec): 284(ptr) Variable Output
302: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 303 22 26 264 16 38 303 301(outStream.LightVec) 170
312: 11(int) Constant 78
314: TypeArray 18(fvec4) 17
315: TypePointer Input 314
316(input.Pos): 315(ptr) Variable Input
317: TypePointer Input 18(fvec4)
321: TypeArray 21(fvec3) 17
322: TypePointer Input 321
323(input.Normal): 322(ptr) Variable Input
324: TypePointer Input 21(fvec3)
328(input.Color): 322(ptr) Variable Input
351: TypePointer Input 11(int)
352(InvocationID): 351(ptr) Variable Input
355(PrimitiveID): 351(ptr) Variable Input
Line 1 56 1
6(main): 4 Function None 5
7: Label
300(input): 42(ptr) Variable Function
337(InvocationID): 60(ptr) Variable Function
341(PrimitiveID): 60(ptr) Variable Function
344(outStream): 59(ptr) Variable Function
345(param): 42(ptr) Variable Function
347(param): 59(ptr) Variable Function
348(param): 60(ptr) Variable Function
350(param): 60(ptr) Variable Function
313(input): 42(ptr) Variable Function
350(InvocationID): 63(ptr) Variable Function
354(PrimitiveID): 63(ptr) Variable Function
357(outStream): 61(ptr) Variable Function
358(param): 42(ptr) Variable Function
360(param): 61(ptr) Variable Function
361(param): 63(ptr) Variable Function
363(param): 63(ptr) Variable Function
Line 1 56 0
305: 304(ptr) AccessChain 303(input.Pos) 99
306: 18(fvec4) Load 305
307: 189(ptr) AccessChain 300(input) 99 99
Store 307 306
312: 311(ptr) AccessChain 310(input.Normal) 99
313: 21(fvec3) Load 312
314: 130(ptr) AccessChain 300(input) 99 129
Store 314 313
316: 311(ptr) AccessChain 315(input.Color) 99
317: 21(fvec3) Load 316
318: 130(ptr) AccessChain 300(input) 99 183
Store 318 317
319: 304(ptr) AccessChain 303(input.Pos) 129
320: 18(fvec4) Load 319
321: 189(ptr) AccessChain 300(input) 129 99
Store 321 320
322: 311(ptr) AccessChain 310(input.Normal) 129
323: 21(fvec3) Load 322
324: 130(ptr) AccessChain 300(input) 129 129
Store 324 323
325: 311(ptr) AccessChain 315(input.Color) 129
318: 317(ptr) AccessChain 316(input.Pos) 104
319: 18(fvec4) Load 318
320: 197(ptr) AccessChain 313(input) 104 104
Store 320 319
325: 324(ptr) AccessChain 323(input.Normal) 104
326: 21(fvec3) Load 325
327: 130(ptr) AccessChain 300(input) 129 183
327: 135(ptr) AccessChain 313(input) 104 134
Store 327 326
328: 304(ptr) AccessChain 303(input.Pos) 183
329: 18(fvec4) Load 328
330: 189(ptr) AccessChain 300(input) 183 99
Store 330 329
331: 311(ptr) AccessChain 310(input.Normal) 183
332: 21(fvec3) Load 331
333: 130(ptr) AccessChain 300(input) 183 129
Store 333 332
334: 311(ptr) AccessChain 315(input.Color) 183
335: 21(fvec3) Load 334
336: 130(ptr) AccessChain 300(input) 183 183
Store 336 335
340: 11(int) Load 339(InvocationID)
Store 337(InvocationID) 340
343: 11(int) Load 342(PrimitiveID)
Store 341(PrimitiveID) 343
346: 40 Load 300(input)
Store 345(param) 346
349: 11(int) Load 337(InvocationID)
Store 348(param) 349
351: 11(int) Load 341(PrimitiveID)
Store 350(param) 351
352: 4 FunctionCall 67(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;) 345(param) 347(param) 348(param) 350(param)
353:43(GSOutput) Load 347(param)
Store 344(outStream) 353
329: 324(ptr) AccessChain 328(input.Color) 104
330: 21(fvec3) Load 329
331: 135(ptr) AccessChain 313(input) 104 191
Store 331 330
332: 317(ptr) AccessChain 316(input.Pos) 134
333: 18(fvec4) Load 332
334: 197(ptr) AccessChain 313(input) 134 104
Store 334 333
335: 324(ptr) AccessChain 323(input.Normal) 134
336: 21(fvec3) Load 335
337: 135(ptr) AccessChain 313(input) 134 134
Store 337 336
338: 324(ptr) AccessChain 328(input.Color) 134
339: 21(fvec3) Load 338
340: 135(ptr) AccessChain 313(input) 134 191
Store 340 339
341: 317(ptr) AccessChain 316(input.Pos) 191
342: 18(fvec4) Load 341
343: 197(ptr) AccessChain 313(input) 191 104
Store 343 342
344: 324(ptr) AccessChain 323(input.Normal) 191
345: 21(fvec3) Load 344
346: 135(ptr) AccessChain 313(input) 191 134
Store 346 345
347: 324(ptr) AccessChain 328(input.Color) 191
348: 21(fvec3) Load 347
349: 135(ptr) AccessChain 313(input) 191 191
Store 349 348
353: 11(int) Load 352(InvocationID)
Store 350(InvocationID) 353
356: 11(int) Load 355(PrimitiveID)
Store 354(PrimitiveID) 356
359: 40 Load 313(input)
Store 358(param) 359
362: 11(int) Load 350(InvocationID)
Store 361(param) 362
364: 11(int) Load 354(PrimitiveID)
Store 363(param) 364
365: 4 FunctionCall 71(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;) 358(param) 360(param) 361(param) 363(param)
366:45(GSOutput) Load 360(param)
Store 357(outStream) 366
Return
FunctionEnd
Line 1 56 1
67(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;): 4 Function None 61
63(input): 42(ptr) FunctionParameter
64(outStream): 59(ptr) FunctionParameter
65(InvocationID): 60(ptr) FunctionParameter
66(PrimitiveID): 60(ptr) FunctionParameter
68: Label
95(i): 94(ptr) Variable Function
118(output): 59(ptr) Variable Function
190(pos): 189(ptr) Variable Function
199(worldPos): 189(ptr) Variable Function
210(lPos): 130(ptr) Variable Function
72: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 70
73: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 71 71 16 16
76: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 74 63(input) 77
81: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 78 64(outStream) 77
84: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 82 65(InvocationID) 77
86: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 85 66(PrimitiveID) 77
87: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 70 67(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;)
88: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 70
89: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 90 90 16 16
98: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 96 95(i) 77
Store 95(i) 99
Branch 100
100: Label
104: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 70
105: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 90 90 16 16
LoopMerge 102 103 None
Branch 106
71(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;): 4 Function None 65
67(input): 42(ptr) FunctionParameter
68(outStream): 61(ptr) FunctionParameter
69(InvocationID): 63(ptr) FunctionParameter
70(PrimitiveID): 63(ptr) FunctionParameter
72: Label
100(i): 98(ptr) Variable Function
123(output): 61(ptr) Variable Function
199(pos): 197(ptr) Variable Function
208(worldPos): 197(ptr) Variable Function
219(lPos): 135(ptr) Variable Function
76: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 74
77: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 75 75 16 16
80: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 78 67(input) 81
85: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 82 68(outStream) 81
88: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 86 69(InvocationID) 81
90: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 89 70(PrimitiveID) 81
91: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 74 71(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;)
92: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 74
93: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 94 94 16 16
103: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 101 100(i) 81
Store 100(i) 104
Branch 105
105: Label
109: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 74
110: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 94 94 16 16
LoopMerge 107 108 None
Branch 111
111: Label
112: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 74
113: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 94 94 16 16
114: 95(int) Load 100(i)
119: 116(bool) SLessThan 114 115
BranchConditional 119 106 107
106: Label
107: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 70
108: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 90 90 16 16
109: 91(int) Load 95(i)
114: 111(bool) SLessThan 109 110
BranchConditional 114 101 102
101: Label
115: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 70
116: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 117 117 16 16
121: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 119 118(output) 77
Store 118(output) 125
126: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 127 127 16 16
128: 91(int) Load 95(i)
131: 130(ptr) AccessChain 63(input) 128 129
132: 21(fvec3) Load 131
164: 11(int) Load 65(InvocationID)
166: 165(ptr) AccessChain 161 99 129 164
167: 133 Load 166
170: 18(fvec4) CompositeExtract 167 0
171: 21(fvec3) VectorShuffle 170 170 0 1 2
172: 18(fvec4) CompositeExtract 167 1
173: 21(fvec3) VectorShuffle 172 172 0 1 2
174: 18(fvec4) CompositeExtract 167 2
175: 21(fvec3) VectorShuffle 174 174 0 1 2
176: 168 CompositeConstruct 171 173 175
177: 21(fvec3) VectorTimesMatrix 132 176
178: 130(ptr) AccessChain 118(output) 110
Store 178 177
179: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 180 180 16 16
182: 91(int) Load 95(i)
184: 130(ptr) AccessChain 63(input) 182 183
185: 21(fvec3) Load 184
186: 130(ptr) AccessChain 118(output) 181
120: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 74
121: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 122 122 16 16
126: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 124 123(output) 81
Store 123(output) 130
131: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 132 132 16 16
133: 95(int) Load 100(i)
137: 135(ptr) AccessChain 67(input) 133 134
138: 21(fvec3) Load 137
171: 11(int) Load 69(InvocationID)
174: 172(ptr) AccessChain 168 104 134 171
175: 139 Load 174
178: 18(fvec4) CompositeExtract 175 0
179: 21(fvec3) VectorShuffle 178 178 0 1 2
180: 18(fvec4) CompositeExtract 175 1
181: 21(fvec3) VectorShuffle 180 180 0 1 2
182: 18(fvec4) CompositeExtract 175 2
183: 21(fvec3) VectorShuffle 182 182 0 1 2
184: 176 CompositeConstruct 179 181 183
185: 21(fvec3) VectorTimesMatrix 138 184
186: 135(ptr) AccessChain 123(output) 115
Store 186 185
187: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 188 188 16 16
193: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 191 190(pos) 77
194: 91(int) Load 95(i)
195: 189(ptr) AccessChain 63(input) 194 99
196: 18(fvec4) Load 195
Store 190(pos) 196
197: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 198 198 16 16
202: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 200 199(worldPos) 77
203: 18(fvec4) Load 190(pos)
204: 11(int) Load 65(InvocationID)
205: 165(ptr) AccessChain 161 99 129 204
206: 133 Load 205
207: 18(fvec4) VectorTimesMatrix 203 206
Store 199(worldPos) 207
208: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 209 209 16 16
213: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 211 210(lPos) 77
215: 214(ptr) AccessChain 161 99 183
216: 18(fvec4) Load 215
217: 11(int) Load 65(InvocationID)
218: 165(ptr) AccessChain 161 99 129 217
219: 133 Load 218
220: 18(fvec4) VectorTimesMatrix 216 219
221: 21(fvec3) VectorShuffle 220 220 0 1 2
Store 210(lPos) 221
222: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 223 223 16 16
225: 21(fvec3) Load 210(lPos)
226: 18(fvec4) Load 199(worldPos)
227: 21(fvec3) VectorShuffle 226 226 0 1 2
228: 21(fvec3) FSub 225 227
229: 130(ptr) AccessChain 118(output) 224
Store 229 228
230: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 231 231 16 16
233: 18(fvec4) Load 199(worldPos)
234: 21(fvec3) VectorShuffle 233 233 0 1 2
235: 21(fvec3) FNegate 234
236: 130(ptr) AccessChain 118(output) 232
Store 236 235
237: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 238 238 16 16
239: 18(fvec4) Load 199(worldPos)
240: 11(int) Load 65(InvocationID)
241: 165(ptr) AccessChain 161 99 99 240
242: 133 Load 241
243: 18(fvec4) VectorTimesMatrix 239 242
244: 189(ptr) AccessChain 118(output) 99
Store 244 243
245: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 246 246 16 16
247: 11(int) Load 65(InvocationID)
248: 60(ptr) AccessChain 118(output) 129
Store 248 247
249: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 250 250 16 16
251: 11(int) Load 66(PrimitiveID)
252: 60(ptr) AccessChain 118(output) 183
Store 252 251
253: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 254 254 16 16
259: 189(ptr) AccessChain 118(output) 99
260: 18(fvec4) Load 259
Store 256(outStream.Pos) 260
265: 60(ptr) AccessChain 118(output) 129
266: 11(int) Load 265
Store 262(outStream.ViewportIndex) 266
270: 60(ptr) AccessChain 118(output) 183
271: 11(int) Load 270
Store 267(outStream.PrimitiveID) 271
276: 130(ptr) AccessChain 118(output) 110
277: 21(fvec3) Load 276
Store 273(outStream.Normal) 277
281: 130(ptr) AccessChain 118(output) 181
282: 21(fvec3) Load 281
Store 278(outStream.Color) 282
286: 130(ptr) AccessChain 118(output) 232
287: 21(fvec3) Load 286
Store 283(outStream.ViewVec) 287
291: 130(ptr) AccessChain 118(output) 224
292: 21(fvec3) Load 291
Store 288(outStream.LightVec) 292
190: 95(int) Load 100(i)
192: 135(ptr) AccessChain 67(input) 190 191
193: 21(fvec3) Load 192
194: 135(ptr) AccessChain 123(output) 189
Store 194 193
195: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 196 196 16 16
202: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 200 199(pos) 81
203: 95(int) Load 100(i)
204: 197(ptr) AccessChain 67(input) 203 104
205: 18(fvec4) Load 204
Store 199(pos) 205
206: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 207 207 16 16
211: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 209 208(worldPos) 81
212: 18(fvec4) Load 199(pos)
213: 11(int) Load 69(InvocationID)
214: 172(ptr) AccessChain 168 104 134 213
215: 139 Load 214
216: 18(fvec4) VectorTimesMatrix 212 215
Store 208(worldPos) 216
217: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 218 218 16 16
222: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 220 219(lPos) 81
225: 223(ptr) AccessChain 168 104 191
226: 18(fvec4) Load 225
227: 11(int) Load 69(InvocationID)
228: 172(ptr) AccessChain 168 104 134 227
229: 139 Load 228
230: 18(fvec4) VectorTimesMatrix 226 229
231: 21(fvec3) VectorShuffle 230 230 0 1 2
Store 219(lPos) 231
232: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 233 233 16 16
235: 21(fvec3) Load 219(lPos)
236: 18(fvec4) Load 208(worldPos)
237: 21(fvec3) VectorShuffle 236 236 0 1 2
238: 21(fvec3) FSub 235 237
239: 135(ptr) AccessChain 123(output) 234
Store 239 238
240: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 241 241 16 16
243: 18(fvec4) Load 208(worldPos)
244: 21(fvec3) VectorShuffle 243 243 0 1 2
245: 21(fvec3) FNegate 244
246: 135(ptr) AccessChain 123(output) 242
Store 246 245
247: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 248 248 16 16
249: 18(fvec4) Load 208(worldPos)
250: 11(int) Load 69(InvocationID)
251: 172(ptr) AccessChain 168 104 104 250
252: 139 Load 251
253: 18(fvec4) VectorTimesMatrix 249 252
254: 197(ptr) AccessChain 123(output) 104
Store 254 253
255: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 256 256 16 16
257: 11(int) Load 69(InvocationID)
258: 63(ptr) AccessChain 123(output) 134
Store 258 257
259: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 260 260 16 16
261: 11(int) Load 70(PrimitiveID)
262: 63(ptr) AccessChain 123(output) 191
Store 262 261
263: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 264 264 16 16
270: 197(ptr) AccessChain 123(output) 104
271: 18(fvec4) Load 270
Store 267(outStream.Pos) 271
277: 63(ptr) AccessChain 123(output) 134
278: 11(int) Load 277
Store 274(outStream.ViewportIndex) 278
282: 63(ptr) AccessChain 123(output) 191
283: 11(int) Load 282
Store 279(outStream.PrimitiveID) 283
289: 135(ptr) AccessChain 123(output) 115
290: 21(fvec3) Load 289
Store 286(outStream.Normal) 290
294: 135(ptr) AccessChain 123(output) 189
295: 21(fvec3) Load 294
Store 291(outStream.Color) 295
299: 135(ptr) AccessChain 123(output) 242
300: 21(fvec3) Load 299
Store 296(outStream.ViewVec) 300
304: 135(ptr) AccessChain 123(output) 234
305: 21(fvec3) Load 304
Store 301(outStream.LightVec) 305
EmitVertex
Branch 103
103: Label
293: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 70
294: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 90 90 16 16
295: 91(int) Load 95(i)
296: 91(int) IAdd 295 129
Store 95(i) 296
Branch 100
102: Label
297: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 70
298: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 299 299 16 16
Branch 108
108: Label
306: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 74
307: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 94 94 16 16
308: 95(int) Load 100(i)
309: 95(int) IAdd 308 134
Store 100(i) 309
Branch 105
107: Label
310: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 74
311: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 312 312 16 16
EndPrimitive
Return
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,7 +1,7 @@
spv.debuginfo.scalar_types.glsl.frag
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 146
// Id's are bound by 158
Capability Shader
Capability Float16
@ -27,42 +27,42 @@ spv.debuginfo.scalar_types.glsl.frag
#line 1
"
30: String "bool"
35: String "VAR_bool"
41: String "int"
46: String "VAR_int"
53: String "VAR_uint"
57: String "float"
62: String "VAR_float"
67: String "double"
73: String "VAR_double"
78: String "int8_t"
83: String "VAR_int8_t"
88: String "uint8_t"
93: String "VAR_uint8_t"
98: String "int16_t"
104: String "VAR_int16_t"
109: String "uint16_t"
114: String "VAR_uint16_t"
119: String "int64_t"
124: String "VAR_int64_t"
129: String "uint64_t"
134: String "VAR_uint64_t"
139: String "float16_t"
144: String "VAR_float16_t"
36: String "VAR_bool"
42: String "int"
48: String "VAR_int"
56: String "VAR_uint"
60: String "float"
66: String "VAR_float"
71: String "double"
78: String "VAR_double"
83: String "int8_t"
89: String "VAR_int8_t"
94: String "uint8_t"
100: String "VAR_uint8_t"
105: String "int16_t"
112: String "VAR_int16_t"
117: String "uint16_t"
123: String "VAR_uint16_t"
128: String "int64_t"
134: String "VAR_int64_t"
139: String "uint64_t"
145: String "VAR_uint64_t"
150: String "float16_t"
156: String "VAR_float16_t"
SourceExtension "GL_EXT_shader_explicit_arithmetic_types"
Name 14 "main"
Name 33 "VAR_bool"
Name 44 "VAR_int"
Name 51 "VAR_uint"
Name 60 "VAR_float"
Name 71 "VAR_double"
Name 81 "VAR_int8_t"
Name 91 "VAR_uint8_t"
Name 102 "VAR_int16_t"
Name 112 "VAR_uint16_t"
Name 122 "VAR_int64_t"
Name 132 "VAR_uint64_t"
Name 142 "VAR_float16_t"
Name 34 "VAR_bool"
Name 46 "VAR_int"
Name 54 "VAR_uint"
Name 64 "VAR_float"
Name 76 "VAR_double"
Name 87 "VAR_int8_t"
Name 98 "VAR_uint8_t"
Name 110 "VAR_int16_t"
Name 121 "VAR_uint16_t"
Name 132 "VAR_int64_t"
Name 143 "VAR_uint64_t"
Name 154 "VAR_float16_t"
4: TypeVoid
5: TypeFunction 4
7: TypeInt 32 0
@ -83,114 +83,126 @@ spv.debuginfo.scalar_types.glsl.frag
29: TypeBool
31: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 30 10 24 12
32: TypePointer Private 29(bool)
33(VAR_bool): 32(ptr) Variable Private
36: 7(int) Constant 8
34: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 35 31 18 28 12 21 35 33(VAR_bool) 36
37: 29(bool) ConstantFalse
39: 7(int) Constant 44
40: TypeInt 32 1
42: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 41 10 23 12
43: TypePointer Private 40(int)
44(VAR_int): 43(ptr) Variable Private
45: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 46 42 18 39 12 21 46 44(VAR_int) 36
47: 40(int) Constant 0
49: 7(int) Constant 45
50: TypePointer Private 7(int)
51(VAR_uint): 50(ptr) Variable Private
52: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 53 9 18 49 12 21 53 51(VAR_uint) 36
55: 7(int) Constant 46
56: TypeFloat 32
58: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 57 10 13 12
59: TypePointer Private 56(float)
60(VAR_float): 59(ptr) Variable Private
61: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 62 58 18 55 12 21 62 60(VAR_float) 36
63: 56(float) Constant 0
65: 7(int) Constant 47
66: TypeFloat 64
69: 7(int) Constant 64
68: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 67 69 13 12
70: TypePointer Private 66(float64_t)
71(VAR_double): 70(ptr) Variable Private
72: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 73 68 18 65 12 21 73 71(VAR_double) 36
74:66(float64_t) Constant 0 0
76: 7(int) Constant 48
77: TypeInt 8 1
79: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 78 36 23 12
80: TypePointer Private 77(int8_t)
81(VAR_int8_t): 80(ptr) Variable Private
82: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 83 79 18 76 12 21 83 81(VAR_int8_t) 36
84: 77(int8_t) Constant 0
86: 7(int) Constant 49
87: TypeInt 8 0
89: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 88 36 11 12
90: TypePointer Private 87(int8_t)
91(VAR_uint8_t): 90(ptr) Variable Private
92: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 93 89 18 86 12 21 93 91(VAR_uint8_t) 36
94: 87(int8_t) Constant 0
96: 7(int) Constant 50
97: TypeInt 16 1
100: 7(int) Constant 16
99: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 98 100 23 12
101: TypePointer Private 97(int16_t)
102(VAR_int16_t): 101(ptr) Variable Private
103: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 104 99 18 96 12 21 104 102(VAR_int16_t) 36
105: 97(int16_t) Constant 0
107: 7(int) Constant 51
108: TypeInt 16 0
110: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 109 100 11 12
111: TypePointer Private 108(int16_t)
112(VAR_uint16_t): 111(ptr) Variable Private
113: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 114 110 18 107 12 21 114 112(VAR_uint16_t) 36
115:108(int16_t) Constant 0
117: 7(int) Constant 52
118: TypeInt 64 1
120: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 119 69 23 12
121: TypePointer Private 118(int64_t)
122(VAR_int64_t): 121(ptr) Variable Private
123: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 124 120 18 117 12 21 124 122(VAR_int64_t) 36
125:118(int64_t) Constant 0 0
127: 7(int) Constant 53
128: TypeInt 64 0
130: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 129 69 11 12
131: TypePointer Private 128(int64_t)
132(VAR_uint64_t): 131(ptr) Variable Private
133: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 134 130 18 127 12 21 134 132(VAR_uint64_t) 36
135:128(int64_t) Constant 0 0
137: 7(int) Constant 54
138: TypeFloat 16
140: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 139 100 13 12
141: TypePointer Private 138(float16_t)
142(VAR_float16_t): 141(ptr) Variable Private
143: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 144 140 18 137 12 21 144 142(VAR_float16_t) 36
145:138(float16_t) Constant 0
33: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 31 11 12
34(VAR_bool): 32(ptr) Variable Private
37: 7(int) Constant 8
35: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 36 31 18 28 12 21 36 34(VAR_bool) 37
38: 29(bool) ConstantFalse
40: 7(int) Constant 44
41: TypeInt 32 1
43: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 42 10 23 12
44: TypePointer Private 41(int)
45: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 43 11 12
46(VAR_int): 44(ptr) Variable Private
47: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 48 43 18 40 12 21 48 46(VAR_int) 37
49: 41(int) Constant 0
51: 7(int) Constant 45
52: TypePointer Private 7(int)
53: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 9 11 12
54(VAR_uint): 52(ptr) Variable Private
55: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 56 9 18 51 12 21 56 54(VAR_uint) 37
58: 7(int) Constant 46
59: TypeFloat 32
61: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 60 10 13 12
62: TypePointer Private 59(float)
63: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 61 11 12
64(VAR_float): 62(ptr) Variable Private
65: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 66 61 18 58 12 21 66 64(VAR_float) 37
67: 59(float) Constant 0
69: 7(int) Constant 47
70: TypeFloat 64
73: 7(int) Constant 64
72: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 71 73 13 12
74: TypePointer Private 70(float64_t)
75: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 72 11 12
76(VAR_double): 74(ptr) Variable Private
77: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 78 72 18 69 12 21 78 76(VAR_double) 37
79:70(float64_t) Constant 0 0
81: 7(int) Constant 48
82: TypeInt 8 1
84: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 83 37 23 12
85: TypePointer Private 82(int8_t)
86: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 84 11 12
87(VAR_int8_t): 85(ptr) Variable Private
88: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 89 84 18 81 12 21 89 87(VAR_int8_t) 37
90: 82(int8_t) Constant 0
92: 7(int) Constant 49
93: TypeInt 8 0
95: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 94 37 11 12
96: TypePointer Private 93(int8_t)
97: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 95 11 12
98(VAR_uint8_t): 96(ptr) Variable Private
99: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 100 95 18 92 12 21 100 98(VAR_uint8_t) 37
101: 93(int8_t) Constant 0
103: 7(int) Constant 50
104: TypeInt 16 1
107: 7(int) Constant 16
106: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 105 107 23 12
108: TypePointer Private 104(int16_t)
109: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 106 11 12
110(VAR_int16_t): 108(ptr) Variable Private
111: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 112 106 18 103 12 21 112 110(VAR_int16_t) 37
113:104(int16_t) Constant 0
115: 7(int) Constant 51
116: TypeInt 16 0
118: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 117 107 11 12
119: TypePointer Private 116(int16_t)
120: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 118 11 12
121(VAR_uint16_t): 119(ptr) Variable Private
122: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 123 118 18 115 12 21 123 121(VAR_uint16_t) 37
124:116(int16_t) Constant 0
126: 7(int) Constant 52
127: TypeInt 64 1
129: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 128 73 23 12
130: TypePointer Private 127(int64_t)
131: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 129 11 12
132(VAR_int64_t): 130(ptr) Variable Private
133: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 134 129 18 126 12 21 134 132(VAR_int64_t) 37
135:127(int64_t) Constant 0 0
137: 7(int) Constant 53
138: TypeInt 64 0
140: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 139 73 11 12
141: TypePointer Private 138(int64_t)
142: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 140 11 12
143(VAR_uint64_t): 141(ptr) Variable Private
144: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 145 140 18 137 12 21 145 143(VAR_uint64_t) 37
146:138(int64_t) Constant 0 0
148: 7(int) Constant 54
149: TypeFloat 16
151: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 150 107 13 12
152: TypePointer Private 149(float16_t)
153: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 151 11 12
154(VAR_float16_t): 152(ptr) Variable Private
155: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 156 151 18 148 12 21 156 154(VAR_float16_t) 37
157:149(float16_t) Constant 0
Line 1 42 11
14(main): 4 Function None 5
15: Label
25: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main)
26: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
27: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 28 28 12 12
Store 33(VAR_bool) 37
38: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 39 39 12 12
Store 44(VAR_int) 47
48: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 49 49 12 12
Store 51(VAR_uint) 12
54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 55 55 12 12
Store 60(VAR_float) 63
64: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 65 65 12 12
Store 71(VAR_double) 74
75: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 76 76 12 12
Store 81(VAR_int8_t) 84
85: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 86 86 12 12
Store 91(VAR_uint8_t) 94
95: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 96 96 12 12
Store 102(VAR_int16_t) 105
106: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 107 107 12 12
Store 112(VAR_uint16_t) 115
116: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 117 117 12 12
Store 122(VAR_int64_t) 125
126: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 127 127 12 12
Store 132(VAR_uint64_t) 135
Store 34(VAR_bool) 38
39: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 40 40 12 12
Store 46(VAR_int) 49
50: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 51 51 12 12
Store 54(VAR_uint) 12
57: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 58 58 12 12
Store 64(VAR_float) 67
68: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 69 69 12 12
Store 76(VAR_double) 79
80: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 81 81 12 12
Store 87(VAR_int8_t) 90
91: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 92 92 12 12
Store 98(VAR_uint8_t) 101
102: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 103 103 12 12
Store 110(VAR_int16_t) 113
114: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 115 115 12 12
Store 121(VAR_uint16_t) 124
125: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 126 126 12 12
Store 132(VAR_int64_t) 135
136: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 137 137 12 12
Store 142(VAR_float16_t) 145
Store 143(VAR_uint64_t) 146
147: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 148 148 12 12
Store 154(VAR_float16_t) 157
Return
FunctionEnd