Debian Codegraph @

debian/missing-sources/glam-0.21.3/src/swizzles/wasm32/vec3a_impl.rs

raw
1 // Generated from swizzle_impl.rs.tera template. Edit the template, not the generated file.
2
3 #![allow(clippy::useless_conversion)]
4
5 use crate::{Vec2, Vec3A, Vec3Swizzles, Vec4};
6
7 use core::arch::wasm32::*;
8
9 impl Vec3Swizzles for Vec3A {
10 type Vec2 = Vec2;
11
12 type Vec4 = Vec4;
13
14 #[inline]
15 fn xx(self) -> Vec2 {
16 Vec2 {
17 x: self.x,
18 y: self.x,
19 }
20 }
21
22 #[inline]
23 fn xy(self) -> Vec2 {
24 Vec2 {
25 x: self.x,
26 y: self.y,
27 }
28 }
29
30 #[inline]
31 fn xz(self) -> Vec2 {
32 Vec2 {
33 x: self.x,
34 y: self.z,
35 }
36 }
37
38 #[inline]
39 fn yx(self) -> Vec2 {
40 Vec2 {
41 x: self.y,
42 y: self.x,
43 }
44 }
45
46 #[inline]
47 fn yy(self) -> Vec2 {
48 Vec2 {
49 x: self.y,
50 y: self.y,
51 }
52 }
53
54 #[inline]
55 fn yz(self) -> Vec2 {
56 Vec2 {
57 x: self.y,
58 y: self.z,
59 }
60 }
61
62 #[inline]
63 fn zx(self) -> Vec2 {
64 Vec2 {
65 x: self.z,
66 y: self.x,
67 }
68 }
69
70 #[inline]
71 fn zy(self) -> Vec2 {
72 Vec2 {
73 x: self.z,
74 y: self.y,
75 }
76 }
77
78 #[inline]
79 fn zz(self) -> Vec2 {
80 Vec2 {
81 x: self.z,
82 y: self.z,
83 }
84 }
85
86 #[inline]
87 fn xxx(self) -> Vec3A {
88 Vec3A(i32x4_shuffle::<0, 0, 4, 4>(self.0, self.0).into())
89 }
90
91 #[inline]
92 fn xxy(self) -> Vec3A {
93 Vec3A(i32x4_shuffle::<0, 0, 5, 4>(self.0, self.0).into())
94 }
95
96 #[inline]
97 fn xxz(self) -> Vec3A {
98 Vec3A(i32x4_shuffle::<0, 0, 6, 4>(self.0, self.0).into())
99 }
100
101 #[inline]
102 fn xyx(self) -> Vec3A {
103 Vec3A(i32x4_shuffle::<0, 1, 4, 4>(self.0, self.0).into())
104 }
105
106 #[inline]
107 fn xyy(self) -> Vec3A {
108 Vec3A(i32x4_shuffle::<0, 1, 5, 4>(self.0, self.0).into())
109 }
110
111 #[inline]
112 fn xyz(self) -> Vec3A {
113 Vec3A(i32x4_shuffle::<0, 1, 6, 4>(self.0, self.0).into())
114 }
115
116 #[inline]
117 fn xzx(self) -> Vec3A {
118 Vec3A(i32x4_shuffle::<0, 2, 4, 4>(self.0, self.0).into())
119 }
120
121 #[inline]
122 fn xzy(self) -> Vec3A {
123 Vec3A(i32x4_shuffle::<0, 2, 5, 4>(self.0, self.0).into())
124 }
125
126 #[inline]
127 fn xzz(self) -> Vec3A {
128 Vec3A(i32x4_shuffle::<0, 2, 6, 4>(self.0, self.0).into())
129 }
130
131 #[inline]
132 fn yxx(self) -> Vec3A {
133 Vec3A(i32x4_shuffle::<1, 0, 4, 4>(self.0, self.0).into())
134 }
135
136 #[inline]
137 fn yxy(self) -> Vec3A {
138 Vec3A(i32x4_shuffle::<1, 0, 5, 4>(self.0, self.0).into())
139 }
140
141 #[inline]
142 fn yxz(self) -> Vec3A {
143 Vec3A(i32x4_shuffle::<1, 0, 6, 4>(self.0, self.0).into())
144 }
145
146 #[inline]
147 fn yyx(self) -> Vec3A {
148 Vec3A(i32x4_shuffle::<1, 1, 4, 4>(self.0, self.0).into())
149 }
150
151 #[inline]
152 fn yyy(self) -> Vec3A {
153 Vec3A(i32x4_shuffle::<1, 1, 5, 4>(self.0, self.0).into())
154 }
155
156 #[inline]
157 fn yyz(self) -> Vec3A {
158 Vec3A(i32x4_shuffle::<1, 1, 6, 4>(self.0, self.0).into())
159 }
160
161 #[inline]
162 fn yzx(self) -> Vec3A {
163 Vec3A(i32x4_shuffle::<1, 2, 4, 4>(self.0, self.0).into())
164 }
165
166 #[inline]
167 fn yzy(self) -> Vec3A {
168 Vec3A(i32x4_shuffle::<1, 2, 5, 4>(self.0, self.0).into())
169 }
170
171 #[inline]
172 fn yzz(self) -> Vec3A {
173 Vec3A(i32x4_shuffle::<1, 2, 6, 4>(self.0, self.0).into())
174 }
175
176 #[inline]
177 fn zxx(self) -> Vec3A {
178 Vec3A(i32x4_shuffle::<2, 0, 4, 4>(self.0, self.0).into())
179 }
180
181 #[inline]
182 fn zxy(self) -> Vec3A {
183 Vec3A(i32x4_shuffle::<2, 0, 5, 4>(self.0, self.0).into())
184 }
185
186 #[inline]
187 fn zxz(self) -> Vec3A {
188 Vec3A(i32x4_shuffle::<2, 0, 6, 4>(self.0, self.0).into())
189 }
190
191 #[inline]
192 fn zyx(self) -> Vec3A {
193 Vec3A(i32x4_shuffle::<2, 1, 4, 4>(self.0, self.0).into())
194 }
195
196 #[inline]
197 fn zyy(self) -> Vec3A {
198 Vec3A(i32x4_shuffle::<2, 1, 5, 4>(self.0, self.0).into())
199 }
200
201 #[inline]
202 fn zyz(self) -> Vec3A {
203 Vec3A(i32x4_shuffle::<2, 1, 6, 4>(self.0, self.0).into())
204 }
205
206 #[inline]
207 fn zzx(self) -> Vec3A {
208 Vec3A(i32x4_shuffle::<2, 2, 4, 4>(self.0, self.0).into())
209 }
210
211 #[inline]
212 fn zzy(self) -> Vec3A {
213 Vec3A(i32x4_shuffle::<2, 2, 5, 4>(self.0, self.0).into())
214 }
215
216 #[inline]
217 fn zzz(self) -> Vec3A {
218 Vec3A(i32x4_shuffle::<2, 2, 6, 4>(self.0, self.0).into())
219 }
220
221 #[inline]
222 fn xxxx(self) -> Vec4 {
223 Vec4(i32x4_shuffle::<0, 0, 4, 4>(self.0, self.0))
224 }
225
226 #[inline]
227 fn xxxy(self) -> Vec4 {
228 Vec4(i32x4_shuffle::<0, 0, 4, 5>(self.0, self.0))
229 }
230
231 #[inline]
232 fn xxxz(self) -> Vec4 {
233 Vec4(i32x4_shuffle::<0, 0, 4, 6>(self.0, self.0))
234 }
235
236 #[inline]
237 fn xxyx(self) -> Vec4 {
238 Vec4(i32x4_shuffle::<0, 0, 5, 4>(self.0, self.0))
239 }
240
241 #[inline]
242 fn xxyy(self) -> Vec4 {
243 Vec4(i32x4_shuffle::<0, 0, 5, 5>(self.0, self.0))
244 }
245
246 #[inline]
247 fn xxyz(self) -> Vec4 {
248 Vec4(i32x4_shuffle::<0, 0, 5, 6>(self.0, self.0))
249 }
250
251 #[inline]
252 fn xxzx(self) -> Vec4 {
253 Vec4(i32x4_shuffle::<0, 0, 6, 4>(self.0, self.0))
254 }
255
256 #[inline]
257 fn xxzy(self) -> Vec4 {
258 Vec4(i32x4_shuffle::<0, 0, 6, 5>(self.0, self.0))
259 }
260
261 #[inline]
262 fn xxzz(self) -> Vec4 {
263 Vec4(i32x4_shuffle::<0, 0, 6, 6>(self.0, self.0))
264 }
265
266 #[inline]
267 fn xyxx(self) -> Vec4 {
268 Vec4(i32x4_shuffle::<0, 1, 4, 4>(self.0, self.0))
269 }
270
271 #[inline]
272 fn xyxy(self) -> Vec4 {
273 Vec4(i32x4_shuffle::<0, 1, 4, 5>(self.0, self.0))
274 }
275
276 #[inline]
277 fn xyxz(self) -> Vec4 {
278 Vec4(i32x4_shuffle::<0, 1, 4, 6>(self.0, self.0))
279 }
280
281 #[inline]
282 fn xyyx(self) -> Vec4 {
283 Vec4(i32x4_shuffle::<0, 1, 5, 4>(self.0, self.0))
284 }
285
286 #[inline]
287 fn xyyy(self) -> Vec4 {
288 Vec4(i32x4_shuffle::<0, 1, 5, 5>(self.0, self.0))
289 }
290
291 #[inline]
292 fn xyyz(self) -> Vec4 {
293 Vec4(i32x4_shuffle::<0, 1, 5, 6>(self.0, self.0))
294 }
295
296 #[inline]
297 fn xyzx(self) -> Vec4 {
298 Vec4(i32x4_shuffle::<0, 1, 6, 4>(self.0, self.0))
299 }
300
301 #[inline]
302 fn xyzy(self) -> Vec4 {
303 Vec4(i32x4_shuffle::<0, 1, 6, 5>(self.0, self.0))
304 }
305
306 #[inline]
307 fn xyzz(self) -> Vec4 {
308 Vec4(i32x4_shuffle::<0, 1, 6, 6>(self.0, self.0))
309 }
310
311 #[inline]
312 fn xzxx(self) -> Vec4 {
313 Vec4(i32x4_shuffle::<0, 2, 4, 4>(self.0, self.0))
314 }
315
316 #[inline]
317 fn xzxy(self) -> Vec4 {
318 Vec4(i32x4_shuffle::<0, 2, 4, 5>(self.0, self.0))
319 }
320
321 #[inline]
322 fn xzxz(self) -> Vec4 {
323 Vec4(i32x4_shuffle::<0, 2, 4, 6>(self.0, self.0))
324 }
325
326 #[inline]
327 fn xzyx(self) -> Vec4 {
328 Vec4(i32x4_shuffle::<0, 2, 5, 4>(self.0, self.0))
329 }
330
331 #[inline]
332 fn xzyy(self) -> Vec4 {
333 Vec4(i32x4_shuffle::<0, 2, 5, 5>(self.0, self.0))
334 }
335
336 #[inline]
337 fn xzyz(self) -> Vec4 {
338 Vec4(i32x4_shuffle::<0, 2, 5, 6>(self.0, self.0))
339 }
340
341 #[inline]
342 fn xzzx(self) -> Vec4 {
343 Vec4(i32x4_shuffle::<0, 2, 6, 4>(self.0, self.0))
344 }
345
346 #[inline]
347 fn xzzy(self) -> Vec4 {
348 Vec4(i32x4_shuffle::<0, 2, 6, 5>(self.0, self.0))
349 }
350
351 #[inline]
352 fn xzzz(self) -> Vec4 {
353 Vec4(i32x4_shuffle::<0, 2, 6, 6>(self.0, self.0))
354 }
355
356 #[inline]
357 fn yxxx(self) -> Vec4 {
358 Vec4(i32x4_shuffle::<1, 0, 4, 4>(self.0, self.0))
359 }
360
361 #[inline]
362 fn yxxy(self) -> Vec4 {
363 Vec4(i32x4_shuffle::<1, 0, 4, 5>(self.0, self.0))
364 }
365
366 #[inline]
367 fn yxxz(self) -> Vec4 {
368 Vec4(i32x4_shuffle::<1, 0, 4, 6>(self.0, self.0))
369 }
370
371 #[inline]
372 fn yxyx(self) -> Vec4 {
373 Vec4(i32x4_shuffle::<1, 0, 5, 4>(self.0, self.0))
374 }
375
376 #[inline]
377 fn yxyy(self) -> Vec4 {
378 Vec4(i32x4_shuffle::<1, 0, 5, 5>(self.0, self.0))
379 }
380
381 #[inline]
382 fn yxyz(self) -> Vec4 {
383 Vec4(i32x4_shuffle::<1, 0, 5, 6>(self.0, self.0))
384 }
385
386 #[inline]
387 fn yxzx(self) -> Vec4 {
388 Vec4(i32x4_shuffle::<1, 0, 6, 4>(self.0, self.0))
389 }
390
391 #[inline]
392 fn yxzy(self) -> Vec4 {
393 Vec4(i32x4_shuffle::<1, 0, 6, 5>(self.0, self.0))
394 }
395
396 #[inline]
397 fn yxzz(self) -> Vec4 {
398 Vec4(i32x4_shuffle::<1, 0, 6, 6>(self.0, self.0))
399 }
400
401 #[inline]
402 fn yyxx(self) -> Vec4 {
403 Vec4(i32x4_shuffle::<1, 1, 4, 4>(self.0, self.0))
404 }
405
406 #[inline]
407 fn yyxy(self) -> Vec4 {
408 Vec4(i32x4_shuffle::<1, 1, 4, 5>(self.0, self.0))
409 }
410
411 #[inline]
412 fn yyxz(self) -> Vec4 {
413 Vec4(i32x4_shuffle::<1, 1, 4, 6>(self.0, self.0))
414 }
415
416 #[inline]
417 fn yyyx(self) -> Vec4 {
418 Vec4(i32x4_shuffle::<1, 1, 5, 4>(self.0, self.0))
419 }
420
421 #[inline]
422 fn yyyy(self) -> Vec4 {
423 Vec4(i32x4_shuffle::<1, 1, 5, 5>(self.0, self.0))
424 }
425
426 #[inline]
427 fn yyyz(self) -> Vec4 {
428 Vec4(i32x4_shuffle::<1, 1, 5, 6>(self.0, self.0))
429 }
430
431 #[inline]
432 fn yyzx(self) -> Vec4 {
433 Vec4(i32x4_shuffle::<1, 1, 6, 4>(self.0, self.0))
434 }
435
436 #[inline]
437 fn yyzy(self) -> Vec4 {
438 Vec4(i32x4_shuffle::<1, 1, 6, 5>(self.0, self.0))
439 }
440
441 #[inline]
442 fn yyzz(self) -> Vec4 {
443 Vec4(i32x4_shuffle::<1, 1, 6, 6>(self.0, self.0))
444 }
445
446 #[inline]
447 fn yzxx(self) -> Vec4 {
448 Vec4(i32x4_shuffle::<1, 2, 4, 4>(self.0, self.0))
449 }
450
451 #[inline]
452 fn yzxy(self) -> Vec4 {
453 Vec4(i32x4_shuffle::<1, 2, 4, 5>(self.0, self.0))
454 }
455
456 #[inline]
457 fn yzxz(self) -> Vec4 {
458 Vec4(i32x4_shuffle::<1, 2, 4, 6>(self.0, self.0))
459 }
460
461 #[inline]
462 fn yzyx(self) -> Vec4 {
463 Vec4(i32x4_shuffle::<1, 2, 5, 4>(self.0, self.0))
464 }
465
466 #[inline]
467 fn yzyy(self) -> Vec4 {
468 Vec4(i32x4_shuffle::<1, 2, 5, 5>(self.0, self.0))
469 }
470
471 #[inline]
472 fn yzyz(self) -> Vec4 {
473 Vec4(i32x4_shuffle::<1, 2, 5, 6>(self.0, self.0))
474 }
475
476 #[inline]
477 fn yzzx(self) -> Vec4 {
478 Vec4(i32x4_shuffle::<1, 2, 6, 4>(self.0, self.0))
479 }
480
481 #[inline]
482 fn yzzy(self) -> Vec4 {
483 Vec4(i32x4_shuffle::<1, 2, 6, 5>(self.0, self.0))
484 }
485
486 #[inline]
487 fn yzzz(self) -> Vec4 {
488 Vec4(i32x4_shuffle::<1, 2, 6, 6>(self.0, self.0))
489 }
490
491 #[inline]
492 fn zxxx(self) -> Vec4 {
493 Vec4(i32x4_shuffle::<2, 0, 4, 4>(self.0, self.0))
494 }
495
496 #[inline]
497 fn zxxy(self) -> Vec4 {
498 Vec4(i32x4_shuffle::<2, 0, 4, 5>(self.0, self.0))
499 }
500
501 #[inline]
502 fn zxxz(self) -> Vec4 {
503 Vec4(i32x4_shuffle::<2, 0, 4, 6>(self.0, self.0))
504 }
505
506 #[inline]
507 fn zxyx(self) -> Vec4 {
508 Vec4(i32x4_shuffle::<2, 0, 5, 4>(self.0, self.0))
509 }
510
511 #[inline]
512 fn zxyy(self) -> Vec4 {
513 Vec4(i32x4_shuffle::<2, 0, 5, 5>(self.0, self.0))
514 }
515
516 #[inline]
517 fn zxyz(self) -> Vec4 {
518 Vec4(i32x4_shuffle::<2, 0, 5, 6>(self.0, self.0))
519 }
520
521 #[inline]
522 fn zxzx(self) -> Vec4 {
523 Vec4(i32x4_shuffle::<2, 0, 6, 4>(self.0, self.0))
524 }
525
526 #[inline]
527 fn zxzy(self) -> Vec4 {
528 Vec4(i32x4_shuffle::<2, 0, 6, 5>(self.0, self.0))
529 }
530
531 #[inline]
532 fn zxzz(self) -> Vec4 {
533 Vec4(i32x4_shuffle::<2, 0, 6, 6>(self.0, self.0))
534 }
535
536 #[inline]
537 fn zyxx(self) -> Vec4 {
538 Vec4(i32x4_shuffle::<2, 1, 4, 4>(self.0, self.0))
539 }
540
541 #[inline]
542 fn zyxy(self) -> Vec4 {
543 Vec4(i32x4_shuffle::<2, 1, 4, 5>(self.0, self.0))
544 }
545
546 #[inline]
547 fn zyxz(self) -> Vec4 {
548 Vec4(i32x4_shuffle::<2, 1, 4, 6>(self.0, self.0))
549 }
550
551 #[inline]
552 fn zyyx(self) -> Vec4 {
553 Vec4(i32x4_shuffle::<2, 1, 5, 4>(self.0, self.0))
554 }
555
556 #[inline]
557 fn zyyy(self) -> Vec4 {
558 Vec4(i32x4_shuffle::<2, 1, 5, 5>(self.0, self.0))
559 }
560
561 #[inline]
562 fn zyyz(self) -> Vec4 {
563 Vec4(i32x4_shuffle::<2, 1, 5, 6>(self.0, self.0))
564 }
565
566 #[inline]
567 fn zyzx(self) -> Vec4 {
568 Vec4(i32x4_shuffle::<2, 1, 6, 4>(self.0, self.0))
569 }
570
571 #[inline]
572 fn zyzy(self) -> Vec4 {
573 Vec4(i32x4_shuffle::<2, 1, 6, 5>(self.0, self.0))
574 }
575
576 #[inline]
577 fn zyzz(self) -> Vec4 {
578 Vec4(i32x4_shuffle::<2, 1, 6, 6>(self.0, self.0))
579 }
580
581 #[inline]
582 fn zzxx(self) -> Vec4 {
583 Vec4(i32x4_shuffle::<2, 2, 4, 4>(self.0, self.0))
584 }
585
586 #[inline]
587 fn zzxy(self) -> Vec4 {
588 Vec4(i32x4_shuffle::<2, 2, 4, 5>(self.0, self.0))
589 }
590
591 #[inline]
592 fn zzxz(self) -> Vec4 {
593 Vec4(i32x4_shuffle::<2, 2, 4, 6>(self.0, self.0))
594 }
595
596 #[inline]
597 fn zzyx(self) -> Vec4 {
598 Vec4(i32x4_shuffle::<2, 2, 5, 4>(self.0, self.0))
599 }
600
601 #[inline]
602 fn zzyy(self) -> Vec4 {
603 Vec4(i32x4_shuffle::<2, 2, 5, 5>(self.0, self.0))
604 }
605
606 #[inline]
607 fn zzyz(self) -> Vec4 {
608 Vec4(i32x4_shuffle::<2, 2, 5, 6>(self.0, self.0))
609 }
610
611 #[inline]
612 fn zzzx(self) -> Vec4 {
613 Vec4(i32x4_shuffle::<2, 2, 6, 4>(self.0, self.0))
614 }
615
616 #[inline]
617 fn zzzy(self) -> Vec4 {
618 Vec4(i32x4_shuffle::<2, 2, 6, 5>(self.0, self.0))
619 }
620
621 #[inline]
622 fn zzzz(self) -> Vec4 {
623 Vec4(i32x4_shuffle::<2, 2, 6, 6>(self.0, self.0))
624 }
625 }