• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1spv.nonuniform.frag
2// Module Version 10000
3// Generated by (magic number): 8000a
4// Id's are bound by 212
5
6                              Capability Shader
7                              Capability InputAttachment
8                              Capability SampledBuffer
9                              Capability ImageBuffer
10                              Capability ShaderNonUniformEXT
11                              Capability RuntimeDescriptorArrayEXT
12                              Capability InputAttachmentArrayDynamicIndexingEXT
13                              Capability UniformTexelBufferArrayDynamicIndexingEXT
14                              Capability StorageTexelBufferArrayDynamicIndexingEXT
15                              Capability UniformBufferArrayNonUniformIndexingEXT
16                              Capability SampledImageArrayNonUniformIndexingEXT
17                              Capability StorageBufferArrayNonUniformIndexingEXT
18                              Capability StorageImageArrayNonUniformIndexingEXT
19                              Capability InputAttachmentArrayNonUniformIndexingEXT
20                              Capability UniformTexelBufferArrayNonUniformIndexingEXT
21                              Capability StorageTexelBufferArrayNonUniformIndexingEXT
22                              Extension  "SPV_EXT_descriptor_indexing"
23               1:             ExtInstImport  "GLSL.std.450"
24                              MemoryModel Logical GLSL450
25                              EntryPoint Fragment 4  "main" 35 92
26                              ExecutionMode 4 OriginUpperLeft
27                              Source GLSL 450
28                              SourceExtension  "GL_EXT_nonuniform_qualifier"
29                              Name 4  "main"
30                              Name 11  "foo(i1;i1;"
31                              Name 9  "nupi"
32                              Name 10  "f"
33                              Name 16  "a"
34                              Name 17  "nu_li"
35                              Name 18  "param"
36                              Name 20  "param"
37                              Name 32  "b"
38                              Name 35  "nu_inv4"
39                              Name 41  "nu_gf"
40                              Name 47  "inputAttachmentDyn"
41                              Name 48  "dyn_i"
42                              Name 64  "uniformTexelBufferDyn"
43                              Name 78  "storageTexelBufferDyn"
44                              Name 87  "uname"
45                              MemberName 87(uname) 0  "a"
46                              Name 90  "uniformBuffer"
47                              Name 92  "nu_ii"
48                              Name 99  "bname"
49                              MemberName 99(bname) 0  "b"
50                              Name 102  "storageBuffer"
51                              Name 112  "sampledImage"
52                              Name 127  "storageImage"
53                              Name 139  "inputAttachment"
54                              Name 149  "uniformTexelBuffer"
55                              Name 160  "storageTexelBuffer"
56                              Name 170  "v"
57                              Name 185  "uv"
58                              Name 195  "m"
59                              Name 203  "S"
60                              MemberName 203(S) 0  "a"
61                              Name 205  "s"
62                              Decorate 9(nupi) DecorationNonUniformEXT
63                              Decorate 13 DecorationNonUniformEXT
64                              Decorate 17(nu_li) DecorationNonUniformEXT
65                              Decorate 17(nu_li) DecorationNonUniformEXT
66                              Decorate 19 DecorationNonUniformEXT
67                              Decorate 24 DecorationNonUniformEXT
68                              Decorate 28 DecorationNonUniformEXT
69                              Decorate 29 DecorationNonUniformEXT
70                              Decorate 35(nu_inv4) Location 0
71                              Decorate 35(nu_inv4) DecorationNonUniformEXT
72                              Decorate 39 DecorationNonUniformEXT
73                              Decorate 40 DecorationNonUniformEXT
74                              Decorate 41(nu_gf) DecorationNonUniformEXT
75                              Decorate 41(nu_gf) DecorationNonUniformEXT
76                              Decorate 42 DecorationNonUniformEXT
77                              Decorate 43 DecorationNonUniformEXT
78                              Decorate 47(inputAttachmentDyn) DescriptorSet 0
79                              Decorate 47(inputAttachmentDyn) Binding 0
80                              Decorate 47(inputAttachmentDyn) InputAttachmentIndex 0
81                              Decorate 64(uniformTexelBufferDyn) DescriptorSet 0
82                              Decorate 64(uniformTexelBufferDyn) Binding 1
83                              Decorate 78(storageTexelBufferDyn) DescriptorSet 0
84                              Decorate 78(storageTexelBufferDyn) Binding 2
85                              MemberDecorate 87(uname) 0 Offset 0
86                              Decorate 87(uname) Block
87                              Decorate 90(uniformBuffer) DescriptorSet 0
88                              Decorate 90(uniformBuffer) Binding 3
89                              Decorate 92(nu_ii) Flat
90                              Decorate 92(nu_ii) Location 1
91                              Decorate 92(nu_ii) DecorationNonUniformEXT
92                              Decorate 92(nu_ii) DecorationNonUniformEXT
93                              Decorate 93 DecorationNonUniformEXT
94                              Decorate 95 DecorationNonUniformEXT
95                              Decorate 96 DecorationNonUniformEXT
96                              MemberDecorate 99(bname) 0 Offset 0
97                              Decorate 99(bname) BufferBlock
98                              Decorate 102(storageBuffer) DescriptorSet 0
99                              Decorate 102(storageBuffer) Binding 4
100                              Decorate 92(nu_ii) DecorationNonUniformEXT
101                              Decorate 103 DecorationNonUniformEXT
102                              Decorate 104 DecorationNonUniformEXT
103                              Decorate 105 DecorationNonUniformEXT
104                              Decorate 112(sampledImage) DescriptorSet 0
105                              Decorate 112(sampledImage) Binding 5
106                              Decorate 92(nu_ii) DecorationNonUniformEXT
107                              Decorate 113 DecorationNonUniformEXT
108                              Decorate 115 DecorationNonUniformEXT
109                              Decorate 116 DecorationNonUniformEXT
110                              Decorate 127(storageImage) DescriptorSet 0
111                              Decorate 127(storageImage) Binding 6
112                              Decorate 92(nu_ii) DecorationNonUniformEXT
113                              Decorate 128 DecorationNonUniformEXT
114                              Decorate 130 DecorationNonUniformEXT
115                              Decorate 131 DecorationNonUniformEXT
116                              Decorate 139(inputAttachment) DescriptorSet 0
117                              Decorate 139(inputAttachment) Binding 7
118                              Decorate 139(inputAttachment) InputAttachmentIndex 1
119                              Decorate 92(nu_ii) DecorationNonUniformEXT
120                              Decorate 140 DecorationNonUniformEXT
121                              Decorate 141 DecorationNonUniformEXT
122                              Decorate 142 DecorationNonUniformEXT
123                              Decorate 149(uniformTexelBuffer) DescriptorSet 0
124                              Decorate 149(uniformTexelBuffer) Binding 8
125                              Decorate 92(nu_ii) DecorationNonUniformEXT
126                              Decorate 150 DecorationNonUniformEXT
127                              Decorate 151 DecorationNonUniformEXT
128                              Decorate 152 DecorationNonUniformEXT
129                              Decorate 160(storageTexelBuffer) DescriptorSet 0
130                              Decorate 160(storageTexelBuffer) Binding 9
131                              Decorate 92(nu_ii) DecorationNonUniformEXT
132                              Decorate 161 DecorationNonUniformEXT
133                              Decorate 162 DecorationNonUniformEXT
134                              Decorate 163 DecorationNonUniformEXT
135                              Decorate 170(v) DecorationNonUniformEXT
136                              Decorate 172 DecorationNonUniformEXT
137                              Decorate 173 DecorationNonUniformEXT
138                              Decorate 174 DecorationNonUniformEXT
139                              Decorate 175 DecorationNonUniformEXT
140                              Decorate 179 DecorationNonUniformEXT
141                              Decorate 180 DecorationNonUniformEXT
142                              Decorate 181 DecorationNonUniformEXT
143                              Decorate 182 DecorationNonUniformEXT
144                              Decorate 92(nu_ii) DecorationNonUniformEXT
145                              Decorate 186 DecorationNonUniformEXT
146                              Decorate 187 DecorationNonUniformEXT
147                              Decorate 188 DecorationNonUniformEXT
148                              Decorate 189 DecorationNonUniformEXT
149                              Decorate 190 DecorationNonUniformEXT
150                              Decorate 195(m) DecorationNonUniformEXT
151                              Decorate 196 DecorationNonUniformEXT
152                              Decorate 197 DecorationNonUniformEXT
153                              Decorate 205(s) DecorationNonUniformEXT
154                              Decorate 206 DecorationNonUniformEXT
155                              Decorate 207 DecorationNonUniformEXT
156                              Decorate 208 DecorationNonUniformEXT
157                              Decorate 209 DecorationNonUniformEXT
158               2:             TypeVoid
159               3:             TypeFunction 2
160               6:             TypeInt 32 1
161               7:             TypePointer Function 6(int)
162               8:             TypeFunction 6(int) 7(ptr) 7(ptr)
163              26:      6(int) Constant 2
164              30:             TypeFloat 32
165              31:             TypePointer Function 30(float)
166              33:             TypeVector 30(float) 4
167              34:             TypePointer Input 33(fvec4)
168     35(nu_inv4):     34(ptr) Variable Input
169              36:             TypeInt 32 0
170              37:     36(int) Constant 0
171              38:             TypePointer Input 30(float)
172              44:             TypeImage 30(float) SubpassData nonsampled format:Unknown
173              45:             TypeRuntimeArray 44
174              46:             TypePointer UniformConstant 45
17547(inputAttachmentDyn):     46(ptr) Variable UniformConstant
176              50:             TypePointer UniformConstant 44
177              53:      6(int) Constant 0
178              54:             TypeVector 6(int) 2
179              55:   54(ivec2) ConstantComposite 53 53
180              60:             TypeImage 30(float) Buffer sampled format:Unknown
181              61:             TypeSampledImage 60
182              62:             TypeRuntimeArray 61
183              63:             TypePointer UniformConstant 62
18464(uniformTexelBufferDyn):     63(ptr) Variable UniformConstant
185              66:             TypePointer UniformConstant 61
186              69:      6(int) Constant 1
187              75:             TypeImage 30(float) Buffer nonsampled format:R32f
188              76:             TypeRuntimeArray 75
189              77:             TypePointer UniformConstant 76
19078(storageTexelBufferDyn):     77(ptr) Variable UniformConstant
191              80:             TypePointer UniformConstant 75
192       87(uname):             TypeStruct 30(float)
193              88:             TypeRuntimeArray 87(uname)
194              89:             TypePointer Uniform 88
19590(uniformBuffer):     89(ptr) Variable Uniform
196              91:             TypePointer Input 6(int)
197       92(nu_ii):     91(ptr) Variable Input
198              94:             TypePointer Uniform 30(float)
199       99(bname):             TypeStruct 30(float)
200             100:             TypeRuntimeArray 99(bname)
201             101:             TypePointer Uniform 100
202102(storageBuffer):    101(ptr) Variable Uniform
203             108:             TypeImage 30(float) 2D sampled format:Unknown
204             109:             TypeSampledImage 108
205             110:             TypeRuntimeArray 109
206             111:             TypePointer UniformConstant 110
207112(sampledImage):    111(ptr) Variable UniformConstant
208             114:             TypePointer UniformConstant 109
209             117:             TypeVector 30(float) 2
210             118:   30(float) Constant 1056964608
211             119:  117(fvec2) ConstantComposite 118 118
212             124:             TypeImage 30(float) 2D nonsampled format:R32f
213             125:             TypeRuntimeArray 124
214             126:             TypePointer UniformConstant 125
215127(storageImage):    126(ptr) Variable UniformConstant
216             129:             TypePointer UniformConstant 124
217             132:   54(ivec2) ConstantComposite 69 69
218             137:             TypeRuntimeArray 44
219             138:             TypePointer UniformConstant 137
220139(inputAttachment):    138(ptr) Variable UniformConstant
221             147:             TypeRuntimeArray 61
222             148:             TypePointer UniformConstant 147
223149(uniformTexelBuffer):    148(ptr) Variable UniformConstant
224             158:             TypeRuntimeArray 75
225             159:             TypePointer UniformConstant 158
226160(storageTexelBuffer):    159(ptr) Variable UniformConstant
227             168:             TypeVector 6(int) 4
228             169:             TypePointer Function 168(ivec4)
229             171:     36(int) Constant 1
230             178:     36(int) Constant 2
231             193:             TypeMatrix 33(fvec4) 4
232             194:             TypePointer Function 193
233          203(S):             TypeStruct 6(int)
234             204:             TypePointer Function 203(S)
235         4(main):           2 Function None 3
236               5:             Label
237           16(a):      7(ptr) Variable Function
238       17(nu_li):      7(ptr) Variable Function
239       18(param):      7(ptr) Variable Function
240       20(param):      7(ptr) Variable Function
241           32(b):     31(ptr) Variable Function
242       41(nu_gf):     31(ptr) Variable Function
243       48(dyn_i):      7(ptr) Variable Function
244          170(v):    169(ptr) Variable Function
245         185(uv):    169(ptr) Variable Function
246          195(m):    194(ptr) Variable Function
247          205(s):    204(ptr) Variable Function
248              19:      6(int) Load 17(nu_li)
249                              Store 18(param) 19
250              21:      6(int) FunctionCall 11(foo(i1;i1;) 18(param) 20(param)
251              22:      6(int) Load 20(param)
252                              Store 17(nu_li) 22
253                              Store 16(a) 21
254              23:      6(int) Load 16(a)
255              24:      6(int) CopyObject 23
256              25:      6(int) Load 16(a)
257              27:      6(int) IMul 25 26
258              28:      6(int) CopyObject 27
259              29:      6(int) IAdd 24 28
260                              Store 17(nu_li) 29
261              39:     38(ptr) AccessChain 35(nu_inv4) 37
262              40:   30(float) Load 39
263              42:   30(float) Load 41(nu_gf)
264              43:   30(float) FMul 40 42
265                              Store 32(b) 43
266              49:      6(int) Load 48(dyn_i)
267              51:     50(ptr) AccessChain 47(inputAttachmentDyn) 49
268              52:          44 Load 51
269              56:   33(fvec4) ImageRead 52 55
270              57:   30(float) CompositeExtract 56 0
271              58:   30(float) Load 32(b)
272              59:   30(float) FAdd 58 57
273                              Store 32(b) 59
274              65:      6(int) Load 48(dyn_i)
275              67:     66(ptr) AccessChain 64(uniformTexelBufferDyn) 65
276              68:          61 Load 67
277              70:          60 Image 68
278              71:   33(fvec4) ImageFetch 70 69
279              72:   30(float) CompositeExtract 71 0
280              73:   30(float) Load 32(b)
281              74:   30(float) FAdd 73 72
282                              Store 32(b) 74
283              79:      6(int) Load 48(dyn_i)
284              81:     80(ptr) AccessChain 78(storageTexelBufferDyn) 79
285              82:          75 Load 81
286              83:   33(fvec4) ImageRead 82 69
287              84:   30(float) CompositeExtract 83 0
288              85:   30(float) Load 32(b)
289              86:   30(float) FAdd 85 84
290                              Store 32(b) 86
291              93:      6(int) Load 92(nu_ii)
292              95:     94(ptr) AccessChain 90(uniformBuffer) 93 53
293              96:   30(float) Load 95
294              97:   30(float) Load 32(b)
295              98:   30(float) FAdd 97 96
296                              Store 32(b) 98
297             103:      6(int) Load 92(nu_ii)
298             104:     94(ptr) AccessChain 102(storageBuffer) 103 53
299             105:   30(float) Load 104
300             106:   30(float) Load 32(b)
301             107:   30(float) FAdd 106 105
302                              Store 32(b) 107
303             113:      6(int) Load 92(nu_ii)
304             115:    114(ptr) AccessChain 112(sampledImage) 113
305             116:         109 Load 115
306             120:   33(fvec4) ImageSampleImplicitLod 116 119
307             121:   30(float) CompositeExtract 120 0
308             122:   30(float) Load 32(b)
309             123:   30(float) FAdd 122 121
310                              Store 32(b) 123
311             128:      6(int) Load 92(nu_ii)
312             130:    129(ptr) AccessChain 127(storageImage) 128
313             131:         124 Load 130
314             133:   33(fvec4) ImageRead 131 132
315             134:   30(float) CompositeExtract 133 0
316             135:   30(float) Load 32(b)
317             136:   30(float) FAdd 135 134
318                              Store 32(b) 136
319             140:      6(int) Load 92(nu_ii)
320             141:     50(ptr) AccessChain 139(inputAttachment) 140
321             142:          44 Load 141
322             143:   33(fvec4) ImageRead 142 55
323             144:   30(float) CompositeExtract 143 0
324             145:   30(float) Load 32(b)
325             146:   30(float) FAdd 145 144
326                              Store 32(b) 146
327             150:      6(int) Load 92(nu_ii)
328             151:     66(ptr) AccessChain 149(uniformTexelBuffer) 150
329             152:          61 Load 151
330             153:          60 Image 152
331             154:   33(fvec4) ImageFetch 153 69
332             155:   30(float) CompositeExtract 154 0
333             156:   30(float) Load 32(b)
334             157:   30(float) FAdd 156 155
335                              Store 32(b) 157
336             161:      6(int) Load 92(nu_ii)
337             162:     80(ptr) AccessChain 160(storageTexelBuffer) 161
338             163:          75 Load 162
339             164:   33(fvec4) ImageRead 163 69
340             165:   30(float) CompositeExtract 164 0
341             166:   30(float) Load 32(b)
342             167:   30(float) FAdd 166 165
343                              Store 32(b) 167
344             172:      7(ptr) AccessChain 170(v) 171
345             173:      6(int) Load 172
346             174:     94(ptr) AccessChain 90(uniformBuffer) 173 53
347             175:   30(float) Load 174
348             176:   30(float) Load 32(b)
349             177:   30(float) FAdd 176 175
350                              Store 32(b) 177
351             179:      7(ptr) AccessChain 170(v) 178
352             180:      6(int) Load 179
353             181:     94(ptr) AccessChain 90(uniformBuffer) 180 53
354             182:   30(float) Load 181
355             183:   30(float) Load 32(b)
356             184:   30(float) FAdd 183 182
357                              Store 32(b) 184
358             186:      6(int) Load 92(nu_ii)
359             187:      7(ptr) AccessChain 185(uv) 186
360             188:      6(int) Load 187
361             189:     94(ptr) AccessChain 90(uniformBuffer) 188 53
362             190:   30(float) Load 189
363             191:   30(float) Load 32(b)
364             192:   30(float) FAdd 191 190
365                              Store 32(b) 192
366             196:     31(ptr) AccessChain 195(m) 26 178
367             197:   30(float) Load 196
368             198:      6(int) ConvertFToS 197
369             199:     94(ptr) AccessChain 90(uniformBuffer) 198 53
370             200:   30(float) Load 199
371             201:   30(float) Load 32(b)
372             202:   30(float) FAdd 201 200
373                              Store 32(b) 202
374             206:      7(ptr) AccessChain 205(s) 53
375             207:      6(int) Load 206
376             208:     94(ptr) AccessChain 90(uniformBuffer) 207 53
377             209:   30(float) Load 208
378             210:   30(float) Load 32(b)
379             211:   30(float) FAdd 210 209
380                              Store 32(b) 211
381                              Return
382                              FunctionEnd
383  11(foo(i1;i1;):      6(int) Function None 8
384         9(nupi):      7(ptr) FunctionParameter
385           10(f):      7(ptr) FunctionParameter
386              12:             Label
387              13:      6(int) Load 9(nupi)
388                              ReturnValue 13
389                              FunctionEnd
390