Add correct line number to OpDebugFunction and OpDebugScope for function:

1. Pull OpDebugFunction, OpDebugScope and OpDebugVariable for params out
   of makeFunctionEntry.
2. Put above in a separate function called setupDebugFunctionEntry,
   which also accept line number and set it correctly in builder.
3. Call setupDebugFunctionEntry in makeFunction. Also special case
   handle entry function since it's created ealier elsewhere.
This commit is contained in:
Chao Chen 2023-10-12 05:42:55 +01:00
parent a2fb1ba2ad
commit 979423d84f
19 changed files with 9076 additions and 9016 deletions

View file

@ -5403,9 +5403,17 @@ void TGlslangToSpvTraverser::makeFunctions(const glslang::TIntermSequence& glslF
for (int f = 0; f < (int)glslFunctions.size(); ++f) {
glslang::TIntermAggregate* glslFunction = glslFunctions[f]->getAsAggregate();
if (! glslFunction || glslFunction->getOp() != glslang::EOpFunction || isShaderEntryPoint(glslFunction))
if (! glslFunction || glslFunction->getOp() != glslang::EOpFunction)
continue;
if (isShaderEntryPoint(glslFunction)) {
if (glslangIntermediate->getSource() != glslang::EShSourceHlsl) {
builder.setupDebugFunctionEntry(shaderEntry, glslangIntermediate->getEntryPointMangledName().c_str(),
glslFunction->getLoc().line,
std::vector<spv::Id>(), // main function has no param
std::vector<char const*>());
}
continue;
}
// We're on a user function. Set up the basic interface for the function now,
// so that it's available to call. Translating the body will happen later.
//
@ -5455,6 +5463,8 @@ void TGlslangToSpvTraverser::makeFunctions(const glslang::TIntermSequence& glslF
TranslatePrecisionDecoration(glslFunction->getType()), convertGlslangToSpvType(glslFunction->getType()),
glslFunction->getName().c_str(), convertGlslangLinkageToSpv(glslFunction->getLinkType()), paramTypes,
paramNames, paramDecorations, &functionBlock);
builder.setupDebugFunctionEntry(function, glslFunction->getName().c_str(), glslFunction->getLoc().line,
paramTypes, paramNames);
if (implicitThis)
function->setImplicitThis();

View file

@ -2101,12 +2101,8 @@ Function* Builder::makeFunctionEntry(Decoration precision, Id returnType, const
}
}
// Make the debug function instruction
// reset last debug scope
if (emitNonSemanticShaderDebugInfo) {
Id nameId = getStringId(unmangleFunctionName(name));
Id debugFuncId = makeDebugFunction(function, nameId, typeId);
debugId[funcId] = debugFuncId;
currentDebugScopeId.push(debugFuncId);
lastDebugScopeId = NoResult;
}
@ -2116,41 +2112,62 @@ Function* Builder::makeFunctionEntry(Decoration precision, Id returnType, const
function->addBlock(*entry);
setBuildPoint(*entry);
// DebugScope and DebugLine for parameter DebugDeclares
if (emitNonSemanticShaderDebugInfo && (int)paramTypes.size() > 0) {
addDebugScopeAndLine(currentFileId, currentLine, 0);
if (name)
addName(function->getId(), name);
functions.push_back(std::unique_ptr<Function>(function));
return function;
}
if (emitNonSemanticShaderDebugInfo) {
assert(paramTypes.size() == paramNames.size());
for(size_t p = 0; p < paramTypes.size(); ++p)
void Builder::setupDebugFunctionEntry(Function* function, const char* name, int line, const std::vector<Id>& paramTypes,
const std::vector<char const*>& paramNames)
{
if (!emitNonSemanticShaderDebugInfo)
return;
currentLine = line;
Id nameId = getStringId(unmangleFunctionName(name));
Id funcTypeId = function->getFuncTypeId();
assert(debugId[funcTypeId] != 0);
Id funcId = function->getId();
assert(funcId != 0);
// Make the debug function instruction
Id debugFuncId = makeDebugFunction(function, nameId, funcTypeId);
debugId[funcId] = debugFuncId;
currentDebugScopeId.push(debugFuncId);
// DebugScope and DebugLine for parameter DebugDeclares
assert(paramTypes.size() == paramNames.size());
if ((int)paramTypes.size() > 0) {
addDebugScopeAndLine(currentFileId, currentLine, 0);
Id firstParamId = function->getParamId(0);
for (size_t p = 0; p < paramTypes.size(); ++p) {
auto getParamTypeId = [this](Id const& typeId) {
if (isPointerType(typeId) || isArrayType(typeId)) {
return getContainedTypeId(typeId);
}
else {
} else {
return typeId;
}
};
auto const& paramName = paramNames[p];
auto const debugLocalVariableId = createDebugLocalVariable(debugId[getParamTypeId(paramTypes[p])], paramName, p+1);
auto const debugLocalVariableId =
createDebugLocalVariable(debugId[getParamTypeId(paramTypes[p])], paramName, p + 1);
debugId[firstParamId + p] = debugLocalVariableId;
makeDebugDeclare(debugLocalVariableId, firstParamId + p);
}
}
if (name)
addName(function->getId(), name);
functions.push_back(std::unique_ptr<Function>(function));
// Clear debug scope stack
if (emitNonSemanticShaderDebugInfo)
currentDebugScopeId.pop();
return function;
}
Id Builder::makeDebugFunction([[maybe_unused]] Function* function, Id nameId, Id funcTypeId)
@ -2166,13 +2183,13 @@ Id Builder::makeDebugFunction([[maybe_unused]] Function* function, Id nameId, Id
type->addImmediateOperand(NonSemanticShaderDebugInfo100DebugFunction);
type->addIdOperand(nameId);
type->addIdOperand(debugId[funcTypeId]);
type->addIdOperand(makeDebugSource(currentFileId)); // Will be fixed later when true filename available
type->addIdOperand(makeUintConstant(currentLine)); // Will be fixed later when true line available
type->addIdOperand(makeDebugSource(currentFileId)); // TODO: This points to file of definition instead of declaration
type->addIdOperand(makeUintConstant(currentLine)); // TODO: This points to line of definition instead of declaration
type->addIdOperand(makeUintConstant(0)); // column
type->addIdOperand(makeDebugCompilationUnit()); // scope
type->addIdOperand(nameId); // linkage name
type->addIdOperand(makeUintConstant(NonSemanticShaderDebugInfo100FlagIsPublic));
type->addIdOperand(makeUintConstant(currentLine)); // TODO(greg-lunarg): correct scope line
type->addIdOperand(makeUintConstant(currentLine));
constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type));
module.mapInstruction(type);
return funcId;

View file

@ -237,6 +237,9 @@ public:
Id makeDebugFunction(Function* function, Id nameId, Id funcTypeId);
Id makeDebugLexicalBlock(uint32_t line);
std::string unmangleFunctionName(std::string const& name) const;
void setupDebugFunctionEntry(Function* function, const char* name, int line,
const std::vector<Id>& paramTypes,
const std::vector<char const*>& paramNames);
// accelerationStructureNV type
Id makeAccelerationStructureType();

View file

@ -352,6 +352,7 @@ public:
void addLocalVariable(std::unique_ptr<Instruction> inst);
Id getReturnType() const { return functionInstruction.getTypeId(); }
Id getFuncId() const { return functionInstruction.getResultId(); }
Id getFuncTypeId() const { return functionInstruction.getIdOperand(1); }
void setReturnPrecision(Decoration precision)
{
if (precision == DecorationRelaxedPrecision)

View file

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

View file

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

File diff suppressed because it is too large Load diff

View file

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