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