Debian Codegraph @

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