Use DebugDeclare for local variables

Previously we had decided to issue DebugValue directly in glslang.
However, this was incorrect and causing issues with RenderDoc.
This commit is contained in:
Jeremy Hayes 2022-09-23 09:17:44 -06:00
parent c0cf8ad876
commit ee442785dd
13 changed files with 5235 additions and 5347 deletions

View File

@ -1146,19 +1146,6 @@ Id Builder::makeDebugDeclare(Id const debugLocalVariable, Id const localVariable
return inst->getResultId();
}
Id Builder::makeDebugValue(Id const debugLocalVariable, Id const value)
{
Instruction* inst = new Instruction(getUniqueId(), makeVoidType(), OpExtInst);
inst->addIdOperand(nonSemanticShaderDebugInfo);
inst->addImmediateOperand(NonSemanticShaderDebugInfo100DebugValue);
inst->addIdOperand(debugLocalVariable); // debug local variable id
inst->addIdOperand(value); // value id
inst->addIdOperand(makeDebugExpression()); // expression id
buildPoint->addInstruction(std::unique_ptr<Instruction>(inst));
return inst->getResultId();
}
#ifndef GLSLANG_WEB
Id Builder::makeAccelerationStructureType()
{
@ -2248,8 +2235,7 @@ Id Builder::createVariable(Decoration precision, StorageClass storageClass, Id t
auto const debugLocalVariableId = createDebugLocalVariable(debugId[type], name);
debugId[inst->getResultId()] = debugLocalVariableId;
// TODO: Remove?
// makeDebugDeclare(debugLocalVariableId, inst->getResultId());
makeDebugDeclare(debugLocalVariableId, inst->getResultId());
}
break;
@ -2322,15 +2308,6 @@ void Builder::createStore(Id rValue, Id lValue, spv::MemoryAccessMask memoryAcce
}
buildPoint->addInstruction(std::unique_ptr<Instruction>(store));
if (emitNonSemanticShaderDebugInfo && !isGlobalVariable(lValue))
{
if(debugId.find(lValue) != debugId.end())
{
auto const debugLocalVariableId = debugId[lValue];
makeDebugValue(debugLocalVariableId, rValue);
}
}
}
// Comments in header

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,7 @@ spv.debuginfo.glsl.geom
Validation failed
// Module Version 10000
// Generated by (magic number): 8000a
// Id's are bound by 232
// Id's are bound by 231
Capability Geometry
Capability MultiViewport
@ -10,7 +10,7 @@ Validation failed
1: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
2: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Geometry 13 "main" 52 85 104 112 116 145 181 189 206 216 221 225
EntryPoint Geometry 13 "main" 52 85 104 112 116 146 181 189 206 216 221 225
ExecutionMode 13 Triangles
ExecutionMode 13 Invocations 2
ExecutionMode 13 OutputTriangleStrip
@ -33,11 +33,11 @@ Validation failed
114: String "outColor"
118: String "inColor"
125: String "pos"
131: String "gl_Position"
134: String "gl_PointSize"
137: String "gl_CullDistance"
141: String "gl_PerVertex"
147: String "gl_in"
132: String "gl_Position"
135: String "gl_PointSize"
138: String "gl_CullDistance"
142: String "gl_PerVertex"
148: String "gl_in"
155: String "worldPos"
166: String "lPos"
183: String "outLightVec"
@ -59,12 +59,12 @@ Validation failed
Name 112 "outColor"
Name 116 "inColor"
Name 123 "pos"
Name 129 "gl_PerVertex"
MemberName 129(gl_PerVertex) 0 "gl_Position"
MemberName 129(gl_PerVertex) 1 "gl_PointSize"
MemberName 129(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 129(gl_PerVertex) 3 "gl_CullDistance"
Name 145 "gl_in"
Name 130 "gl_PerVertex"
MemberName 130(gl_PerVertex) 0 "gl_Position"
MemberName 130(gl_PerVertex) 1 "gl_PointSize"
MemberName 130(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 130(gl_PerVertex) 3 "gl_CullDistance"
Name 146 "gl_in"
Name 153 "worldPos"
Name 164 "lPos"
Name 181 "outLightVec"
@ -95,11 +95,11 @@ Validation failed
Decorate 104(inNormal) Location 0
Decorate 112(outColor) Location 1
Decorate 116(inColor) Location 1
MemberDecorate 129(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 129(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 129(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 129(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 129(gl_PerVertex) Block
MemberDecorate 130(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 130(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 130(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 130(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 130(gl_PerVertex) Block
Decorate 181(outLightVec) Location 3
Decorate 189(outViewVec) Location 2
MemberDecorate 196(gl_PerVertex) 0 BuiltIn Position
@ -130,8 +130,8 @@ Validation failed
27: TypePointer Function 24(int)
31: 6(int) Constant 49
29: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 30 26 16 31 11 15 20
32: 24(int) Constant 0
34: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(Sqrt)
33: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(Sqrt)
34: 24(int) Constant 0
41: 24(int) Constant 3
42: TypeBool
44: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 43 9 21 11
@ -186,45 +186,45 @@ Validation failed
122: TypePointer Function 57(fvec4)
126: 6(int) Constant 54
124: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 125 58 16 126 11 15 20
127: TypeArray 46(float) 19
128: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 48 19
129(gl_PerVertex): TypeStruct 57(fvec4) 46(float) 127 127
132: 6(int) Constant 23
130: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 131 58 16 21 132 11 11 12
135: 6(int) Constant 41
133: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 134 48 16 21 135 11 11 12
138: 6(int) Constant 84
136: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 137 128 16 21 138 11 11 12
139: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 137 128 16 21 138 11 11 12
140: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 141 19 16 126 11 18 141 11 12 130 133 136 139
142: TypeArray 129(gl_PerVertex) 12
143: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 140 12
144: TypePointer Input 142
145(gl_in): 144(ptr) Variable Input
146: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 147 143 16 126 11 18 147 145(gl_in) 56
149: TypePointer Input 57(fvec4)
128: TypeArray 46(float) 19
129: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 48 19
130(gl_PerVertex): TypeStruct 57(fvec4) 46(float) 128 128
133: 6(int) Constant 23
131: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 132 58 16 21 133 11 11 12
136: 6(int) Constant 41
134: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 135 48 16 21 136 11 11 12
139: 6(int) Constant 84
137: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 138 129 16 21 139 11 11 12
140: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 138 129 16 21 139 11 11 12
141: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 142 19 16 126 11 18 142 11 12 131 134 137 140
143: TypeArray 130(gl_PerVertex) 12
144: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 141 12
145: TypePointer Input 143
146(gl_in): 145(ptr) Variable Input
147: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 148 144 16 126 11 18 148 146(gl_in) 56
150: TypePointer Input 57(fvec4)
156: 6(int) Constant 55
154: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 155 58 16 156 11 15 20
163: TypePointer Function 49(fvec3)
167: 6(int) Constant 57
165: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 166 50 16 167 11 15 20
171: 24(int) Constant 2
172: TypePointer Uniform 57(fvec4)
172: 24(int) Constant 2
173: TypePointer Uniform 57(fvec4)
181(outLightVec): 51(ptr) Variable Output
184: 6(int) Constant 58
182: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 183 50 16 184 11 18 183 181(outLightVec) 56
189(outViewVec): 51(ptr) Variable Output
192: 6(int) Constant 59
190: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 191 50 16 192 11 18 191 189(outViewVec) 56
196(gl_PerVertex): TypeStruct 57(fvec4) 46(float) 127 127
196(gl_PerVertex): TypeStruct 57(fvec4) 46(float) 128 128
198: 6(int) Constant 215
197: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 131 58 16 21 198 11 11 12
197: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 132 58 16 21 198 11 11 12
200: 6(int) Constant 233
199: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 134 48 16 21 200 11 11 12
201: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 137 128 16 12 70 11 11 12
202: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 137 128 16 12 70 11 11 12
199: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 135 48 16 21 200 11 11 12
201: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 138 129 16 12 70 11 11 12
202: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 138 129 16 12 70 11 11 12
204: 6(int) Constant 61
203: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 141 19 16 204 11 18 141 11 12 197 199 201 202
203: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 142 19 16 204 11 18 142 11 12 197 199 201 202
205: TypePointer Output 196(gl_PerVertex)
206: 205(ptr) Variable Output
207: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 17 203 16 204 11 18 17 206 56
@ -245,8 +245,8 @@ Validation failed
153(worldPos): 122(ptr) Variable Function
164(lPos): 163(ptr) Variable Function
23: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101 15 13(main)
Store 28(i) 32
33: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 29 32 34
32: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 29 28(i) 33
Store 28(i) 34
Branch 35
35: Label
LoopMerge 37 38 None
@ -275,30 +275,30 @@ Validation failed
120: 108(ptr) AccessChain 116(inColor) 119
121: 49(fvec3) Load 120
Store 112(outColor) 121
148: 24(int) Load 28(i)
150: 149(ptr) AccessChain 145(gl_in) 148 32
151: 57(fvec4) Load 150
Store 123(pos) 151
152: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 124 151 34
157: 24(int) Load 85(gl_InvocationID)
158: 89(ptr) AccessChain 80(ubo) 83 157
159: 59 Load 158
160: 57(fvec4) Load 123(pos)
161: 57(fvec4) MatrixTimesVector 159 160
Store 153(worldPos) 161
162: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 154 161 34
168: 24(int) Load 85(gl_InvocationID)
169: 89(ptr) AccessChain 80(ubo) 83 168
170: 59 Load 169
173: 172(ptr) AccessChain 80(ubo) 171
174: 57(fvec4) Load 173
175: 57(fvec4) MatrixTimesVector 170 174
176: 46(float) CompositeExtract 175 0
177: 46(float) CompositeExtract 175 1
178: 46(float) CompositeExtract 175 2
179: 49(fvec3) CompositeConstruct 176 177 178
Store 164(lPos) 179
180: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 165 179 34
127: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 124 123(pos) 33
149: 24(int) Load 28(i)
151: 150(ptr) AccessChain 146(gl_in) 149 34
152: 57(fvec4) Load 151
Store 123(pos) 152
157: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 154 153(worldPos) 33
158: 24(int) Load 85(gl_InvocationID)
159: 89(ptr) AccessChain 80(ubo) 83 158
160: 59 Load 159
161: 57(fvec4) Load 123(pos)
162: 57(fvec4) MatrixTimesVector 160 161
Store 153(worldPos) 162
168: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 165 164(lPos) 33
169: 24(int) Load 85(gl_InvocationID)
170: 89(ptr) AccessChain 80(ubo) 83 169
171: 59 Load 170
174: 173(ptr) AccessChain 80(ubo) 172
175: 57(fvec4) Load 174
176: 57(fvec4) MatrixTimesVector 171 175
177: 46(float) CompositeExtract 176 0
178: 46(float) CompositeExtract 176 1
179: 46(float) CompositeExtract 176 2
180: 49(fvec3) CompositeConstruct 177 178 179
Store 164(lPos) 180
185: 49(fvec3) Load 164(lPos)
186: 57(fvec4) Load 153(worldPos)
187: 49(fvec3) VectorShuffle 186 186 0 1 2
@ -309,11 +309,11 @@ Validation failed
195: 49(fvec3) FNegate 194
Store 189(outViewVec) 195
208: 24(int) Load 85(gl_InvocationID)
209: 89(ptr) AccessChain 80(ubo) 32 208
209: 89(ptr) AccessChain 80(ubo) 34 208
210: 59 Load 209
211: 57(fvec4) Load 153(worldPos)
212: 57(fvec4) MatrixTimesVector 210 211
214: 213(ptr) AccessChain 206 32
214: 213(ptr) AccessChain 206 34
Store 214 212
220: 24(int) Load 85(gl_InvocationID)
Store 216(gl_ViewportIndex) 220
@ -325,7 +325,6 @@ Validation failed
229: 24(int) Load 28(i)
230: 24(int) IAdd 229 83
Store 28(i) 230
231: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 29 230 34
Branch 35
37: Label
EndPrimitive

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,7 @@ Validation failed
1: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
2: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint TessellationEvaluation 13 "main" 37 54 80 98 124 159 267 279 286 297 303
EntryPoint TessellationEvaluation 13 "main" 39 56 80 99 124 160 267 279 286 297 303
ExecutionMode 13 Quads
ExecutionMode 13 SpacingEqual
ExecutionMode 13 VertexOrderCw
@ -18,21 +18,21 @@ Validation failed
17: String ""
25: String "float"
32: String "uv1"
39: String "inUV"
42: String "int"
56: String "gl_TessCoord"
41: String "inUV"
44: String "int"
58: String "gl_TessCoord"
66: String "uv2"
82: String "outUV"
93: String "n1"
100: String "inNormal"
101: String "inNormal"
112: String "n2"
126: String "outNormal"
139: String "pos1"
145: String "gl_Position"
148: String "gl_PointSize"
151: String "gl_CullDistance"
155: String "gl_PerVertex"
161: String "gl_in"
146: String "gl_Position"
149: String "gl_PointSize"
152: String "gl_CullDistance"
156: String "gl_PerVertex"
162: String "gl_in"
174: String "pos2"
187: String "pos"
198: String "type.2d.image"
@ -53,21 +53,21 @@ Validation failed
305: String "outEyePos"
Name 13 "main"
Name 30 "uv1"
Name 37 "inUV"
Name 54 "gl_TessCoord"
Name 39 "inUV"
Name 56 "gl_TessCoord"
Name 64 "uv2"
Name 80 "outUV"
Name 91 "n1"
Name 98 "inNormal"
Name 99 "inNormal"
Name 110 "n2"
Name 124 "outNormal"
Name 137 "pos1"
Name 143 "gl_PerVertex"
MemberName 143(gl_PerVertex) 0 "gl_Position"
MemberName 143(gl_PerVertex) 1 "gl_PointSize"
MemberName 143(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 143(gl_PerVertex) 3 "gl_CullDistance"
Name 159 "gl_in"
Name 144 "gl_PerVertex"
MemberName 144(gl_PerVertex) 0 "gl_Position"
MemberName 144(gl_PerVertex) 1 "gl_PointSize"
MemberName 144(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 144(gl_PerVertex) 3 "gl_CullDistance"
Name 160 "gl_in"
Name 172 "pos2"
Name 185 "pos"
Name 207 "displacementMap"
@ -91,16 +91,16 @@ Validation failed
Name 286 "outLightVec"
Name 297 "outWorldPos"
Name 303 "outEyePos"
Decorate 37(inUV) Location 1
Decorate 54(gl_TessCoord) BuiltIn TessCoord
Decorate 39(inUV) Location 1
Decorate 56(gl_TessCoord) BuiltIn TessCoord
Decorate 80(outUV) Location 1
Decorate 98(inNormal) Location 0
Decorate 99(inNormal) Location 0
Decorate 124(outNormal) Location 0
MemberDecorate 143(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 143(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 143(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 143(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 143(gl_PerVertex) Block
MemberDecorate 144(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 144(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 144(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 144(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 144(gl_PerVertex) Block
Decorate 207(displacementMap) DescriptorSet 0
Decorate 207(displacementMap) Binding 1
Decorate 219 ArrayStride 16
@ -150,68 +150,68 @@ Validation failed
29: TypePointer Function 27(fvec2)
33: 6(int) Constant 56
31: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 32 28 16 33 11 15 20
34: TypeArray 27(fvec2) 9
35: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 28 9
36: TypePointer Input 34
37(inUV): 36(ptr) Variable Input
40: 6(int) Constant 8
38: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 39 35 16 33 11 18 39 37(inUV) 40
41: TypeInt 32 1
43: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 42 9 20 11
44: 41(int) Constant 0
45: TypePointer Input 27(fvec2)
48: 41(int) Constant 1
51: TypeVector 24(float) 3
52: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(FSign) 26 12
53: TypePointer Input 51(fvec3)
54(gl_TessCoord): 53(ptr) Variable Input
55: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 56 52 16 33 11 18 56 54(gl_TessCoord) 40
57: TypePointer Input 24(float)
63: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(Sqrt)
35: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(Sqrt)
36: TypeArray 27(fvec2) 9
37: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 28 9
38: TypePointer Input 36
39(inUV): 38(ptr) Variable Input
42: 6(int) Constant 8
40: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 41 37 16 33 11 18 41 39(inUV) 42
43: TypeInt 32 1
45: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 44 9 20 11
46: 43(int) Constant 0
47: TypePointer Input 27(fvec2)
50: 43(int) Constant 1
53: TypeVector 24(float) 3
54: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(FSign) 26 12
55: TypePointer Input 53(fvec3)
56(gl_TessCoord): 55(ptr) Variable Input
57: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 58 54 16 33 11 18 58 56(gl_TessCoord) 42
59: TypePointer Input 24(float)
67: 6(int) Constant 57
65: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 66 28 16 67 11 15 20
68: 41(int) Constant 3
71: 41(int) Constant 2
69: 43(int) Constant 3
72: 43(int) Constant 2
79: TypePointer Output 27(fvec2)
80(outUV): 79(ptr) Variable Output
83: 6(int) Constant 58
81: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 82 28 16 83 11 18 82 80(outUV) 40
90: TypePointer Function 51(fvec3)
81: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 82 28 16 83 11 18 82 80(outUV) 42
90: TypePointer Function 53(fvec3)
94: 6(int) Constant 60
92: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 93 52 16 94 11 15 20
95: TypeArray 51(fvec3) 9
96: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 52 9
97: TypePointer Input 95
98(inNormal): 97(ptr) Variable Input
99: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 100 96 16 94 11 18 100 98(inNormal) 40
92: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 93 54 16 94 11 15 20
96: TypeArray 53(fvec3) 9
97: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 54 9
98: TypePointer Input 96
99(inNormal): 98(ptr) Variable Input
100: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 101 97 16 94 11 18 101 99(inNormal) 42
113: 6(int) Constant 61
111: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 112 52 16 113 11 15 20
123: TypePointer Output 51(fvec3)
111: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 112 54 16 113 11 15 20
123: TypePointer Output 53(fvec3)
124(outNormal): 123(ptr) Variable Output
127: 6(int) Constant 62
125: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 126 52 16 127 11 18 126 124(outNormal) 40
125: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 126 54 16 127 11 18 126 124(outNormal) 42
134: TypeVector 24(float) 4
135: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(FSign) 26 20
136: TypePointer Function 134(fvec4)
140: 6(int) Constant 65
138: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 139 135 16 140 11 15 20
141: TypeArray 24(float) 19
142: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 26 19
143(gl_PerVertex): TypeStruct 134(fvec4) 24(float) 141 141
146: 6(int) Constant 1756
144: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 145 135 16 19 146 11 11 12
149: 6(int) Constant 1774
147: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 148 26 16 19 149 11 11 12
152: 6(int) Constant 1817
150: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 151 142 16 19 152 11 11 12
153: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 151 142 16 19 152 11 11 12
154: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 155 19 16 140 11 18 155 11 12 144 147 150 153
156: TypeArray 143(gl_PerVertex) 9
157: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 154 9
158: TypePointer Input 156
159(gl_in): 158(ptr) Variable Input
160: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 161 157 16 140 11 18 161 159(gl_in) 40
162: TypePointer Input 134(fvec4)
142: TypeArray 24(float) 19
143: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 26 19
144(gl_PerVertex): TypeStruct 134(fvec4) 24(float) 142 142
147: 6(int) Constant 1756
145: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 146 135 16 19 147 11 11 12
150: 6(int) Constant 1774
148: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 149 26 16 19 150 11 11 12
153: 6(int) Constant 1817
151: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 152 143 16 19 153 11 11 12
154: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 152 143 16 19 153 11 11 12
155: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 156 19 16 140 11 18 156 11 12 145 148 151 154
157: TypeArray 144(gl_PerVertex) 9
158: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 155 9
159: TypePointer Input 157
160(gl_in): 159(ptr) Variable Input
161: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 162 158 16 140 11 18 162 160(gl_in) 42
163: TypePointer Input 134(fvec4)
175: 6(int) Constant 66
173: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 174 135 16 175 11 15 20
188: 6(int) Constant 67
@ -224,7 +224,7 @@ Validation failed
203: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 204 11 16 199 11 18 205 201 12
206: TypePointer UniformConstant 202
207(displacementMap): 206(ptr) Variable UniformConstant
208: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 209 203 16 199 11 18 209 207(displacementMap) 40
208: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 209 203 16 199 11 18 209 207(displacementMap) 42
212: 24(float) Constant 0
215: TypeMatrix 134(fvec4) 4
217: TypeBool
@ -241,46 +241,46 @@ Validation failed
227: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 228 135 16 229 225 11 11 12
230: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 231 220 16 9 225 11 11 12
234: 6(int) Constant 36
232: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 233 26 16 234 40 11 11 12
235: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 233 26 16 234 40 11 11 12
232: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 233 26 16 234 42 11 11 12
235: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 233 26 16 234 42 11 11 12
238: 6(int) Constant 35
236: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 237 28 16 238 225 11 11 12
239: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 233 26 16 234 40 11 11 12
239: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 233 26 16 234 42 11 11 12
240: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 241 19 16 199 11 18 241 11 12 222 226 227 230 232 235 236 239
242: TypePointer Uniform 221(UBO)
243(ubo): 242(ptr) Variable Uniform
244: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 245 240 16 199 11 18 245 243(ubo) 40
246: 41(int) Constant 4
244: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 245 240 16 199 11 18 245 243(ubo) 42
246: 43(int) Constant 4
247: TypePointer Uniform 24(float)
251: TypePointer Function 24(float)
256(gl_PerVertex): TypeStruct 134(fvec4) 24(float) 141 141
256(gl_PerVertex): TypeStruct 134(fvec4) 24(float) 142 142
258: 6(int) Constant 165
257: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 145 135 16 19 258 11 11 12
257: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 146 135 16 19 258 11 11 12
260: 6(int) Constant 183
259: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 148 26 16 19 260 11 11 12
259: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 149 26 16 19 260 11 11 12
262: 6(int) Constant 226
261: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 151 142 16 19 262 11 11 12
263: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 151 142 16 19 262 11 11 12
261: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 152 143 16 19 262 11 11 12
263: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 152 143 16 19 262 11 11 12
265: 6(int) Constant 71
264: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 155 19 16 265 11 18 155 11 12 257 259 261 263
264: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 156 19 16 265 11 18 156 11 12 257 259 261 263
266: TypePointer Output 256(gl_PerVertex)
267: 266(ptr) Variable Output
268: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 17 264 16 265 11 18 17 267 40
268: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 17 264 16 265 11 18 17 267 42
269: TypePointer Uniform 215
277: TypePointer Output 134(fvec4)
279(outViewVec): 123(ptr) Variable Output
282: 6(int) Constant 74
280: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 281 52 16 282 11 18 281 279(outViewVec) 40
280: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 281 54 16 282 11 18 281 279(outViewVec) 42
286(outLightVec): 123(ptr) Variable Output
289: 6(int) Constant 75
287: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 288 52 16 289 11 18 288 286(outLightVec) 40
287: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 288 54 16 289 11 18 288 286(outLightVec) 42
290: TypePointer Uniform 134(fvec4)
297(outWorldPos): 123(ptr) Variable Output
300: 6(int) Constant 76
298: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 299 52 16 300 11 18 299 297(outWorldPos) 40
298: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 299 54 16 300 11 18 299 297(outWorldPos) 42
303(outEyePos): 123(ptr) Variable Output
306: 6(int) Constant 77
304: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 305 52 16 306 11 18 305 303(outEyePos) 40
304: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 305 54 16 306 11 18 305 303(outEyePos) 42
13(main): 3 Function None 4
22: Label
30(uv1): 29(ptr) Variable Function
@ -291,88 +291,88 @@ Validation failed
172(pos2): 136(ptr) Variable Function
185(pos): 136(ptr) Variable Function
23: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101 15 13(main)
46: 45(ptr) AccessChain 37(inUV) 44
47: 27(fvec2) Load 46
49: 45(ptr) AccessChain 37(inUV) 48
50: 27(fvec2) Load 49
58: 57(ptr) AccessChain 54(gl_TessCoord) 11
59: 24(float) Load 58
60: 27(fvec2) CompositeConstruct 59 59
61: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 47 50 60
Store 30(uv1) 61
62: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 31 61 63
69: 45(ptr) AccessChain 37(inUV) 68
70: 27(fvec2) Load 69
72: 45(ptr) AccessChain 37(inUV) 71
73: 27(fvec2) Load 72
74: 57(ptr) AccessChain 54(gl_TessCoord) 11
75: 24(float) Load 74
76: 27(fvec2) CompositeConstruct 75 75
77: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 70 73 76
Store 64(uv2) 77
78: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 65 77 63
34: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 31 30(uv1) 35
48: 47(ptr) AccessChain 39(inUV) 46
49: 27(fvec2) Load 48
51: 47(ptr) AccessChain 39(inUV) 50
52: 27(fvec2) Load 51
60: 59(ptr) AccessChain 56(gl_TessCoord) 11
61: 24(float) Load 60
62: 27(fvec2) CompositeConstruct 61 61
63: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 49 52 62
Store 30(uv1) 63
68: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 65 64(uv2) 35
70: 47(ptr) AccessChain 39(inUV) 69
71: 27(fvec2) Load 70
73: 47(ptr) AccessChain 39(inUV) 72
74: 27(fvec2) Load 73
75: 59(ptr) AccessChain 56(gl_TessCoord) 11
76: 24(float) Load 75
77: 27(fvec2) CompositeConstruct 76 76
78: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 71 74 77
Store 64(uv2) 78
84: 27(fvec2) Load 30(uv1)
85: 27(fvec2) Load 64(uv2)
86: 57(ptr) AccessChain 54(gl_TessCoord) 19
86: 59(ptr) AccessChain 56(gl_TessCoord) 19
87: 24(float) Load 86
88: 27(fvec2) CompositeConstruct 87 87
89: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 84 85 88
Store 80(outUV) 89
101: 53(ptr) AccessChain 98(inNormal) 44
102: 51(fvec3) Load 101
103: 53(ptr) AccessChain 98(inNormal) 48
104: 51(fvec3) Load 103
105: 57(ptr) AccessChain 54(gl_TessCoord) 11
106: 24(float) Load 105
107: 51(fvec3) CompositeConstruct 106 106 106
108: 51(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 102 104 107
Store 91(n1) 108
109: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 92 108 63
114: 53(ptr) AccessChain 98(inNormal) 68
115: 51(fvec3) Load 114
116: 53(ptr) AccessChain 98(inNormal) 71
117: 51(fvec3) Load 116
118: 57(ptr) AccessChain 54(gl_TessCoord) 11
119: 24(float) Load 118
120: 51(fvec3) CompositeConstruct 119 119 119
121: 51(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 115 117 120
Store 110(n2) 121
122: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 111 121 63
128: 51(fvec3) Load 91(n1)
129: 51(fvec3) Load 110(n2)
130: 57(ptr) AccessChain 54(gl_TessCoord) 19
95: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 92 91(n1) 35
102: 55(ptr) AccessChain 99(inNormal) 46
103: 53(fvec3) Load 102
104: 55(ptr) AccessChain 99(inNormal) 50
105: 53(fvec3) Load 104
106: 59(ptr) AccessChain 56(gl_TessCoord) 11
107: 24(float) Load 106
108: 53(fvec3) CompositeConstruct 107 107 107
109: 53(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 103 105 108
Store 91(n1) 109
114: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 111 110(n2) 35
115: 55(ptr) AccessChain 99(inNormal) 69
116: 53(fvec3) Load 115
117: 55(ptr) AccessChain 99(inNormal) 72
118: 53(fvec3) Load 117
119: 59(ptr) AccessChain 56(gl_TessCoord) 11
120: 24(float) Load 119
121: 53(fvec3) CompositeConstruct 120 120 120
122: 53(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 116 118 121
Store 110(n2) 122
128: 53(fvec3) Load 91(n1)
129: 53(fvec3) Load 110(n2)
130: 59(ptr) AccessChain 56(gl_TessCoord) 19
131: 24(float) Load 130
132: 51(fvec3) CompositeConstruct 131 131 131
133: 51(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 128 129 132
132: 53(fvec3) CompositeConstruct 131 131 131
133: 53(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 128 129 132
Store 124(outNormal) 133
163: 162(ptr) AccessChain 159(gl_in) 44 44
164: 134(fvec4) Load 163
165: 162(ptr) AccessChain 159(gl_in) 48 44
166: 134(fvec4) Load 165
167: 57(ptr) AccessChain 54(gl_TessCoord) 11
168: 24(float) Load 167
169: 134(fvec4) CompositeConstruct 168 168 168 168
170: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 164 166 169
Store 137(pos1) 170
171: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 138 170 63
176: 162(ptr) AccessChain 159(gl_in) 68 44
177: 134(fvec4) Load 176
178: 162(ptr) AccessChain 159(gl_in) 71 44
179: 134(fvec4) Load 178
180: 57(ptr) AccessChain 54(gl_TessCoord) 11
181: 24(float) Load 180
182: 134(fvec4) CompositeConstruct 181 181 181 181
183: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 177 179 182
Store 172(pos2) 183
184: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 173 183 63
189: 134(fvec4) Load 137(pos1)
190: 134(fvec4) Load 172(pos2)
191: 57(ptr) AccessChain 54(gl_TessCoord) 19
192: 24(float) Load 191
193: 134(fvec4) CompositeConstruct 192 192 192 192
194: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 189 190 193
Store 185(pos) 194
195: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 186 194 63
141: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 138 137(pos1) 35
164: 163(ptr) AccessChain 160(gl_in) 46 46
165: 134(fvec4) Load 164
166: 163(ptr) AccessChain 160(gl_in) 50 46
167: 134(fvec4) Load 166
168: 59(ptr) AccessChain 56(gl_TessCoord) 11
169: 24(float) Load 168
170: 134(fvec4) CompositeConstruct 169 169 169 169
171: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 165 167 170
Store 137(pos1) 171
176: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 173 172(pos2) 35
177: 163(ptr) AccessChain 160(gl_in) 69 46
178: 134(fvec4) Load 177
179: 163(ptr) AccessChain 160(gl_in) 72 46
180: 134(fvec4) Load 179
181: 59(ptr) AccessChain 56(gl_TessCoord) 11
182: 24(float) Load 181
183: 134(fvec4) CompositeConstruct 182 182 182 182
184: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 178 180 183
Store 172(pos2) 184
189: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 186 185(pos) 35
190: 134(fvec4) Load 137(pos1)
191: 134(fvec4) Load 172(pos2)
192: 59(ptr) AccessChain 56(gl_TessCoord) 19
193: 24(float) Load 192
194: 134(fvec4) CompositeConstruct 193 193 193 193
195: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 190 191 194
Store 185(pos) 195
210: 202 Load 207(displacementMap)
211: 27(fvec2) Load 80(outUV)
213: 134(fvec4) ImageSampleExplicitLod 210 211 Lod 212
@ -385,37 +385,37 @@ Validation failed
254: 24(float) FSub 253 250
255: 251(ptr) AccessChain 185(pos) 19
Store 255 254
270: 269(ptr) AccessChain 243(ubo) 44
270: 269(ptr) AccessChain 243(ubo) 46
271: 215 Load 270
272: 269(ptr) AccessChain 243(ubo) 48
272: 269(ptr) AccessChain 243(ubo) 50
273: 215 Load 272
274: 215 MatrixTimesMatrix 271 273
275: 134(fvec4) Load 185(pos)
276: 134(fvec4) MatrixTimesVector 274 275
278: 277(ptr) AccessChain 267 44
278: 277(ptr) AccessChain 267 46
Store 278 276
283: 134(fvec4) Load 185(pos)
284: 51(fvec3) VectorShuffle 283 283 0 1 2
285: 51(fvec3) FNegate 284
284: 53(fvec3) VectorShuffle 283 283 0 1 2
285: 53(fvec3) FNegate 284
Store 279(outViewVec) 285
291: 290(ptr) AccessChain 243(ubo) 71
291: 290(ptr) AccessChain 243(ubo) 72
292: 134(fvec4) Load 291
293: 51(fvec3) VectorShuffle 292 292 0 1 2
294: 51(fvec3) Load 279(outViewVec)
295: 51(fvec3) FAdd 293 294
296: 51(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 295
293: 53(fvec3) VectorShuffle 292 292 0 1 2
294: 53(fvec3) Load 279(outViewVec)
295: 53(fvec3) FAdd 293 294
296: 53(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 295
Store 286(outLightVec) 296
301: 134(fvec4) Load 185(pos)
302: 51(fvec3) VectorShuffle 301 301 0 1 2
302: 53(fvec3) VectorShuffle 301 301 0 1 2
Store 297(outWorldPos) 302
307: 269(ptr) AccessChain 243(ubo) 48
307: 269(ptr) AccessChain 243(ubo) 50
308: 215 Load 307
309: 134(fvec4) Load 185(pos)
310: 134(fvec4) MatrixTimesVector 308 309
311: 24(float) CompositeExtract 310 0
312: 24(float) CompositeExtract 310 1
313: 24(float) CompositeExtract 310 2
314: 51(fvec3) CompositeConstruct 311 312 313
314: 53(fvec3) CompositeConstruct 311 312 313
Store 303(outEyePos) 314
Return
FunctionEnd

View File

@ -2,14 +2,14 @@ spv.debuginfo.glsl.vert
Validation failed
// Module Version 10000
// Generated by (magic number): 8000a
// Id's are bound by 377
// Id's are bound by 374
Capability Shader
Extension "SPV_KHR_non_semantic_info"
1: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
2: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Vertex 13 "main" 30 36 40 47 55 68 248 265 270 295 309 327 362 370
EntryPoint Vertex 13 "main" 30 36 40 47 55 70 247 264 269 293 307 325 359 367
8: String "uint"
14: String "main"
17: String ""
@ -21,32 +21,32 @@ Validation failed
52: String "int"
57: String "instanceTexIndex"
66: String "s"
70: String "instanceRot"
82: String "modelview"
87: String "lightPos"
90: String "globSpeed"
94: String "UBO"
98: String "ubo"
72: String "instanceRot"
84: String "modelview"
89: String "lightPos"
92: String "globSpeed"
96: String "UBO"
100: String "ubo"
109: String "c"
123: String "mx"
158: String "my"
187: String "mz"
202: String "rotMat"
228: String "gRotMat"
246: String "locPos"
250: String "inPos"
261: String "pos"
267: String "instanceScale"
272: String "instancePos"
284: String "gl_Position"
287: String "gl_PointSize"
289: String "gl_CullDistance"
292: String "gl_PerVertex"
311: String "outNormal"
329: String "inNormal"
345: String "lPos"
364: String "outLightVec"
372: String "outViewVec"
157: String "my"
185: String "mz"
201: String "rotMat"
225: String "gRotMat"
244: String "locPos"
249: String "inPos"
259: String "pos"
266: String "instanceScale"
271: String "instancePos"
282: String "gl_Position"
285: String "gl_PointSize"
287: String "gl_CullDistance"
290: String "gl_PerVertex"
309: String "outNormal"
327: String "inNormal"
342: String "lPos"
361: String "outLightVec"
369: String "outViewVec"
Name 13 "main"
Name 30 "outColor"
Name 36 "inColor"
@ -54,66 +54,66 @@ Validation failed
Name 47 "inUV"
Name 55 "instanceTexIndex"
Name 64 "s"
Name 68 "instanceRot"
Name 80 "UBO"
MemberName 80(UBO) 0 "projection"
MemberName 80(UBO) 1 "modelview"
MemberName 80(UBO) 2 "lightPos"
MemberName 80(UBO) 3 "locSpeed"
MemberName 80(UBO) 4 "globSpeed"
Name 96 "ubo"
Name 70 "instanceRot"
Name 82 "UBO"
MemberName 82(UBO) 0 "projection"
MemberName 82(UBO) 1 "modelview"
MemberName 82(UBO) 2 "lightPos"
MemberName 82(UBO) 3 "locSpeed"
MemberName 82(UBO) 4 "globSpeed"
Name 98 "ubo"
Name 107 "c"
Name 121 "mx"
Name 156 "my"
Name 185 "mz"
Name 200 "rotMat"
Name 226 "gRotMat"
Name 244 "locPos"
Name 248 "inPos"
Name 259 "pos"
Name 265 "instanceScale"
Name 270 "instancePos"
Name 282 "gl_PerVertex"
MemberName 282(gl_PerVertex) 0 "gl_Position"
MemberName 282(gl_PerVertex) 1 "gl_PointSize"
MemberName 282(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 282(gl_PerVertex) 3 "gl_CullDistance"
Name 295 ""
Name 309 "outNormal"
Name 327 "inNormal"
Name 343 "lPos"
Name 362 "outLightVec"
Name 370 "outViewVec"
Name 155 "my"
Name 183 "mz"
Name 199 "rotMat"
Name 223 "gRotMat"
Name 242 "locPos"
Name 247 "inPos"
Name 257 "pos"
Name 264 "instanceScale"
Name 269 "instancePos"
Name 280 "gl_PerVertex"
MemberName 280(gl_PerVertex) 0 "gl_Position"
MemberName 280(gl_PerVertex) 1 "gl_PointSize"
MemberName 280(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 280(gl_PerVertex) 3 "gl_CullDistance"
Name 293 ""
Name 307 "outNormal"
Name 325 "inNormal"
Name 340 "lPos"
Name 359 "outLightVec"
Name 367 "outViewVec"
Decorate 30(outColor) Location 1
Decorate 36(inColor) Location 3
Decorate 40(outUV) Location 2
Decorate 47(inUV) Location 2
Decorate 55(instanceTexIndex) Location 7
Decorate 68(instanceRot) Location 5
MemberDecorate 80(UBO) 0 ColMajor
MemberDecorate 80(UBO) 0 Offset 0
MemberDecorate 80(UBO) 0 MatrixStride 16
MemberDecorate 80(UBO) 1 ColMajor
MemberDecorate 80(UBO) 1 Offset 64
MemberDecorate 80(UBO) 1 MatrixStride 16
MemberDecorate 80(UBO) 2 Offset 128
MemberDecorate 80(UBO) 3 Offset 144
MemberDecorate 80(UBO) 4 Offset 148
Decorate 80(UBO) Block
Decorate 96(ubo) DescriptorSet 0
Decorate 96(ubo) Binding 0
Decorate 248(inPos) Location 0
Decorate 265(instanceScale) Location 6
Decorate 270(instancePos) Location 4
MemberDecorate 282(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 282(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 282(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 282(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 282(gl_PerVertex) Block
Decorate 309(outNormal) Location 0
Decorate 327(inNormal) Location 1
Decorate 362(outLightVec) Location 4
Decorate 370(outViewVec) Location 3
Decorate 70(instanceRot) Location 5
MemberDecorate 82(UBO) 0 ColMajor
MemberDecorate 82(UBO) 0 Offset 0
MemberDecorate 82(UBO) 0 MatrixStride 16
MemberDecorate 82(UBO) 1 ColMajor
MemberDecorate 82(UBO) 1 Offset 64
MemberDecorate 82(UBO) 1 MatrixStride 16
MemberDecorate 82(UBO) 2 Offset 128
MemberDecorate 82(UBO) 3 Offset 144
MemberDecorate 82(UBO) 4 Offset 148
Decorate 82(UBO) Block
Decorate 98(ubo) DescriptorSet 0
Decorate 98(ubo) Binding 0
Decorate 247(inPos) Location 0
Decorate 264(instanceScale) Location 6
Decorate 269(instancePos) Location 4
MemberDecorate 280(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 280(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 280(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 280(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 280(gl_PerVertex) Block
Decorate 307(outNormal) Location 0
Decorate 325(inNormal) Location 1
Decorate 359(outLightVec) Location 4
Decorate 367(outViewVec) Location 3
3: TypeVoid
4: TypeFunction 3
6: TypeInt 32 0
@ -157,112 +157,112 @@ Validation failed
63: TypePointer Function 24(float)
67: 6(int) Constant 62
65: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 66 26 16 67 11 15 20
68(instanceRot): 35(ptr) Variable Input
69: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 70 28 16 67 11 18 70 68(instanceRot) 34
71: TypePointer Input 24(float)
74: TypeVector 24(float) 4
75: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(FSign) 26 20
76: TypeMatrix 74(fvec4) 4
78: TypeBool
79: 78(bool) ConstantTrue
77: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108 75 20 79
80(UBO): TypeStruct 76 76 74(fvec4) 24(float) 24(float)
83: 6(int) Constant 42
84: 6(int) Constant 7
81: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 82 77 16 83 84 11 11 12
85: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 82 77 16 83 84 11 11 12
88: 6(int) Constant 43
86: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 87 75 16 88 84 11 11 12
91: 6(int) Constant 45
89: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 90 26 16 91 34 11 11 12
92: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 90 26 16 91 34 11 11 12
93: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 94 19 16 67 11 18 94 11 12 81 85 86 89 92
95: TypePointer Uniform 80(UBO)
96(ubo): 95(ptr) Variable Uniform
97: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 98 93 16 67 11 18 98 96(ubo) 34
99: 51(int) Constant 3
100: TypePointer Uniform 24(float)
106: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(Sqrt)
69: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(Sqrt)
70(instanceRot): 35(ptr) Variable Input
71: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 72 28 16 67 11 18 72 70(instanceRot) 34
73: TypePointer Input 24(float)
76: TypeVector 24(float) 4
77: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(FSign) 26 20
78: TypeMatrix 76(fvec4) 4
80: TypeBool
81: 80(bool) ConstantTrue
79: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108 77 20 81
82(UBO): TypeStruct 78 78 76(fvec4) 24(float) 24(float)
85: 6(int) Constant 42
86: 6(int) Constant 7
83: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 84 79 16 85 86 11 11 12
87: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 84 79 16 85 86 11 11 12
90: 6(int) Constant 43
88: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 89 77 16 90 86 11 11 12
93: 6(int) Constant 45
91: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 92 26 16 93 34 11 11 12
94: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 92 26 16 93 34 11 11 12
95: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 96 19 16 67 11 18 96 11 12 83 87 88 91 94
97: TypePointer Uniform 82(UBO)
98(ubo): 97(ptr) Variable Uniform
99: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 100 95 16 67 11 18 100 98(ubo) 34
101: 51(int) Constant 3
102: TypePointer Uniform 24(float)
110: 6(int) Constant 63
108: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 109 26 16 110 11 15 20
118: TypeMatrix 27(fvec3) 3
119: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108 28 12 79
119: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108 28 12 81
120: TypePointer Function 118
124: 6(int) Constant 65
122: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 123 119 16 124 11 15 20
125: 51(int) Constant 0
128: 24(float) Constant 0
130: TypePointer Function 27(fvec3)
132: 51(int) Constant 1
138: 51(int) Constant 2
139: 24(float) Constant 1065353216
140: 27(fvec3) ConstantComposite 128 128 139
159: 6(int) Constant 73
157: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 158 119 16 159 11 15 20
164: 27(fvec3) ConstantComposite 128 139 128
188: 6(int) Constant 81
186: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 187 119 16 188 11 15 20
189: 27(fvec3) ConstantComposite 139 128 128
203: 6(int) Constant 85
201: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 202 119 16 203 11 15 20
212: 51(int) Constant 4
225: TypePointer Function 76
229: 6(int) Constant 90
227: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 228 77 16 229 11 15 20
233: TypePointer Function 74(fvec4)
235: 74(fvec4) ConstantComposite 128 139 128 128
242: 74(fvec4) ConstantComposite 128 128 128 139
247: 6(int) Constant 95
245: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 246 75 16 247 11 15 20
248(inPos): 35(ptr) Variable Input
249: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 250 28 16 247 11 18 250 248(inPos) 34
262: 6(int) Constant 96
260: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 261 75 16 262 11 15 20
265(instanceScale): 71(ptr) Variable Input
266: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 267 26 16 262 11 18 267 265(instanceScale) 34
270(instancePos): 35(ptr) Variable Input
271: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 272 28 16 262 11 18 272 270(instancePos) 34
280: TypeArray 24(float) 19
281: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 26 19
282(gl_PerVertex): TypeStruct 74(fvec4) 24(float) 280 280
285: 6(int) Constant 24
283: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 284 75 16 19 285 11 11 12
286: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 287 26 16 19 83 11 11 12
288: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 289 281 16 19 203 11 11 12
290: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 289 281 16 19 203 11 11 12
293: 6(int) Constant 98
291: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 292 19 16 293 11 18 292 11 12 283 286 288 290
294: TypePointer Output 282(gl_PerVertex)
295: 294(ptr) Variable Output
296: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 17 291 16 293 11 18 17 295 34
297: TypePointer Uniform 76
307: TypePointer Output 74(fvec4)
309(outNormal): 29(ptr) Variable Output
312: 6(int) Constant 99
310: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 311 28 16 312 11 18 311 309(outNormal) 34
327(inNormal): 35(ptr) Variable Input
328: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 329 28 16 312 11 18 329 327(inNormal) 34
346: 6(int) Constant 102
344: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 345 28 16 346 11 15 20
356: TypePointer Uniform 74(fvec4)
362(outLightVec): 29(ptr) Variable Output
365: 6(int) Constant 103
363: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 364 28 16 365 11 18 364 362(outLightVec) 34
370(outViewVec): 29(ptr) Variable Output
373: 6(int) Constant 104
371: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 372 28 16 373 11 18 372 370(outViewVec) 34
126: 51(int) Constant 0
129: 24(float) Constant 0
131: TypePointer Function 27(fvec3)
133: 51(int) Constant 1
139: 51(int) Constant 2
140: 24(float) Constant 1065353216
141: 27(fvec3) ConstantComposite 129 129 140
158: 6(int) Constant 73
156: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 157 119 16 158 11 15 20
164: 27(fvec3) ConstantComposite 129 140 129
186: 6(int) Constant 81
184: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 185 119 16 186 11 15 20
188: 27(fvec3) ConstantComposite 140 129 129
202: 6(int) Constant 85
200: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 201 119 16 202 11 15 20
211: 51(int) Constant 4
222: TypePointer Function 78
226: 6(int) Constant 90
224: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 225 79 16 226 11 15 20
231: TypePointer Function 76(fvec4)
233: 76(fvec4) ConstantComposite 129 140 129 129
240: 76(fvec4) ConstantComposite 129 129 129 140
245: 6(int) Constant 95
243: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 244 77 16 245 11 15 20
247(inPos): 35(ptr) Variable Input
248: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 249 28 16 245 11 18 249 247(inPos) 34
260: 6(int) Constant 96
258: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 259 77 16 260 11 15 20
264(instanceScale): 73(ptr) Variable Input
265: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 266 26 16 260 11 18 266 264(instanceScale) 34
269(instancePos): 35(ptr) Variable Input
270: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 271 28 16 260 11 18 271 269(instancePos) 34
278: TypeArray 24(float) 19
279: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 26 19
280(gl_PerVertex): TypeStruct 76(fvec4) 24(float) 278 278
283: 6(int) Constant 24
281: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 282 77 16 19 283 11 11 12
284: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 285 26 16 19 85 11 11 12
286: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 287 279 16 19 202 11 11 12
288: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 287 279 16 19 202 11 11 12
291: 6(int) Constant 98
289: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 290 19 16 291 11 18 290 11 12 281 284 286 288
292: TypePointer Output 280(gl_PerVertex)
293: 292(ptr) Variable Output
294: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 17 289 16 291 11 18 17 293 34
295: TypePointer Uniform 78
305: TypePointer Output 76(fvec4)
307(outNormal): 29(ptr) Variable Output
310: 6(int) Constant 99
308: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 309 28 16 310 11 18 309 307(outNormal) 34
325(inNormal): 35(ptr) Variable Input
326: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 327 28 16 310 11 18 327 325(inNormal) 34
343: 6(int) Constant 102
341: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 342 28 16 343 11 15 20
354: TypePointer Uniform 76(fvec4)
359(outLightVec): 29(ptr) Variable Output
362: 6(int) Constant 103
360: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 361 28 16 362 11 18 361 359(outLightVec) 34
367(outViewVec): 29(ptr) Variable Output
370: 6(int) Constant 104
368: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 369 28 16 370 11 18 369 367(outViewVec) 34
13(main): 3 Function None 4
22: Label
64(s): 63(ptr) Variable Function
107(c): 63(ptr) Variable Function
121(mx): 120(ptr) Variable Function
156(my): 120(ptr) Variable Function
185(mz): 120(ptr) Variable Function
200(rotMat): 120(ptr) Variable Function
226(gRotMat): 225(ptr) Variable Function
244(locPos): 233(ptr) Variable Function
259(pos): 233(ptr) Variable Function
343(lPos): 130(ptr) Variable Function
155(my): 120(ptr) Variable Function
183(mz): 120(ptr) Variable Function
199(rotMat): 120(ptr) Variable Function
223(gRotMat): 222(ptr) Variable Function
242(locPos): 231(ptr) Variable Function
257(pos): 231(ptr) Variable Function
340(lPos): 131(ptr) Variable Function
23: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101 15 13(main)
39: 27(fvec3) Load 36(inColor)
Store 30(outColor) 39
@ -273,215 +273,212 @@ Validation failed
61: 24(float) CompositeExtract 50 1
62: 27(fvec3) CompositeConstruct 60 61 59
Store 40(outUV) 62
72: 71(ptr) AccessChain 68(instanceRot) 11
73: 24(float) Load 72
101: 100(ptr) AccessChain 96(ubo) 99
102: 24(float) Load 101
103: 24(float) FAdd 73 102
104: 24(float) ExtInst 2(GLSL.std.450) 13(Sin) 103
Store 64(s) 104
105: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 65 104 106
111: 71(ptr) AccessChain 68(instanceRot) 11
112: 24(float) Load 111
113: 100(ptr) AccessChain 96(ubo) 99
114: 24(float) Load 113
115: 24(float) FAdd 112 114
116: 24(float) ExtInst 2(GLSL.std.450) 14(Cos) 115
Store 107(c) 116
117: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 108 116 106
126: 24(float) Load 107(c)
127: 24(float) Load 64(s)
129: 27(fvec3) CompositeConstruct 126 127 128
131: 130(ptr) AccessChain 121(mx) 125
Store 131 129
133: 24(float) Load 64(s)
134: 24(float) FNegate 133
135: 24(float) Load 107(c)
136: 27(fvec3) CompositeConstruct 134 135 128
137: 130(ptr) AccessChain 121(mx) 132
Store 137 136
141: 130(ptr) AccessChain 121(mx) 138
Store 141 140
142: 71(ptr) AccessChain 68(instanceRot) 19
143: 24(float) Load 142
144: 100(ptr) AccessChain 96(ubo) 99
145: 24(float) Load 144
146: 24(float) FAdd 143 145
147: 24(float) ExtInst 2(GLSL.std.450) 13(Sin) 146
Store 64(s) 147
148: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 65 147 106
149: 71(ptr) AccessChain 68(instanceRot) 19
68: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 65 64(s) 69
74: 73(ptr) AccessChain 70(instanceRot) 11
75: 24(float) Load 74
103: 102(ptr) AccessChain 98(ubo) 101
104: 24(float) Load 103
105: 24(float) FAdd 75 104
106: 24(float) ExtInst 2(GLSL.std.450) 13(Sin) 105
Store 64(s) 106
111: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 108 107(c) 69
112: 73(ptr) AccessChain 70(instanceRot) 11
113: 24(float) Load 112
114: 102(ptr) AccessChain 98(ubo) 101
115: 24(float) Load 114
116: 24(float) FAdd 113 115
117: 24(float) ExtInst 2(GLSL.std.450) 14(Cos) 116
Store 107(c) 117
125: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 122 121(mx) 69
127: 24(float) Load 107(c)
128: 24(float) Load 64(s)
130: 27(fvec3) CompositeConstruct 127 128 129
132: 131(ptr) AccessChain 121(mx) 126
Store 132 130
134: 24(float) Load 64(s)
135: 24(float) FNegate 134
136: 24(float) Load 107(c)
137: 27(fvec3) CompositeConstruct 135 136 129
138: 131(ptr) AccessChain 121(mx) 133
Store 138 137
142: 131(ptr) AccessChain 121(mx) 139
Store 142 141
143: 73(ptr) AccessChain 70(instanceRot) 19
144: 24(float) Load 143
145: 102(ptr) AccessChain 98(ubo) 101
146: 24(float) Load 145
147: 24(float) FAdd 144 146
148: 24(float) ExtInst 2(GLSL.std.450) 13(Sin) 147
Store 64(s) 148
149: 73(ptr) AccessChain 70(instanceRot) 19
150: 24(float) Load 149
151: 100(ptr) AccessChain 96(ubo) 99
151: 102(ptr) AccessChain 98(ubo) 101
152: 24(float) Load 151
153: 24(float) FAdd 150 152
154: 24(float) ExtInst 2(GLSL.std.450) 14(Cos) 153
Store 107(c) 154
155: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 108 154 106
159: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 156 155(my) 69
160: 24(float) Load 107(c)
161: 24(float) Load 64(s)
162: 27(fvec3) CompositeConstruct 160 128 161
163: 130(ptr) AccessChain 156(my) 125
162: 27(fvec3) CompositeConstruct 160 129 161
163: 131(ptr) AccessChain 155(my) 126
Store 163 162
165: 130(ptr) AccessChain 156(my) 132
165: 131(ptr) AccessChain 155(my) 133
Store 165 164
166: 24(float) Load 64(s)
167: 24(float) FNegate 166
168: 24(float) Load 107(c)
169: 27(fvec3) CompositeConstruct 167 128 168
170: 130(ptr) AccessChain 156(my) 138
169: 27(fvec3) CompositeConstruct 167 129 168
170: 131(ptr) AccessChain 155(my) 139
Store 170 169
171: 71(ptr) AccessChain 68(instanceRot) 21
171: 73(ptr) AccessChain 70(instanceRot) 21
172: 24(float) Load 171
173: 100(ptr) AccessChain 96(ubo) 99
173: 102(ptr) AccessChain 98(ubo) 101
174: 24(float) Load 173
175: 24(float) FAdd 172 174
176: 24(float) ExtInst 2(GLSL.std.450) 13(Sin) 175
Store 64(s) 176
177: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 65 176 106
178: 71(ptr) AccessChain 68(instanceRot) 21
179: 24(float) Load 178
180: 100(ptr) AccessChain 96(ubo) 99
181: 24(float) Load 180
182: 24(float) FAdd 179 181
183: 24(float) ExtInst 2(GLSL.std.450) 14(Cos) 182
Store 107(c) 183
184: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 108 183 106
190: 130(ptr) AccessChain 185(mz) 125
Store 190 189
191: 24(float) Load 107(c)
192: 24(float) Load 64(s)
193: 27(fvec3) CompositeConstruct 128 191 192
194: 130(ptr) AccessChain 185(mz) 132
Store 194 193
195: 24(float) Load 64(s)
196: 24(float) FNegate 195
197: 24(float) Load 107(c)
198: 27(fvec3) CompositeConstruct 128 196 197
199: 130(ptr) AccessChain 185(mz) 138
Store 199 198
204: 118 Load 185(mz)
205: 118 Load 156(my)
177: 73(ptr) AccessChain 70(instanceRot) 21
178: 24(float) Load 177
179: 102(ptr) AccessChain 98(ubo) 101
180: 24(float) Load 179
181: 24(float) FAdd 178 180
182: 24(float) ExtInst 2(GLSL.std.450) 14(Cos) 181
Store 107(c) 182
187: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 184 183(mz) 69
189: 131(ptr) AccessChain 183(mz) 126
Store 189 188
190: 24(float) Load 107(c)
191: 24(float) Load 64(s)
192: 27(fvec3) CompositeConstruct 129 190 191
193: 131(ptr) AccessChain 183(mz) 133
Store 193 192
194: 24(float) Load 64(s)
195: 24(float) FNegate 194
196: 24(float) Load 107(c)
197: 27(fvec3) CompositeConstruct 129 195 196
198: 131(ptr) AccessChain 183(mz) 139
Store 198 197
203: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 200 199(rotMat) 69
204: 118 Load 183(mz)
205: 118 Load 155(my)
206: 118 MatrixTimesMatrix 204 205
207: 118 Load 121(mx)
208: 118 MatrixTimesMatrix 206 207
Store 200(rotMat) 208
209: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 201 208 106
210: 71(ptr) AccessChain 68(instanceRot) 19
211: 24(float) Load 210
213: 100(ptr) AccessChain 96(ubo) 212
214: 24(float) Load 213
215: 24(float) FAdd 211 214
216: 24(float) ExtInst 2(GLSL.std.450) 13(Sin) 215
Store 64(s) 216
217: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 65 216 106
218: 71(ptr) AccessChain 68(instanceRot) 19
Store 199(rotMat) 208
209: 73(ptr) AccessChain 70(instanceRot) 19
210: 24(float) Load 209
212: 102(ptr) AccessChain 98(ubo) 211
213: 24(float) Load 212
214: 24(float) FAdd 210 213
215: 24(float) ExtInst 2(GLSL.std.450) 13(Sin) 214
Store 64(s) 215
216: 73(ptr) AccessChain 70(instanceRot) 19
217: 24(float) Load 216
218: 102(ptr) AccessChain 98(ubo) 211
219: 24(float) Load 218
220: 100(ptr) AccessChain 96(ubo) 212
221: 24(float) Load 220
222: 24(float) FAdd 219 221
223: 24(float) ExtInst 2(GLSL.std.450) 14(Cos) 222
Store 107(c) 223
224: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 108 223 106
230: 24(float) Load 107(c)
231: 24(float) Load 64(s)
232: 74(fvec4) CompositeConstruct 230 128 231 128
234: 233(ptr) AccessChain 226(gRotMat) 125
Store 234 232
236: 233(ptr) AccessChain 226(gRotMat) 132
Store 236 235
237: 24(float) Load 64(s)
238: 24(float) FNegate 237
239: 24(float) Load 107(c)
240: 74(fvec4) CompositeConstruct 238 128 239 128
241: 233(ptr) AccessChain 226(gRotMat) 138
220: 24(float) FAdd 217 219
221: 24(float) ExtInst 2(GLSL.std.450) 14(Cos) 220
Store 107(c) 221
227: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 224 223(gRotMat) 69
228: 24(float) Load 107(c)
229: 24(float) Load 64(s)
230: 76(fvec4) CompositeConstruct 228 129 229 129
232: 231(ptr) AccessChain 223(gRotMat) 126
Store 232 230
234: 231(ptr) AccessChain 223(gRotMat) 133
Store 234 233
235: 24(float) Load 64(s)
236: 24(float) FNegate 235
237: 24(float) Load 107(c)
238: 76(fvec4) CompositeConstruct 236 129 237 129
239: 231(ptr) AccessChain 223(gRotMat) 139
Store 239 238
241: 231(ptr) AccessChain 223(gRotMat) 101
Store 241 240
243: 233(ptr) AccessChain 226(gRotMat) 99
Store 243 242
251: 27(fvec3) Load 248(inPos)
252: 118 Load 200(rotMat)
253: 27(fvec3) VectorTimesMatrix 251 252
254: 24(float) CompositeExtract 253 0
255: 24(float) CompositeExtract 253 1
256: 24(float) CompositeExtract 253 2
257: 74(fvec4) CompositeConstruct 254 255 256 139
Store 244(locPos) 257
258: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 245 257 106
263: 74(fvec4) Load 244(locPos)
264: 27(fvec3) VectorShuffle 263 263 0 1 2
268: 24(float) Load 265(instanceScale)
269: 27(fvec3) VectorTimesScalar 264 268
273: 27(fvec3) Load 270(instancePos)
274: 27(fvec3) FAdd 269 273
275: 24(float) CompositeExtract 274 0
276: 24(float) CompositeExtract 274 1
277: 24(float) CompositeExtract 274 2
278: 74(fvec4) CompositeConstruct 275 276 277 139
Store 259(pos) 278
279: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 260 278 106
298: 297(ptr) AccessChain 96(ubo) 125
299: 76 Load 298
300: 297(ptr) AccessChain 96(ubo) 132
301: 76 Load 300
302: 76 MatrixTimesMatrix 299 301
303: 76 Load 226(gRotMat)
304: 76 MatrixTimesMatrix 302 303
305: 74(fvec4) Load 259(pos)
306: 74(fvec4) MatrixTimesVector 304 305
308: 307(ptr) AccessChain 295 125
Store 308 306
313: 297(ptr) AccessChain 96(ubo) 132
314: 76 Load 313
315: 76 Load 226(gRotMat)
316: 76 MatrixTimesMatrix 314 315
317: 74(fvec4) CompositeExtract 316 0
246: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 243 242(locPos) 69
250: 27(fvec3) Load 247(inPos)
251: 118 Load 199(rotMat)
252: 27(fvec3) VectorTimesMatrix 250 251
253: 24(float) CompositeExtract 252 0
254: 24(float) CompositeExtract 252 1
255: 24(float) CompositeExtract 252 2
256: 76(fvec4) CompositeConstruct 253 254 255 140
Store 242(locPos) 256
261: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 258 257(pos) 69
262: 76(fvec4) Load 242(locPos)
263: 27(fvec3) VectorShuffle 262 262 0 1 2
267: 24(float) Load 264(instanceScale)
268: 27(fvec3) VectorTimesScalar 263 267
272: 27(fvec3) Load 269(instancePos)
273: 27(fvec3) FAdd 268 272
274: 24(float) CompositeExtract 273 0
275: 24(float) CompositeExtract 273 1
276: 24(float) CompositeExtract 273 2
277: 76(fvec4) CompositeConstruct 274 275 276 140
Store 257(pos) 277
296: 295(ptr) AccessChain 98(ubo) 126
297: 78 Load 296
298: 295(ptr) AccessChain 98(ubo) 133
299: 78 Load 298
300: 78 MatrixTimesMatrix 297 299
301: 78 Load 223(gRotMat)
302: 78 MatrixTimesMatrix 300 301
303: 76(fvec4) Load 257(pos)
304: 76(fvec4) MatrixTimesVector 302 303
306: 305(ptr) AccessChain 293 126
Store 306 304
311: 295(ptr) AccessChain 98(ubo) 133
312: 78 Load 311
313: 78 Load 223(gRotMat)
314: 78 MatrixTimesMatrix 312 313
315: 76(fvec4) CompositeExtract 314 0
316: 27(fvec3) VectorShuffle 315 315 0 1 2
317: 76(fvec4) CompositeExtract 314 1
318: 27(fvec3) VectorShuffle 317 317 0 1 2
319: 74(fvec4) CompositeExtract 316 1
319: 76(fvec4) CompositeExtract 314 2
320: 27(fvec3) VectorShuffle 319 319 0 1 2
321: 74(fvec4) CompositeExtract 316 2
322: 27(fvec3) VectorShuffle 321 321 0 1 2
323: 118 CompositeConstruct 318 320 322
324: 118 Load 200(rotMat)
325: 118 ExtInst 2(GLSL.std.450) 34(MatrixInverse) 324
326: 118 MatrixTimesMatrix 323 325
330: 27(fvec3) Load 327(inNormal)
331: 27(fvec3) MatrixTimesVector 326 330
Store 309(outNormal) 331
332: 297(ptr) AccessChain 96(ubo) 132
333: 76 Load 332
334: 27(fvec3) Load 248(inPos)
335: 27(fvec3) Load 270(instancePos)
336: 27(fvec3) FAdd 334 335
337: 24(float) CompositeExtract 336 0
338: 24(float) CompositeExtract 336 1
339: 24(float) CompositeExtract 336 2
340: 74(fvec4) CompositeConstruct 337 338 339 139
341: 74(fvec4) MatrixTimesVector 333 340
Store 259(pos) 341
342: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 260 341 106
347: 297(ptr) AccessChain 96(ubo) 132
348: 76 Load 347
349: 74(fvec4) CompositeExtract 348 0
321: 118 CompositeConstruct 316 318 320
322: 118 Load 199(rotMat)
323: 118 ExtInst 2(GLSL.std.450) 34(MatrixInverse) 322
324: 118 MatrixTimesMatrix 321 323
328: 27(fvec3) Load 325(inNormal)
329: 27(fvec3) MatrixTimesVector 324 328
Store 307(outNormal) 329
330: 295(ptr) AccessChain 98(ubo) 133
331: 78 Load 330
332: 27(fvec3) Load 247(inPos)
333: 27(fvec3) Load 269(instancePos)
334: 27(fvec3) FAdd 332 333
335: 24(float) CompositeExtract 334 0
336: 24(float) CompositeExtract 334 1
337: 24(float) CompositeExtract 334 2
338: 76(fvec4) CompositeConstruct 335 336 337 140
339: 76(fvec4) MatrixTimesVector 331 338
Store 257(pos) 339
344: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 341 340(lPos) 69
345: 295(ptr) AccessChain 98(ubo) 133
346: 78 Load 345
347: 76(fvec4) CompositeExtract 346 0
348: 27(fvec3) VectorShuffle 347 347 0 1 2
349: 76(fvec4) CompositeExtract 346 1
350: 27(fvec3) VectorShuffle 349 349 0 1 2
351: 74(fvec4) CompositeExtract 348 1
351: 76(fvec4) CompositeExtract 346 2
352: 27(fvec3) VectorShuffle 351 351 0 1 2
353: 74(fvec4) CompositeExtract 348 2
354: 27(fvec3) VectorShuffle 353 353 0 1 2
355: 118 CompositeConstruct 350 352 354
357: 356(ptr) AccessChain 96(ubo) 138
358: 74(fvec4) Load 357
359: 27(fvec3) VectorShuffle 358 358 0 1 2
360: 27(fvec3) MatrixTimesVector 355 359
Store 343(lPos) 360
361: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 344 360 106
366: 27(fvec3) Load 343(lPos)
367: 74(fvec4) Load 259(pos)
368: 27(fvec3) VectorShuffle 367 367 0 1 2
369: 27(fvec3) FSub 366 368
Store 362(outLightVec) 369
374: 74(fvec4) Load 259(pos)
375: 27(fvec3) VectorShuffle 374 374 0 1 2
376: 27(fvec3) FNegate 375
Store 370(outViewVec) 376
353: 118 CompositeConstruct 348 350 352
355: 354(ptr) AccessChain 98(ubo) 139
356: 76(fvec4) Load 355
357: 27(fvec3) VectorShuffle 356 356 0 1 2
358: 27(fvec3) MatrixTimesVector 353 357
Store 340(lPos) 358
363: 27(fvec3) Load 340(lPos)
364: 76(fvec4) Load 257(pos)
365: 27(fvec3) VectorShuffle 364 364 0 1 2
366: 27(fvec3) FSub 363 365
Store 359(outLightVec) 366
371: 76(fvec4) Load 257(pos)
372: 27(fvec3) VectorShuffle 371 371 0 1 2
373: 27(fvec3) FNegate 372
Store 367(outViewVec) 373
Return
FunctionEnd

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,7 @@ spv.debuginfo.hlsl.geom
Validation failed
// Module Version 10000
// Generated by (magic number): 8000a
// Id's are bound by 323
// Id's are bound by 322
Capability Geometry
Capability MultiViewport
@ -10,7 +10,7 @@ Validation failed
1: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
2: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Geometry 5 "main" 228 235 240 246 251 256 261 272 279 284 308 311
EntryPoint Geometry 5 "main" 228 235 240 246 251 256 261 271 278 283 307 310
ExecutionMode 5 Triangles
ExecutionMode 5 Invocations 2
ExecutionMode 5 OutputTriangleStrip
@ -84,19 +84,19 @@ Validation failed
Name 251 "outStream.Color"
Name 256 "outStream.ViewVec"
Name 261 "outStream.LightVec"
Name 269 "input"
Name 272 "input.Pos"
Name 279 "input.Normal"
Name 284 "input.Color"
Name 306 "InvocationID"
Name 308 "InvocationID"
Name 268 "input"
Name 271 "input.Pos"
Name 278 "input.Normal"
Name 283 "input.Color"
Name 305 "InvocationID"
Name 307 "InvocationID"
Name 309 "PrimitiveID"
Name 310 "PrimitiveID"
Name 311 "PrimitiveID"
Name 313 "outStream"
Name 314 "param"
Name 312 "outStream"
Name 313 "param"
Name 315 "param"
Name 316 "param"
Name 317 "param"
Name 319 "param"
Name 318 "param"
Decorate 124 ArrayStride 64
Decorate 126 ArrayStride 64
MemberDecorate 128(UBO) 0 RowMajor
@ -117,11 +117,11 @@ Validation failed
Decorate 251(outStream.Color) Location 1
Decorate 256(outStream.ViewVec) Location 2
Decorate 261(outStream.LightVec) Location 3
Decorate 272(input.Pos) BuiltIn Position
Decorate 279(input.Normal) Location 0
Decorate 284(input.Color) Location 1
Decorate 308(InvocationID) BuiltIn InvocationId
Decorate 311(PrimitiveID) BuiltIn PrimitiveId
Decorate 271(input.Pos) BuiltIn Position
Decorate 278(input.Normal) Location 0
Decorate 283(input.Color) Location 1
Decorate 307(InvocationID) BuiltIn InvocationId
Decorate 310(PrimitiveID) BuiltIn PrimitiveId
3: TypeVoid
4: TypeFunction 3
7: TypeFloat 32
@ -182,16 +182,16 @@ Validation failed
89: TypePointer Function 86(int)
93: 10(int) Constant 57
91: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 92 88 25 93 15 68 18
94: 86(int) Constant 0
95: 86(int) Constant 0
102: 86(int) Constant 3
103: TypeBool
105: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 104 13 78 15
110: 10(int) Constant 59
108: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 109 56 25 110 15 68 18
111: 7(float) Constant 0
112: 17(fvec4) ConstantComposite 111 111 111 111
113: 20(fvec3) ConstantComposite 111 111 111
114:42(GSOutput) ConstantComposite 112 15 15 113 113 113 113
112: 7(float) Constant 0
113: 17(fvec4) ConstantComposite 112 112 112 112
114: 20(fvec3) ConstantComposite 112 112 112
115:42(GSOutput) ConstantComposite 113 15 15 114 114 114 114
117: 86(int) Constant 1
118: TypePointer Function 20(fvec3)
121: TypeMatrix 17(fvec4) 4
@ -233,7 +233,7 @@ Validation failed
184: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 185 19 25 186 15 68 18
196: 10(int) Constant 66
194: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 195 21 25 196 15 68 18
197: TypePointer Uniform 17(fvec4)
198: TypePointer Uniform 17(fvec4)
206: 86(int) Constant 6
212: 86(int) Constant 5
227: TypePointer Output 17(fvec4)
@ -254,77 +254,77 @@ Validation failed
257: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 258 21 25 231 15 37 258 256(outStream.ViewVec) 152
261(outStream.LightVec): 245(ptr) Variable Output
262: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 263 21 25 231 15 37 263 261(outStream.LightVec) 152
270: TypeArray 17(fvec4) 16
271: TypePointer Input 270
272(input.Pos): 271(ptr) Variable Input
273: TypePointer Input 17(fvec4)
277: TypeArray 20(fvec3) 16
278: TypePointer Input 277
279(input.Normal): 278(ptr) Variable Input
280: TypePointer Input 20(fvec3)
284(input.Color): 278(ptr) Variable Input
307: TypePointer Input 10(int)
308(InvocationID): 307(ptr) Variable Input
311(PrimitiveID): 307(ptr) Variable Input
269: TypeArray 17(fvec4) 16
270: TypePointer Input 269
271(input.Pos): 270(ptr) Variable Input
272: TypePointer Input 17(fvec4)
276: TypeArray 20(fvec3) 16
277: TypePointer Input 276
278(input.Normal): 277(ptr) Variable Input
279: TypePointer Input 20(fvec3)
283(input.Color): 277(ptr) Variable Input
306: TypePointer Input 10(int)
307(InvocationID): 306(ptr) Variable Input
310(PrimitiveID): 306(ptr) Variable Input
5(main): 3 Function None 4
6: Label
269(input): 41(ptr) Variable Function
306(InvocationID): 59(ptr) Variable Function
310(PrimitiveID): 59(ptr) Variable Function
313(outStream): 58(ptr) Variable Function
314(param): 41(ptr) Variable Function
316(param): 58(ptr) Variable Function
317(param): 59(ptr) Variable Function
319(param): 59(ptr) Variable Function
274: 273(ptr) AccessChain 272(input.Pos) 94
275: 17(fvec4) Load 274
276: 174(ptr) AccessChain 269(input) 94 94
Store 276 275
281: 280(ptr) AccessChain 279(input.Normal) 94
282: 20(fvec3) Load 281
283: 118(ptr) AccessChain 269(input) 94 117
Store 283 282
285: 280(ptr) AccessChain 284(input.Color) 94
286: 20(fvec3) Load 285
287: 118(ptr) AccessChain 269(input) 94 170
Store 287 286
288: 273(ptr) AccessChain 272(input.Pos) 117
289: 17(fvec4) Load 288
290: 174(ptr) AccessChain 269(input) 117 94
Store 290 289
291: 280(ptr) AccessChain 279(input.Normal) 117
292: 20(fvec3) Load 291
293: 118(ptr) AccessChain 269(input) 117 117
Store 293 292
294: 280(ptr) AccessChain 284(input.Color) 117
295: 20(fvec3) Load 294
296: 118(ptr) AccessChain 269(input) 117 170
Store 296 295
297: 273(ptr) AccessChain 272(input.Pos) 170
298: 17(fvec4) Load 297
299: 174(ptr) AccessChain 269(input) 170 94
Store 299 298
300: 280(ptr) AccessChain 279(input.Normal) 170
301: 20(fvec3) Load 300
302: 118(ptr) AccessChain 269(input) 170 117
Store 302 301
303: 280(ptr) AccessChain 284(input.Color) 170
304: 20(fvec3) Load 303
305: 118(ptr) AccessChain 269(input) 170 170
Store 305 304
309: 10(int) Load 308(InvocationID)
Store 306(InvocationID) 309
312: 10(int) Load 311(PrimitiveID)
Store 310(PrimitiveID) 312
315: 39 Load 269(input)
Store 314(param) 315
318: 10(int) Load 306(InvocationID)
Store 317(param) 318
320: 10(int) Load 310(PrimitiveID)
Store 319(param) 320
321: 3 FunctionCall 66(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;) 314(param) 316(param) 317(param) 319(param)
322:42(GSOutput) Load 316(param)
Store 313(outStream) 322
268(input): 41(ptr) Variable Function
305(InvocationID): 59(ptr) Variable Function
309(PrimitiveID): 59(ptr) Variable Function
312(outStream): 58(ptr) Variable Function
313(param): 41(ptr) Variable Function
315(param): 58(ptr) Variable Function
316(param): 59(ptr) Variable Function
318(param): 59(ptr) Variable Function
273: 272(ptr) AccessChain 271(input.Pos) 95
274: 17(fvec4) Load 273
275: 174(ptr) AccessChain 268(input) 95 95
Store 275 274
280: 279(ptr) AccessChain 278(input.Normal) 95
281: 20(fvec3) Load 280
282: 118(ptr) AccessChain 268(input) 95 117
Store 282 281
284: 279(ptr) AccessChain 283(input.Color) 95
285: 20(fvec3) Load 284
286: 118(ptr) AccessChain 268(input) 95 170
Store 286 285
287: 272(ptr) AccessChain 271(input.Pos) 117
288: 17(fvec4) Load 287
289: 174(ptr) AccessChain 268(input) 117 95
Store 289 288
290: 279(ptr) AccessChain 278(input.Normal) 117
291: 20(fvec3) Load 290
292: 118(ptr) AccessChain 268(input) 117 117
Store 292 291
293: 279(ptr) AccessChain 283(input.Color) 117
294: 20(fvec3) Load 293
295: 118(ptr) AccessChain 268(input) 117 170
Store 295 294
296: 272(ptr) AccessChain 271(input.Pos) 170
297: 17(fvec4) Load 296
298: 174(ptr) AccessChain 268(input) 170 95
Store 298 297
299: 279(ptr) AccessChain 278(input.Normal) 170
300: 20(fvec3) Load 299
301: 118(ptr) AccessChain 268(input) 170 117
Store 301 300
302: 279(ptr) AccessChain 283(input.Color) 170
303: 20(fvec3) Load 302
304: 118(ptr) AccessChain 268(input) 170 170
Store 304 303
308: 10(int) Load 307(InvocationID)
Store 305(InvocationID) 308
311: 10(int) Load 310(PrimitiveID)
Store 309(PrimitiveID) 311
314: 39 Load 268(input)
Store 313(param) 314
317: 10(int) Load 305(InvocationID)
Store 316(param) 317
319: 10(int) Load 309(PrimitiveID)
Store 318(param) 319
320: 3 FunctionCall 66(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;) 313(param) 315(param) 316(param) 318(param)
321:42(GSOutput) Load 315(param)
Store 312(outStream) 321
Return
FunctionEnd
66(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;): 3 Function None 60
@ -345,8 +345,8 @@ Validation failed
82: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 80 64(InvocationID) 75
84: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 83 65(PrimitiveID) 75
85: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101 68 66(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;)
Store 90(i) 94
95: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 91 94 75
94: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 91 90(i) 75
Store 90(i) 95
Branch 96
96: Label
LoopMerge 98 99 None
@ -356,13 +356,13 @@ Validation failed
106: 103(bool) SLessThan 101 102
BranchConditional 106 97 98
97: Label
Store 107(output) 114
115: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 108 114 75
111: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 108 107(output) 75
Store 107(output) 115
116: 86(int) Load 90(i)
119: 118(ptr) AccessChain 62(input) 116 117
120: 20(fvec3) Load 119
153: 10(int) Load 64(InvocationID)
155: 154(ptr) AccessChain 150 94 117 153
155: 154(ptr) AccessChain 150 95 117 153
156: 121 Load 155
159: 17(fvec4) CompositeExtract 156 0
160: 20(fvec3) VectorShuffle 159 159 0 1 2
@ -379,27 +379,27 @@ Validation failed
172: 20(fvec3) Load 171
173: 118(ptr) AccessChain 107(output) 168
Store 173 172
179: 86(int) Load 90(i)
180: 174(ptr) AccessChain 62(input) 179 94
181: 17(fvec4) Load 180
Store 175(pos) 181
182: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 176 181 75
187: 17(fvec4) Load 175(pos)
188: 10(int) Load 64(InvocationID)
189: 154(ptr) AccessChain 150 94 117 188
190: 121 Load 189
191: 17(fvec4) VectorTimesMatrix 187 190
Store 183(worldPos) 191
192: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 184 191 75
198: 197(ptr) AccessChain 150 94 170
199: 17(fvec4) Load 198
200: 10(int) Load 64(InvocationID)
201: 154(ptr) AccessChain 150 94 117 200
202: 121 Load 201
203: 17(fvec4) VectorTimesMatrix 199 202
204: 20(fvec3) VectorShuffle 203 203 0 1 2
Store 193(lPos) 204
205: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 194 204 75
179: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 176 175(pos) 75
180: 86(int) Load 90(i)
181: 174(ptr) AccessChain 62(input) 180 95
182: 17(fvec4) Load 181
Store 175(pos) 182
187: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 184 183(worldPos) 75
188: 17(fvec4) Load 175(pos)
189: 10(int) Load 64(InvocationID)
190: 154(ptr) AccessChain 150 95 117 189
191: 121 Load 190
192: 17(fvec4) VectorTimesMatrix 188 191
Store 183(worldPos) 192
197: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 194 193(lPos) 75
199: 198(ptr) AccessChain 150 95 170
200: 17(fvec4) Load 199
201: 10(int) Load 64(InvocationID)
202: 154(ptr) AccessChain 150 95 117 201
203: 121 Load 202
204: 17(fvec4) VectorTimesMatrix 200 203
205: 20(fvec3) VectorShuffle 204 204 0 1 2
Store 193(lPos) 205
207: 20(fvec3) Load 193(lPos)
208: 17(fvec4) Load 183(worldPos)
209: 20(fvec3) VectorShuffle 208 208 0 1 2
@ -413,10 +413,10 @@ Validation failed
Store 216 215
217: 17(fvec4) Load 183(worldPos)
218: 10(int) Load 64(InvocationID)
219: 154(ptr) AccessChain 150 94 94 218
219: 154(ptr) AccessChain 150 95 95 218
220: 121 Load 219
221: 17(fvec4) VectorTimesMatrix 217 220
222: 174(ptr) AccessChain 107(output) 94
222: 174(ptr) AccessChain 107(output) 95
Store 222 221
223: 10(int) Load 64(InvocationID)
224: 59(ptr) AccessChain 107(output) 117
@ -424,7 +424,7 @@ Validation failed
225: 10(int) Load 65(PrimitiveID)
226: 59(ptr) AccessChain 107(output) 170
Store 226 225
232: 174(ptr) AccessChain 107(output) 94
232: 174(ptr) AccessChain 107(output) 95
233: 17(fvec4) Load 232
Store 228(outStream.Pos) 233
238: 59(ptr) AccessChain 107(output) 117
@ -451,7 +451,6 @@ Validation failed
266: 86(int) Load 90(i)
267: 86(int) IAdd 266 117
Store 90(i) 267
268: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 91 267 75
Branch 96
98: Label
EndPrimitive

File diff suppressed because it is too large Load Diff

View File

@ -29,7 +29,7 @@ Validation failed
97: String "patch"
103: String "output"
113: String "uv1"
116: String "int"
117: String "int"
131: String "uv2"
151: String "n1"
162: String "n2"
@ -220,22 +220,22 @@ Validation failed
100: TypePointer Function 62(DSOutput)
104: 10(int) Constant 70
102: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 103 76 26 104 15 85 17
105: 7(float) Constant 0
106: 42(fvec4) ConstantComposite 105 105 105 105
107: 44(fvec3) ConstantComposite 105 105 105
108: 39(fvec2) ConstantComposite 105 105
109:62(DSOutput) ConstantComposite 106 107 108 107 107 107 107
106: 7(float) Constant 0
107: 42(fvec4) ConstantComposite 106 106 106 106
108: 44(fvec3) ConstantComposite 106 106 106
109: 39(fvec2) ConstantComposite 106 106
110:62(DSOutput) ConstantComposite 107 108 109 108 108 108 108
114: 10(int) Constant 71
112: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 113 40 26 114 15 85 17
115: TypeInt 32 1
117: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 116 13 17 15
118: 115(int) Constant 0
119: 115(int) Constant 2
121: 115(int) Constant 1
123: TypePointer Function 7(float)
116: TypeInt 32 1
118: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 117 13 17 15
119: 116(int) Constant 0
120: 116(int) Constant 2
122: 116(int) Constant 1
124: TypePointer Function 7(float)
132: 10(int) Constant 72
130: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 131 40 26 132 15 85 17
133: 115(int) Constant 3
134: 116(int) Constant 3
148: TypePointer Function 44(fvec3)
152: 10(int) Constant 75
150: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 151 45 26 152 15 85 17
@ -292,12 +292,12 @@ Validation failed
275: TypePointer Uniform 271(ubo)
276: 275(ptr) Variable Uniform
277: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 27 274 26 215 15 36 27 276 222
278: 115(int) Constant 4
278: 116(int) Constant 4
279: TypePointer Uniform 7(float)
288: TypePointer Uniform 242
300: TypePointer Uniform 42(fvec4)
309: 115(int) Constant 6
313: 115(int) Constant 5
309: 116(int) Constant 6
313: 116(int) Constant 5
324: TypePointer Input 18
325(input.TessLevelOuter): 324(ptr) Variable Input
326: TypePointer Input 7(float)
@ -335,82 +335,82 @@ Validation failed
403(flattenTemp): 100(ptr) Variable Function
405(param): 38(ptr) Variable Function
407(param): 41(ptr) Variable Function
327: 326(ptr) AccessChain 325(input.TessLevelOuter) 118
327: 326(ptr) AccessChain 325(input.TessLevelOuter) 119
328: 7(float) Load 327
329: 123(ptr) AccessChain 323(input) 118 118
329: 124(ptr) AccessChain 323(input) 119 119
Store 329 328
330: 326(ptr) AccessChain 325(input.TessLevelOuter) 121
330: 326(ptr) AccessChain 325(input.TessLevelOuter) 122
331: 7(float) Load 330
332: 123(ptr) AccessChain 323(input) 118 121
332: 124(ptr) AccessChain 323(input) 119 122
Store 332 331
333: 326(ptr) AccessChain 325(input.TessLevelOuter) 119
333: 326(ptr) AccessChain 325(input.TessLevelOuter) 120
334: 7(float) Load 333
335: 123(ptr) AccessChain 323(input) 118 119
335: 124(ptr) AccessChain 323(input) 119 120
Store 335 334
336: 326(ptr) AccessChain 325(input.TessLevelOuter) 133
336: 326(ptr) AccessChain 325(input.TessLevelOuter) 134
337: 7(float) Load 336
338: 123(ptr) AccessChain 323(input) 118 133
338: 124(ptr) AccessChain 323(input) 119 134
Store 338 337
341: 326(ptr) AccessChain 340(input.TessLevelInner) 118
341: 326(ptr) AccessChain 340(input.TessLevelInner) 119
342: 7(float) Load 341
343: 123(ptr) AccessChain 323(input) 121 118
343: 124(ptr) AccessChain 323(input) 122 119
Store 343 342
344: 326(ptr) AccessChain 340(input.TessLevelInner) 121
344: 326(ptr) AccessChain 340(input.TessLevelInner) 122
345: 7(float) Load 344
346: 123(ptr) AccessChain 323(input) 121 121
346: 124(ptr) AccessChain 323(input) 122 122
Store 346 345
350: 44(fvec3) Load 349(TessCoord)
351: 7(float) CompositeExtract 350 0
352: 7(float) CompositeExtract 350 1
353: 39(fvec2) CompositeConstruct 351 352
Store 347(TessCoord) 353
360: 359(ptr) AccessChain 358(patch.Pos) 118
360: 359(ptr) AccessChain 358(patch.Pos) 119
361: 42(fvec4) Load 360
362: 178(ptr) AccessChain 355(patch) 118 118
362: 178(ptr) AccessChain 355(patch) 119 119
Store 362 361
366: 348(ptr) AccessChain 365(patch.Normal) 118
366: 348(ptr) AccessChain 365(patch.Normal) 119
367: 44(fvec3) Load 366
368: 148(ptr) AccessChain 355(patch) 118 121
368: 148(ptr) AccessChain 355(patch) 119 122
Store 368 367
373: 372(ptr) AccessChain 371(patch.UV) 118
373: 372(ptr) AccessChain 371(patch.UV) 119
374: 39(fvec2) Load 373
375: 41(ptr) AccessChain 355(patch) 118 119
375: 41(ptr) AccessChain 355(patch) 119 120
Store 375 374
376: 359(ptr) AccessChain 358(patch.Pos) 121
376: 359(ptr) AccessChain 358(patch.Pos) 122
377: 42(fvec4) Load 376
378: 178(ptr) AccessChain 355(patch) 121 118
378: 178(ptr) AccessChain 355(patch) 122 119
Store 378 377
379: 348(ptr) AccessChain 365(patch.Normal) 121
379: 348(ptr) AccessChain 365(patch.Normal) 122
380: 44(fvec3) Load 379
381: 148(ptr) AccessChain 355(patch) 121 121
381: 148(ptr) AccessChain 355(patch) 122 122
Store 381 380
382: 372(ptr) AccessChain 371(patch.UV) 121
382: 372(ptr) AccessChain 371(patch.UV) 122
383: 39(fvec2) Load 382
384: 41(ptr) AccessChain 355(patch) 121 119
384: 41(ptr) AccessChain 355(patch) 122 120
Store 384 383
385: 359(ptr) AccessChain 358(patch.Pos) 119
385: 359(ptr) AccessChain 358(patch.Pos) 120
386: 42(fvec4) Load 385
387: 178(ptr) AccessChain 355(patch) 119 118
387: 178(ptr) AccessChain 355(patch) 120 119
Store 387 386
388: 348(ptr) AccessChain 365(patch.Normal) 119
388: 348(ptr) AccessChain 365(patch.Normal) 120
389: 44(fvec3) Load 388
390: 148(ptr) AccessChain 355(patch) 119 121
390: 148(ptr) AccessChain 355(patch) 120 122
Store 390 389
391: 372(ptr) AccessChain 371(patch.UV) 119
391: 372(ptr) AccessChain 371(patch.UV) 120
392: 39(fvec2) Load 391
393: 41(ptr) AccessChain 355(patch) 119 119
393: 41(ptr) AccessChain 355(patch) 120 120
Store 393 392
394: 359(ptr) AccessChain 358(patch.Pos) 133
394: 359(ptr) AccessChain 358(patch.Pos) 134
395: 42(fvec4) Load 394
396: 178(ptr) AccessChain 355(patch) 133 118
396: 178(ptr) AccessChain 355(patch) 134 119
Store 396 395
397: 348(ptr) AccessChain 365(patch.Normal) 133
397: 348(ptr) AccessChain 365(patch.Normal) 134
398: 44(fvec3) Load 397
399: 148(ptr) AccessChain 355(patch) 133 121
399: 148(ptr) AccessChain 355(patch) 134 122
Store 399 398
400: 372(ptr) AccessChain 371(patch.UV) 133
400: 372(ptr) AccessChain 371(patch.UV) 134
401: 39(fvec2) Load 400
402: 41(ptr) AccessChain 355(patch) 133 119
402: 41(ptr) AccessChain 355(patch) 134 120
Store 402 401
404: 60 Load 355(patch)
406:23(ConstantsHSOutput) Load 323(input)
@ -419,16 +419,16 @@ Validation failed
Store 407(param) 408
409:62(DSOutput) FunctionCall 83(@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];) 405(param) 407(param) 404
Store 403(flattenTemp) 409
412: 178(ptr) AccessChain 403(flattenTemp) 118
412: 178(ptr) AccessChain 403(flattenTemp) 119
413: 42(fvec4) Load 412
Store 411(@entryPointOutput.Pos) 413
416: 148(ptr) AccessChain 403(flattenTemp) 121
416: 148(ptr) AccessChain 403(flattenTemp) 122
417: 44(fvec3) Load 416
Store 415(@entryPointOutput.Normal) 417
420: 41(ptr) AccessChain 403(flattenTemp) 119
420: 41(ptr) AccessChain 403(flattenTemp) 120
421: 39(fvec2) Load 420
Store 419(@entryPointOutput.UV) 421
423: 148(ptr) AccessChain 403(flattenTemp) 133
423: 148(ptr) AccessChain 403(flattenTemp) 134
424: 44(fvec3) Load 423
Store 422(@entryPointOutput.ViewVec) 424
426: 148(ptr) AccessChain 403(flattenTemp) 278
@ -461,113 +461,113 @@ Validation failed
95: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 93 81(TessCoord) 92
98: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 96 82(patch) 92
99: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101 85 83(@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];)
Store 101(output) 109
110: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 102 109 92
120: 39(fvec2) CompositeExtract 82(patch) 0 2
122: 39(fvec2) CompositeExtract 82(patch) 1 2
124: 123(ptr) AccessChain 81(TessCoord) 15
125: 7(float) Load 124
126: 39(fvec2) CompositeConstruct 125 125
127: 39(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 120 122 126
Store 111(uv1) 127
128: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 112 127 92
134: 39(fvec2) CompositeExtract 82(patch) 3 2
135: 39(fvec2) CompositeExtract 82(patch) 2 2
136: 123(ptr) AccessChain 81(TessCoord) 15
137: 7(float) Load 136
138: 39(fvec2) CompositeConstruct 137 137
139: 39(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 134 135 138
Store 129(uv2) 139
140: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 130 139 92
105: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 102 101(output) 92
Store 101(output) 110
115: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 112 111(uv1) 92
121: 39(fvec2) CompositeExtract 82(patch) 0 2
123: 39(fvec2) CompositeExtract 82(patch) 1 2
125: 124(ptr) AccessChain 81(TessCoord) 15
126: 7(float) Load 125
127: 39(fvec2) CompositeConstruct 126 126
128: 39(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 121 123 127
Store 111(uv1) 128
133: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 130 129(uv2) 92
135: 39(fvec2) CompositeExtract 82(patch) 3 2
136: 39(fvec2) CompositeExtract 82(patch) 2 2
137: 124(ptr) AccessChain 81(TessCoord) 15
138: 7(float) Load 137
139: 39(fvec2) CompositeConstruct 138 138
140: 39(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 135 136 139
Store 129(uv2) 140
141: 39(fvec2) Load 111(uv1)
142: 39(fvec2) Load 129(uv2)
143: 123(ptr) AccessChain 81(TessCoord) 35
143: 124(ptr) AccessChain 81(TessCoord) 35
144: 7(float) Load 143
145: 39(fvec2) CompositeConstruct 144 144
146: 39(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 141 142 145
147: 41(ptr) AccessChain 101(output) 119
147: 41(ptr) AccessChain 101(output) 120
Store 147 146
153: 44(fvec3) CompositeExtract 82(patch) 0 1
154: 44(fvec3) CompositeExtract 82(patch) 1 1
155: 123(ptr) AccessChain 81(TessCoord) 15
156: 7(float) Load 155
157: 44(fvec3) CompositeConstruct 156 156 156
158: 44(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 153 154 157
Store 149(n1) 158
159: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 150 158 92
164: 44(fvec3) CompositeExtract 82(patch) 3 1
165: 44(fvec3) CompositeExtract 82(patch) 2 1
166: 123(ptr) AccessChain 81(TessCoord) 15
167: 7(float) Load 166
168: 44(fvec3) CompositeConstruct 167 167 167
169: 44(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 164 165 168
Store 160(n2) 169
170: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 161 169 92
153: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 150 149(n1) 92
154: 44(fvec3) CompositeExtract 82(patch) 0 1
155: 44(fvec3) CompositeExtract 82(patch) 1 1
156: 124(ptr) AccessChain 81(TessCoord) 15
157: 7(float) Load 156
158: 44(fvec3) CompositeConstruct 157 157 157
159: 44(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 154 155 158
Store 149(n1) 159
164: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 161 160(n2) 92
165: 44(fvec3) CompositeExtract 82(patch) 3 1
166: 44(fvec3) CompositeExtract 82(patch) 2 1
167: 124(ptr) AccessChain 81(TessCoord) 15
168: 7(float) Load 167
169: 44(fvec3) CompositeConstruct 168 168 168
170: 44(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 165 166 169
Store 160(n2) 170
171: 44(fvec3) Load 149(n1)
172: 44(fvec3) Load 160(n2)
173: 123(ptr) AccessChain 81(TessCoord) 35
173: 124(ptr) AccessChain 81(TessCoord) 35
174: 7(float) Load 173
175: 44(fvec3) CompositeConstruct 174 174 174
176: 44(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 171 172 175
177: 148(ptr) AccessChain 101(output) 121
177: 148(ptr) AccessChain 101(output) 122
Store 177 176
183: 42(fvec4) CompositeExtract 82(patch) 0 0
184: 42(fvec4) CompositeExtract 82(patch) 1 0
185: 123(ptr) AccessChain 81(TessCoord) 15
186: 7(float) Load 185
187: 42(fvec4) CompositeConstruct 186 186 186 186
188: 42(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 183 184 187
Store 179(pos1) 188
189: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 180 188 92
194: 42(fvec4) CompositeExtract 82(patch) 3 0
195: 42(fvec4) CompositeExtract 82(patch) 2 0
196: 123(ptr) AccessChain 81(TessCoord) 15
197: 7(float) Load 196
198: 42(fvec4) CompositeConstruct 197 197 197 197
199: 42(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 194 195 198
Store 190(pos2) 199
200: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 191 199 92
205: 42(fvec4) Load 179(pos1)
206: 42(fvec4) Load 190(pos2)
207: 123(ptr) AccessChain 81(TessCoord) 35
208: 7(float) Load 207
209: 42(fvec4) CompositeConstruct 208 208 208 208
210: 42(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 205 206 209
Store 201(pos) 210
211: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 202 210 92
183: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 180 179(pos1) 92
184: 42(fvec4) CompositeExtract 82(patch) 0 0
185: 42(fvec4) CompositeExtract 82(patch) 1 0
186: 124(ptr) AccessChain 81(TessCoord) 15
187: 7(float) Load 186
188: 42(fvec4) CompositeConstruct 187 187 187 187
189: 42(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 184 185 188
Store 179(pos1) 189
194: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 191 190(pos2) 92
195: 42(fvec4) CompositeExtract 82(patch) 3 0
196: 42(fvec4) CompositeExtract 82(patch) 2 0
197: 124(ptr) AccessChain 81(TessCoord) 15
198: 7(float) Load 197
199: 42(fvec4) CompositeConstruct 198 198 198 198
200: 42(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 195 196 199
Store 190(pos2) 200
205: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 202 201(pos) 92
206: 42(fvec4) Load 179(pos1)
207: 42(fvec4) Load 190(pos2)
208: 124(ptr) AccessChain 81(TessCoord) 35
209: 7(float) Load 208
210: 42(fvec4) CompositeConstruct 209 209 209 209
211: 42(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 206 207 210
Store 201(pos) 211
223: 212 Load 219(displacementMapTexture)
232: 224 Load 229(displacementMapSampler)
237: 233 SampledImage 223 232
238: 41(ptr) AccessChain 101(output) 119
238: 41(ptr) AccessChain 101(output) 120
239: 39(fvec2) Load 238
240: 42(fvec4) ImageSampleExplicitLod 237 239 Lod 105
240: 42(fvec4) ImageSampleExplicitLod 237 239 Lod 106
241: 7(float) CompositeExtract 240 0
280: 279(ptr) AccessChain 276 118 278
280: 279(ptr) AccessChain 276 119 278
281: 7(float) Load 280
282: 7(float) FMul 241 281
283: 123(ptr) AccessChain 201(pos) 35
283: 124(ptr) AccessChain 201(pos) 35
284: 7(float) Load 283
285: 7(float) FSub 284 282
286: 123(ptr) AccessChain 201(pos) 35
286: 124(ptr) AccessChain 201(pos) 35
Store 286 285
287: 42(fvec4) Load 201(pos)
289: 288(ptr) AccessChain 276 118 121
289: 288(ptr) AccessChain 276 119 122
290: 242 Load 289
291: 42(fvec4) VectorTimesMatrix 287 290
292: 288(ptr) AccessChain 276 118 118
292: 288(ptr) AccessChain 276 119 119
293: 242 Load 292
294: 42(fvec4) VectorTimesMatrix 291 293
295: 178(ptr) AccessChain 101(output) 118
295: 178(ptr) AccessChain 101(output) 119
Store 295 294
296: 42(fvec4) Load 201(pos)
297: 44(fvec3) VectorShuffle 296 296 0 1 2
298: 44(fvec3) FNegate 297
299: 148(ptr) AccessChain 101(output) 133
299: 148(ptr) AccessChain 101(output) 134
Store 299 298
301: 300(ptr) AccessChain 276 118 119
301: 300(ptr) AccessChain 276 119 120
302: 42(fvec4) Load 301
303: 44(fvec3) VectorShuffle 302 302 0 1 2
304: 148(ptr) AccessChain 101(output) 133
304: 148(ptr) AccessChain 101(output) 134
305: 44(fvec3) Load 304
306: 44(fvec3) FAdd 303 305
307: 44(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 306
@ -578,7 +578,7 @@ Validation failed
312: 148(ptr) AccessChain 101(output) 309
Store 312 311
314: 42(fvec4) Load 201(pos)
315: 288(ptr) AccessChain 276 118 121
315: 288(ptr) AccessChain 276 119 122
316: 242 Load 315
317: 42(fvec4) VectorTimesMatrix 314 316
318: 44(fvec3) VectorShuffle 317 317 0 1 2

View File

@ -2,14 +2,14 @@ spv.debuginfo.hlsl.vert
Validation failed
// Module Version 10000
// Generated by (magic number): 8000a
// Id's are bound by 443
// Id's are bound by 437
Capability Shader
Extension "SPV_KHR_non_semantic_info"
1: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
2: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Vertex 5 "main" 392 395 399 402 405 408 412 416 424 428 431 434 437 440
EntryPoint Vertex 5 "main" 386 389 393 396 399 402 406 410 418 422 425 428 431 434
9: String "float"
12: String "uint"
23: String "int"
@ -26,20 +26,20 @@ Validation failed
81: String "input"
88: String "output"
116: String "s"
127: String "modelview"
132: String "lightPos"
136: String "globSpeed"
140: String "UBO"
143: String "ubo"
128: String "modelview"
133: String "lightPos"
137: String "globSpeed"
141: String "UBO"
144: String "ubo"
159: String "c"
173: String "mx"
202: String "my"
230: String "mz"
244: String "rotMat"
270: String "gRotMat"
289: String "locPos"
302: String "pos"
361: String "lPos"
200: String "my"
226: String "mz"
240: String "rotMat"
264: String "gRotMat"
284: String "locPos"
297: String "pos"
355: String "lPos"
Name 5 "main"
Name 26 "VSInput"
MemberName 26(VSInput) 0 "Pos"
@ -61,68 +61,68 @@ Validation failed
Name 73 "input"
Name 86 "output"
Name 114 "s"
Name 125 "UBO"
MemberName 125(UBO) 0 "projection"
MemberName 125(UBO) 1 "modelview"
MemberName 125(UBO) 2 "lightPos"
MemberName 125(UBO) 3 "locSpeed"
MemberName 125(UBO) 4 "globSpeed"
Name 141 "ubo"
MemberName 141(ubo) 0 "ubo"
Name 147 ""
Name 126 "UBO"
MemberName 126(UBO) 0 "projection"
MemberName 126(UBO) 1 "modelview"
MemberName 126(UBO) 2 "lightPos"
MemberName 126(UBO) 3 "locSpeed"
MemberName 126(UBO) 4 "globSpeed"
Name 142 "ubo"
MemberName 142(ubo) 0 "ubo"
Name 148 ""
Name 157 "c"
Name 171 "mx"
Name 200 "my"
Name 228 "mz"
Name 242 "rotMat"
Name 268 "gRotMat"
Name 287 "locPos"
Name 300 "pos"
Name 359 "lPos"
Name 390 "input"
Name 392 "input.Pos"
Name 395 "input.Normal"
Name 399 "input.UV"
Name 402 "input.Color"
Name 405 "input.instancePos"
Name 408 "input.instanceRot"
Name 412 "input.instanceScale"
Name 416 "input.instanceTexIndex"
Name 419 "flattenTemp"
Name 420 "param"
Name 424 "@entryPointOutput.Pos"
Name 428 "@entryPointOutput.Normal"
Name 431 "@entryPointOutput.Color"
Name 434 "@entryPointOutput.UV"
Name 437 "@entryPointOutput.ViewVec"
Name 440 "@entryPointOutput.LightVec"
MemberDecorate 125(UBO) 0 RowMajor
MemberDecorate 125(UBO) 0 Offset 0
MemberDecorate 125(UBO) 0 MatrixStride 16
MemberDecorate 125(UBO) 1 RowMajor
MemberDecorate 125(UBO) 1 Offset 64
MemberDecorate 125(UBO) 1 MatrixStride 16
MemberDecorate 125(UBO) 2 Offset 128
MemberDecorate 125(UBO) 3 Offset 144
MemberDecorate 125(UBO) 4 Offset 148
MemberDecorate 141(ubo) 0 Offset 0
Decorate 141(ubo) Block
Decorate 147 DescriptorSet 0
Decorate 147 Binding 0
Decorate 392(input.Pos) Location 0
Decorate 395(input.Normal) Location 1
Decorate 399(input.UV) Location 2
Decorate 402(input.Color) Location 3
Decorate 405(input.instancePos) Location 4
Decorate 408(input.instanceRot) Location 5
Decorate 412(input.instanceScale) Location 6
Decorate 416(input.instanceTexIndex) Location 7
Decorate 424(@entryPointOutput.Pos) BuiltIn Position
Decorate 428(@entryPointOutput.Normal) Location 0
Decorate 431(@entryPointOutput.Color) Location 1
Decorate 434(@entryPointOutput.UV) Location 2
Decorate 437(@entryPointOutput.ViewVec) Location 3
Decorate 440(@entryPointOutput.LightVec) Location 4
Name 198 "my"
Name 224 "mz"
Name 238 "rotMat"
Name 262 "gRotMat"
Name 282 "locPos"
Name 295 "pos"
Name 353 "lPos"
Name 384 "input"
Name 386 "input.Pos"
Name 389 "input.Normal"
Name 393 "input.UV"
Name 396 "input.Color"
Name 399 "input.instancePos"
Name 402 "input.instanceRot"
Name 406 "input.instanceScale"
Name 410 "input.instanceTexIndex"
Name 413 "flattenTemp"
Name 414 "param"
Name 418 "@entryPointOutput.Pos"
Name 422 "@entryPointOutput.Normal"
Name 425 "@entryPointOutput.Color"
Name 428 "@entryPointOutput.UV"
Name 431 "@entryPointOutput.ViewVec"
Name 434 "@entryPointOutput.LightVec"
MemberDecorate 126(UBO) 0 RowMajor
MemberDecorate 126(UBO) 0 Offset 0
MemberDecorate 126(UBO) 0 MatrixStride 16
MemberDecorate 126(UBO) 1 RowMajor
MemberDecorate 126(UBO) 1 Offset 64
MemberDecorate 126(UBO) 1 MatrixStride 16
MemberDecorate 126(UBO) 2 Offset 128
MemberDecorate 126(UBO) 3 Offset 144
MemberDecorate 126(UBO) 4 Offset 148
MemberDecorate 142(ubo) 0 Offset 0
Decorate 142(ubo) Block
Decorate 148 DescriptorSet 0
Decorate 148 Binding 0
Decorate 386(input.Pos) Location 0
Decorate 389(input.Normal) Location 1
Decorate 393(input.UV) Location 2
Decorate 396(input.Color) Location 3
Decorate 399(input.instancePos) Location 4
Decorate 402(input.instanceRot) Location 5
Decorate 406(input.instanceScale) Location 6
Decorate 410(input.instanceTexIndex) Location 7
Decorate 418(@entryPointOutput.Pos) BuiltIn Position
Decorate 422(@entryPointOutput.Normal) Location 0
Decorate 425(@entryPointOutput.Color) Location 1
Decorate 428(@entryPointOutput.UV) Location 2
Decorate 431(@entryPointOutput.ViewVec) Location 3
Decorate 434(@entryPointOutput.LightVec) Location 4
3: TypeVoid
4: TypeFunction 3
7: TypeFloat 32
@ -185,10 +185,10 @@ Validation failed
85: TypePointer Function 57(VSOutput)
89: 10(int) Constant 63
87: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 88 69 29 89 15 76 25
90: 7(float) Constant 0
91: 55(fvec4) ConstantComposite 90 90 90 90
92: 17(fvec3) ConstantComposite 90 90 90
93:57(VSOutput) ConstantComposite 91 92 92 92 92 92
91: 7(float) Constant 0
92: 55(fvec4) ConstantComposite 91 91 91 91
93: 17(fvec3) ConstantComposite 91 91 91
94:57(VSOutput) ConstantComposite 92 93 93 93 93 93
95: 22(int) Constant 2
96: 22(int) Constant 3
97: TypePointer Function 17(fvec3)
@ -198,135 +198,135 @@ Validation failed
113: TypePointer Function 7(float)
117: 10(int) Constant 68
115: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 116 8 29 117 15 76 25
118: 22(int) Constant 5
121: TypeMatrix 55(fvec4) 4
123: TypeBool
124: 123(bool) ConstantTrue
122: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108 56 25 124
125(UBO): TypeStruct 121 121 55(fvec4) 7(float) 7(float)
128: 10(int) Constant 43
129: 10(int) Constant 20
126: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 127 122 29 128 129 15 15 16
130: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 127 122 29 128 129 15 15 16
133: 10(int) Constant 44
134: 10(int) Constant 17
131: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 132 56 29 133 134 15 15 16
137: 10(int) Constant 46
135: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 136 8 29 137 134 15 15 16
138: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 136 8 29 137 134 15 15 16
139: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 140 51 29 117 15 52 140 15 16 126 130 131 135 138
141(ubo): TypeStruct 125(UBO)
144: 10(int) Constant 49
142: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 143 139 29 144 47 15 15 16
145: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 143 51 29 117 15 52 143 15 16 142
146: TypePointer Uniform 141(ubo)
147: 146(ptr) Variable Uniform
149: 10(int) Constant 8
148: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 30 145 29 117 15 52 30 147 149
150: 22(int) Constant 0
151: TypePointer Uniform 7(float)
119: 22(int) Constant 5
122: TypeMatrix 55(fvec4) 4
124: TypeBool
125: 124(bool) ConstantTrue
123: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108 56 25 125
126(UBO): TypeStruct 122 122 55(fvec4) 7(float) 7(float)
129: 10(int) Constant 43
130: 10(int) Constant 20
127: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 128 123 29 129 130 15 15 16
131: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 128 123 29 129 130 15 15 16
134: 10(int) Constant 44
135: 10(int) Constant 17
132: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 133 56 29 134 135 15 15 16
138: 10(int) Constant 46
136: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 137 8 29 138 135 15 15 16
139: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 137 8 29 138 135 15 15 16
140: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 141 51 29 117 15 52 141 15 16 127 131 132 136 139
142(ubo): TypeStruct 126(UBO)
145: 10(int) Constant 49
143: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 144 140 29 145 47 15 15 16
146: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 144 51 29 117 15 52 144 15 16 143
147: TypePointer Uniform 142(ubo)
148: 147(ptr) Variable Uniform
150: 10(int) Constant 8
149: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 30 146 29 117 15 52 30 148 150
151: 22(int) Constant 0
152: TypePointer Uniform 7(float)
160: 10(int) Constant 69
158: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 159 8 29 160 15 76 25
168: TypeMatrix 17(fvec3) 3
169: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108 18 16 124
169: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108 18 16 125
170: TypePointer Function 168
174: 10(int) Constant 71
172: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 173 169 29 174 15 76 25
180: 7(float) Constant 1065353216
203: 10(int) Constant 79
201: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 202 169 29 203 15 76 25
231: 10(int) Constant 87
229: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 230 169 29 231 15 76 25
245: 10(int) Constant 91
243: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 244 169 29 245 15 76 25
254: 22(int) Constant 4
267: TypePointer Function 121
271: 10(int) Constant 96
269: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 270 122 29 271 15 76 25
276: TypePointer Function 55(fvec4)
278: 22(int) Constant 1
279: 55(fvec4) ConstantComposite 90 180 90 90
285: 55(fvec4) ConstantComposite 90 90 90 180
290: 10(int) Constant 101
288: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 289 56 29 290 15 76 25
303: 10(int) Constant 102
301: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 302 56 29 303 15 76 25
306: 22(int) Constant 6
321: TypePointer Uniform 121
362: 10(int) Constant 108
360: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 361 18 29 362 15 76 25
363: TypePointer Uniform 55(fvec4)
391: TypePointer Input 17(fvec3)
392(input.Pos): 391(ptr) Variable Input
395(input.Normal): 391(ptr) Variable Input
398: TypePointer Input 19(fvec2)
399(input.UV): 398(ptr) Variable Input
402(input.Color): 391(ptr) Variable Input
405(input.instancePos): 391(ptr) Variable Input
408(input.instanceRot): 391(ptr) Variable Input
411: TypePointer Input 7(float)
412(input.instanceScale): 411(ptr) Variable Input
415: TypePointer Input 22(int)
416(input.instanceTexIndex): 415(ptr) Variable Input
423: TypePointer Output 55(fvec4)
424(@entryPointOutput.Pos): 423(ptr) Variable Output
427: TypePointer Output 17(fvec3)
428(@entryPointOutput.Normal): 427(ptr) Variable Output
431(@entryPointOutput.Color): 427(ptr) Variable Output
434(@entryPointOutput.UV): 427(ptr) Variable Output
437(@entryPointOutput.ViewVec): 427(ptr) Variable Output
440(@entryPointOutput.LightVec): 427(ptr) Variable Output
181: 7(float) Constant 1065353216
201: 10(int) Constant 79
199: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 200 169 29 201 15 76 25
227: 10(int) Constant 87
225: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 226 169 29 227 15 76 25
241: 10(int) Constant 91
239: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 240 169 29 241 15 76 25
250: 22(int) Constant 4
261: TypePointer Function 122
265: 10(int) Constant 96
263: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 264 123 29 265 15 76 25
271: TypePointer Function 55(fvec4)
273: 22(int) Constant 1
274: 55(fvec4) ConstantComposite 91 181 91 91
280: 55(fvec4) ConstantComposite 91 91 91 181
285: 10(int) Constant 101
283: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 284 56 29 285 15 76 25
298: 10(int) Constant 102
296: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 297 56 29 298 15 76 25
302: 22(int) Constant 6
316: TypePointer Uniform 122
356: 10(int) Constant 108
354: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 355 18 29 356 15 76 25
358: TypePointer Uniform 55(fvec4)
385: TypePointer Input 17(fvec3)
386(input.Pos): 385(ptr) Variable Input
389(input.Normal): 385(ptr) Variable Input
392: TypePointer Input 19(fvec2)
393(input.UV): 392(ptr) Variable Input
396(input.Color): 385(ptr) Variable Input
399(input.instancePos): 385(ptr) Variable Input
402(input.instanceRot): 385(ptr) Variable Input
405: TypePointer Input 7(float)
406(input.instanceScale): 405(ptr) Variable Input
409: TypePointer Input 22(int)
410(input.instanceTexIndex): 409(ptr) Variable Input
417: TypePointer Output 55(fvec4)
418(@entryPointOutput.Pos): 417(ptr) Variable Output
421: TypePointer Output 17(fvec3)
422(@entryPointOutput.Normal): 421(ptr) Variable Output
425(@entryPointOutput.Color): 421(ptr) Variable Output
428(@entryPointOutput.UV): 421(ptr) Variable Output
431(@entryPointOutput.ViewVec): 421(ptr) Variable Output
434(@entryPointOutput.LightVec): 421(ptr) Variable Output
5(main): 3 Function None 4
6: Label
390(input): 54(ptr) Variable Function
419(flattenTemp): 85(ptr) Variable Function
420(param): 54(ptr) Variable Function
393: 17(fvec3) Load 392(input.Pos)
394: 97(ptr) AccessChain 390(input) 150
Store 394 393
396: 17(fvec3) Load 395(input.Normal)
397: 97(ptr) AccessChain 390(input) 278
Store 397 396
400: 19(fvec2) Load 399(input.UV)
401: 101(ptr) AccessChain 390(input) 95
384(input): 54(ptr) Variable Function
413(flattenTemp): 85(ptr) Variable Function
414(param): 54(ptr) Variable Function
387: 17(fvec3) Load 386(input.Pos)
388: 97(ptr) AccessChain 384(input) 151
Store 388 387
390: 17(fvec3) Load 389(input.Normal)
391: 97(ptr) AccessChain 384(input) 273
Store 391 390
394: 19(fvec2) Load 393(input.UV)
395: 101(ptr) AccessChain 384(input) 95
Store 395 394
397: 17(fvec3) Load 396(input.Color)
398: 97(ptr) AccessChain 384(input) 96
Store 398 397
400: 17(fvec3) Load 399(input.instancePos)
401: 97(ptr) AccessChain 384(input) 250
Store 401 400
403: 17(fvec3) Load 402(input.Color)
404: 97(ptr) AccessChain 390(input) 96
403: 17(fvec3) Load 402(input.instanceRot)
404: 97(ptr) AccessChain 384(input) 119
Store 404 403
406: 17(fvec3) Load 405(input.instancePos)
407: 97(ptr) AccessChain 390(input) 254
Store 407 406
409: 17(fvec3) Load 408(input.instanceRot)
410: 97(ptr) AccessChain 390(input) 118
Store 410 409
413: 7(float) Load 412(input.instanceScale)
414: 113(ptr) AccessChain 390(input) 306
Store 414 413
417: 22(int) Load 416(input.instanceTexIndex)
418: 105(ptr) AccessChain 390(input) 104
Store 418 417
421: 26(VSInput) Load 390(input)
Store 420(param) 421
422:57(VSOutput) FunctionCall 74(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;) 420(param)
Store 419(flattenTemp) 422
425: 276(ptr) AccessChain 419(flattenTemp) 150
426: 55(fvec4) Load 425
Store 424(@entryPointOutput.Pos) 426
429: 97(ptr) AccessChain 419(flattenTemp) 278
407: 7(float) Load 406(input.instanceScale)
408: 113(ptr) AccessChain 384(input) 302
Store 408 407
411: 22(int) Load 410(input.instanceTexIndex)
412: 105(ptr) AccessChain 384(input) 104
Store 412 411
415: 26(VSInput) Load 384(input)
Store 414(param) 415
416:57(VSOutput) FunctionCall 74(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;) 414(param)
Store 413(flattenTemp) 416
419: 271(ptr) AccessChain 413(flattenTemp) 151
420: 55(fvec4) Load 419
Store 418(@entryPointOutput.Pos) 420
423: 97(ptr) AccessChain 413(flattenTemp) 273
424: 17(fvec3) Load 423
Store 422(@entryPointOutput.Normal) 424
426: 97(ptr) AccessChain 413(flattenTemp) 95
427: 17(fvec3) Load 426
Store 425(@entryPointOutput.Color) 427
429: 97(ptr) AccessChain 413(flattenTemp) 96
430: 17(fvec3) Load 429
Store 428(@entryPointOutput.Normal) 430
432: 97(ptr) AccessChain 419(flattenTemp) 95
Store 428(@entryPointOutput.UV) 430
432: 97(ptr) AccessChain 413(flattenTemp) 250
433: 17(fvec3) Load 432
Store 431(@entryPointOutput.Color) 433
435: 97(ptr) AccessChain 419(flattenTemp) 96
Store 431(@entryPointOutput.ViewVec) 433
435: 97(ptr) AccessChain 413(flattenTemp) 119
436: 17(fvec3) Load 435
Store 434(@entryPointOutput.UV) 436
438: 97(ptr) AccessChain 419(flattenTemp) 254
439: 17(fvec3) Load 438
Store 437(@entryPointOutput.ViewVec) 439
441: 97(ptr) AccessChain 419(flattenTemp) 118
442: 17(fvec3) Load 441
Store 440(@entryPointOutput.LightVec) 442
Store 434(@entryPointOutput.LightVec) 436
Return
FunctionEnd
74(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;):57(VSOutput) Function None 71
@ -336,19 +336,19 @@ Validation failed
114(s): 113(ptr) Variable Function
157(c): 113(ptr) Variable Function
171(mx): 170(ptr) Variable Function
200(my): 170(ptr) Variable Function
228(mz): 170(ptr) Variable Function
242(rotMat): 170(ptr) Variable Function
268(gRotMat): 267(ptr) Variable Function
287(locPos): 276(ptr) Variable Function
300(pos): 276(ptr) Variable Function
359(lPos): 97(ptr) Variable Function
198(my): 170(ptr) Variable Function
224(mz): 170(ptr) Variable Function
238(rotMat): 170(ptr) Variable Function
262(gRotMat): 261(ptr) Variable Function
282(locPos): 271(ptr) Variable Function
295(pos): 271(ptr) Variable Function
353(lPos): 97(ptr) Variable Function
78: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(Acosh) 76
79: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103 29 15 15 15 15
82: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 80 73(input) 83
84: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101 76 74(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;)
Store 86(output) 93
94: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 87 93 83
90: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 87 86(output) 83
Store 86(output) 94
98: 97(ptr) AccessChain 73(input) 96
99: 17(fvec3) Load 98
100: 97(ptr) AccessChain 86(output) 95
@ -363,218 +363,212 @@ Validation failed
111: 17(fvec3) CompositeConstruct 109 110 108
112: 97(ptr) AccessChain 86(output) 96
Store 112 111
119: 113(ptr) AccessChain 73(input) 118 15
120: 7(float) Load 119
152: 151(ptr) AccessChain 147 150 96
153: 7(float) Load 152
154: 7(float) FAdd 120 153
155: 7(float) ExtInst 2(GLSL.std.450) 13(Sin) 154
Store 114(s) 155
156: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 115 155 83
161: 113(ptr) AccessChain 73(input) 118 15
162: 7(float) Load 161
163: 151(ptr) AccessChain 147 150 96
164: 7(float) Load 163
165: 7(float) FAdd 162 164
166: 7(float) ExtInst 2(GLSL.std.450) 14(Cos) 165
Store 157(c) 166
167: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 158 166 83
175: 7(float) Load 157(c)
176: 7(float) Load 114(s)
177: 7(float) FNegate 176
178: 7(float) Load 114(s)
179: 7(float) Load 157(c)
181: 17(fvec3) CompositeConstruct 175 177 90
182: 17(fvec3) CompositeConstruct 178 179 90
183: 17(fvec3) CompositeConstruct 90 90 180
184: 168 CompositeConstruct 181 182 183
Store 171(mx) 184
185: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 172 184 83
186: 113(ptr) AccessChain 73(input) 118 51
118: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 115 114(s) 83
120: 113(ptr) AccessChain 73(input) 119 15
121: 7(float) Load 120
153: 152(ptr) AccessChain 148 151 96
154: 7(float) Load 153
155: 7(float) FAdd 121 154
156: 7(float) ExtInst 2(GLSL.std.450) 13(Sin) 155
Store 114(s) 156
161: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 158 157(c) 83
162: 113(ptr) AccessChain 73(input) 119 15
163: 7(float) Load 162
164: 152(ptr) AccessChain 148 151 96
165: 7(float) Load 164
166: 7(float) FAdd 163 165
167: 7(float) ExtInst 2(GLSL.std.450) 14(Cos) 166
Store 157(c) 167
175: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 172 171(mx) 83
176: 7(float) Load 157(c)
177: 7(float) Load 114(s)
178: 7(float) FNegate 177
179: 7(float) Load 114(s)
180: 7(float) Load 157(c)
182: 17(fvec3) CompositeConstruct 176 178 91
183: 17(fvec3) CompositeConstruct 179 180 91
184: 17(fvec3) CompositeConstruct 91 91 181
185: 168 CompositeConstruct 182 183 184
Store 171(mx) 185
186: 113(ptr) AccessChain 73(input) 119 51
187: 7(float) Load 186
188: 151(ptr) AccessChain 147 150 96
188: 152(ptr) AccessChain 148 151 96
189: 7(float) Load 188
190: 7(float) FAdd 187 189
191: 7(float) ExtInst 2(GLSL.std.450) 13(Sin) 190
Store 114(s) 191
192: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 115 191 83
193: 113(ptr) AccessChain 73(input) 118 51
194: 7(float) Load 193
195: 151(ptr) AccessChain 147 150 96
196: 7(float) Load 195
197: 7(float) FAdd 194 196
198: 7(float) ExtInst 2(GLSL.std.450) 14(Cos) 197
Store 157(c) 198
199: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 158 198 83
204: 7(float) Load 157(c)
205: 7(float) Load 114(s)
206: 7(float) FNegate 205
207: 7(float) Load 114(s)
208: 7(float) Load 157(c)
209: 17(fvec3) CompositeConstruct 204 90 206
210: 17(fvec3) CompositeConstruct 90 180 90
211: 17(fvec3) CompositeConstruct 207 90 208
212: 168 CompositeConstruct 209 210 211
Store 200(my) 212
213: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 201 212 83
214: 113(ptr) AccessChain 73(input) 118 20
192: 113(ptr) AccessChain 73(input) 119 51
193: 7(float) Load 192
194: 152(ptr) AccessChain 148 151 96
195: 7(float) Load 194
196: 7(float) FAdd 193 195
197: 7(float) ExtInst 2(GLSL.std.450) 14(Cos) 196
Store 157(c) 197
202: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 199 198(my) 83
203: 7(float) Load 157(c)
204: 7(float) Load 114(s)
205: 7(float) FNegate 204
206: 7(float) Load 114(s)
207: 7(float) Load 157(c)
208: 17(fvec3) CompositeConstruct 203 91 205
209: 17(fvec3) CompositeConstruct 91 181 91
210: 17(fvec3) CompositeConstruct 206 91 207
211: 168 CompositeConstruct 208 209 210
Store 198(my) 211
212: 113(ptr) AccessChain 73(input) 119 20
213: 7(float) Load 212
214: 152(ptr) AccessChain 148 151 96
215: 7(float) Load 214
216: 151(ptr) AccessChain 147 150 96
217: 7(float) Load 216
218: 7(float) FAdd 215 217
219: 7(float) ExtInst 2(GLSL.std.450) 13(Sin) 218
Store 114(s) 219
220: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 115 219 83
221: 113(ptr) AccessChain 73(input) 118 20
222: 7(float) Load 221
223: 151(ptr) AccessChain 147 150 96
224: 7(float) Load 223
225: 7(float) FAdd 222 224
226: 7(float) ExtInst 2(GLSL.std.450) 14(Cos) 225
Store 157(c) 226
227: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 158 226 83
232: 7(float) Load 157(c)
233: 7(float) Load 114(s)
234: 7(float) FNegate 233
235: 7(float) Load 114(s)
236: 7(float) Load 157(c)
237: 17(fvec3) CompositeConstruct 180 90 90
238: 17(fvec3) CompositeConstruct 90 232 234
239: 17(fvec3) CompositeConstruct 90 235 236
240: 168 CompositeConstruct 237 238 239
Store 228(mz) 240
241: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 229 240 83
246: 168 Load 171(mx)
247: 168 Load 200(my)
248: 168 MatrixTimesMatrix 246 247
249: 168 Load 228(mz)
250: 168 MatrixTimesMatrix 248 249
Store 242(rotMat) 250
251: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 243 250 83
252: 113(ptr) AccessChain 73(input) 118 51
253: 7(float) Load 252
255: 151(ptr) AccessChain 147 150 254
216: 7(float) FAdd 213 215
217: 7(float) ExtInst 2(GLSL.std.450) 13(Sin) 216
Store 114(s) 217
218: 113(ptr) AccessChain 73(input) 119 20
219: 7(float) Load 218
220: 152(ptr) AccessChain 148 151 96
221: 7(float) Load 220
222: 7(float) FAdd 219 221
223: 7(float) ExtInst 2(GLSL.std.450) 14(Cos) 222
Store 157(c) 223
228: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 225 224(mz) 83
229: 7(float) Load 157(c)
230: 7(float) Load 114(s)
231: 7(float) FNegate 230
232: 7(float) Load 114(s)
233: 7(float) Load 157(c)
234: 17(fvec3) CompositeConstruct 181 91 91
235: 17(fvec3) CompositeConstruct 91 229 231
236: 17(fvec3) CompositeConstruct 91 232 233
237: 168 CompositeConstruct 234 235 236
Store 224(mz) 237
242: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 239 238(rotMat) 83
243: 168 Load 171(mx)
244: 168 Load 198(my)
245: 168 MatrixTimesMatrix 243 244
246: 168 Load 224(mz)
247: 168 MatrixTimesMatrix 245 246
Store 238(rotMat) 247
248: 113(ptr) AccessChain 73(input) 119 51
249: 7(float) Load 248
251: 152(ptr) AccessChain 148 151 250
252: 7(float) Load 251
253: 7(float) FAdd 249 252
254: 7(float) ExtInst 2(GLSL.std.450) 13(Sin) 253
Store 114(s) 254
255: 113(ptr) AccessChain 73(input) 119 51
256: 7(float) Load 255
257: 7(float) FAdd 253 256
258: 7(float) ExtInst 2(GLSL.std.450) 13(Sin) 257
Store 114(s) 258
259: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 115 258 83
260: 113(ptr) AccessChain 73(input) 118 51
261: 7(float) Load 260
262: 151(ptr) AccessChain 147 150 254
263: 7(float) Load 262
264: 7(float) FAdd 261 263
265: 7(float) ExtInst 2(GLSL.std.450) 14(Cos) 264
Store 157(c) 265
266: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 158 265 83
272: 7(float) Load 157(c)
273: 7(float) Load 114(s)
274: 7(float) FNegate 273
275: 55(fvec4) CompositeConstruct 272 90 274 90
277: 276(ptr) AccessChain 268(gRotMat) 150
Store 277 275
280: 276(ptr) AccessChain 268(gRotMat) 278
Store 280 279
281: 7(float) Load 114(s)
282: 7(float) Load 157(c)
283: 55(fvec4) CompositeConstruct 281 90 282 90
284: 276(ptr) AccessChain 268(gRotMat) 95
Store 284 283
286: 276(ptr) AccessChain 268(gRotMat) 96
Store 286 285
291: 97(ptr) AccessChain 73(input) 150
292: 17(fvec3) Load 291
293: 168 Load 242(rotMat)
294: 17(fvec3) VectorTimesMatrix 292 293
295: 7(float) CompositeExtract 294 0
296: 7(float) CompositeExtract 294 1
297: 7(float) CompositeExtract 294 2
298: 55(fvec4) CompositeConstruct 295 296 297 180
Store 287(locPos) 298
299: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 288 298 83
304: 55(fvec4) Load 287(locPos)
305: 17(fvec3) VectorShuffle 304 304 0 1 2
307: 113(ptr) AccessChain 73(input) 306
308: 7(float) Load 307
309: 17(fvec3) VectorTimesScalar 305 308
310: 97(ptr) AccessChain 73(input) 254
311: 17(fvec3) Load 310
312: 17(fvec3) FAdd 309 311
313: 7(float) CompositeExtract 312 0
314: 7(float) CompositeExtract 312 1
315: 7(float) CompositeExtract 312 2
316: 55(fvec4) CompositeConstruct 313 314 315 180
Store 300(pos) 316
317: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 301 316 83
318: 55(fvec4) Load 300(pos)
319: 121 Load 268(gRotMat)
320: 55(fvec4) VectorTimesMatrix 318 319
322: 321(ptr) AccessChain 147 150 278
323: 121 Load 322
324: 55(fvec4) VectorTimesMatrix 320 323
325: 321(ptr) AccessChain 147 150 150
326: 121 Load 325
327: 55(fvec4) VectorTimesMatrix 324 326
328: 276(ptr) AccessChain 86(output) 150
Store 328 327
329: 97(ptr) AccessChain 73(input) 278
330: 17(fvec3) Load 329
331: 168 Load 242(rotMat)
332: 17(fvec3) VectorTimesMatrix 330 331
333: 121 Load 268(gRotMat)
334: 321(ptr) AccessChain 147 150 278
335: 121 Load 334
336: 121 MatrixTimesMatrix 333 335
337: 55(fvec4) CompositeExtract 336 0
338: 17(fvec3) VectorShuffle 337 337 0 1 2
339: 55(fvec4) CompositeExtract 336 1
340: 17(fvec3) VectorShuffle 339 339 0 1 2
341: 55(fvec4) CompositeExtract 336 2
342: 17(fvec3) VectorShuffle 341 341 0 1 2
343: 168 CompositeConstruct 338 340 342
344: 17(fvec3) VectorTimesMatrix 332 343
345: 97(ptr) AccessChain 86(output) 278
Store 345 344
346: 97(ptr) AccessChain 73(input) 150
347: 17(fvec3) Load 346
348: 97(ptr) AccessChain 73(input) 254
349: 17(fvec3) Load 348
350: 17(fvec3) FAdd 347 349
351: 7(float) CompositeExtract 350 0
352: 7(float) CompositeExtract 350 1
353: 7(float) CompositeExtract 350 2
354: 55(fvec4) CompositeConstruct 351 352 353 180
355: 321(ptr) AccessChain 147 150 278
356: 121 Load 355
357: 55(fvec4) VectorTimesMatrix 354 356
Store 300(pos) 357
358: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 301 357 83
364: 363(ptr) AccessChain 147 150 95
365: 55(fvec4) Load 364
366: 17(fvec3) VectorShuffle 365 365 0 1 2
367: 321(ptr) AccessChain 147 150 278
368: 121 Load 367
369: 55(fvec4) CompositeExtract 368 0
370: 17(fvec3) VectorShuffle 369 369 0 1 2
371: 55(fvec4) CompositeExtract 368 1
372: 17(fvec3) VectorShuffle 371 371 0 1 2
373: 55(fvec4) CompositeExtract 368 2
257: 152(ptr) AccessChain 148 151 250
258: 7(float) Load 257
259: 7(float) FAdd 256 258
260: 7(float) ExtInst 2(GLSL.std.450) 14(Cos) 259
Store 157(c) 260
266: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 263 262(gRotMat) 83
267: 7(float) Load 157(c)
268: 7(float) Load 114(s)
269: 7(float) FNegate 268
270: 55(fvec4) CompositeConstruct 267 91 269 91
272: 271(ptr) AccessChain 262(gRotMat) 151
Store 272 270
275: 271(ptr) AccessChain 262(gRotMat) 273
Store 275 274
276: 7(float) Load 114(s)
277: 7(float) Load 157(c)
278: 55(fvec4) CompositeConstruct 276 91 277 91
279: 271(ptr) AccessChain 262(gRotMat) 95
Store 279 278
281: 271(ptr) AccessChain 262(gRotMat) 96
Store 281 280
286: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 283 282(locPos) 83
287: 97(ptr) AccessChain 73(input) 151
288: 17(fvec3) Load 287
289: 168 Load 238(rotMat)
290: 17(fvec3) VectorTimesMatrix 288 289
291: 7(float) CompositeExtract 290 0
292: 7(float) CompositeExtract 290 1
293: 7(float) CompositeExtract 290 2
294: 55(fvec4) CompositeConstruct 291 292 293 181
Store 282(locPos) 294
299: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 296 295(pos) 83
300: 55(fvec4) Load 282(locPos)
301: 17(fvec3) VectorShuffle 300 300 0 1 2
303: 113(ptr) AccessChain 73(input) 302
304: 7(float) Load 303
305: 17(fvec3) VectorTimesScalar 301 304
306: 97(ptr) AccessChain 73(input) 250
307: 17(fvec3) Load 306
308: 17(fvec3) FAdd 305 307
309: 7(float) CompositeExtract 308 0
310: 7(float) CompositeExtract 308 1
311: 7(float) CompositeExtract 308 2
312: 55(fvec4) CompositeConstruct 309 310 311 181
Store 295(pos) 312
313: 55(fvec4) Load 295(pos)
314: 122 Load 262(gRotMat)
315: 55(fvec4) VectorTimesMatrix 313 314
317: 316(ptr) AccessChain 148 151 273
318: 122 Load 317
319: 55(fvec4) VectorTimesMatrix 315 318
320: 316(ptr) AccessChain 148 151 151
321: 122 Load 320
322: 55(fvec4) VectorTimesMatrix 319 321
323: 271(ptr) AccessChain 86(output) 151
Store 323 322
324: 97(ptr) AccessChain 73(input) 273
325: 17(fvec3) Load 324
326: 168 Load 238(rotMat)
327: 17(fvec3) VectorTimesMatrix 325 326
328: 122 Load 262(gRotMat)
329: 316(ptr) AccessChain 148 151 273
330: 122 Load 329
331: 122 MatrixTimesMatrix 328 330
332: 55(fvec4) CompositeExtract 331 0
333: 17(fvec3) VectorShuffle 332 332 0 1 2
334: 55(fvec4) CompositeExtract 331 1
335: 17(fvec3) VectorShuffle 334 334 0 1 2
336: 55(fvec4) CompositeExtract 331 2
337: 17(fvec3) VectorShuffle 336 336 0 1 2
338: 168 CompositeConstruct 333 335 337
339: 17(fvec3) VectorTimesMatrix 327 338
340: 97(ptr) AccessChain 86(output) 273
Store 340 339
341: 97(ptr) AccessChain 73(input) 151
342: 17(fvec3) Load 341
343: 97(ptr) AccessChain 73(input) 250
344: 17(fvec3) Load 343
345: 17(fvec3) FAdd 342 344
346: 7(float) CompositeExtract 345 0
347: 7(float) CompositeExtract 345 1
348: 7(float) CompositeExtract 345 2
349: 55(fvec4) CompositeConstruct 346 347 348 181
350: 316(ptr) AccessChain 148 151 273
351: 122 Load 350
352: 55(fvec4) VectorTimesMatrix 349 351
Store 295(pos) 352
357: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 354 353(lPos) 83
359: 358(ptr) AccessChain 148 151 95
360: 55(fvec4) Load 359
361: 17(fvec3) VectorShuffle 360 360 0 1 2
362: 316(ptr) AccessChain 148 151 273
363: 122 Load 362
364: 55(fvec4) CompositeExtract 363 0
365: 17(fvec3) VectorShuffle 364 364 0 1 2
366: 55(fvec4) CompositeExtract 363 1
367: 17(fvec3) VectorShuffle 366 366 0 1 2
368: 55(fvec4) CompositeExtract 363 2
369: 17(fvec3) VectorShuffle 368 368 0 1 2
370: 168 CompositeConstruct 365 367 369
371: 17(fvec3) VectorTimesMatrix 361 370
Store 353(lPos) 371
372: 17(fvec3) Load 353(lPos)
373: 55(fvec4) Load 295(pos)
374: 17(fvec3) VectorShuffle 373 373 0 1 2
375: 168 CompositeConstruct 370 372 374
376: 17(fvec3) VectorTimesMatrix 366 375
Store 359(lPos) 376
377: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 360 376 83
378: 17(fvec3) Load 359(lPos)
379: 55(fvec4) Load 300(pos)
380: 17(fvec3) VectorShuffle 379 379 0 1 2
381: 17(fvec3) FSub 378 380
382: 97(ptr) AccessChain 86(output) 118
Store 382 381
383: 55(fvec4) Load 300(pos)
384: 17(fvec3) VectorShuffle 383 383 0 1 2
385: 17(fvec3) FNegate 384
386: 97(ptr) AccessChain 86(output) 254
Store 386 385
387:57(VSOutput) Load 86(output)
ReturnValue 387
375: 17(fvec3) FSub 372 374
376: 97(ptr) AccessChain 86(output) 119
Store 376 375
377: 55(fvec4) Load 295(pos)
378: 17(fvec3) VectorShuffle 377 377 0 1 2
379: 17(fvec3) FNegate 378
380: 97(ptr) AccessChain 86(output) 250
Store 380 379
381:57(VSOutput) Load 86(output)
ReturnValue 381
FunctionEnd