Merge pull request #3034 from jeremy-lunarg/hayes-fix-debugdeclare-debugvalue

Use DebugDeclare for local variables
This commit is contained in:
Jeremy Hayes 2022-09-23 10:18:45 -06:00 committed by GitHub
commit 8ba94fc9de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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(); 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 #ifndef GLSLANG_WEB
Id Builder::makeAccelerationStructureType() Id Builder::makeAccelerationStructureType()
{ {
@ -2248,8 +2235,7 @@ Id Builder::createVariable(Decoration precision, StorageClass storageClass, Id t
auto const debugLocalVariableId = createDebugLocalVariable(debugId[type], name); auto const debugLocalVariableId = createDebugLocalVariable(debugId[type], name);
debugId[inst->getResultId()] = debugLocalVariableId; debugId[inst->getResultId()] = debugLocalVariableId;
// TODO: Remove? makeDebugDeclare(debugLocalVariableId, inst->getResultId());
// makeDebugDeclare(debugLocalVariableId, inst->getResultId());
} }
break; break;
@ -2322,15 +2308,6 @@ void Builder::createStore(Id rValue, Id lValue, spv::MemoryAccessMask memoryAcce
} }
buildPoint->addInstruction(std::unique_ptr<Instruction>(store)); 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 // 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 Validation failed
// Module Version 10000 // Module Version 10000
// Generated by (magic number): 8000a // Generated by (magic number): 8000a
// Id's are bound by 232 // Id's are bound by 231
Capability Geometry Capability Geometry
Capability MultiViewport Capability MultiViewport
@ -10,7 +10,7 @@ Validation failed
1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
2: ExtInstImport "GLSL.std.450" 2: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450 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 Triangles
ExecutionMode 13 Invocations 2 ExecutionMode 13 Invocations 2
ExecutionMode 13 OutputTriangleStrip ExecutionMode 13 OutputTriangleStrip
@ -33,11 +33,11 @@ Validation failed
114: String "outColor" 114: String "outColor"
118: String "inColor" 118: String "inColor"
125: String "pos" 125: String "pos"
131: String "gl_Position" 132: String "gl_Position"
134: String "gl_PointSize" 135: String "gl_PointSize"
137: String "gl_CullDistance" 138: String "gl_CullDistance"
141: String "gl_PerVertex" 142: String "gl_PerVertex"
147: String "gl_in" 148: String "gl_in"
155: String "worldPos" 155: String "worldPos"
166: String "lPos" 166: String "lPos"
183: String "outLightVec" 183: String "outLightVec"
@ -59,12 +59,12 @@ Validation failed
Name 112 "outColor" Name 112 "outColor"
Name 116 "inColor" Name 116 "inColor"
Name 123 "pos" Name 123 "pos"
Name 129 "gl_PerVertex" Name 130 "gl_PerVertex"
MemberName 129(gl_PerVertex) 0 "gl_Position" MemberName 130(gl_PerVertex) 0 "gl_Position"
MemberName 129(gl_PerVertex) 1 "gl_PointSize" MemberName 130(gl_PerVertex) 1 "gl_PointSize"
MemberName 129(gl_PerVertex) 2 "gl_ClipDistance" MemberName 130(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 129(gl_PerVertex) 3 "gl_CullDistance" MemberName 130(gl_PerVertex) 3 "gl_CullDistance"
Name 145 "gl_in" Name 146 "gl_in"
Name 153 "worldPos" Name 153 "worldPos"
Name 164 "lPos" Name 164 "lPos"
Name 181 "outLightVec" Name 181 "outLightVec"
@ -95,11 +95,11 @@ Validation failed
Decorate 104(inNormal) Location 0 Decorate 104(inNormal) Location 0
Decorate 112(outColor) Location 1 Decorate 112(outColor) Location 1
Decorate 116(inColor) Location 1 Decorate 116(inColor) Location 1
MemberDecorate 129(gl_PerVertex) 0 BuiltIn Position MemberDecorate 130(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 129(gl_PerVertex) 1 BuiltIn PointSize MemberDecorate 130(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 129(gl_PerVertex) 2 BuiltIn ClipDistance MemberDecorate 130(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 129(gl_PerVertex) 3 BuiltIn CullDistance MemberDecorate 130(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 129(gl_PerVertex) Block Decorate 130(gl_PerVertex) Block
Decorate 181(outLightVec) Location 3 Decorate 181(outLightVec) Location 3
Decorate 189(outViewVec) Location 2 Decorate 189(outViewVec) Location 2
MemberDecorate 196(gl_PerVertex) 0 BuiltIn Position MemberDecorate 196(gl_PerVertex) 0 BuiltIn Position
@ -130,8 +130,8 @@ Validation failed
27: TypePointer Function 24(int) 27: TypePointer Function 24(int)
31: 6(int) Constant 49 31: 6(int) Constant 49
29: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 30 26 16 31 11 15 20 29: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 30 26 16 31 11 15 20
32: 24(int) Constant 0 33: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(Sqrt)
34: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(Sqrt) 34: 24(int) Constant 0
41: 24(int) Constant 3 41: 24(int) Constant 3
42: TypeBool 42: TypeBool
44: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 43 9 21 11 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) 122: TypePointer Function 57(fvec4)
126: 6(int) Constant 54 126: 6(int) Constant 54
124: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 125 58 16 126 11 15 20 124: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 125 58 16 126 11 15 20
127: TypeArray 46(float) 19 128: TypeArray 46(float) 19
128: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 48 19 129: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 48 19
129(gl_PerVertex): TypeStruct 57(fvec4) 46(float) 127 127 130(gl_PerVertex): TypeStruct 57(fvec4) 46(float) 128 128
132: 6(int) Constant 23 133: 6(int) Constant 23
130: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 131 58 16 21 132 11 11 12 131: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 132 58 16 21 133 11 11 12
135: 6(int) Constant 41 136: 6(int) Constant 41
133: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 134 48 16 21 135 11 11 12 134: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 135 48 16 21 136 11 11 12
138: 6(int) Constant 84 139: 6(int) Constant 84
136: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 137 128 16 21 138 11 11 12 137: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 138 129 16 21 139 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) 11(Radians) 138 129 16 21 139 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 141: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 142 19 16 126 11 18 142 11 12 131 134 137 140
142: TypeArray 129(gl_PerVertex) 12 143: TypeArray 130(gl_PerVertex) 12
143: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 140 12 144: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 141 12
144: TypePointer Input 142 145: TypePointer Input 143
145(gl_in): 144(ptr) Variable Input 146(gl_in): 145(ptr) Variable Input
146: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 147 143 16 126 11 18 147 145(gl_in) 56 147: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 148 144 16 126 11 18 148 146(gl_in) 56
149: TypePointer Input 57(fvec4) 150: TypePointer Input 57(fvec4)
156: 6(int) Constant 55 156: 6(int) Constant 55
154: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 155 58 16 156 11 15 20 154: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 155 58 16 156 11 15 20
163: TypePointer Function 49(fvec3) 163: TypePointer Function 49(fvec3)
167: 6(int) Constant 57 167: 6(int) Constant 57
165: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 166 50 16 167 11 15 20 165: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 166 50 16 167 11 15 20
171: 24(int) Constant 2 172: 24(int) Constant 2
172: TypePointer Uniform 57(fvec4) 173: TypePointer Uniform 57(fvec4)
181(outLightVec): 51(ptr) Variable Output 181(outLightVec): 51(ptr) Variable Output
184: 6(int) Constant 58 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 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 189(outViewVec): 51(ptr) Variable Output
192: 6(int) Constant 59 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 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 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 200: 6(int) Constant 233
199: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 134 48 16 21 200 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) 137 128 16 12 70 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) 137 128 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 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) 205: TypePointer Output 196(gl_PerVertex)
206: 205(ptr) Variable Output 206: 205(ptr) Variable Output
207: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 17 203 16 204 11 18 17 206 56 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 153(worldPos): 122(ptr) Variable Function
164(lPos): 163(ptr) Variable Function 164(lPos): 163(ptr) Variable Function
23: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101 15 13(main) 23: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101 15 13(main)
Store 28(i) 32 32: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 29 28(i) 33
33: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 29 32 34 Store 28(i) 34
Branch 35 Branch 35
35: Label 35: Label
LoopMerge 37 38 None LoopMerge 37 38 None
@ -275,30 +275,30 @@ Validation failed
120: 108(ptr) AccessChain 116(inColor) 119 120: 108(ptr) AccessChain 116(inColor) 119
121: 49(fvec3) Load 120 121: 49(fvec3) Load 120
Store 112(outColor) 121 Store 112(outColor) 121
148: 24(int) Load 28(i) 127: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 124 123(pos) 33
150: 149(ptr) AccessChain 145(gl_in) 148 32 149: 24(int) Load 28(i)
151: 57(fvec4) Load 150 151: 150(ptr) AccessChain 146(gl_in) 149 34
Store 123(pos) 151 152: 57(fvec4) Load 151
152: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 124 151 34 Store 123(pos) 152
157: 24(int) Load 85(gl_InvocationID) 157: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 154 153(worldPos) 33
158: 89(ptr) AccessChain 80(ubo) 83 157 158: 24(int) Load 85(gl_InvocationID)
159: 59 Load 158 159: 89(ptr) AccessChain 80(ubo) 83 158
160: 57(fvec4) Load 123(pos) 160: 59 Load 159
161: 57(fvec4) MatrixTimesVector 159 160 161: 57(fvec4) Load 123(pos)
Store 153(worldPos) 161 162: 57(fvec4) MatrixTimesVector 160 161
162: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 154 161 34 Store 153(worldPos) 162
168: 24(int) Load 85(gl_InvocationID) 168: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 165 164(lPos) 33
169: 89(ptr) AccessChain 80(ubo) 83 168 169: 24(int) Load 85(gl_InvocationID)
170: 59 Load 169 170: 89(ptr) AccessChain 80(ubo) 83 169
173: 172(ptr) AccessChain 80(ubo) 171 171: 59 Load 170
174: 57(fvec4) Load 173 174: 173(ptr) AccessChain 80(ubo) 172
175: 57(fvec4) MatrixTimesVector 170 174 175: 57(fvec4) Load 174
176: 46(float) CompositeExtract 175 0 176: 57(fvec4) MatrixTimesVector 171 175
177: 46(float) CompositeExtract 175 1 177: 46(float) CompositeExtract 176 0
178: 46(float) CompositeExtract 175 2 178: 46(float) CompositeExtract 176 1
179: 49(fvec3) CompositeConstruct 176 177 178 179: 46(float) CompositeExtract 176 2
Store 164(lPos) 179 180: 49(fvec3) CompositeConstruct 177 178 179
180: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 165 179 34 Store 164(lPos) 180
185: 49(fvec3) Load 164(lPos) 185: 49(fvec3) Load 164(lPos)
186: 57(fvec4) Load 153(worldPos) 186: 57(fvec4) Load 153(worldPos)
187: 49(fvec3) VectorShuffle 186 186 0 1 2 187: 49(fvec3) VectorShuffle 186 186 0 1 2
@ -309,11 +309,11 @@ Validation failed
195: 49(fvec3) FNegate 194 195: 49(fvec3) FNegate 194
Store 189(outViewVec) 195 Store 189(outViewVec) 195
208: 24(int) Load 85(gl_InvocationID) 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 210: 59 Load 209
211: 57(fvec4) Load 153(worldPos) 211: 57(fvec4) Load 153(worldPos)
212: 57(fvec4) MatrixTimesVector 210 211 212: 57(fvec4) MatrixTimesVector 210 211
214: 213(ptr) AccessChain 206 32 214: 213(ptr) AccessChain 206 34
Store 214 212 Store 214 212
220: 24(int) Load 85(gl_InvocationID) 220: 24(int) Load 85(gl_InvocationID)
Store 216(gl_ViewportIndex) 220 Store 216(gl_ViewportIndex) 220
@ -325,7 +325,6 @@ Validation failed
229: 24(int) Load 28(i) 229: 24(int) Load 28(i)
230: 24(int) IAdd 229 83 230: 24(int) IAdd 229 83
Store 28(i) 230 Store 28(i) 230
231: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 29 230 34
Branch 35 Branch 35
37: Label 37: Label
EndPrimitive 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" 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
2: ExtInstImport "GLSL.std.450" 2: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450 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 Quads
ExecutionMode 13 SpacingEqual ExecutionMode 13 SpacingEqual
ExecutionMode 13 VertexOrderCw ExecutionMode 13 VertexOrderCw
@ -18,21 +18,21 @@ Validation failed
17: String "" 17: String ""
25: String "float" 25: String "float"
32: String "uv1" 32: String "uv1"
39: String "inUV" 41: String "inUV"
42: String "int" 44: String "int"
56: String "gl_TessCoord" 58: String "gl_TessCoord"
66: String "uv2" 66: String "uv2"
82: String "outUV" 82: String "outUV"
93: String "n1" 93: String "n1"
100: String "inNormal" 101: String "inNormal"
112: String "n2" 112: String "n2"
126: String "outNormal" 126: String "outNormal"
139: String "pos1" 139: String "pos1"
145: String "gl_Position" 146: String "gl_Position"
148: String "gl_PointSize" 149: String "gl_PointSize"
151: String "gl_CullDistance" 152: String "gl_CullDistance"
155: String "gl_PerVertex" 156: String "gl_PerVertex"
161: String "gl_in" 162: String "gl_in"
174: String "pos2" 174: String "pos2"
187: String "pos" 187: String "pos"
198: String "type.2d.image" 198: String "type.2d.image"
@ -53,21 +53,21 @@ Validation failed
305: String "outEyePos" 305: String "outEyePos"
Name 13 "main" Name 13 "main"
Name 30 "uv1" Name 30 "uv1"
Name 37 "inUV" Name 39 "inUV"
Name 54 "gl_TessCoord" Name 56 "gl_TessCoord"
Name 64 "uv2" Name 64 "uv2"
Name 80 "outUV" Name 80 "outUV"
Name 91 "n1" Name 91 "n1"
Name 98 "inNormal" Name 99 "inNormal"
Name 110 "n2" Name 110 "n2"
Name 124 "outNormal" Name 124 "outNormal"
Name 137 "pos1" Name 137 "pos1"
Name 143 "gl_PerVertex" Name 144 "gl_PerVertex"
MemberName 143(gl_PerVertex) 0 "gl_Position" MemberName 144(gl_PerVertex) 0 "gl_Position"
MemberName 143(gl_PerVertex) 1 "gl_PointSize" MemberName 144(gl_PerVertex) 1 "gl_PointSize"
MemberName 143(gl_PerVertex) 2 "gl_ClipDistance" MemberName 144(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 143(gl_PerVertex) 3 "gl_CullDistance" MemberName 144(gl_PerVertex) 3 "gl_CullDistance"
Name 159 "gl_in" Name 160 "gl_in"
Name 172 "pos2" Name 172 "pos2"
Name 185 "pos" Name 185 "pos"
Name 207 "displacementMap" Name 207 "displacementMap"
@ -91,16 +91,16 @@ Validation failed
Name 286 "outLightVec" Name 286 "outLightVec"
Name 297 "outWorldPos" Name 297 "outWorldPos"
Name 303 "outEyePos" Name 303 "outEyePos"
Decorate 37(inUV) Location 1 Decorate 39(inUV) Location 1
Decorate 54(gl_TessCoord) BuiltIn TessCoord Decorate 56(gl_TessCoord) BuiltIn TessCoord
Decorate 80(outUV) Location 1 Decorate 80(outUV) Location 1
Decorate 98(inNormal) Location 0 Decorate 99(inNormal) Location 0
Decorate 124(outNormal) Location 0 Decorate 124(outNormal) Location 0
MemberDecorate 143(gl_PerVertex) 0 BuiltIn Position MemberDecorate 144(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 143(gl_PerVertex) 1 BuiltIn PointSize MemberDecorate 144(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 143(gl_PerVertex) 2 BuiltIn ClipDistance MemberDecorate 144(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 143(gl_PerVertex) 3 BuiltIn CullDistance MemberDecorate 144(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 143(gl_PerVertex) Block Decorate 144(gl_PerVertex) Block
Decorate 207(displacementMap) DescriptorSet 0 Decorate 207(displacementMap) DescriptorSet 0
Decorate 207(displacementMap) Binding 1 Decorate 207(displacementMap) Binding 1
Decorate 219 ArrayStride 16 Decorate 219 ArrayStride 16
@ -150,68 +150,68 @@ Validation failed
29: TypePointer Function 27(fvec2) 29: TypePointer Function 27(fvec2)
33: 6(int) Constant 56 33: 6(int) Constant 56
31: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 32 28 16 33 11 15 20 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) 31(Sqrt)
35: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 28 9 36: TypeArray 27(fvec2) 9
36: TypePointer Input 34 37: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 28 9
37(inUV): 36(ptr) Variable Input 38: TypePointer Input 36
40: 6(int) Constant 8 39(inUV): 38(ptr) Variable Input
38: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 39 35 16 33 11 18 39 37(inUV) 40 42: 6(int) Constant 8
41: TypeInt 32 1 40: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 41 37 16 33 11 18 41 39(inUV) 42
43: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 42 9 20 11 43: TypeInt 32 1
44: 41(int) Constant 0 45: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 44 9 20 11
45: TypePointer Input 27(fvec2) 46: 43(int) Constant 0
48: 41(int) Constant 1 47: TypePointer Input 27(fvec2)
51: TypeVector 24(float) 3 50: 43(int) Constant 1
52: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(FSign) 26 12 53: TypeVector 24(float) 3
53: TypePointer Input 51(fvec3) 54: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(FSign) 26 12
54(gl_TessCoord): 53(ptr) Variable Input 55: TypePointer Input 53(fvec3)
55: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 56 52 16 33 11 18 56 54(gl_TessCoord) 40 56(gl_TessCoord): 55(ptr) Variable Input
57: TypePointer Input 24(float) 57: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 58 54 16 33 11 18 58 56(gl_TessCoord) 42
63: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(Sqrt) 59: TypePointer Input 24(float)
67: 6(int) Constant 57 67: 6(int) Constant 57
65: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 66 28 16 67 11 15 20 65: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 66 28 16 67 11 15 20
68: 41(int) Constant 3 69: 43(int) Constant 3
71: 41(int) Constant 2 72: 43(int) Constant 2
79: TypePointer Output 27(fvec2) 79: TypePointer Output 27(fvec2)
80(outUV): 79(ptr) Variable Output 80(outUV): 79(ptr) Variable Output
83: 6(int) Constant 58 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 81: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 82 28 16 83 11 18 82 80(outUV) 42
90: TypePointer Function 51(fvec3) 90: TypePointer Function 53(fvec3)
94: 6(int) Constant 60 94: 6(int) Constant 60
92: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 93 52 16 94 11 15 20 92: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 93 54 16 94 11 15 20
95: TypeArray 51(fvec3) 9 96: TypeArray 53(fvec3) 9
96: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 52 9 97: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 54 9
97: TypePointer Input 95 98: TypePointer Input 96
98(inNormal): 97(ptr) Variable Input 99(inNormal): 98(ptr) Variable Input
99: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 100 96 16 94 11 18 100 98(inNormal) 40 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 113: 6(int) Constant 61
111: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 112 52 16 113 11 15 20 111: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 112 54 16 113 11 15 20
123: TypePointer Output 51(fvec3) 123: TypePointer Output 53(fvec3)
124(outNormal): 123(ptr) Variable Output 124(outNormal): 123(ptr) Variable Output
127: 6(int) Constant 62 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 134: TypeVector 24(float) 4
135: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(FSign) 26 20 135: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(FSign) 26 20
136: TypePointer Function 134(fvec4) 136: TypePointer Function 134(fvec4)
140: 6(int) Constant 65 140: 6(int) Constant 65
138: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 139 135 16 140 11 15 20 138: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 139 135 16 140 11 15 20
141: TypeArray 24(float) 19 142: TypeArray 24(float) 19
142: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 26 19 143: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 26 19
143(gl_PerVertex): TypeStruct 134(fvec4) 24(float) 141 141 144(gl_PerVertex): TypeStruct 134(fvec4) 24(float) 142 142
146: 6(int) Constant 1756 147: 6(int) Constant 1756
144: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 145 135 16 19 146 11 11 12 145: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 146 135 16 19 147 11 11 12
149: 6(int) Constant 1774 150: 6(int) Constant 1774
147: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 148 26 16 19 149 11 11 12 148: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 149 26 16 19 150 11 11 12
152: 6(int) Constant 1817 153: 6(int) Constant 1817
150: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 151 142 16 19 152 11 11 12 151: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 152 143 16 19 153 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) 11(Radians) 152 143 16 19 153 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 155: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 156 19 16 140 11 18 156 11 12 145 148 151 154
156: TypeArray 143(gl_PerVertex) 9 157: TypeArray 144(gl_PerVertex) 9
157: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 154 9 158: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 155 9
158: TypePointer Input 156 159: TypePointer Input 157
159(gl_in): 158(ptr) Variable Input 160(gl_in): 159(ptr) Variable Input
160: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 161 157 16 140 11 18 161 159(gl_in) 40 161: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 162 158 16 140 11 18 162 160(gl_in) 42
162: TypePointer Input 134(fvec4) 163: TypePointer Input 134(fvec4)
175: 6(int) Constant 66 175: 6(int) Constant 66
173: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 174 135 16 175 11 15 20 173: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 174 135 16 175 11 15 20
188: 6(int) Constant 67 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 203: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 204 11 16 199 11 18 205 201 12
206: TypePointer UniformConstant 202 206: TypePointer UniformConstant 202
207(displacementMap): 206(ptr) Variable UniformConstant 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 212: 24(float) Constant 0
215: TypeMatrix 134(fvec4) 4 215: TypeMatrix 134(fvec4) 4
217: TypeBool 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 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 230: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 231 220 16 9 225 11 11 12
234: 6(int) Constant 36 234: 6(int) Constant 36
232: 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 40 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 238: 6(int) Constant 35
236: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 237 28 16 238 225 11 11 12 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 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) 242: TypePointer Uniform 221(UBO)
243(ubo): 242(ptr) Variable Uniform 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 244: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 245 240 16 199 11 18 245 243(ubo) 42
246: 41(int) Constant 4 246: 43(int) Constant 4
247: TypePointer Uniform 24(float) 247: TypePointer Uniform 24(float)
251: TypePointer Function 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 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 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 262: 6(int) Constant 226
261: 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) 151 142 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 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) 266: TypePointer Output 256(gl_PerVertex)
267: 266(ptr) Variable Output 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 269: TypePointer Uniform 215
277: TypePointer Output 134(fvec4) 277: TypePointer Output 134(fvec4)
279(outViewVec): 123(ptr) Variable Output 279(outViewVec): 123(ptr) Variable Output
282: 6(int) Constant 74 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 286(outLightVec): 123(ptr) Variable Output
289: 6(int) Constant 75 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) 290: TypePointer Uniform 134(fvec4)
297(outWorldPos): 123(ptr) Variable Output 297(outWorldPos): 123(ptr) Variable Output
300: 6(int) Constant 76 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 303(outEyePos): 123(ptr) Variable Output
306: 6(int) Constant 77 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 13(main): 3 Function None 4
22: Label 22: Label
30(uv1): 29(ptr) Variable Function 30(uv1): 29(ptr) Variable Function
@ -291,88 +291,88 @@ Validation failed
172(pos2): 136(ptr) Variable Function 172(pos2): 136(ptr) Variable Function
185(pos): 136(ptr) Variable Function 185(pos): 136(ptr) Variable Function
23: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101 15 13(main) 23: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101 15 13(main)
46: 45(ptr) AccessChain 37(inUV) 44 34: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 31 30(uv1) 35
47: 27(fvec2) Load 46 48: 47(ptr) AccessChain 39(inUV) 46
49: 45(ptr) AccessChain 37(inUV) 48 49: 27(fvec2) Load 48
50: 27(fvec2) Load 49 51: 47(ptr) AccessChain 39(inUV) 50
58: 57(ptr) AccessChain 54(gl_TessCoord) 11 52: 27(fvec2) Load 51
59: 24(float) Load 58 60: 59(ptr) AccessChain 56(gl_TessCoord) 11
60: 27(fvec2) CompositeConstruct 59 59 61: 24(float) Load 60
61: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 47 50 60 62: 27(fvec2) CompositeConstruct 61 61
Store 30(uv1) 61 63: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 49 52 62
62: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 31 61 63 Store 30(uv1) 63
69: 45(ptr) AccessChain 37(inUV) 68 68: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 65 64(uv2) 35
70: 27(fvec2) Load 69 70: 47(ptr) AccessChain 39(inUV) 69
72: 45(ptr) AccessChain 37(inUV) 71 71: 27(fvec2) Load 70
73: 27(fvec2) Load 72 73: 47(ptr) AccessChain 39(inUV) 72
74: 57(ptr) AccessChain 54(gl_TessCoord) 11 74: 27(fvec2) Load 73
75: 24(float) Load 74 75: 59(ptr) AccessChain 56(gl_TessCoord) 11
76: 27(fvec2) CompositeConstruct 75 75 76: 24(float) Load 75
77: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 70 73 76 77: 27(fvec2) CompositeConstruct 76 76
Store 64(uv2) 77 78: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 71 74 77
78: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 65 77 63 Store 64(uv2) 78
84: 27(fvec2) Load 30(uv1) 84: 27(fvec2) Load 30(uv1)
85: 27(fvec2) Load 64(uv2) 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 87: 24(float) Load 86
88: 27(fvec2) CompositeConstruct 87 87 88: 27(fvec2) CompositeConstruct 87 87
89: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 84 85 88 89: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 84 85 88
Store 80(outUV) 89 Store 80(outUV) 89
101: 53(ptr) AccessChain 98(inNormal) 44 95: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 92 91(n1) 35
102: 51(fvec3) Load 101 102: 55(ptr) AccessChain 99(inNormal) 46
103: 53(ptr) AccessChain 98(inNormal) 48 103: 53(fvec3) Load 102
104: 51(fvec3) Load 103 104: 55(ptr) AccessChain 99(inNormal) 50
105: 57(ptr) AccessChain 54(gl_TessCoord) 11 105: 53(fvec3) Load 104
106: 24(float) Load 105 106: 59(ptr) AccessChain 56(gl_TessCoord) 11
107: 51(fvec3) CompositeConstruct 106 106 106 107: 24(float) Load 106
108: 51(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 102 104 107 108: 53(fvec3) CompositeConstruct 107 107 107
Store 91(n1) 108 109: 53(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 103 105 108
109: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 92 108 63 Store 91(n1) 109
114: 53(ptr) AccessChain 98(inNormal) 68 114: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 111 110(n2) 35
115: 51(fvec3) Load 114 115: 55(ptr) AccessChain 99(inNormal) 69
116: 53(ptr) AccessChain 98(inNormal) 71 116: 53(fvec3) Load 115
117: 51(fvec3) Load 116 117: 55(ptr) AccessChain 99(inNormal) 72
118: 57(ptr) AccessChain 54(gl_TessCoord) 11 118: 53(fvec3) Load 117
119: 24(float) Load 118 119: 59(ptr) AccessChain 56(gl_TessCoord) 11
120: 51(fvec3) CompositeConstruct 119 119 119 120: 24(float) Load 119
121: 51(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 115 117 120 121: 53(fvec3) CompositeConstruct 120 120 120
Store 110(n2) 121 122: 53(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 116 118 121
122: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 111 121 63 Store 110(n2) 122
128: 51(fvec3) Load 91(n1) 128: 53(fvec3) Load 91(n1)
129: 51(fvec3) Load 110(n2) 129: 53(fvec3) Load 110(n2)
130: 57(ptr) AccessChain 54(gl_TessCoord) 19 130: 59(ptr) AccessChain 56(gl_TessCoord) 19
131: 24(float) Load 130 131: 24(float) Load 130
132: 51(fvec3) CompositeConstruct 131 131 131 132: 53(fvec3) CompositeConstruct 131 131 131
133: 51(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 128 129 132 133: 53(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 128 129 132
Store 124(outNormal) 133 Store 124(outNormal) 133
163: 162(ptr) AccessChain 159(gl_in) 44 44 141: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 138 137(pos1) 35
164: 134(fvec4) Load 163 164: 163(ptr) AccessChain 160(gl_in) 46 46
165: 162(ptr) AccessChain 159(gl_in) 48 44 165: 134(fvec4) Load 164
166: 134(fvec4) Load 165 166: 163(ptr) AccessChain 160(gl_in) 50 46
167: 57(ptr) AccessChain 54(gl_TessCoord) 11 167: 134(fvec4) Load 166
168: 24(float) Load 167 168: 59(ptr) AccessChain 56(gl_TessCoord) 11
169: 134(fvec4) CompositeConstruct 168 168 168 168 169: 24(float) Load 168
170: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 164 166 169 170: 134(fvec4) CompositeConstruct 169 169 169 169
Store 137(pos1) 170 171: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 165 167 170
171: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 138 170 63 Store 137(pos1) 171
176: 162(ptr) AccessChain 159(gl_in) 68 44 176: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 173 172(pos2) 35
177: 134(fvec4) Load 176 177: 163(ptr) AccessChain 160(gl_in) 69 46
178: 162(ptr) AccessChain 159(gl_in) 71 44 178: 134(fvec4) Load 177
179: 134(fvec4) Load 178 179: 163(ptr) AccessChain 160(gl_in) 72 46
180: 57(ptr) AccessChain 54(gl_TessCoord) 11 180: 134(fvec4) Load 179
181: 24(float) Load 180 181: 59(ptr) AccessChain 56(gl_TessCoord) 11
182: 134(fvec4) CompositeConstruct 181 181 181 181 182: 24(float) Load 181
183: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 177 179 182 183: 134(fvec4) CompositeConstruct 182 182 182 182
Store 172(pos2) 183 184: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 178 180 183
184: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 173 183 63 Store 172(pos2) 184
189: 134(fvec4) Load 137(pos1) 189: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 186 185(pos) 35
190: 134(fvec4) Load 172(pos2) 190: 134(fvec4) Load 137(pos1)
191: 57(ptr) AccessChain 54(gl_TessCoord) 19 191: 134(fvec4) Load 172(pos2)
192: 24(float) Load 191 192: 59(ptr) AccessChain 56(gl_TessCoord) 19
193: 134(fvec4) CompositeConstruct 192 192 192 192 193: 24(float) Load 192
194: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 189 190 193 194: 134(fvec4) CompositeConstruct 193 193 193 193
Store 185(pos) 194 195: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 190 191 194
195: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 186 194 63 Store 185(pos) 195
210: 202 Load 207(displacementMap) 210: 202 Load 207(displacementMap)
211: 27(fvec2) Load 80(outUV) 211: 27(fvec2) Load 80(outUV)
213: 134(fvec4) ImageSampleExplicitLod 210 211 Lod 212 213: 134(fvec4) ImageSampleExplicitLod 210 211 Lod 212
@ -385,37 +385,37 @@ Validation failed
254: 24(float) FSub 253 250 254: 24(float) FSub 253 250
255: 251(ptr) AccessChain 185(pos) 19 255: 251(ptr) AccessChain 185(pos) 19
Store 255 254 Store 255 254
270: 269(ptr) AccessChain 243(ubo) 44 270: 269(ptr) AccessChain 243(ubo) 46
271: 215 Load 270 271: 215 Load 270
272: 269(ptr) AccessChain 243(ubo) 48 272: 269(ptr) AccessChain 243(ubo) 50
273: 215 Load 272 273: 215 Load 272
274: 215 MatrixTimesMatrix 271 273 274: 215 MatrixTimesMatrix 271 273
275: 134(fvec4) Load 185(pos) 275: 134(fvec4) Load 185(pos)
276: 134(fvec4) MatrixTimesVector 274 275 276: 134(fvec4) MatrixTimesVector 274 275
278: 277(ptr) AccessChain 267 44 278: 277(ptr) AccessChain 267 46
Store 278 276 Store 278 276
283: 134(fvec4) Load 185(pos) 283: 134(fvec4) Load 185(pos)
284: 51(fvec3) VectorShuffle 283 283 0 1 2 284: 53(fvec3) VectorShuffle 283 283 0 1 2
285: 51(fvec3) FNegate 284 285: 53(fvec3) FNegate 284
Store 279(outViewVec) 285 Store 279(outViewVec) 285
291: 290(ptr) AccessChain 243(ubo) 71 291: 290(ptr) AccessChain 243(ubo) 72
292: 134(fvec4) Load 291 292: 134(fvec4) Load 291
293: 51(fvec3) VectorShuffle 292 292 0 1 2 293: 53(fvec3) VectorShuffle 292 292 0 1 2
294: 51(fvec3) Load 279(outViewVec) 294: 53(fvec3) Load 279(outViewVec)
295: 51(fvec3) FAdd 293 294 295: 53(fvec3) FAdd 293 294
296: 51(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 295 296: 53(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 295
Store 286(outLightVec) 296 Store 286(outLightVec) 296
301: 134(fvec4) Load 185(pos) 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 Store 297(outWorldPos) 302
307: 269(ptr) AccessChain 243(ubo) 48 307: 269(ptr) AccessChain 243(ubo) 50
308: 215 Load 307 308: 215 Load 307
309: 134(fvec4) Load 185(pos) 309: 134(fvec4) Load 185(pos)
310: 134(fvec4) MatrixTimesVector 308 309 310: 134(fvec4) MatrixTimesVector 308 309
311: 24(float) CompositeExtract 310 0 311: 24(float) CompositeExtract 310 0
312: 24(float) CompositeExtract 310 1 312: 24(float) CompositeExtract 310 1
313: 24(float) CompositeExtract 310 2 313: 24(float) CompositeExtract 310 2
314: 51(fvec3) CompositeConstruct 311 312 313 314: 53(fvec3) CompositeConstruct 311 312 313
Store 303(outEyePos) 314 Store 303(outEyePos) 314
Return Return
FunctionEnd FunctionEnd

View File

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

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

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

File diff suppressed because it is too large Load Diff

View File

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

View File

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