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