yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

spencer-lunargFix ShaderDebugInfo having invalid line numbers in 1.0e4c40890

main
43.9 KiB780 linesraw
1spv.debuginfo.hlsl.vert
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 534
5
6                              Capability Shader
7                              Extension  "SPV_KHR_non_semantic_info"
8               1:             ExtInstImport  "NonSemantic.Shader.DebugInfo.100"
9               3:             ExtInstImport  "GLSL.std.450"
10                              MemoryModel Logical GLSL450
11                              EntryPoint Vertex 6  "main" 483 486 490 493 496 499 503 507 515 519 522 525 528 531
12               2:             String  "spv.debuginfo.hlsl.vert"
13               9:             String  "float"
14              12:             String  "uint"
15              24:             String  "int"
16              29:             String  "Pos"
17              31:             String  "/*
18The MIT License (MIT)
19
20Copyright (c) 2022 Google LLC
21Copyright (c) 2022 Sascha Willems
22
23Permission is hereby granted, free of charge, to any person obtaining a copy
24of this software and associated documentation files (the "Software"), to deal
25in the Software without restriction, including without limitation the rights
26to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
27copies of the Software, and to permit persons to whom the Software is
28furnished to do so, subject to the following conditions:
29
30The above copyright notice and this permission notice shall be included in all
31copies or substantial portions of the Software.
32
33THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
34IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
35FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
36AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
37LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
38OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
39SOFTWARE.
40*/
41
42struct VSInput
43{
44[[vk::location(0)]] float3 Pos : POSITION0;
45[[vk::location(1)]] float3 Normal : NORMAL0;
46[[vk::location(2)]] float2 UV : TEXCOORD0;
47[[vk::location(3)]] float3 Color : COLOR0;
48
49// Instanced attributes
50[[vk::location(4)]] float3 instancePos : POSITION1;
51[[vk::location(5)]] float3 instanceRot : TEXCOORD1;
52[[vk::location(6)]] float instanceScale : TEXCOORD2;
53[[vk::location(7)]] int instanceTexIndex : TEXCOORD3;
54};
55
56struct UBO
57{
58	float4x4 projection;
59	float4x4 modelview;
60	float4 lightPos;
61	float locSpeed;
62	float globSpeed;
63};
64
65cbuffer ubo : register(b0) { UBO ubo; }
66
67struct VSOutput
68{
69	float4 Pos : SV_POSITION;
70[[vk::location(0)]] float3 Normal : NORMAL0;
71[[vk::location(1)]] float3 Color : COLOR0;
72[[vk::location(2)]] float3 UV : TEXCOORD0;
73[[vk::location(3)]] float3 ViewVec : TEXCOORD1;
74[[vk::location(4)]] float3 LightVec : TEXCOORD2;
75};
76
77VSOutput main(VSInput input)
78{
79	VSOutput output = (VSOutput)0;
80	output.Color = input.Color;
81	output.UV = float3(input.UV, input.instanceTexIndex);
82
83	// rotate around x
84	float s = sin(input.instanceRot.x + ubo.locSpeed);
85	float c = cos(input.instanceRot.x + ubo.locSpeed);
86
87	float3x3 mx = { c, -s, 0.0,
88					s, c, 0.0,
89					0.0, 0.0, 1.0 };
90
91	// rotate around y
92	s = sin(input.instanceRot.y + ubo.locSpeed);
93	c = cos(input.instanceRot.y + ubo.locSpeed);
94
95	float3x3 my = { c, 0.0, -s,
96					0.0, 1.0, 0.0,
97					s, 0.0, c };
98
99	// rot around z
100	s = sin(input.instanceRot.z + ubo.locSpeed);
101	c = cos(input.instanceRot.z + ubo.locSpeed);
102
103	float3x3 mz = { 1.0, 0.0, 0.0,
104					0.0, c, -s,
105					0.0, s, c };
106
107	float3x3 rotMat = mul(mz, mul(my, mx));
108
109	float4x4 gRotMat;
110	s = sin(input.instanceRot.y + ubo.globSpeed);
111	c = cos(input.instanceRot.y + ubo.globSpeed);
112	gRotMat[0] = float4(c, 0.0, -s, 0.0);
113	gRotMat[1] = float4(0.0, 1.0, 0.0, 0.0);
114	gRotMat[2] = float4(s, 0.0, c, 0.0);
115	gRotMat[3] = float4(0.0, 0.0, 0.0, 1.0);
116
117	float4 locPos = float4(mul(rotMat, input.Pos.xyz), 1.0);
118	float4 pos = float4((locPos.xyz * input.instanceScale) + input.instancePos, 1.0);
119
120	output.Pos = mul(ubo.projection, mul(ubo.modelview, mul(gRotMat, pos)));
121	output.Normal = mul((float3x3)mul(ubo.modelview, gRotMat), mul(rotMat, input.Normal));
122
123	pos = mul(ubo.modelview, float4(input.Pos.xyz + input.instancePos, 1.0));
124	float3 lPos = mul((float3x3)ubo.modelview, ubo.lightPos.xyz);
125	output.LightVec = lPos - pos.xyz;
126	output.ViewVec = -pos.xyz;
127	return output;
128}
129"
130              34:             String  "Normal"
131              38:             String  "UV"
132              42:             String  "Color"
133              45:             String  "instancePos"
134              48:             String  "instanceRot"
135              50:             String  "instanceScale"
136              54:             String  "instanceTexIndex"
137              58:             String  "VSInput"
138              79:             String  "ViewVec"
139              82:             String  "LightVec"
140              85:             String  "VSOutput"
141              91:             String  "@main"
142              94:             String  "input"
143             105:             String  "output"
144             143:             String  "s"
145             153:             String  "bool"
146             158:             String  "projection"
147             161:             String  "modelview"
148             165:             String  "lightPos"
149             169:             String  "locSpeed"
150             173:             String  "globSpeed"
151             176:             String  "UBO"
152             179:             String  "ubo"
153             186:             String  ""
154             197:             String  "c"
155             213:             String  "mx"
156             248:             String  "my"
157             282:             String  "mz"
158             302:             String  "rotMat"
159             315:             String  "gRotMat"
160             362:             String  "locPos"
161             376:             String  "pos"
162             442:             String  "lPos"
163                              Name 6  "main"
164                              Name 27  "VSInput"
165                              MemberName 27(VSInput) 0  "Pos"
166                              MemberName 27(VSInput) 1  "Normal"
167                              MemberName 27(VSInput) 2  "UV"
168                              MemberName 27(VSInput) 3  "Color"
169                              MemberName 27(VSInput) 4  "instancePos"
170                              MemberName 27(VSInput) 5  "instanceRot"
171                              MemberName 27(VSInput) 6  "instanceScale"
172                              MemberName 27(VSInput) 7  "instanceTexIndex"
173                              Name 68  "VSOutput"
174                              MemberName 68(VSOutput) 0  "Pos"
175                              MemberName 68(VSOutput) 1  "Normal"
176                              MemberName 68(VSOutput) 2  "Color"
177                              MemberName 68(VSOutput) 3  "UV"
178                              MemberName 68(VSOutput) 4  "ViewVec"
179                              MemberName 68(VSOutput) 5  "LightVec"
180                              Name 89  "@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;"
181                              Name 88  "input"
182                              Name 103  "output"
183                              Name 141  "s"
184                              Name 156  "UBO"
185                              MemberName 156(UBO) 0  "projection"
186                              MemberName 156(UBO) 1  "modelview"
187                              MemberName 156(UBO) 2  "lightPos"
188                              MemberName 156(UBO) 3  "locSpeed"
189                              MemberName 156(UBO) 4  "globSpeed"
190                              Name 177  "ubo"
191                              MemberName 177(ubo) 0  "ubo"
192                              Name 184  ""
193                              Name 195  "c"
194                              Name 211  "mx"
195                              Name 246  "my"
196                              Name 280  "mz"
197                              Name 300  "rotMat"
198                              Name 313  "gRotMat"
199                              Name 360  "locPos"
200                              Name 374  "pos"
201                              Name 440  "lPos"
202                              Name 481  "input"
203                              Name 483  "input.Pos"
204                              Name 486  "input.Normal"
205                              Name 490  "input.UV"
206                              Name 493  "input.Color"
207                              Name 496  "input.instancePos"
208                              Name 499  "input.instanceRot"
209                              Name 503  "input.instanceScale"
210                              Name 507  "input.instanceTexIndex"
211                              Name 510  "flattenTemp"
212                              Name 511  "param"
213                              Name 515  "@entryPointOutput.Pos"
214                              Name 519  "@entryPointOutput.Normal"
215                              Name 522  "@entryPointOutput.Color"
216                              Name 525  "@entryPointOutput.UV"
217                              Name 528  "@entryPointOutput.ViewVec"
218                              Name 531  "@entryPointOutput.LightVec"
219                              MemberDecorate 156(UBO) 0 RowMajor
220                              MemberDecorate 156(UBO) 0 MatrixStride 16
221                              MemberDecorate 156(UBO) 0 Offset 0
222                              MemberDecorate 156(UBO) 1 RowMajor
223                              MemberDecorate 156(UBO) 1 MatrixStride 16
224                              MemberDecorate 156(UBO) 1 Offset 64
225                              MemberDecorate 156(UBO) 2 Offset 128
226                              MemberDecorate 156(UBO) 3 Offset 144
227                              MemberDecorate 156(UBO) 4 Offset 148
228                              Decorate 177(ubo) Block
229                              MemberDecorate 177(ubo) 0 Offset 0
230                              Decorate 184 Binding 0
231                              Decorate 184 DescriptorSet 0
232                              Decorate 483(input.Pos) Location 0
233                              Decorate 486(input.Normal) Location 1
234                              Decorate 490(input.UV) Location 2
235                              Decorate 493(input.Color) Location 3
236                              Decorate 496(input.instancePos) Location 4
237                              Decorate 499(input.instanceRot) Location 5
238                              Decorate 503(input.instanceScale) Location 6
239                              Decorate 507(input.instanceTexIndex) Location 7
240                              Decorate 515(@entryPointOutput.Pos) BuiltIn Position
241                              Decorate 519(@entryPointOutput.Normal) Location 0
242                              Decorate 522(@entryPointOutput.Color) Location 1
243                              Decorate 525(@entryPointOutput.UV) Location 2
244                              Decorate 528(@entryPointOutput.ViewVec) Location 3
245                              Decorate 531(@entryPointOutput.LightVec) Location 4
246               4:             TypeVoid
247               5:             TypeFunction 4
248               8:             TypeFloat 32
249              11:             TypeInt 32 0
250              14:     11(int) Constant 32
251              15:     11(int) Constant 6
252              16:     11(int) Constant 0
253              13:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 12 14 15 16
254              17:     11(int) Constant 3
255              10:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 14 17 16
256              18:             TypeVector 8(float) 3
257              19:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 17
258              20:             TypeVector 8(float) 2
259              21:     11(int) Constant 2
260              22:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 21
261              23:             TypeInt 32 1
262              26:     11(int) Constant 4
263              25:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 24 14 26 16
264     27(VSInput):             TypeStruct 18(fvec3) 18(fvec3) 20(fvec2) 18(fvec3) 18(fvec3) 18(fvec3) 8(float) 23(int)
265              30:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 31
266              32:     11(int) Constant 28
267              28:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 29 19 30 32 14 16 16 17
268              35:     11(int) Constant 29
269              36:     11(int) Constant 35
270              33:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 34 19 30 35 36 16 16 17
271              39:     11(int) Constant 30
272              40:     11(int) Constant 31
273              37:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 38 22 30 39 40 16 16 17
274              43:     11(int) Constant 34
275              41:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 42 19 30 40 43 16 16 17
276              46:     11(int) Constant 40
277              44:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 45 19 30 43 46 16 16 17
278              47:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 48 19 30 36 46 16 16 17
279              51:     11(int) Constant 36
280              52:     11(int) Constant 41
281              49:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 50 10 30 51 52 16 16 17
282              55:     11(int) Constant 37
283              56:     11(int) Constant 42
284              53:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 54 25 30 55 56 16 16 17
285              59:     11(int) Constant 1
286              60:     11(int) Constant 62
287              62:     11(int) Constant 5
288              61:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 59 26 30 62
289              57:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 58 59 30 60 16 61 58 16 17 28 33 37 41 44 47 49 53
290              63:             TypePointer Function 27(VSInput)
291              64:     11(int) Constant 7
292              65:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 57 64 16
293              66:             TypeVector 8(float) 4
294              67:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 26
295    68(VSOutput):             TypeStruct 66(fvec4) 18(fvec3) 18(fvec3) 18(fvec3) 18(fvec3) 18(fvec3)
296              70:     11(int) Constant 53
297              71:     11(int) Constant 13
298              69:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 29 67 30 70 71 16 16 17
299              73:     11(int) Constant 54
300              72:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 34 19 30 73 36 16 16 17
301              75:     11(int) Constant 55
302              74:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 42 19 30 75 43 16 16 17
303              77:     11(int) Constant 56
304              76:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 38 19 30 77 40 16 16 17
305              80:     11(int) Constant 57
306              78:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 79 19 30 80 51 16 16 17
307              83:     11(int) Constant 58
308              81:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 82 19 30 83 55 16 16 17
309              84:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 85 59 30 60 16 61 85 16 17 69 72 74 76 78 81
310              86:             TypeFunction 68(VSOutput) 63(ptr)
311              87:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 84 57
312              92:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 91 87 30 60 16 61 91 17 60
313              93:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 94 57 30 60 16 92 26 59
314              96:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
315             100:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 30 16 16 92
316             101:             TypePointer Function 68(VSOutput)
317             102:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 84 64 16
318             106:     11(int) Constant 63
319             104:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 105 84 30 106 16 100 26
320             110:    8(float) Constant 0
321             111:   66(fvec4) ConstantComposite 110 110 110 110
322             112:   18(fvec3) ConstantComposite 110 110 110
323             113:68(VSOutput) ConstantComposite 111 112 112 112 112 112
324             114:     23(int) Constant 2
325             115:     23(int) Constant 3
326             116:             TypePointer Function 18(fvec3)
327             117:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 19 64 16
328             120:     11(int) Constant 64
329             123:             TypePointer Function 20(fvec2)
330             124:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 22 64 16
331             127:     11(int) Constant 65
332             129:     23(int) Constant 7
333             130:             TypePointer Function 23(int)
334             131:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 25 64 16
335             139:             TypePointer Function 8(float)
336             140:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 64 16
337             144:     11(int) Constant 68
338             142:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 143 10 30 144 16 100 26
339             147:     23(int) Constant 5
340             150:             TypeMatrix 66(fvec4) 4
341             152:             TypeBool
342             154:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 153 14 21 16
343             155:   152(bool) ConstantTrue
344             151:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 67 26 155
345        156(UBO):             TypeStruct 150 150 66(fvec4) 8(float) 8(float)
346             159:     11(int) Constant 21
347             157:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 158 151 30 56 159 16 16 17
348             162:     11(int) Constant 43
349             163:     11(int) Constant 20
350             160:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 161 151 30 162 163 16 16 17
351             166:     11(int) Constant 44
352             167:     11(int) Constant 17
353             164:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 165 67 30 166 167 16 16 17
354             170:     11(int) Constant 45
355             171:     11(int) Constant 16
356             168:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 169 10 30 170 171 16 16 17
357             174:     11(int) Constant 46
358             172:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 173 10 30 174 167 16 16 17
359             175:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 176 59 30 144 16 61 176 16 17 157 160 164 168 172
360        177(ubo):             TypeStruct 156(UBO)
361             180:     11(int) Constant 49
362             178:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 179 175 30 180 55 16 16 17
363             181:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 179 59 30 144 16 61 179 16 17 178
364             182:             TypePointer Uniform 177(ubo)
365             183:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 181 21 16
366             184:    182(ptr) Variable Uniform
367             187:     11(int) Constant 8
368             185:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 186 181 30 144 16 61 186 184 187
369             188:     23(int) Constant 0
370             189:             TypePointer Uniform 8(float)
371             190:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 21 16
372             198:     11(int) Constant 69
373             196:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 197 10 30 198 16 100 26
374             207:             TypeMatrix 18(fvec3) 3
375             208:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 19 17 155
376             209:             TypePointer Function 207
377             210:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 208 64 16
378             214:     11(int) Constant 71
379             212:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 213 208 30 214 16 100 26
380             222:     11(int) Constant 72
381             224:    8(float) Constant 1065353216
382             232:     11(int) Constant 76
383             240:     11(int) Constant 77
384             249:     11(int) Constant 79
385             247:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 248 208 30 249 16 100 26
386             257:     11(int) Constant 81
387             266:     11(int) Constant 84
388             274:     11(int) Constant 85
389             283:     11(int) Constant 87
390             281:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 282 208 30 283 16 100 26
391             288:     11(int) Constant 88
392             293:     11(int) Constant 89
393             303:     11(int) Constant 91
394             301:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 302 208 30 303 16 100 26
395             311:             TypePointer Function 150
396             312:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 151 64 16
397             316:     11(int) Constant 93
398             314:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 315 151 30 316 16 100 26
399             321:     11(int) Constant 94
400             323:     23(int) Constant 4
401             330:     11(int) Constant 95
402             338:     11(int) Constant 96
403             342:             TypePointer Function 66(fvec4)
404             343:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 67 64 16
405             345:     23(int) Constant 1
406             346:   66(fvec4) ConstantComposite 110 224 110 110
407             349:     11(int) Constant 97
408             352:     11(int) Constant 98
409             356:   66(fvec4) ConstantComposite 110 110 110 224
410             359:     11(int) Constant 99
411             363:     11(int) Constant 101
412             361:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 362 67 30 363 16 100 26
413             377:     11(int) Constant 102
414             375:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 376 67 30 377 16 100 26
415             382:     23(int) Constant 6
416             395:     11(int) Constant 104
417             398:             TypePointer Uniform 150
418             399:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 151 21 16
419             409:     11(int) Constant 105
420             428:     11(int) Constant 107
421             443:     11(int) Constant 108
422             441:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 442 19 30 443 16 100 26
423             446:             TypePointer Uniform 66(fvec4)
424             447:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 67 21 16
425             463:     11(int) Constant 109
426             470:     11(int) Constant 110
427             476:     11(int) Constant 111
428             482:             TypePointer Input 18(fvec3)
429  483(input.Pos):    482(ptr) Variable Input
430486(input.Normal):    482(ptr) Variable Input
431             489:             TypePointer Input 20(fvec2)
432   490(input.UV):    489(ptr) Variable Input
433493(input.Color):    482(ptr) Variable Input
434496(input.instancePos):    482(ptr) Variable Input
435499(input.instanceRot):    482(ptr) Variable Input
436             502:             TypePointer Input 8(float)
437503(input.instanceScale):    502(ptr) Variable Input
438             506:             TypePointer Input 23(int)
439507(input.instanceTexIndex):    506(ptr) Variable Input
440             514:             TypePointer Output 66(fvec4)
441515(@entryPointOutput.Pos):    514(ptr) Variable Output
442             518:             TypePointer Output 18(fvec3)
443519(@entryPointOutput.Normal):    518(ptr) Variable Output
444522(@entryPointOutput.Color):    518(ptr) Variable Output
445525(@entryPointOutput.UV):    518(ptr) Variable Output
446528(@entryPointOutput.ViewVec):    518(ptr) Variable Output
447531(@entryPointOutput.LightVec):    518(ptr) Variable Output
448         6(main):           4 Function None 5
449               7:             Label
450      481(input):     63(ptr) Variable Function
451510(flattenTemp):    101(ptr) Variable Function
452      511(param):     63(ptr) Variable Function
453             484:   18(fvec3) Load 483(input.Pos)
454             485:    116(ptr) AccessChain 481(input) 188
455                              Store 485 484
456             487:   18(fvec3) Load 486(input.Normal)
457             488:    116(ptr) AccessChain 481(input) 345
458                              Store 488 487
459             491:   20(fvec2) Load 490(input.UV)
460             492:    123(ptr) AccessChain 481(input) 114
461                              Store 492 491
462             494:   18(fvec3) Load 493(input.Color)
463             495:    116(ptr) AccessChain 481(input) 115
464                              Store 495 494
465             497:   18(fvec3) Load 496(input.instancePos)
466             498:    116(ptr) AccessChain 481(input) 323
467                              Store 498 497
468             500:   18(fvec3) Load 499(input.instanceRot)
469             501:    116(ptr) AccessChain 481(input) 147
470                              Store 501 500
471             504:    8(float) Load 503(input.instanceScale)
472             505:    139(ptr) AccessChain 481(input) 382
473                              Store 505 504
474             508:     23(int) Load 507(input.instanceTexIndex)
475             509:    130(ptr) AccessChain 481(input) 129
476                              Store 509 508
477             512: 27(VSInput) Load 481(input)
478                              Store 511(param) 512
479             513:68(VSOutput) FunctionCall 89(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;) 511(param)
480                              Store 510(flattenTemp) 513
481             516:    342(ptr) AccessChain 510(flattenTemp) 188
482             517:   66(fvec4) Load 516
483                              Store 515(@entryPointOutput.Pos) 517
484             520:    116(ptr) AccessChain 510(flattenTemp) 345
485             521:   18(fvec3) Load 520
486                              Store 519(@entryPointOutput.Normal) 521
487             523:    116(ptr) AccessChain 510(flattenTemp) 114
488             524:   18(fvec3) Load 523
489                              Store 522(@entryPointOutput.Color) 524
490             526:    116(ptr) AccessChain 510(flattenTemp) 115
491             527:   18(fvec3) Load 526
492                              Store 525(@entryPointOutput.UV) 527
493             529:    116(ptr) AccessChain 510(flattenTemp) 323
494             530:   18(fvec3) Load 529
495                              Store 528(@entryPointOutput.ViewVec) 530
496             532:    116(ptr) AccessChain 510(flattenTemp) 147
497             533:   18(fvec3) Load 532
498                              Store 531(@entryPointOutput.LightVec) 533
499                              Return
500                              FunctionEnd
50189(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;):68(VSOutput) Function None 86
502       88(input):     63(ptr) FunctionParameter
503              90:             Label
504     103(output):    101(ptr) Variable Function
505          141(s):    139(ptr) Variable Function
506          195(c):    139(ptr) Variable Function
507         211(mx):    209(ptr) Variable Function
508         246(my):    209(ptr) Variable Function
509         280(mz):    209(ptr) Variable Function
510     300(rotMat):    209(ptr) Variable Function
511    313(gRotMat):    311(ptr) Variable Function
512     360(locPos):    342(ptr) Variable Function
513        374(pos):    342(ptr) Variable Function
514       440(lPos):    116(ptr) Variable Function
515              97:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 92
516              98:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 60 60 16 16
517              95:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 93 88(input) 96
518              99:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 92 89(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;)
519             108:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 100
520             109:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 106 106 16 16
521             107:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 104 103(output) 96
522                              Store 103(output) 113
523             119:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 120 120 16 16
524             118:    116(ptr) AccessChain 88(input) 115
525             121:   18(fvec3) Load 118
526             122:    116(ptr) AccessChain 103(output) 114
527                              Store 122 121
528             126:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 127 127 16 16
529             125:    123(ptr) AccessChain 88(input) 114
530             128:   20(fvec2) Load 125
531             132:    130(ptr) AccessChain 88(input) 129
532             133:     23(int) Load 132
533             134:    8(float) ConvertSToF 133
534             135:    8(float) CompositeExtract 128 0
535             136:    8(float) CompositeExtract 128 1
536             137:   18(fvec3) CompositeConstruct 135 136 134
537             138:    116(ptr) AccessChain 103(output) 115
538                              Store 138 137
539             146:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 144 144 16 16
540             145:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 142 141(s) 96
541             148:    139(ptr) AccessChain 88(input) 147 16
542             149:    8(float) Load 148
543             191:    189(ptr) AccessChain 184 188 115
544             192:    8(float) Load 191
545             193:    8(float) FAdd 149 192
546             194:    8(float) ExtInst 3(GLSL.std.450) 13(Sin) 193
547                              Store 141(s) 194
548             200:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 198 198 16 16
549             199:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 196 195(c) 96
550             201:    139(ptr) AccessChain 88(input) 147 16
551             202:    8(float) Load 201
552             203:    189(ptr) AccessChain 184 188 115
553             204:    8(float) Load 203
554             205:    8(float) FAdd 202 204
555             206:    8(float) ExtInst 3(GLSL.std.450) 14(Cos) 205
556                              Store 195(c) 206
557             216:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 214 214 16 16
558             215:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 212 211(mx) 96
559             217:    8(float) Load 195(c)
560             218:    8(float) Load 141(s)
561             219:    8(float) FNegate 218
562             221:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 222 222 16 16
563             220:    8(float) Load 141(s)
564             223:    8(float) Load 195(c)
565             226:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 214 214 16 16
566             225:   18(fvec3) CompositeConstruct 217 219 110
567             227:   18(fvec3) CompositeConstruct 220 223 110
568             228:   18(fvec3) CompositeConstruct 110 110 224
569             229:         207 CompositeConstruct 225 227 228
570                              Store 211(mx) 229
571             231:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 232 232 16 16
572             230:    139(ptr) AccessChain 88(input) 147 59
573             233:    8(float) Load 230
574             234:    189(ptr) AccessChain 184 188 115
575             235:    8(float) Load 234
576             236:    8(float) FAdd 233 235
577             237:    8(float) ExtInst 3(GLSL.std.450) 13(Sin) 236
578                              Store 141(s) 237
579             239:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 240 240 16 16
580             238:    139(ptr) AccessChain 88(input) 147 59
581             241:    8(float) Load 238
582             242:    189(ptr) AccessChain 184 188 115
583             243:    8(float) Load 242
584             244:    8(float) FAdd 241 243
585             245:    8(float) ExtInst 3(GLSL.std.450) 14(Cos) 244
586                              Store 195(c) 245
587             251:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 249 249 16 16
588             250:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 247 246(my) 96
589             252:    8(float) Load 195(c)
590             253:    8(float) Load 141(s)
591             254:    8(float) FNegate 253
592             256:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 257 257 16 16
593             255:    8(float) Load 141(s)
594             258:    8(float) Load 195(c)
595             260:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 249 249 16 16
596             259:   18(fvec3) CompositeConstruct 252 110 254
597             261:   18(fvec3) CompositeConstruct 110 224 110
598             262:   18(fvec3) CompositeConstruct 255 110 258
599             263:         207 CompositeConstruct 259 261 262
600                              Store 246(my) 263
601             265:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 266 266 16 16
602             264:    139(ptr) AccessChain 88(input) 147 21
603             267:    8(float) Load 264
604             268:    189(ptr) AccessChain 184 188 115
605             269:    8(float) Load 268
606             270:    8(float) FAdd 267 269
607             271:    8(float) ExtInst 3(GLSL.std.450) 13(Sin) 270
608                              Store 141(s) 271
609             273:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 274 274 16 16
610             272:    139(ptr) AccessChain 88(input) 147 21
611             275:    8(float) Load 272
612             276:    189(ptr) AccessChain 184 188 115
613             277:    8(float) Load 276
614             278:    8(float) FAdd 275 277
615             279:    8(float) ExtInst 3(GLSL.std.450) 14(Cos) 278
616                              Store 195(c) 279
617             285:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 283 283 16 16
618             284:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 281 280(mz) 96
619             287:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 288 288 16 16
620             286:    8(float) Load 195(c)
621             289:    8(float) Load 141(s)
622             290:    8(float) FNegate 289
623             292:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 293 293 16 16
624             291:    8(float) Load 141(s)
625             294:    8(float) Load 195(c)
626             296:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 283 283 16 16
627             295:   18(fvec3) CompositeConstruct 224 110 110
628             297:   18(fvec3) CompositeConstruct 110 286 290
629             298:   18(fvec3) CompositeConstruct 110 291 294
630             299:         207 CompositeConstruct 295 297 298
631                              Store 280(mz) 299
632             305:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 303 303 16 16
633             304:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 301 300(rotMat) 96
634             306:         207 Load 211(mx)
635             307:         207 Load 246(my)
636             308:         207 MatrixTimesMatrix 306 307
637             309:         207 Load 280(mz)
638             310:         207 MatrixTimesMatrix 308 309
639                              Store 300(rotMat) 310
640             318:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 316 316 16 16
641             317:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 314 313(gRotMat) 96
642             320:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 321 321 16 16
643             319:    139(ptr) AccessChain 88(input) 147 59
644             322:    8(float) Load 319
645             324:    189(ptr) AccessChain 184 188 323
646             325:    8(float) Load 324
647             326:    8(float) FAdd 322 325
648             327:    8(float) ExtInst 3(GLSL.std.450) 13(Sin) 326
649                              Store 141(s) 327
650             329:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 330 330 16 16
651             328:    139(ptr) AccessChain 88(input) 147 59
652             331:    8(float) Load 328
653             332:    189(ptr) AccessChain 184 188 323
654             333:    8(float) Load 332
655             334:    8(float) FAdd 331 333
656             335:    8(float) ExtInst 3(GLSL.std.450) 14(Cos) 334
657                              Store 195(c) 335
658             337:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 338 338 16 16
659             336:    8(float) Load 195(c)
660             339:    8(float) Load 141(s)
661             340:    8(float) FNegate 339
662             341:   66(fvec4) CompositeConstruct 336 110 340 110
663             344:    342(ptr) AccessChain 313(gRotMat) 188
664                              Store 344 341
665             348:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 349 349 16 16
666             347:    342(ptr) AccessChain 313(gRotMat) 345
667                              Store 347 346
668             351:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 352 352 16 16
669             350:    8(float) Load 141(s)
670             353:    8(float) Load 195(c)
671             354:   66(fvec4) CompositeConstruct 350 110 353 110
672             355:    342(ptr) AccessChain 313(gRotMat) 114
673                              Store 355 354
674             358:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 359 359 16 16
675             357:    342(ptr) AccessChain 313(gRotMat) 115
676                              Store 357 356
677             365:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 363 363 16 16
678             364:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 361 360(locPos) 96
679             366:    116(ptr) AccessChain 88(input) 188
680             367:   18(fvec3) Load 366
681             368:         207 Load 300(rotMat)
682             369:   18(fvec3) VectorTimesMatrix 367 368
683             370:    8(float) CompositeExtract 369 0
684             371:    8(float) CompositeExtract 369 1
685             372:    8(float) CompositeExtract 369 2
686             373:   66(fvec4) CompositeConstruct 370 371 372 224
687                              Store 360(locPos) 373
688             379:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 377 377 16 16
689             378:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 375 374(pos) 96
690             380:   66(fvec4) Load 360(locPos)
691             381:   18(fvec3) VectorShuffle 380 380 0 1 2
692             383:    139(ptr) AccessChain 88(input) 382
693             384:    8(float) Load 383
694             385:   18(fvec3) VectorTimesScalar 381 384
695             386:    116(ptr) AccessChain 88(input) 323
696             387:   18(fvec3) Load 386
697             388:   18(fvec3) FAdd 385 387
698             389:    8(float) CompositeExtract 388 0
699             390:    8(float) CompositeExtract 388 1
700             391:    8(float) CompositeExtract 388 2
701             392:   66(fvec4) CompositeConstruct 389 390 391 224
702                              Store 374(pos) 392
703             394:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 395 395 16 16
704             393:   66(fvec4) Load 374(pos)
705             396:         150 Load 313(gRotMat)
706             397:   66(fvec4) VectorTimesMatrix 393 396
707             400:    398(ptr) AccessChain 184 188 345
708             401:         150 Load 400
709             402:   66(fvec4) VectorTimesMatrix 397 401
710             403:    398(ptr) AccessChain 184 188 188
711             404:         150 Load 403
712             405:   66(fvec4) VectorTimesMatrix 402 404
713             406:    342(ptr) AccessChain 103(output) 188
714                              Store 406 405
715             408:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 409 409 16 16
716             407:    116(ptr) AccessChain 88(input) 345
717             410:   18(fvec3) Load 407
718             411:         207 Load 300(rotMat)
719             412:   18(fvec3) VectorTimesMatrix 410 411
720             413:         150 Load 313(gRotMat)
721             414:    398(ptr) AccessChain 184 188 345
722             415:         150 Load 414
723             416:         150 MatrixTimesMatrix 413 415
724             417:   66(fvec4) CompositeExtract 416 0
725             418:   18(fvec3) VectorShuffle 417 417 0 1 2
726             419:   66(fvec4) CompositeExtract 416 1
727             420:   18(fvec3) VectorShuffle 419 419 0 1 2
728             421:   66(fvec4) CompositeExtract 416 2
729             422:   18(fvec3) VectorShuffle 421 421 0 1 2
730             423:         207 CompositeConstruct 418 420 422
731             424:   18(fvec3) VectorTimesMatrix 412 423
732             425:    116(ptr) AccessChain 103(output) 345
733                              Store 425 424
734             427:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 428 428 16 16
735             426:    116(ptr) AccessChain 88(input) 188
736             429:   18(fvec3) Load 426
737             430:    116(ptr) AccessChain 88(input) 323
738             431:   18(fvec3) Load 430
739             432:   18(fvec3) FAdd 429 431
740             433:    8(float) CompositeExtract 432 0
741             434:    8(float) CompositeExtract 432 1
742             435:    8(float) CompositeExtract 432 2
743             436:   66(fvec4) CompositeConstruct 433 434 435 224
744             437:    398(ptr) AccessChain 184 188 345
745             438:         150 Load 437
746             439:   66(fvec4) VectorTimesMatrix 436 438
747                              Store 374(pos) 439
748             445:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 443 443 16 16
749             444:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 441 440(lPos) 96
750             448:    446(ptr) AccessChain 184 188 114
751             449:   66(fvec4) Load 448
752             450:   18(fvec3) VectorShuffle 449 449 0 1 2
753             451:    398(ptr) AccessChain 184 188 345
754             452:         150 Load 451
755             453:   66(fvec4) CompositeExtract 452 0
756             454:   18(fvec3) VectorShuffle 453 453 0 1 2
757             455:   66(fvec4) CompositeExtract 452 1
758             456:   18(fvec3) VectorShuffle 455 455 0 1 2
759             457:   66(fvec4) CompositeExtract 452 2
760             458:   18(fvec3) VectorShuffle 457 457 0 1 2
761             459:         207 CompositeConstruct 454 456 458
762             460:   18(fvec3) VectorTimesMatrix 450 459
763                              Store 440(lPos) 460
764             462:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 463 463 16 16
765             461:   18(fvec3) Load 440(lPos)
766             464:   66(fvec4) Load 374(pos)
767             465:   18(fvec3) VectorShuffle 464 464 0 1 2
768             466:   18(fvec3) FSub 461 465
769             467:    116(ptr) AccessChain 103(output) 147
770                              Store 467 466
771             469:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 470 470 16 16
772             468:   66(fvec4) Load 374(pos)
773             471:   18(fvec3) VectorShuffle 468 468 0 1 2
774             472:   18(fvec3) FNegate 471
775             473:    116(ptr) AccessChain 103(output) 323
776                              Store 473 472
777             475:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 476 476 16 16
778             474:68(VSOutput) Load 103(output)
779                              ReturnValue 474
780                              FunctionEnd