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