glslang/Test/baseResults/spv.debuginfo.glsl.vert.out
Sajjad Mirza 33cef2f02d Emit correct nonsemantic debug info for explicitly sized types
Previously, the type names in the nonsemantic shader debug info would be
"int", "uint", or "float" for all numeric types. This change makes the
correct names such as "int8_t" or "float16_t" get emitted.
2023-12-11 20:03:18 +00:00

542 lines
32 KiB
Plaintext

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