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