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