1spv.130.frag
2WARNING: 0:31: '#extension' : extension is only partially supported: GL_ARB_gpu_shader5
3
4Validation failed
5// Module Version 10000
6// Generated by (magic number): 8000b
7// Id's are bound by 205
8
9                              Capability Shader
10                              Capability ClipDistance
11                              Capability SampledRect
12                              Capability Sampled1D
13                              Capability SampledCubeArray
14                              Capability ImageQuery
15               1:             ExtInstImport  "GLSL.std.450"
16                              MemoryModel Logical GLSL450
17                              EntryPoint Fragment 4  "main" 17 68 79 99 173 184 185 186
18                              ExecutionMode 4 OriginUpperLeft
19                              Source GLSL 140
20                              SourceExtension  "GL_ARB_gpu_shader5"
21                              SourceExtension  "GL_ARB_shader_texture_lod"
22                              SourceExtension  "GL_ARB_shading_language_420pack"
23                              SourceExtension  "GL_ARB_texture_cube_map_array"
24                              SourceExtension  "GL_ARB_texture_gather"
25                              SourceExtension  "GL_ARB_texture_rectangle"
26                              Name 4  "main"
27                              Name 6  "bar3("
28                              Name 8  "bar4("
29                              Name 10  "bar5("
30                              Name 12  "bar6("
31                              Name 17  "o"
32                              Name 21  "samp2D"
33                              Name 37  "samp2DA"
34                              Name 47  "samp2DR"
35                              Name 55  "samp2DS"
36                              Name 68  "io"
37                              Name 72  "Sca"
38                              Name 79  "i"
39                              Name 87  "Isca"
40                              Name 99  "uo"
41                              Name 103  "Usca"
42                              Name 114  "a"
43                              Name 118  "Scas"
44                              Name 124  "f"
45                              Name 133  "c"
46                              Name 154  "a1"
47                              Name 157  "m43"
48                              Name 160  "b"
49                              Name 167  "sampC"
50                              Name 173  "gl_ClipDistance"
51                              Name 183  "b"
52                              Name 184  "fflat"
53                              Name 185  "fsmooth"
54                              Name 186  "fnop"
55                              Name 193  "bounds"
56                              Name 194  "s2D"
57                              Name 195  "s2DR"
58                              Name 199  "s2DRS"
59                              Name 203  "s1D"
60                              Name 204  "s2DS"
61                              Decorate 17(o) Location 0
62                              Decorate 21(samp2D) DescriptorSet 0
63                              Decorate 21(samp2D) Binding 2
64                              Decorate 37(samp2DA) DescriptorSet 0
65                              Decorate 37(samp2DA) Binding 5
66                              Decorate 47(samp2DR) DescriptorSet 0
67                              Decorate 47(samp2DR) Binding 4
68                              Decorate 55(samp2DS) DescriptorSet 0
69                              Decorate 55(samp2DS) Binding 3
70                              Decorate 68(io) Location 1
71                              Decorate 72(Sca) DescriptorSet 0
72                              Decorate 72(Sca) Binding 6
73                              Decorate 79(i) Location 0
74                              Decorate 87(Isca) DescriptorSet 0
75                              Decorate 87(Isca) Binding 7
76                              Decorate 99(uo) Location 2
77                              Decorate 103(Usca) DescriptorSet 0
78                              Decorate 103(Usca) Binding 8
79                              Decorate 118(Scas) DescriptorSet 0
80                              Decorate 118(Scas) Binding 9
81                              Decorate 167(sampC) DescriptorSet 0
82                              Decorate 167(sampC) Binding 1
83                              Decorate 173(gl_ClipDistance) BuiltIn ClipDistance
84                              Decorate 184(fflat) Flat
85                              Decorate 184(fflat) Location 1
86                              Decorate 185(fsmooth) Location 2
87                              Decorate 186(fnop) NoPerspective
88                              Decorate 186(fnop) Location 3
89                              Decorate 193(bounds) DescriptorSet 0
90                              Decorate 193(bounds) Binding 0
91                              Decorate 194(s2D) DescriptorSet 0
92                              Decorate 194(s2D) Binding 0
93                              Decorate 195(s2DR) DescriptorSet 0
94                              Decorate 195(s2DR) Binding 0
95                              Decorate 199(s2DRS) DescriptorSet 0
96                              Decorate 199(s2DRS) Binding 0
97                              Decorate 203(s1D) DescriptorSet 0
98                              Decorate 203(s1D) Binding 0
99                              Decorate 204(s2DS) DescriptorSet 0
100                              Decorate 204(s2DS) Binding 0
101               2:             TypeVoid
102               3:             TypeFunction 2
103              14:             TypeFloat 32
104              15:             TypeVector 14(float) 4
105              16:             TypePointer Output 15(fvec4)
106           17(o):     16(ptr) Variable Output
107              18:             TypeImage 14(float) 2D sampled format:Unknown
108              19:             TypeSampledImage 18
109              20:             TypePointer UniformConstant 19
110      21(samp2D):     20(ptr) Variable UniformConstant
111              23:             TypeVector 14(float) 2
112              24:   14(float) Constant 1050253722
113              25:   23(fvec2) ConstantComposite 24 24
114              26:             TypeInt 32 1
115              27:             TypeVector 26(int) 2
116              28:     26(int) Constant 1
117              29:   27(ivec2) ConstantComposite 28 28
118              30:     26(int) Constant 0
119              34:             TypeImage 14(float) 2D array sampled format:Unknown
120              35:             TypeSampledImage 34
121              36:             TypePointer UniformConstant 35
122     37(samp2DA):     36(ptr) Variable UniformConstant
123              39:             TypeVector 14(float) 3
124              40:   39(fvec3) ConstantComposite 24 24 24
125              44:             TypeImage 14(float) Rect sampled format:Unknown
126              45:             TypeSampledImage 44
127              46:             TypePointer UniformConstant 45
128     47(samp2DR):     46(ptr) Variable UniformConstant
129              52:             TypeImage 14(float) 2D depth sampled format:Unknown
130              53:             TypeSampledImage 52
131              54:             TypePointer UniformConstant 53
132     55(samp2DS):     54(ptr) Variable UniformConstant
133              57:   14(float) Constant 1067869798
134              62:     26(int) Constant 2
135              66:             TypeVector 26(int) 3
136              67:             TypePointer Output 66(ivec3)
137          68(io):     67(ptr) Variable Output
138              69:             TypeImage 14(float) Cube array sampled format:Unknown
139              70:             TypeSampledImage 69
140              71:             TypePointer UniformConstant 70
141         72(Sca):     71(ptr) Variable UniformConstant
142              74:     26(int) Constant 3
143              78:             TypePointer Input 15(fvec4)
144           79(i):     78(ptr) Variable Input
145              84:             TypeImage 26(int) Cube array sampled format:Unknown
146              85:             TypeSampledImage 84
147              86:             TypePointer UniformConstant 85
148        87(Isca):     86(ptr) Variable UniformConstant
149              90:   14(float) Constant 1060320051
150              91:             TypeVector 26(int) 4
151              96:             TypeInt 32 0
152              97:             TypeVector 96(int) 4
153              98:             TypePointer Output 97(ivec4)
154          99(uo):     98(ptr) Variable Output
155             100:             TypeImage 96(int) Cube array sampled format:Unknown
156             101:             TypeSampledImage 100
157             102:             TypePointer UniformConstant 101
158       103(Usca):    102(ptr) Variable UniformConstant
159             109:   14(float) Constant 1071225242
160             113:             TypePointer Private 39(fvec3)
161          114(a):    113(ptr) Variable Private
162             115:             TypeImage 14(float) Cube depth array sampled format:Unknown
163             116:             TypeSampledImage 115
164             117:             TypePointer UniformConstant 116
165       118(Scas):    117(ptr) Variable UniformConstant
166             123:             TypePointer Function 14(float)
167             127:     96(int) Constant 1
168             128:             TypePointer Input 14(float)
169             132:             TypePointer Function 91(ivec4)
170             136:   14(float) Constant 1036831949
171             137:   39(fvec3) ConstantComposite 136 136 136
172             138:   14(float) Constant 1045220557
173             139:   39(fvec3) ConstantComposite 138 138 138
174             155:             TypeMatrix 39(fvec3) 4
175             156:             TypePointer Function 155
176             161:   14(float) Constant 1073741824
177             164:             TypeImage 14(float) Cube sampled format:Unknown
178             165:             TypeSampledImage 164
179             166:             TypePointer UniformConstant 165
180      167(sampC):    166(ptr) Variable UniformConstant
181             170:     96(int) Constant 4
182             171:             TypeArray 14(float) 170
183             172:             TypePointer Input 171
184173(gl_ClipDistance):    172(ptr) Variable Input
185             176:             TypePointer Output 14(float)
186             182:             TypePointer Private 14(float)
187          183(b):    182(ptr) Variable Private
188      184(fflat):    128(ptr) Variable Input
189    185(fsmooth):    128(ptr) Variable Input
190       186(fnop):    128(ptr) Variable Input
191             187:     96(int) Constant 3
192             188:             TypeArray 26(int) 187
193             189:     26(int) Constant 10
194             190:     26(int) Constant 23
195             191:     26(int) Constant 32
196             192:         188 ConstantComposite 189 190 191
197     193(bounds):     20(ptr) Variable UniformConstant
198        194(s2D):     20(ptr) Variable UniformConstant
199       195(s2DR):     46(ptr) Variable UniformConstant
200             196:             TypeImage 14(float) Rect depth sampled format:Unknown
201             197:             TypeSampledImage 196
202             198:             TypePointer UniformConstant 197
203      199(s2DRS):    198(ptr) Variable UniformConstant
204             200:             TypeImage 14(float) 1D sampled format:Unknown
205             201:             TypeSampledImage 200
206             202:             TypePointer UniformConstant 201
207        203(s1D):    202(ptr) Variable UniformConstant
208       204(s2DS):     54(ptr) Variable UniformConstant
209         4(main):           2 Function None 3
210               5:             Label
211             168:         165 Load 167(sampC)
212             169:   15(fvec4) ImageGather 168 139 30
213                              Store 17(o) 169
214             174:    128(ptr) AccessChain 173(gl_ClipDistance) 74
215             175:   14(float) Load 174
216             177:    176(ptr) AccessChain 17(o) 127
217                              Store 177 175
218             178:           2 FunctionCall 6(bar3()
219             179:           2 FunctionCall 8(bar4()
220             180:           2 FunctionCall 10(bar5()
221             181:           2 FunctionCall 12(bar6()
222                              Return
223                              FunctionEnd
224        6(bar3():           2 Function None 3
225               7:             Label
226              22:          19 Load 21(samp2D)
227              31:   15(fvec4) ImageGather 22 25 30 ConstOffset 29
228              32:   15(fvec4) Load 17(o)
229              33:   15(fvec4) FAdd 32 31
230                              Store 17(o) 33
231              38:          35 Load 37(samp2DA)
232              41:   15(fvec4) ImageGather 38 40 30 ConstOffset 29
233              42:   15(fvec4) Load 17(o)
234              43:   15(fvec4) FAdd 42 41
235                              Store 17(o) 43
236                              Return
237                              FunctionEnd
238        8(bar4():           2 Function None 3
239               9:             Label
240              48:          45 Load 47(samp2DR)
241              49:   15(fvec4) ImageGather 48 25 30 ConstOffset 29
242              50:   15(fvec4) Load 17(o)
243              51:   15(fvec4) FAdd 50 49
244                              Store 17(o) 51
245              56:          53 Load 55(samp2DS)
246              58:   15(fvec4) ImageDrefGather 56 25 57 ConstOffset 29
247              59:   15(fvec4) Load 17(o)
248              60:   15(fvec4) FAdd 59 58
249                              Store 17(o) 60
250              61:          19 Load 21(samp2D)
251              63:   15(fvec4) ImageGather 61 25 62 ConstOffset 29
252              64:   15(fvec4) Load 17(o)
253              65:   15(fvec4) FAdd 64 63
254                              Store 17(o) 65
255                              Return
256                              FunctionEnd
257       10(bar5():           2 Function None 3
258              11:             Label
259          124(f):    123(ptr) Variable Function
260          133(c):    132(ptr) Variable Function
261              73:          70 Load 72(Sca)
262              75:          69 Image 73
263              76:   66(ivec3) ImageQuerySizeLod 75 74
264                              Store 68(io) 76
265              77:          70 Load 72(Sca)
266              80:   15(fvec4) Load 79(i)
267              81:   15(fvec4) ImageSampleImplicitLod 77 80
268              82:   15(fvec4) Load 17(o)
269              83:   15(fvec4) FAdd 82 81
270                              Store 17(o) 83
271              88:          85 Load 87(Isca)
272              89:   15(fvec4) Load 79(i)
273              92:   91(ivec4) ImageSampleImplicitLod 88 89 Bias 90
274              93:   66(ivec3) VectorShuffle 92 92 0 1 2
275              94:   66(ivec3) Load 68(io)
276              95:   66(ivec3) IAdd 94 93
277                              Store 68(io) 95
278             104:         101 Load 103(Usca)
279             105:   15(fvec4) Load 79(i)
280             106:   97(ivec4) ImageSampleImplicitLod 104 105
281                              Store 99(uo) 106
282             107:          70 Load 72(Sca)
283             108:   15(fvec4) Load 79(i)
284             110:   15(fvec4) ImageSampleExplicitLod 107 108 Lod 109
285             111:   15(fvec4) Load 17(o)
286             112:   15(fvec4) FAdd 111 110
287                              Store 17(o) 112
288             119:         116 Load 118(Scas)
289             120:         115 Image 119
290             121:   66(ivec3) ImageQuerySizeLod 120 74
291             122:   39(fvec3) ConvertSToF 121
292                              Store 114(a) 122
293             125:         116 Load 118(Scas)
294             126:   15(fvec4) Load 79(i)
295             129:    128(ptr) AccessChain 79(i) 127
296             130:   14(float) Load 129
297             131:   14(float) ImageSampleDrefImplicitLod 125 126 130
298                              Store 124(f) 131
299             134:          85 Load 87(Isca)
300             135:   15(fvec4) Load 79(i)
301             140:   91(ivec4) ImageSampleExplicitLod 134 135 Grad 137 139
302                              Store 133(c) 140
303             141:   39(fvec3) Load 114(a)
304             142:   14(float) Load 124(f)
305             143:   91(ivec4) Load 133(c)
306             144:   15(fvec4) ConvertSToF 143
307             145:   15(fvec4) CompositeConstruct 142 142 142 142
308             146:   15(fvec4) FAdd 145 144
309             147:   14(float) CompositeExtract 141 0
310             148:   14(float) CompositeExtract 141 1
311             149:   14(float) CompositeExtract 141 2
312             150:   14(float) CompositeExtract 146 0
313             151:   15(fvec4) CompositeConstruct 147 148 149 150
314             152:   15(fvec4) Load 17(o)
315             153:   15(fvec4) FAdd 152 151
316                              Store 17(o) 153
317                              Return
318                              FunctionEnd
319       12(bar6():           2 Function None 3
320              13:             Label
321         154(a1):    123(ptr) Variable Function
322        157(m43):    156(ptr) Variable Function
323          160(b):    123(ptr) Variable Function
324             158:    123(ptr) AccessChain 157(m43) 74 127
325             159:   14(float) Load 158
326                              Store 154(a1) 159
327             162:   14(float) Load 154(a1)
328             163:   14(float) FMul 161 162
329                              Store 160(b) 163
330                              Return
331                              FunctionEnd
332