1spv.accessChain.frag
2// Module Version 10000
3// Generated by (magic number): 80007
4// Id's are bound by 222
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Fragment 4  "main" 69 170
10                              ExecutionMode 4 OriginUpperLeft
11                              Source GLSL 420
12                              Name 4  "main"
13                              Name 8  "S"
14                              MemberName 8(S) 0  "color"
15                              Name 11  "GetColor1(struct-S-vf31;"
16                              Name 10  "i"
17                              Name 18  "GetColor2(struct-S-vf31;i1;"
18                              Name 16  "i"
19                              Name 17  "comp"
20                              Name 22  "GetColor3(struct-S-vf31;i1;"
21                              Name 20  "i"
22                              Name 21  "comp"
23                              Name 26  "GetColor4(struct-S-vf31;i1;"
24                              Name 24  "i"
25                              Name 25  "comp"
26                              Name 30  "GetColor5(struct-S-vf31;i1;"
27                              Name 28  "i"
28                              Name 29  "comp"
29                              Name 34  "GetColor6(struct-S-vf31;i1;"
30                              Name 32  "i"
31                              Name 33  "comp"
32                              Name 38  "GetColor7(struct-S-vf31;i1;"
33                              Name 36  "i"
34                              Name 37  "comp"
35                              Name 42  "GetColor8(struct-S-vf31;i1;"
36                              Name 40  "i"
37                              Name 41  "comp"
38                              Name 46  "GetColor9(struct-S-vf31;i1;"
39                              Name 44  "i"
40                              Name 45  "comp"
41                              Name 50  "GetColor10(struct-S-vf31;i1;"
42                              Name 48  "i"
43                              Name 49  "comp"
44                              Name 54  "GetColor11(struct-S-vf31;i1;"
45                              Name 52  "i"
46                              Name 53  "comp"
47                              Name 58  "GetColor12(struct-S-vf31;i1;"
48                              Name 56  "i"
49                              Name 57  "comp"
50                              Name 62  "GetColor13(struct-S-vf31;i1;"
51                              Name 60  "i"
52                              Name 61  "comp"
53                              Name 66  "GetColor14(struct-S-vf31;i1;"
54                              Name 64  "i"
55                              Name 65  "comp"
56                              Name 69  "OutColor"
57                              Name 165  "s"
58                              Name 170  "u"
59                              Name 171  "param"
60                              Name 175  "param"
61                              Name 179  "param"
62                              Name 183  "param"
63                              Name 187  "param"
64                              Name 191  "param"
65                              Name 195  "param"
66                              Name 199  "param"
67                              Name 203  "param"
68                              Name 207  "param"
69                              Name 211  "param"
70                              Name 215  "param"
71                              Name 219  "param"
72                              Decorate 69(OutColor) Location 0
73                              Decorate 170(u) Flat
74               2:             TypeVoid
75               3:             TypeFunction 2
76               6:             TypeFloat 32
77               7:             TypeVector 6(float) 3
78            8(S):             TypeStruct 7(fvec3)
79               9:             TypeFunction 2 8(S)
80              13:             TypeInt 32 1
81              14:             TypePointer Function 13(int)
82              15:             TypeFunction 2 8(S) 14(ptr)
83              68:             TypePointer Output 7(fvec3)
84    69(OutColor):     68(ptr) Variable Output
85              70:     13(int) Constant 0
86              71:             TypeInt 32 0
87              72:     71(int) Constant 0
88              99:             TypeVector 6(float) 2
89             113:     71(int) Constant 2
90             140:             TypePointer Output 6(float)
91             147:     71(int) Constant 1
92             148:             TypeVector 71(int) 2
93             149:  148(ivec2) ConstantComposite 113 147
94             158:             TypeVector 71(int) 3
95             159:  158(ivec3) ConstantComposite 113 147 72
96             162:    6(float) Constant 0
97             163:    7(fvec3) ConstantComposite 162 162 162
98             164:             TypePointer Function 8(S)
99             169:             TypePointer Input 13(int)
100          170(u):    169(ptr) Variable Input
101         4(main):           2 Function None 3
102               5:             Label
103          165(s):    164(ptr) Variable Function
104      171(param):     14(ptr) Variable Function
105      175(param):     14(ptr) Variable Function
106      179(param):     14(ptr) Variable Function
107      183(param):     14(ptr) Variable Function
108      187(param):     14(ptr) Variable Function
109      191(param):     14(ptr) Variable Function
110      195(param):     14(ptr) Variable Function
111      199(param):     14(ptr) Variable Function
112      203(param):     14(ptr) Variable Function
113      207(param):     14(ptr) Variable Function
114      211(param):     14(ptr) Variable Function
115      215(param):     14(ptr) Variable Function
116      219(param):     14(ptr) Variable Function
117                              Store 69(OutColor) 163
118             166:        8(S) Load 165(s)
119             167:           2 FunctionCall 11(GetColor1(struct-S-vf31;) 166
120             168:        8(S) Load 165(s)
121             172:     13(int) Load 170(u)
122                              Store 171(param) 172
123             173:           2 FunctionCall 18(GetColor2(struct-S-vf31;i1;) 168 171(param)
124             174:        8(S) Load 165(s)
125             176:     13(int) Load 170(u)
126                              Store 175(param) 176
127             177:           2 FunctionCall 22(GetColor3(struct-S-vf31;i1;) 174 175(param)
128             178:        8(S) Load 165(s)
129             180:     13(int) Load 170(u)
130                              Store 179(param) 180
131             181:           2 FunctionCall 26(GetColor4(struct-S-vf31;i1;) 178 179(param)
132             182:        8(S) Load 165(s)
133             184:     13(int) Load 170(u)
134                              Store 183(param) 184
135             185:           2 FunctionCall 30(GetColor5(struct-S-vf31;i1;) 182 183(param)
136             186:        8(S) Load 165(s)
137             188:     13(int) Load 170(u)
138                              Store 187(param) 188
139             189:           2 FunctionCall 34(GetColor6(struct-S-vf31;i1;) 186 187(param)
140             190:        8(S) Load 165(s)
141             192:     13(int) Load 170(u)
142                              Store 191(param) 192
143             193:           2 FunctionCall 38(GetColor7(struct-S-vf31;i1;) 190 191(param)
144             194:        8(S) Load 165(s)
145             196:     13(int) Load 170(u)
146                              Store 195(param) 196
147             197:           2 FunctionCall 42(GetColor8(struct-S-vf31;i1;) 194 195(param)
148             198:        8(S) Load 165(s)
149             200:     13(int) Load 170(u)
150                              Store 199(param) 200
151             201:           2 FunctionCall 46(GetColor9(struct-S-vf31;i1;) 198 199(param)
152             202:        8(S) Load 165(s)
153             204:     13(int) Load 170(u)
154                              Store 203(param) 204
155             205:           2 FunctionCall 50(GetColor10(struct-S-vf31;i1;) 202 203(param)
156             206:        8(S) Load 165(s)
157             208:     13(int) Load 170(u)
158                              Store 207(param) 208
159             209:           2 FunctionCall 54(GetColor11(struct-S-vf31;i1;) 206 207(param)
160             210:        8(S) Load 165(s)
161             212:     13(int) Load 170(u)
162                              Store 211(param) 212
163             213:           2 FunctionCall 58(GetColor12(struct-S-vf31;i1;) 210 211(param)
164             214:        8(S) Load 165(s)
165             216:     13(int) Load 170(u)
166                              Store 215(param) 216
167             217:           2 FunctionCall 62(GetColor13(struct-S-vf31;i1;) 214 215(param)
168             218:        8(S) Load 165(s)
169             220:     13(int) Load 170(u)
170                              Store 219(param) 220
171             221:           2 FunctionCall 66(GetColor14(struct-S-vf31;i1;) 218 219(param)
172                              Return
173                              FunctionEnd
17411(GetColor1(struct-S-vf31;):           2 Function None 9
175           10(i):        8(S) FunctionParameter
176              12:             Label
177              73:    6(float) CompositeExtract 10(i) 0 0
178              74:    7(fvec3) Load 69(OutColor)
179              75:    7(fvec3) CompositeConstruct 73 73 73
180              76:    7(fvec3) FAdd 74 75
181                              Store 69(OutColor) 76
182                              Return
183                              FunctionEnd
18418(GetColor2(struct-S-vf31;i1;):           2 Function None 15
185           16(i):        8(S) FunctionParameter
186        17(comp):     14(ptr) FunctionParameter
187              19:             Label
188              77:     13(int) Load 17(comp)
189              78:    7(fvec3) CompositeExtract 16(i) 0
190              79:    6(float) VectorExtractDynamic 78 77
191              80:    7(fvec3) Load 69(OutColor)
192              81:    7(fvec3) CompositeConstruct 79 79 79
193              82:    7(fvec3) FAdd 80 81
194                              Store 69(OutColor) 82
195                              Return
196                              FunctionEnd
19722(GetColor3(struct-S-vf31;i1;):           2 Function None 15
198           20(i):        8(S) FunctionParameter
199        21(comp):     14(ptr) FunctionParameter
200              23:             Label
201              83:     13(int) Load 21(comp)
202              84:    7(fvec3) CompositeExtract 20(i) 0
203              85:    6(float) VectorExtractDynamic 84 83
204              86:    7(fvec3) Load 69(OutColor)
205              87:    7(fvec3) CompositeConstruct 85 85 85
206              88:    7(fvec3) FAdd 86 87
207                              Store 69(OutColor) 88
208                              Return
209                              FunctionEnd
21026(GetColor4(struct-S-vf31;i1;):           2 Function None 15
211           24(i):        8(S) FunctionParameter
212        25(comp):     14(ptr) FunctionParameter
213              27:             Label
214              89:     13(int) Load 25(comp)
215              90:    7(fvec3) CompositeExtract 24(i) 0
216              91:    6(float) VectorExtractDynamic 90 89
217              92:    7(fvec3) Load 69(OutColor)
218              93:    7(fvec3) CompositeConstruct 91 91 91
219              94:    7(fvec3) FAdd 92 93
220                              Store 69(OutColor) 94
221                              Return
222                              FunctionEnd
22330(GetColor5(struct-S-vf31;i1;):           2 Function None 15
224           28(i):        8(S) FunctionParameter
225        29(comp):     14(ptr) FunctionParameter
226              31:             Label
227              95:    7(fvec3) CompositeExtract 28(i) 0
228              96:    7(fvec3) Load 69(OutColor)
229              97:    7(fvec3) FAdd 96 95
230                              Store 69(OutColor) 97
231                              Return
232                              FunctionEnd
23334(GetColor6(struct-S-vf31;i1;):           2 Function None 15
234           32(i):        8(S) FunctionParameter
235        33(comp):     14(ptr) FunctionParameter
236              35:             Label
237              98:     13(int) Load 33(comp)
238             100:    7(fvec3) CompositeExtract 32(i) 0
239             101:   99(fvec2) VectorShuffle 100 100 1 0
240             102:    6(float) VectorExtractDynamic 101 98
241             103:    7(fvec3) Load 69(OutColor)
242             104:    7(fvec3) CompositeConstruct 102 102 102
243             105:    7(fvec3) FAdd 103 104
244                              Store 69(OutColor) 105
245                              Return
246                              FunctionEnd
24738(GetColor7(struct-S-vf31;i1;):           2 Function None 15
248           36(i):        8(S) FunctionParameter
249        37(comp):     14(ptr) FunctionParameter
250              39:             Label
251             106:    7(fvec3) CompositeExtract 36(i) 0
252             107:   99(fvec2) VectorShuffle 106 106 0 1
253             108:    7(fvec3) Load 69(OutColor)
254             109:   99(fvec2) VectorShuffle 108 108 0 1
255             110:   99(fvec2) FAdd 109 107
256             111:    7(fvec3) Load 69(OutColor)
257             112:    7(fvec3) VectorShuffle 111 110 3 4 2
258                              Store 69(OutColor) 112
259                              Return
260                              FunctionEnd
26142(GetColor8(struct-S-vf31;i1;):           2 Function None 15
262           40(i):        8(S) FunctionParameter
263        41(comp):     14(ptr) FunctionParameter
264              43:             Label
265             114:    6(float) CompositeExtract 40(i) 0 2
266             115:    7(fvec3) Load 69(OutColor)
267             116:    7(fvec3) CompositeConstruct 114 114 114
268             117:    7(fvec3) FAdd 115 116
269                              Store 69(OutColor) 117
270                              Return
271                              FunctionEnd
27246(GetColor9(struct-S-vf31;i1;):           2 Function None 15
273           44(i):        8(S) FunctionParameter
274        45(comp):     14(ptr) FunctionParameter
275              47:             Label
276             118:    7(fvec3) CompositeExtract 44(i) 0
277             119:    7(fvec3) Load 69(OutColor)
278             120:    7(fvec3) VectorShuffle 119 119 2 0 1
279             121:    7(fvec3) FAdd 120 118
280             122:    7(fvec3) Load 69(OutColor)
281             123:    7(fvec3) VectorShuffle 122 121 4 5 3
282                              Store 69(OutColor) 123
283                              Return
284                              FunctionEnd
28550(GetColor10(struct-S-vf31;i1;):           2 Function None 15
286           48(i):        8(S) FunctionParameter
287        49(comp):     14(ptr) FunctionParameter
288              51:             Label
289             124:    7(fvec3) CompositeExtract 48(i) 0
290             125:   99(fvec2) VectorShuffle 124 124 0 1
291             126:    7(fvec3) Load 69(OutColor)
292             127:   99(fvec2) VectorShuffle 126 126 2 1
293             128:   99(fvec2) FAdd 127 125
294             129:    7(fvec3) Load 69(OutColor)
295             130:    7(fvec3) VectorShuffle 129 128 0 4 3
296                              Store 69(OutColor) 130
297                              Return
298                              FunctionEnd
29954(GetColor11(struct-S-vf31;i1;):           2 Function None 15
300           52(i):        8(S) FunctionParameter
301        53(comp):     14(ptr) FunctionParameter
302              55:             Label
303             131:    7(fvec3) CompositeExtract 52(i) 0
304             132:   99(fvec2) VectorShuffle 131 131 0 1
305             133:    7(fvec3) Load 69(OutColor)
306             134:   99(fvec2) VectorShuffle 133 133 0 2
307             135:   99(fvec2) FAdd 134 132
308             136:    7(fvec3) Load 69(OutColor)
309             137:    7(fvec3) VectorShuffle 136 135 3 1 4
310                              Store 69(OutColor) 137
311                              Return
312                              FunctionEnd
31358(GetColor12(struct-S-vf31;i1;):           2 Function None 15
314           56(i):        8(S) FunctionParameter
315        57(comp):     14(ptr) FunctionParameter
316              59:             Label
317             138:     13(int) Load 57(comp)
318             139:    6(float) CompositeExtract 56(i) 0 0
319             141:    140(ptr) AccessChain 69(OutColor) 138
320             142:    6(float) Load 141
321             143:    6(float) FAdd 142 139
322             144:    140(ptr) AccessChain 69(OutColor) 138
323                              Store 144 143
324                              Return
325                              FunctionEnd
32662(GetColor13(struct-S-vf31;i1;):           2 Function None 15
327           60(i):        8(S) FunctionParameter
328        61(comp):     14(ptr) FunctionParameter
329              63:             Label
330             145:     13(int) Load 61(comp)
331             146:    6(float) CompositeExtract 60(i) 0 0
332             150:     71(int) VectorExtractDynamic 149 145
333             151:    140(ptr) AccessChain 69(OutColor) 150
334             152:    6(float) Load 151
335             153:    6(float) FAdd 152 146
336             154:     71(int) VectorExtractDynamic 149 145
337             155:    140(ptr) AccessChain 69(OutColor) 154
338                              Store 155 153
339                              Return
340                              FunctionEnd
34166(GetColor14(struct-S-vf31;i1;):           2 Function None 15
342           64(i):        8(S) FunctionParameter
343        65(comp):     14(ptr) FunctionParameter
344              67:             Label
345             156:     13(int) Load 65(comp)
346             157:    6(float) CompositeExtract 64(i) 0 0
347             160:     71(int) VectorExtractDynamic 159 156
348             161:    140(ptr) AccessChain 69(OutColor) 160
349                              Store 161 157
350                              Return
351                              FunctionEnd
352