1spv.separate.frag
2Validation failed
3// Module Version 10000
4// Generated by (magic number): 8000a
5// Id's are bound by 319
6
7                              Capability Shader
8                              Capability SampledRect
9                              Capability Sampled1D
10                              Capability SampledCubeArray
11                              Capability SampledBuffer
12               1:             ExtInstImport  "GLSL.std.450"
13                              MemoryModel Logical GLSL450
14                              EntryPoint Fragment 4  "main" 11 34
15                              ExecutionMode 4 OriginUpperLeft
16                              Source GLSL 400
17                              Name 4  "main"
18                              Name 6  "foo("
19                              Name 11  "color"
20                              Name 14  "t2d"
21                              Name 18  "s"
22                              Name 31  "t3d"
23                              Name 34  "i"
24                              Name 41  "sA"
25                              Name 58  "tex2D"
26                              Name 64  "texCube"
27                              Name 71  "texCubeArray"
28                              Name 77  "sShadow"
29                              Name 84  "itexCubeArray"
30                              Name 91  "utexCubeArray"
31                              Name 98  "tex1DArray"
32                              Name 105  "itex1DArray"
33                              Name 112  "utex1D"
34                              Name 119  "itex1D"
35                              Name 126  "utex1DArray"
36                              Name 133  "texBuffer"
37                              Name 145  "tex2DArray"
38                              Name 157  "itex2D"
39                              Name 164  "itex3D"
40                              Name 171  "itexCube"
41                              Name 178  "itex2DArray"
42                              Name 185  "utex2D"
43                              Name 192  "utex3D"
44                              Name 199  "utexCube"
45                              Name 206  "utex2DArray"
46                              Name 213  "itex2DRect"
47                              Name 220  "utex2DRect"
48                              Name 227  "itexBuffer"
49                              Name 234  "utexBuffer"
50                              Name 241  "tex2DMS"
51                              Name 248  "itex2DMS"
52                              Name 255  "utex2DMS"
53                              Name 262  "tex2DMSArray"
54                              Name 269  "itex2DMSArray"
55                              Name 276  "utex2DMSArray"
56                              Name 283  "tex1D"
57                              Name 293  "tex3D"
58                              Name 304  "tex2DRect"
59                              Decorate 11(color) Location 0
60                              Decorate 14(t2d) DescriptorSet 0
61                              Decorate 14(t2d) Binding 2
62                              Decorate 18(s) DescriptorSet 0
63                              Decorate 18(s) Binding 0
64                              Decorate 31(t3d) DescriptorSet 0
65                              Decorate 31(t3d) Binding 3
66                              Decorate 34(i) Flat
67                              Decorate 34(i) Location 0
68                              Decorate 41(sA) DescriptorSet 0
69                              Decorate 41(sA) Binding 1
70                              Decorate 58(tex2D) DescriptorSet 0
71                              Decorate 58(tex2D) Binding 0
72                              Decorate 64(texCube) DescriptorSet 0
73                              Decorate 64(texCube) Binding 0
74                              Decorate 71(texCubeArray) DescriptorSet 0
75                              Decorate 71(texCubeArray) Binding 0
76                              Decorate 77(sShadow) DescriptorSet 0
77                              Decorate 77(sShadow) Binding 0
78                              Decorate 84(itexCubeArray) DescriptorSet 0
79                              Decorate 84(itexCubeArray) Binding 0
80                              Decorate 91(utexCubeArray) DescriptorSet 0
81                              Decorate 91(utexCubeArray) Binding 0
82                              Decorate 98(tex1DArray) DescriptorSet 0
83                              Decorate 98(tex1DArray) Binding 0
84                              Decorate 105(itex1DArray) DescriptorSet 0
85                              Decorate 105(itex1DArray) Binding 0
86                              Decorate 112(utex1D) DescriptorSet 0
87                              Decorate 112(utex1D) Binding 0
88                              Decorate 119(itex1D) DescriptorSet 0
89                              Decorate 119(itex1D) Binding 0
90                              Decorate 126(utex1DArray) DescriptorSet 0
91                              Decorate 126(utex1DArray) Binding 0
92                              Decorate 133(texBuffer) DescriptorSet 0
93                              Decorate 133(texBuffer) Binding 0
94                              Decorate 145(tex2DArray) DescriptorSet 0
95                              Decorate 145(tex2DArray) Binding 0
96                              Decorate 157(itex2D) DescriptorSet 0
97                              Decorate 157(itex2D) Binding 0
98                              Decorate 164(itex3D) DescriptorSet 0
99                              Decorate 164(itex3D) Binding 0
100                              Decorate 171(itexCube) DescriptorSet 0
101                              Decorate 171(itexCube) Binding 0
102                              Decorate 178(itex2DArray) DescriptorSet 0
103                              Decorate 178(itex2DArray) Binding 0
104                              Decorate 185(utex2D) DescriptorSet 0
105                              Decorate 185(utex2D) Binding 0
106                              Decorate 192(utex3D) DescriptorSet 0
107                              Decorate 192(utex3D) Binding 0
108                              Decorate 199(utexCube) DescriptorSet 0
109                              Decorate 199(utexCube) Binding 0
110                              Decorate 206(utex2DArray) DescriptorSet 0
111                              Decorate 206(utex2DArray) Binding 0
112                              Decorate 213(itex2DRect) DescriptorSet 0
113                              Decorate 213(itex2DRect) Binding 0
114                              Decorate 220(utex2DRect) DescriptorSet 0
115                              Decorate 220(utex2DRect) Binding 0
116                              Decorate 227(itexBuffer) DescriptorSet 0
117                              Decorate 227(itexBuffer) Binding 0
118                              Decorate 234(utexBuffer) DescriptorSet 0
119                              Decorate 234(utexBuffer) Binding 0
120                              Decorate 241(tex2DMS) DescriptorSet 0
121                              Decorate 241(tex2DMS) Binding 0
122                              Decorate 248(itex2DMS) DescriptorSet 0
123                              Decorate 248(itex2DMS) Binding 0
124                              Decorate 255(utex2DMS) DescriptorSet 0
125                              Decorate 255(utex2DMS) Binding 0
126                              Decorate 262(tex2DMSArray) DescriptorSet 0
127                              Decorate 262(tex2DMSArray) Binding 0
128                              Decorate 269(itex2DMSArray) DescriptorSet 0
129                              Decorate 269(itex2DMSArray) Binding 0
130                              Decorate 276(utex2DMSArray) DescriptorSet 0
131                              Decorate 276(utex2DMSArray) Binding 0
132                              Decorate 283(tex1D) DescriptorSet 0
133                              Decorate 283(tex1D) Binding 0
134                              Decorate 293(tex3D) DescriptorSet 0
135                              Decorate 293(tex3D) Binding 0
136                              Decorate 304(tex2DRect) DescriptorSet 0
137                              Decorate 304(tex2DRect) Binding 0
138               2:             TypeVoid
139               3:             TypeFunction 2
140               8:             TypeFloat 32
141               9:             TypeVector 8(float) 4
142              10:             TypePointer Output 9(fvec4)
143       11(color):     10(ptr) Variable Output
144              12:             TypeImage 8(float) 2D sampled format:Unknown
145              13:             TypePointer UniformConstant 12
146         14(t2d):     13(ptr) Variable UniformConstant
147              16:             TypeSampler
148              17:             TypePointer UniformConstant 16
149           18(s):     17(ptr) Variable UniformConstant
150              20:             TypeSampledImage 12
151              22:             TypeVector 8(float) 2
152              23:    8(float) Constant 1056964608
153              24:   22(fvec2) ConstantComposite 23 23
154              26:             TypeImage 8(float) 3D sampled format:Unknown
155              27:             TypeInt 32 0
156              28:     27(int) Constant 4
157              29:             TypeArray 26 28
158              30:             TypePointer UniformConstant 29
159         31(t3d):     30(ptr) Variable UniformConstant
160              32:             TypeInt 32 1
161              33:             TypePointer Input 32(int)
162           34(i):     33(ptr) Variable Input
163              36:             TypePointer UniformConstant 26
164              39:             TypeArray 16 28
165              40:             TypePointer UniformConstant 39
166          41(sA):     40(ptr) Variable UniformConstant
167              42:     32(int) Constant 2
168              45:             TypeSampledImage 26
169              47:             TypeVector 8(float) 3
170              48:   47(fvec3) ConstantComposite 23 23 23
171       58(tex2D):     13(ptr) Variable UniformConstant
172              62:             TypeImage 8(float) Cube sampled format:Unknown
173              63:             TypePointer UniformConstant 62
174     64(texCube):     63(ptr) Variable UniformConstant
175              67:             TypeSampledImage 62
176              69:             TypeImage 8(float) Cube array sampled format:Unknown
177              70:             TypePointer UniformConstant 69
17871(texCubeArray):     70(ptr) Variable UniformConstant
179              74:             TypeSampledImage 69
180     77(sShadow):     17(ptr) Variable UniformConstant
181              79:             TypeImage 8(float) Cube depth array sampled format:Unknown
182              80:             TypeSampledImage 79
183              82:             TypeImage 32(int) Cube array sampled format:Unknown
184              83:             TypePointer UniformConstant 82
18584(itexCubeArray):     83(ptr) Variable UniformConstant
186              87:             TypeSampledImage 82
187              89:             TypeImage 27(int) Cube array sampled format:Unknown
188              90:             TypePointer UniformConstant 89
18991(utexCubeArray):     90(ptr) Variable UniformConstant
190              94:             TypeSampledImage 89
191              96:             TypeImage 8(float) 1D depth array sampled format:Unknown
192              97:             TypePointer UniformConstant 96
193  98(tex1DArray):     97(ptr) Variable UniformConstant
194             101:             TypeSampledImage 96
195             103:             TypeImage 32(int) 1D array sampled format:Unknown
196             104:             TypePointer UniformConstant 103
197105(itex1DArray):    104(ptr) Variable UniformConstant
198             108:             TypeSampledImage 103
199             110:             TypeImage 27(int) 1D sampled format:Unknown
200             111:             TypePointer UniformConstant 110
201     112(utex1D):    111(ptr) Variable UniformConstant
202             115:             TypeSampledImage 110
203             117:             TypeImage 32(int) 1D sampled format:Unknown
204             118:             TypePointer UniformConstant 117
205     119(itex1D):    118(ptr) Variable UniformConstant
206             122:             TypeSampledImage 117
207             124:             TypeImage 27(int) 1D array sampled format:Unknown
208             125:             TypePointer UniformConstant 124
209126(utex1DArray):    125(ptr) Variable UniformConstant
210             129:             TypeSampledImage 124
211             131:             TypeImage 8(float) Buffer sampled format:Unknown
212             132:             TypePointer UniformConstant 131
213  133(texBuffer):    132(ptr) Variable UniformConstant
214             136:             TypeSampledImage 131
215             140:             TypeImage 8(float) Cube depth sampled format:Unknown
216             141:             TypeSampledImage 140
217             143:             TypeImage 8(float) 2D array sampled format:Unknown
218             144:             TypePointer UniformConstant 143
219 145(tex2DArray):    144(ptr) Variable UniformConstant
220             148:             TypeSampledImage 143
221             152:             TypeImage 8(float) 2D depth array sampled format:Unknown
222             153:             TypeSampledImage 152
223             155:             TypeImage 32(int) 2D sampled format:Unknown
224             156:             TypePointer UniformConstant 155
225     157(itex2D):    156(ptr) Variable UniformConstant
226             160:             TypeSampledImage 155
227             162:             TypeImage 32(int) 3D sampled format:Unknown
228             163:             TypePointer UniformConstant 162
229     164(itex3D):    163(ptr) Variable UniformConstant
230             167:             TypeSampledImage 162
231             169:             TypeImage 32(int) Cube sampled format:Unknown
232             170:             TypePointer UniformConstant 169
233   171(itexCube):    170(ptr) Variable UniformConstant
234             174:             TypeSampledImage 169
235             176:             TypeImage 32(int) 2D array sampled format:Unknown
236             177:             TypePointer UniformConstant 176
237178(itex2DArray):    177(ptr) Variable UniformConstant
238             181:             TypeSampledImage 176
239             183:             TypeImage 27(int) 2D sampled format:Unknown
240             184:             TypePointer UniformConstant 183
241     185(utex2D):    184(ptr) Variable UniformConstant
242             188:             TypeSampledImage 183
243             190:             TypeImage 27(int) 3D sampled format:Unknown
244             191:             TypePointer UniformConstant 190
245     192(utex3D):    191(ptr) Variable UniformConstant
246             195:             TypeSampledImage 190
247             197:             TypeImage 27(int) Cube sampled format:Unknown
248             198:             TypePointer UniformConstant 197
249   199(utexCube):    198(ptr) Variable UniformConstant
250             202:             TypeSampledImage 197
251             204:             TypeImage 27(int) 2D array sampled format:Unknown
252             205:             TypePointer UniformConstant 204
253206(utex2DArray):    205(ptr) Variable UniformConstant
254             209:             TypeSampledImage 204
255             211:             TypeImage 32(int) Rect sampled format:Unknown
256             212:             TypePointer UniformConstant 211
257 213(itex2DRect):    212(ptr) Variable UniformConstant
258             216:             TypeSampledImage 211
259             218:             TypeImage 27(int) Rect sampled format:Unknown
260             219:             TypePointer UniformConstant 218
261 220(utex2DRect):    219(ptr) Variable UniformConstant
262             223:             TypeSampledImage 218
263             225:             TypeImage 32(int) Buffer sampled format:Unknown
264             226:             TypePointer UniformConstant 225
265 227(itexBuffer):    226(ptr) Variable UniformConstant
266             230:             TypeSampledImage 225
267             232:             TypeImage 27(int) Buffer sampled format:Unknown
268             233:             TypePointer UniformConstant 232
269 234(utexBuffer):    233(ptr) Variable UniformConstant
270             237:             TypeSampledImage 232
271             239:             TypeImage 8(float) 2D multi-sampled sampled format:Unknown
272             240:             TypePointer UniformConstant 239
273    241(tex2DMS):    240(ptr) Variable UniformConstant
274             244:             TypeSampledImage 239
275             246:             TypeImage 32(int) 2D multi-sampled sampled format:Unknown
276             247:             TypePointer UniformConstant 246
277   248(itex2DMS):    247(ptr) Variable UniformConstant
278             251:             TypeSampledImage 246
279             253:             TypeImage 27(int) 2D multi-sampled sampled format:Unknown
280             254:             TypePointer UniformConstant 253
281   255(utex2DMS):    254(ptr) Variable UniformConstant
282             258:             TypeSampledImage 253
283             260:             TypeImage 8(float) 2D array multi-sampled sampled format:Unknown
284             261:             TypePointer UniformConstant 260
285262(tex2DMSArray):    261(ptr) Variable UniformConstant
286             265:             TypeSampledImage 260
287             267:             TypeImage 32(int) 2D array multi-sampled sampled format:Unknown
288             268:             TypePointer UniformConstant 267
289269(itex2DMSArray):    268(ptr) Variable UniformConstant
290             272:             TypeSampledImage 267
291             274:             TypeImage 27(int) 2D array multi-sampled sampled format:Unknown
292             275:             TypePointer UniformConstant 274
293276(utex2DMSArray):    275(ptr) Variable UniformConstant
294             279:             TypeSampledImage 274
295             281:             TypeImage 8(float) 1D sampled format:Unknown
296             282:             TypePointer UniformConstant 281
297      283(tex1D):    282(ptr) Variable UniformConstant
298             286:             TypeSampledImage 281
299             290:             TypeImage 8(float) 1D depth sampled format:Unknown
300             291:             TypeSampledImage 290
301      293(tex3D):     36(ptr) Variable UniformConstant
302             299:             TypeImage 8(float) 2D depth sampled format:Unknown
303             300:             TypeSampledImage 299
304             302:             TypeImage 8(float) Rect sampled format:Unknown
305             303:             TypePointer UniformConstant 302
306  304(tex2DRect):    303(ptr) Variable UniformConstant
307             307:             TypeSampledImage 302
308             311:             TypeImage 8(float) Rect depth sampled format:Unknown
309             312:             TypeSampledImage 311
310             316:             TypeImage 8(float) 1D array sampled format:Unknown
311             317:             TypeSampledImage 316
312         4(main):           2 Function None 3
313               5:             Label
314              15:          12 Load 14(t2d)
315              19:          16 Load 18(s)
316              21:          20 SampledImage 15 19
317              25:    9(fvec4) ImageSampleImplicitLod 21 24
318                              Store 11(color) 25
319              35:     32(int) Load 34(i)
320              37:     36(ptr) AccessChain 31(t3d) 35
321              38:          26 Load 37
322              43:     17(ptr) AccessChain 41(sA) 42
323              44:          16 Load 43
324              46:          45 SampledImage 38 44
325              49:    9(fvec4) ImageSampleImplicitLod 46 48
326              50:    9(fvec4) Load 11(color)
327              51:    9(fvec4) FAdd 50 49
328                              Store 11(color) 51
329              52:          12 Load 14(t2d)
330              53:          16 Load 18(s)
331              54:          20 SampledImage 52 53
332              55:    9(fvec4) ImageSampleImplicitLod 54 24
333              56:    9(fvec4) Load 11(color)
334              57:    9(fvec4) FAdd 56 55
335                              Store 11(color) 57
336                              Return
337                              FunctionEnd
338         6(foo():           2 Function None 3
339               7:             Label
340              59:          12 Load 58(tex2D)
341              60:          16 Load 18(s)
342              61:          20 SampledImage 59 60
343              65:          62 Load 64(texCube)
344              66:          16 Load 18(s)
345              68:          67 SampledImage 65 66
346              72:          69 Load 71(texCubeArray)
347              73:          16 Load 18(s)
348              75:          74 SampledImage 72 73
349              76:          69 Load 71(texCubeArray)
350              78:          16 Load 77(sShadow)
351              81:          80 SampledImage 76 78
352              85:          82 Load 84(itexCubeArray)
353              86:          16 Load 18(s)
354              88:          87 SampledImage 85 86
355              92:          89 Load 91(utexCubeArray)
356              93:          16 Load 18(s)
357              95:          94 SampledImage 92 93
358              99:          96 Load 98(tex1DArray)
359             100:          16 Load 77(sShadow)
360             102:         101 SampledImage 99 100
361             106:         103 Load 105(itex1DArray)
362             107:          16 Load 18(s)
363             109:         108 SampledImage 106 107
364             113:         110 Load 112(utex1D)
365             114:          16 Load 18(s)
366             116:         115 SampledImage 113 114
367             120:         117 Load 119(itex1D)
368             121:          16 Load 18(s)
369             123:         122 SampledImage 120 121
370             127:         124 Load 126(utex1DArray)
371             128:          16 Load 18(s)
372             130:         129 SampledImage 127 128
373             134:         131 Load 133(texBuffer)
374             135:          16 Load 18(s)
375             137:         136 SampledImage 134 135
376             138:          62 Load 64(texCube)
377             139:          16 Load 77(sShadow)
378             142:         141 SampledImage 138 139
379             146:         143 Load 145(tex2DArray)
380             147:          16 Load 18(s)
381             149:         148 SampledImage 146 147
382             150:         143 Load 145(tex2DArray)
383             151:          16 Load 77(sShadow)
384             154:         153 SampledImage 150 151
385             158:         155 Load 157(itex2D)
386             159:          16 Load 18(s)
387             161:         160 SampledImage 158 159
388             165:         162 Load 164(itex3D)
389             166:          16 Load 18(s)
390             168:         167 SampledImage 165 166
391             172:         169 Load 171(itexCube)
392             173:          16 Load 18(s)
393             175:         174 SampledImage 172 173
394             179:         176 Load 178(itex2DArray)
395             180:          16 Load 18(s)
396             182:         181 SampledImage 179 180
397             186:         183 Load 185(utex2D)
398             187:          16 Load 18(s)
399             189:         188 SampledImage 186 187
400             193:         190 Load 192(utex3D)
401             194:          16 Load 18(s)
402             196:         195 SampledImage 193 194
403             200:         197 Load 199(utexCube)
404             201:          16 Load 18(s)
405             203:         202 SampledImage 200 201
406             207:         204 Load 206(utex2DArray)
407             208:          16 Load 18(s)
408             210:         209 SampledImage 207 208
409             214:         211 Load 213(itex2DRect)
410             215:          16 Load 18(s)
411             217:         216 SampledImage 214 215
412             221:         218 Load 220(utex2DRect)
413             222:          16 Load 18(s)
414             224:         223 SampledImage 221 222
415             228:         225 Load 227(itexBuffer)
416             229:          16 Load 18(s)
417             231:         230 SampledImage 228 229
418             235:         232 Load 234(utexBuffer)
419             236:          16 Load 18(s)
420             238:         237 SampledImage 235 236
421             242:         239 Load 241(tex2DMS)
422             243:          16 Load 18(s)
423             245:         244 SampledImage 242 243
424             249:         246 Load 248(itex2DMS)
425             250:          16 Load 18(s)
426             252:         251 SampledImage 249 250
427             256:         253 Load 255(utex2DMS)
428             257:          16 Load 18(s)
429             259:         258 SampledImage 256 257
430             263:         260 Load 262(tex2DMSArray)
431             264:          16 Load 18(s)
432             266:         265 SampledImage 263 264
433             270:         267 Load 269(itex2DMSArray)
434             271:          16 Load 18(s)
435             273:         272 SampledImage 270 271
436             277:         274 Load 276(utex2DMSArray)
437             278:          16 Load 18(s)
438             280:         279 SampledImage 277 278
439             284:         281 Load 283(tex1D)
440             285:          16 Load 18(s)
441             287:         286 SampledImage 284 285
442             288:         281 Load 283(tex1D)
443             289:          16 Load 77(sShadow)
444             292:         291 SampledImage 288 289
445             294:          26 Load 293(tex3D)
446             295:          16 Load 18(s)
447             296:          45 SampledImage 294 295
448             297:          12 Load 58(tex2D)
449             298:          16 Load 77(sShadow)
450             301:         300 SampledImage 297 298
451             305:         302 Load 304(tex2DRect)
452             306:          16 Load 18(s)
453             308:         307 SampledImage 305 306
454             309:         302 Load 304(tex2DRect)
455             310:          16 Load 77(sShadow)
456             313:         312 SampledImage 309 310
457             314:          96 Load 98(tex1DArray)
458             315:          16 Load 18(s)
459             318:         317 SampledImage 314 315
460                              Return
461                              FunctionEnd
462