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] xx(self) -> Vec216 fn xx(self) -> Vec2 { 17 Vec2 { 18 x: self.x, 19 y: self.x, 20 } 21 } 22 23 #[inline] 24 #[must_use] xy(self) -> Vec225 fn xy(self) -> Vec2 { 26 Vec2 { 27 x: self.x, 28 y: self.y, 29 } 30 } 31 32 #[inline] 33 #[must_use] with_xy(self, rhs: Vec2) -> Self34 fn with_xy(self, rhs: Vec2) -> Self { 35 Self::new(rhs.x, rhs.y, self.z) 36 } 37 38 #[inline] 39 #[must_use] xz(self) -> Vec240 fn xz(self) -> Vec2 { 41 Vec2 { 42 x: self.x, 43 y: self.z, 44 } 45 } 46 47 #[inline] 48 #[must_use] with_xz(self, rhs: Vec2) -> Self49 fn with_xz(self, rhs: Vec2) -> Self { 50 Self::new(rhs.x, self.y, rhs.y) 51 } 52 53 #[inline] 54 #[must_use] yx(self) -> Vec255 fn yx(self) -> Vec2 { 56 Vec2 { 57 x: self.y, 58 y: self.x, 59 } 60 } 61 62 #[inline] 63 #[must_use] with_yx(self, rhs: Vec2) -> Self64 fn with_yx(self, rhs: Vec2) -> Self { 65 Self::new(rhs.y, rhs.x, self.z) 66 } 67 68 #[inline] 69 #[must_use] yy(self) -> Vec270 fn yy(self) -> Vec2 { 71 Vec2 { 72 x: self.y, 73 y: self.y, 74 } 75 } 76 77 #[inline] 78 #[must_use] yz(self) -> Vec279 fn yz(self) -> Vec2 { 80 Vec2 { 81 x: self.y, 82 y: self.z, 83 } 84 } 85 86 #[inline] 87 #[must_use] with_yz(self, rhs: Vec2) -> Self88 fn with_yz(self, rhs: Vec2) -> Self { 89 Self::new(self.x, rhs.x, rhs.y) 90 } 91 92 #[inline] 93 #[must_use] zx(self) -> Vec294 fn zx(self) -> Vec2 { 95 Vec2 { 96 x: self.z, 97 y: self.x, 98 } 99 } 100 101 #[inline] 102 #[must_use] with_zx(self, rhs: Vec2) -> Self103 fn with_zx(self, rhs: Vec2) -> Self { 104 Self::new(rhs.y, self.y, rhs.x) 105 } 106 107 #[inline] 108 #[must_use] zy(self) -> Vec2109 fn zy(self) -> Vec2 { 110 Vec2 { 111 x: self.z, 112 y: self.y, 113 } 114 } 115 116 #[inline] 117 #[must_use] with_zy(self, rhs: Vec2) -> Self118 fn with_zy(self, rhs: Vec2) -> Self { 119 Self::new(self.x, rhs.y, rhs.x) 120 } 121 122 #[inline] 123 #[must_use] zz(self) -> Vec2124 fn zz(self) -> Vec2 { 125 Vec2 { 126 x: self.z, 127 y: self.z, 128 } 129 } 130 131 #[inline] 132 #[must_use] xxx(self) -> Vec3A133 fn xxx(self) -> Vec3A { 134 Vec3A(i32x4_shuffle::<0, 0, 4, 4>(self.0, self.0).into()) 135 } 136 137 #[inline] 138 #[must_use] xxy(self) -> Vec3A139 fn xxy(self) -> Vec3A { 140 Vec3A(i32x4_shuffle::<0, 0, 5, 4>(self.0, self.0).into()) 141 } 142 143 #[inline] 144 #[must_use] xxz(self) -> Vec3A145 fn xxz(self) -> Vec3A { 146 Vec3A(i32x4_shuffle::<0, 0, 6, 4>(self.0, self.0).into()) 147 } 148 149 #[inline] 150 #[must_use] xyx(self) -> Vec3A151 fn xyx(self) -> Vec3A { 152 Vec3A(i32x4_shuffle::<0, 1, 4, 4>(self.0, self.0).into()) 153 } 154 155 #[inline] 156 #[must_use] xyy(self) -> Vec3A157 fn xyy(self) -> Vec3A { 158 Vec3A(i32x4_shuffle::<0, 1, 5, 4>(self.0, self.0).into()) 159 } 160 161 #[inline] 162 #[must_use] xzx(self) -> Vec3A163 fn xzx(self) -> Vec3A { 164 Vec3A(i32x4_shuffle::<0, 2, 4, 4>(self.0, self.0).into()) 165 } 166 167 #[inline] 168 #[must_use] xzy(self) -> Vec3A169 fn xzy(self) -> Vec3A { 170 Vec3A(i32x4_shuffle::<0, 2, 5, 4>(self.0, self.0).into()) 171 } 172 173 #[inline] 174 #[must_use] xzz(self) -> Vec3A175 fn xzz(self) -> Vec3A { 176 Vec3A(i32x4_shuffle::<0, 2, 6, 4>(self.0, self.0).into()) 177 } 178 179 #[inline] 180 #[must_use] yxx(self) -> Vec3A181 fn yxx(self) -> Vec3A { 182 Vec3A(i32x4_shuffle::<1, 0, 4, 4>(self.0, self.0).into()) 183 } 184 185 #[inline] 186 #[must_use] yxy(self) -> Vec3A187 fn yxy(self) -> Vec3A { 188 Vec3A(i32x4_shuffle::<1, 0, 5, 4>(self.0, self.0).into()) 189 } 190 191 #[inline] 192 #[must_use] yxz(self) -> Vec3A193 fn yxz(self) -> Vec3A { 194 Vec3A(i32x4_shuffle::<1, 0, 6, 4>(self.0, self.0).into()) 195 } 196 197 #[inline] 198 #[must_use] yyx(self) -> Vec3A199 fn yyx(self) -> Vec3A { 200 Vec3A(i32x4_shuffle::<1, 1, 4, 4>(self.0, self.0).into()) 201 } 202 203 #[inline] 204 #[must_use] yyy(self) -> Vec3A205 fn yyy(self) -> Vec3A { 206 Vec3A(i32x4_shuffle::<1, 1, 5, 4>(self.0, self.0).into()) 207 } 208 209 #[inline] 210 #[must_use] yyz(self) -> Vec3A211 fn yyz(self) -> Vec3A { 212 Vec3A(i32x4_shuffle::<1, 1, 6, 4>(self.0, self.0).into()) 213 } 214 215 #[inline] 216 #[must_use] yzx(self) -> Vec3A217 fn yzx(self) -> Vec3A { 218 Vec3A(i32x4_shuffle::<1, 2, 4, 4>(self.0, self.0).into()) 219 } 220 221 #[inline] 222 #[must_use] yzy(self) -> Vec3A223 fn yzy(self) -> Vec3A { 224 Vec3A(i32x4_shuffle::<1, 2, 5, 4>(self.0, self.0).into()) 225 } 226 227 #[inline] 228 #[must_use] yzz(self) -> Vec3A229 fn yzz(self) -> Vec3A { 230 Vec3A(i32x4_shuffle::<1, 2, 6, 4>(self.0, self.0).into()) 231 } 232 233 #[inline] 234 #[must_use] zxx(self) -> Vec3A235 fn zxx(self) -> Vec3A { 236 Vec3A(i32x4_shuffle::<2, 0, 4, 4>(self.0, self.0).into()) 237 } 238 239 #[inline] 240 #[must_use] zxy(self) -> Vec3A241 fn zxy(self) -> Vec3A { 242 Vec3A(i32x4_shuffle::<2, 0, 5, 4>(self.0, self.0).into()) 243 } 244 245 #[inline] 246 #[must_use] zxz(self) -> Vec3A247 fn zxz(self) -> Vec3A { 248 Vec3A(i32x4_shuffle::<2, 0, 6, 4>(self.0, self.0).into()) 249 } 250 251 #[inline] 252 #[must_use] zyx(self) -> Vec3A253 fn zyx(self) -> Vec3A { 254 Vec3A(i32x4_shuffle::<2, 1, 4, 4>(self.0, self.0).into()) 255 } 256 257 #[inline] 258 #[must_use] zyy(self) -> Vec3A259 fn zyy(self) -> Vec3A { 260 Vec3A(i32x4_shuffle::<2, 1, 5, 4>(self.0, self.0).into()) 261 } 262 263 #[inline] 264 #[must_use] zyz(self) -> Vec3A265 fn zyz(self) -> Vec3A { 266 Vec3A(i32x4_shuffle::<2, 1, 6, 4>(self.0, self.0).into()) 267 } 268 269 #[inline] 270 #[must_use] zzx(self) -> Vec3A271 fn zzx(self) -> Vec3A { 272 Vec3A(i32x4_shuffle::<2, 2, 4, 4>(self.0, self.0).into()) 273 } 274 275 #[inline] 276 #[must_use] zzy(self) -> Vec3A277 fn zzy(self) -> Vec3A { 278 Vec3A(i32x4_shuffle::<2, 2, 5, 4>(self.0, self.0).into()) 279 } 280 281 #[inline] 282 #[must_use] zzz(self) -> Vec3A283 fn zzz(self) -> Vec3A { 284 Vec3A(i32x4_shuffle::<2, 2, 6, 4>(self.0, self.0).into()) 285 } 286 287 #[inline] 288 #[must_use] xxxx(self) -> Vec4289 fn xxxx(self) -> Vec4 { 290 Vec4(i32x4_shuffle::<0, 0, 4, 4>(self.0, self.0)) 291 } 292 293 #[inline] 294 #[must_use] xxxy(self) -> Vec4295 fn xxxy(self) -> Vec4 { 296 Vec4(i32x4_shuffle::<0, 0, 4, 5>(self.0, self.0)) 297 } 298 299 #[inline] 300 #[must_use] xxxz(self) -> Vec4301 fn xxxz(self) -> Vec4 { 302 Vec4(i32x4_shuffle::<0, 0, 4, 6>(self.0, self.0)) 303 } 304 305 #[inline] 306 #[must_use] xxyx(self) -> Vec4307 fn xxyx(self) -> Vec4 { 308 Vec4(i32x4_shuffle::<0, 0, 5, 4>(self.0, self.0)) 309 } 310 311 #[inline] 312 #[must_use] xxyy(self) -> Vec4313 fn xxyy(self) -> Vec4 { 314 Vec4(i32x4_shuffle::<0, 0, 5, 5>(self.0, self.0)) 315 } 316 317 #[inline] 318 #[must_use] xxyz(self) -> Vec4319 fn xxyz(self) -> Vec4 { 320 Vec4(i32x4_shuffle::<0, 0, 5, 6>(self.0, self.0)) 321 } 322 323 #[inline] 324 #[must_use] xxzx(self) -> Vec4325 fn xxzx(self) -> Vec4 { 326 Vec4(i32x4_shuffle::<0, 0, 6, 4>(self.0, self.0)) 327 } 328 329 #[inline] 330 #[must_use] xxzy(self) -> Vec4331 fn xxzy(self) -> Vec4 { 332 Vec4(i32x4_shuffle::<0, 0, 6, 5>(self.0, self.0)) 333 } 334 335 #[inline] 336 #[must_use] xxzz(self) -> Vec4337 fn xxzz(self) -> Vec4 { 338 Vec4(i32x4_shuffle::<0, 0, 6, 6>(self.0, self.0)) 339 } 340 341 #[inline] 342 #[must_use] xyxx(self) -> Vec4343 fn xyxx(self) -> Vec4 { 344 Vec4(i32x4_shuffle::<0, 1, 4, 4>(self.0, self.0)) 345 } 346 347 #[inline] 348 #[must_use] xyxy(self) -> Vec4349 fn xyxy(self) -> Vec4 { 350 Vec4(i32x4_shuffle::<0, 1, 4, 5>(self.0, self.0)) 351 } 352 353 #[inline] 354 #[must_use] xyxz(self) -> Vec4355 fn xyxz(self) -> Vec4 { 356 Vec4(i32x4_shuffle::<0, 1, 4, 6>(self.0, self.0)) 357 } 358 359 #[inline] 360 #[must_use] xyyx(self) -> Vec4361 fn xyyx(self) -> Vec4 { 362 Vec4(i32x4_shuffle::<0, 1, 5, 4>(self.0, self.0)) 363 } 364 365 #[inline] 366 #[must_use] xyyy(self) -> Vec4367 fn xyyy(self) -> Vec4 { 368 Vec4(i32x4_shuffle::<0, 1, 5, 5>(self.0, self.0)) 369 } 370 371 #[inline] 372 #[must_use] xyyz(self) -> Vec4373 fn xyyz(self) -> Vec4 { 374 Vec4(i32x4_shuffle::<0, 1, 5, 6>(self.0, self.0)) 375 } 376 377 #[inline] 378 #[must_use] xyzx(self) -> Vec4379 fn xyzx(self) -> Vec4 { 380 Vec4(i32x4_shuffle::<0, 1, 6, 4>(self.0, self.0)) 381 } 382 383 #[inline] 384 #[must_use] xyzy(self) -> Vec4385 fn xyzy(self) -> Vec4 { 386 Vec4(i32x4_shuffle::<0, 1, 6, 5>(self.0, self.0)) 387 } 388 389 #[inline] 390 #[must_use] xyzz(self) -> Vec4391 fn xyzz(self) -> Vec4 { 392 Vec4(i32x4_shuffle::<0, 1, 6, 6>(self.0, self.0)) 393 } 394 395 #[inline] 396 #[must_use] xzxx(self) -> Vec4397 fn xzxx(self) -> Vec4 { 398 Vec4(i32x4_shuffle::<0, 2, 4, 4>(self.0, self.0)) 399 } 400 401 #[inline] 402 #[must_use] xzxy(self) -> Vec4403 fn xzxy(self) -> Vec4 { 404 Vec4(i32x4_shuffle::<0, 2, 4, 5>(self.0, self.0)) 405 } 406 407 #[inline] 408 #[must_use] xzxz(self) -> Vec4409 fn xzxz(self) -> Vec4 { 410 Vec4(i32x4_shuffle::<0, 2, 4, 6>(self.0, self.0)) 411 } 412 413 #[inline] 414 #[must_use] xzyx(self) -> Vec4415 fn xzyx(self) -> Vec4 { 416 Vec4(i32x4_shuffle::<0, 2, 5, 4>(self.0, self.0)) 417 } 418 419 #[inline] 420 #[must_use] xzyy(self) -> Vec4421 fn xzyy(self) -> Vec4 { 422 Vec4(i32x4_shuffle::<0, 2, 5, 5>(self.0, self.0)) 423 } 424 425 #[inline] 426 #[must_use] xzyz(self) -> Vec4427 fn xzyz(self) -> Vec4 { 428 Vec4(i32x4_shuffle::<0, 2, 5, 6>(self.0, self.0)) 429 } 430 431 #[inline] 432 #[must_use] xzzx(self) -> Vec4433 fn xzzx(self) -> Vec4 { 434 Vec4(i32x4_shuffle::<0, 2, 6, 4>(self.0, self.0)) 435 } 436 437 #[inline] 438 #[must_use] xzzy(self) -> Vec4439 fn xzzy(self) -> Vec4 { 440 Vec4(i32x4_shuffle::<0, 2, 6, 5>(self.0, self.0)) 441 } 442 443 #[inline] 444 #[must_use] xzzz(self) -> Vec4445 fn xzzz(self) -> Vec4 { 446 Vec4(i32x4_shuffle::<0, 2, 6, 6>(self.0, self.0)) 447 } 448 449 #[inline] 450 #[must_use] yxxx(self) -> Vec4451 fn yxxx(self) -> Vec4 { 452 Vec4(i32x4_shuffle::<1, 0, 4, 4>(self.0, self.0)) 453 } 454 455 #[inline] 456 #[must_use] yxxy(self) -> Vec4457 fn yxxy(self) -> Vec4 { 458 Vec4(i32x4_shuffle::<1, 0, 4, 5>(self.0, self.0)) 459 } 460 461 #[inline] 462 #[must_use] yxxz(self) -> Vec4463 fn yxxz(self) -> Vec4 { 464 Vec4(i32x4_shuffle::<1, 0, 4, 6>(self.0, self.0)) 465 } 466 467 #[inline] 468 #[must_use] yxyx(self) -> Vec4469 fn yxyx(self) -> Vec4 { 470 Vec4(i32x4_shuffle::<1, 0, 5, 4>(self.0, self.0)) 471 } 472 473 #[inline] 474 #[must_use] yxyy(self) -> Vec4475 fn yxyy(self) -> Vec4 { 476 Vec4(i32x4_shuffle::<1, 0, 5, 5>(self.0, self.0)) 477 } 478 479 #[inline] 480 #[must_use] yxyz(self) -> Vec4481 fn yxyz(self) -> Vec4 { 482 Vec4(i32x4_shuffle::<1, 0, 5, 6>(self.0, self.0)) 483 } 484 485 #[inline] 486 #[must_use] yxzx(self) -> Vec4487 fn yxzx(self) -> Vec4 { 488 Vec4(i32x4_shuffle::<1, 0, 6, 4>(self.0, self.0)) 489 } 490 491 #[inline] 492 #[must_use] yxzy(self) -> Vec4493 fn yxzy(self) -> Vec4 { 494 Vec4(i32x4_shuffle::<1, 0, 6, 5>(self.0, self.0)) 495 } 496 497 #[inline] 498 #[must_use] yxzz(self) -> Vec4499 fn yxzz(self) -> Vec4 { 500 Vec4(i32x4_shuffle::<1, 0, 6, 6>(self.0, self.0)) 501 } 502 503 #[inline] 504 #[must_use] yyxx(self) -> Vec4505 fn yyxx(self) -> Vec4 { 506 Vec4(i32x4_shuffle::<1, 1, 4, 4>(self.0, self.0)) 507 } 508 509 #[inline] 510 #[must_use] yyxy(self) -> Vec4511 fn yyxy(self) -> Vec4 { 512 Vec4(i32x4_shuffle::<1, 1, 4, 5>(self.0, self.0)) 513 } 514 515 #[inline] 516 #[must_use] yyxz(self) -> Vec4517 fn yyxz(self) -> Vec4 { 518 Vec4(i32x4_shuffle::<1, 1, 4, 6>(self.0, self.0)) 519 } 520 521 #[inline] 522 #[must_use] yyyx(self) -> Vec4523 fn yyyx(self) -> Vec4 { 524 Vec4(i32x4_shuffle::<1, 1, 5, 4>(self.0, self.0)) 525 } 526 527 #[inline] 528 #[must_use] yyyy(self) -> Vec4529 fn yyyy(self) -> Vec4 { 530 Vec4(i32x4_shuffle::<1, 1, 5, 5>(self.0, self.0)) 531 } 532 533 #[inline] 534 #[must_use] yyyz(self) -> Vec4535 fn yyyz(self) -> Vec4 { 536 Vec4(i32x4_shuffle::<1, 1, 5, 6>(self.0, self.0)) 537 } 538 539 #[inline] 540 #[must_use] yyzx(self) -> Vec4541 fn yyzx(self) -> Vec4 { 542 Vec4(i32x4_shuffle::<1, 1, 6, 4>(self.0, self.0)) 543 } 544 545 #[inline] 546 #[must_use] yyzy(self) -> Vec4547 fn yyzy(self) -> Vec4 { 548 Vec4(i32x4_shuffle::<1, 1, 6, 5>(self.0, self.0)) 549 } 550 551 #[inline] 552 #[must_use] yyzz(self) -> Vec4553 fn yyzz(self) -> Vec4 { 554 Vec4(i32x4_shuffle::<1, 1, 6, 6>(self.0, self.0)) 555 } 556 557 #[inline] 558 #[must_use] yzxx(self) -> Vec4559 fn yzxx(self) -> Vec4 { 560 Vec4(i32x4_shuffle::<1, 2, 4, 4>(self.0, self.0)) 561 } 562 563 #[inline] 564 #[must_use] yzxy(self) -> Vec4565 fn yzxy(self) -> Vec4 { 566 Vec4(i32x4_shuffle::<1, 2, 4, 5>(self.0, self.0)) 567 } 568 569 #[inline] 570 #[must_use] yzxz(self) -> Vec4571 fn yzxz(self) -> Vec4 { 572 Vec4(i32x4_shuffle::<1, 2, 4, 6>(self.0, self.0)) 573 } 574 575 #[inline] 576 #[must_use] yzyx(self) -> Vec4577 fn yzyx(self) -> Vec4 { 578 Vec4(i32x4_shuffle::<1, 2, 5, 4>(self.0, self.0)) 579 } 580 581 #[inline] 582 #[must_use] yzyy(self) -> Vec4583 fn yzyy(self) -> Vec4 { 584 Vec4(i32x4_shuffle::<1, 2, 5, 5>(self.0, self.0)) 585 } 586 587 #[inline] 588 #[must_use] yzyz(self) -> Vec4589 fn yzyz(self) -> Vec4 { 590 Vec4(i32x4_shuffle::<1, 2, 5, 6>(self.0, self.0)) 591 } 592 593 #[inline] 594 #[must_use] yzzx(self) -> Vec4595 fn yzzx(self) -> Vec4 { 596 Vec4(i32x4_shuffle::<1, 2, 6, 4>(self.0, self.0)) 597 } 598 599 #[inline] 600 #[must_use] yzzy(self) -> Vec4601 fn yzzy(self) -> Vec4 { 602 Vec4(i32x4_shuffle::<1, 2, 6, 5>(self.0, self.0)) 603 } 604 605 #[inline] 606 #[must_use] yzzz(self) -> Vec4607 fn yzzz(self) -> Vec4 { 608 Vec4(i32x4_shuffle::<1, 2, 6, 6>(self.0, self.0)) 609 } 610 611 #[inline] 612 #[must_use] zxxx(self) -> Vec4613 fn zxxx(self) -> Vec4 { 614 Vec4(i32x4_shuffle::<2, 0, 4, 4>(self.0, self.0)) 615 } 616 617 #[inline] 618 #[must_use] zxxy(self) -> Vec4619 fn zxxy(self) -> Vec4 { 620 Vec4(i32x4_shuffle::<2, 0, 4, 5>(self.0, self.0)) 621 } 622 623 #[inline] 624 #[must_use] zxxz(self) -> Vec4625 fn zxxz(self) -> Vec4 { 626 Vec4(i32x4_shuffle::<2, 0, 4, 6>(self.0, self.0)) 627 } 628 629 #[inline] 630 #[must_use] zxyx(self) -> Vec4631 fn zxyx(self) -> Vec4 { 632 Vec4(i32x4_shuffle::<2, 0, 5, 4>(self.0, self.0)) 633 } 634 635 #[inline] 636 #[must_use] zxyy(self) -> Vec4637 fn zxyy(self) -> Vec4 { 638 Vec4(i32x4_shuffle::<2, 0, 5, 5>(self.0, self.0)) 639 } 640 641 #[inline] 642 #[must_use] zxyz(self) -> Vec4643 fn zxyz(self) -> Vec4 { 644 Vec4(i32x4_shuffle::<2, 0, 5, 6>(self.0, self.0)) 645 } 646 647 #[inline] 648 #[must_use] zxzx(self) -> Vec4649 fn zxzx(self) -> Vec4 { 650 Vec4(i32x4_shuffle::<2, 0, 6, 4>(self.0, self.0)) 651 } 652 653 #[inline] 654 #[must_use] zxzy(self) -> Vec4655 fn zxzy(self) -> Vec4 { 656 Vec4(i32x4_shuffle::<2, 0, 6, 5>(self.0, self.0)) 657 } 658 659 #[inline] 660 #[must_use] zxzz(self) -> Vec4661 fn zxzz(self) -> Vec4 { 662 Vec4(i32x4_shuffle::<2, 0, 6, 6>(self.0, self.0)) 663 } 664 665 #[inline] 666 #[must_use] zyxx(self) -> Vec4667 fn zyxx(self) -> Vec4 { 668 Vec4(i32x4_shuffle::<2, 1, 4, 4>(self.0, self.0)) 669 } 670 671 #[inline] 672 #[must_use] zyxy(self) -> Vec4673 fn zyxy(self) -> Vec4 { 674 Vec4(i32x4_shuffle::<2, 1, 4, 5>(self.0, self.0)) 675 } 676 677 #[inline] 678 #[must_use] zyxz(self) -> Vec4679 fn zyxz(self) -> Vec4 { 680 Vec4(i32x4_shuffle::<2, 1, 4, 6>(self.0, self.0)) 681 } 682 683 #[inline] 684 #[must_use] zyyx(self) -> Vec4685 fn zyyx(self) -> Vec4 { 686 Vec4(i32x4_shuffle::<2, 1, 5, 4>(self.0, self.0)) 687 } 688 689 #[inline] 690 #[must_use] zyyy(self) -> Vec4691 fn zyyy(self) -> Vec4 { 692 Vec4(i32x4_shuffle::<2, 1, 5, 5>(self.0, self.0)) 693 } 694 695 #[inline] 696 #[must_use] zyyz(self) -> Vec4697 fn zyyz(self) -> Vec4 { 698 Vec4(i32x4_shuffle::<2, 1, 5, 6>(self.0, self.0)) 699 } 700 701 #[inline] 702 #[must_use] zyzx(self) -> Vec4703 fn zyzx(self) -> Vec4 { 704 Vec4(i32x4_shuffle::<2, 1, 6, 4>(self.0, self.0)) 705 } 706 707 #[inline] 708 #[must_use] zyzy(self) -> Vec4709 fn zyzy(self) -> Vec4 { 710 Vec4(i32x4_shuffle::<2, 1, 6, 5>(self.0, self.0)) 711 } 712 713 #[inline] 714 #[must_use] zyzz(self) -> Vec4715 fn zyzz(self) -> Vec4 { 716 Vec4(i32x4_shuffle::<2, 1, 6, 6>(self.0, self.0)) 717 } 718 719 #[inline] 720 #[must_use] zzxx(self) -> Vec4721 fn zzxx(self) -> Vec4 { 722 Vec4(i32x4_shuffle::<2, 2, 4, 4>(self.0, self.0)) 723 } 724 725 #[inline] 726 #[must_use] zzxy(self) -> Vec4727 fn zzxy(self) -> Vec4 { 728 Vec4(i32x4_shuffle::<2, 2, 4, 5>(self.0, self.0)) 729 } 730 731 #[inline] 732 #[must_use] zzxz(self) -> Vec4733 fn zzxz(self) -> Vec4 { 734 Vec4(i32x4_shuffle::<2, 2, 4, 6>(self.0, self.0)) 735 } 736 737 #[inline] 738 #[must_use] zzyx(self) -> Vec4739 fn zzyx(self) -> Vec4 { 740 Vec4(i32x4_shuffle::<2, 2, 5, 4>(self.0, self.0)) 741 } 742 743 #[inline] 744 #[must_use] zzyy(self) -> Vec4745 fn zzyy(self) -> Vec4 { 746 Vec4(i32x4_shuffle::<2, 2, 5, 5>(self.0, self.0)) 747 } 748 749 #[inline] 750 #[must_use] zzyz(self) -> Vec4751 fn zzyz(self) -> Vec4 { 752 Vec4(i32x4_shuffle::<2, 2, 5, 6>(self.0, self.0)) 753 } 754 755 #[inline] 756 #[must_use] zzzx(self) -> Vec4757 fn zzzx(self) -> Vec4 { 758 Vec4(i32x4_shuffle::<2, 2, 6, 4>(self.0, self.0)) 759 } 760 761 #[inline] 762 #[must_use] zzzy(self) -> Vec4763 fn zzzy(self) -> Vec4 { 764 Vec4(i32x4_shuffle::<2, 2, 6, 5>(self.0, self.0)) 765 } 766 767 #[inline] 768 #[must_use] zzzz(self) -> Vec4769 fn zzzz(self) -> Vec4 { 770 Vec4(i32x4_shuffle::<2, 2, 6, 6>(self.0, self.0)) 771 } 772 } 773