// Generated by swizzlegen. Do not edit. #[macro_use] mod support; use glam::*; glam_test!(test_uvec4_swizzles, { let v = uvec4(1_u32, 2_u32, 3_u32, 4_u32); assert_eq!(v, v.xyzw()); assert_eq!(v.xxxx(), uvec4(1_u32, 1_u32, 1_u32, 1_u32)); assert_eq!(v.xxxy(), uvec4(1_u32, 1_u32, 1_u32, 2_u32)); assert_eq!(v.xxxz(), uvec4(1_u32, 1_u32, 1_u32, 3_u32)); assert_eq!(v.xxxw(), uvec4(1_u32, 1_u32, 1_u32, 4_u32)); assert_eq!(v.xxyx(), uvec4(1_u32, 1_u32, 2_u32, 1_u32)); assert_eq!(v.xxyy(), uvec4(1_u32, 1_u32, 2_u32, 2_u32)); assert_eq!(v.xxyz(), uvec4(1_u32, 1_u32, 2_u32, 3_u32)); assert_eq!(v.xxyw(), uvec4(1_u32, 1_u32, 2_u32, 4_u32)); assert_eq!(v.xxzx(), uvec4(1_u32, 1_u32, 3_u32, 1_u32)); assert_eq!(v.xxzy(), uvec4(1_u32, 1_u32, 3_u32, 2_u32)); assert_eq!(v.xxzz(), uvec4(1_u32, 1_u32, 3_u32, 3_u32)); assert_eq!(v.xxzw(), uvec4(1_u32, 1_u32, 3_u32, 4_u32)); assert_eq!(v.xxwx(), uvec4(1_u32, 1_u32, 4_u32, 1_u32)); assert_eq!(v.xxwy(), uvec4(1_u32, 1_u32, 4_u32, 2_u32)); assert_eq!(v.xxwz(), uvec4(1_u32, 1_u32, 4_u32, 3_u32)); assert_eq!(v.xxww(), uvec4(1_u32, 1_u32, 4_u32, 4_u32)); assert_eq!(v.xyxx(), uvec4(1_u32, 2_u32, 1_u32, 1_u32)); assert_eq!(v.xyxy(), uvec4(1_u32, 2_u32, 1_u32, 2_u32)); assert_eq!(v.xyxz(), uvec4(1_u32, 2_u32, 1_u32, 3_u32)); assert_eq!(v.xyxw(), uvec4(1_u32, 2_u32, 1_u32, 4_u32)); assert_eq!(v.xyyx(), uvec4(1_u32, 2_u32, 2_u32, 1_u32)); assert_eq!(v.xyyy(), uvec4(1_u32, 2_u32, 2_u32, 2_u32)); assert_eq!(v.xyyz(), uvec4(1_u32, 2_u32, 2_u32, 3_u32)); assert_eq!(v.xyyw(), uvec4(1_u32, 2_u32, 2_u32, 4_u32)); assert_eq!(v.xyzx(), uvec4(1_u32, 2_u32, 3_u32, 1_u32)); assert_eq!(v.xyzy(), uvec4(1_u32, 2_u32, 3_u32, 2_u32)); assert_eq!(v.xyzz(), uvec4(1_u32, 2_u32, 3_u32, 3_u32)); assert_eq!(v.xywx(), uvec4(1_u32, 2_u32, 4_u32, 1_u32)); assert_eq!(v.xywy(), uvec4(1_u32, 2_u32, 4_u32, 2_u32)); assert_eq!(v.xywz(), uvec4(1_u32, 2_u32, 4_u32, 3_u32)); assert_eq!(v.xyww(), uvec4(1_u32, 2_u32, 4_u32, 4_u32)); assert_eq!(v.xzxx(), uvec4(1_u32, 3_u32, 1_u32, 1_u32)); assert_eq!(v.xzxy(), uvec4(1_u32, 3_u32, 1_u32, 2_u32)); assert_eq!(v.xzxz(), uvec4(1_u32, 3_u32, 1_u32, 3_u32)); assert_eq!(v.xzxw(), uvec4(1_u32, 3_u32, 1_u32, 4_u32)); assert_eq!(v.xzyx(), uvec4(1_u32, 3_u32, 2_u32, 1_u32)); assert_eq!(v.xzyy(), uvec4(1_u32, 3_u32, 2_u32, 2_u32)); assert_eq!(v.xzyz(), uvec4(1_u32, 3_u32, 2_u32, 3_u32)); assert_eq!(v.xzyw(), uvec4(1_u32, 3_u32, 2_u32, 4_u32)); assert_eq!(v.xzzx(), uvec4(1_u32, 3_u32, 3_u32, 1_u32)); assert_eq!(v.xzzy(), uvec4(1_u32, 3_u32, 3_u32, 2_u32)); assert_eq!(v.xzzz(), uvec4(1_u32, 3_u32, 3_u32, 3_u32)); assert_eq!(v.xzzw(), uvec4(1_u32, 3_u32, 3_u32, 4_u32)); assert_eq!(v.xzwx(), uvec4(1_u32, 3_u32, 4_u32, 1_u32)); assert_eq!(v.xzwy(), uvec4(1_u32, 3_u32, 4_u32, 2_u32)); assert_eq!(v.xzwz(), uvec4(1_u32, 3_u32, 4_u32, 3_u32)); assert_eq!(v.xzww(), uvec4(1_u32, 3_u32, 4_u32, 4_u32)); assert_eq!(v.xwxx(), uvec4(1_u32, 4_u32, 1_u32, 1_u32)); assert_eq!(v.xwxy(), uvec4(1_u32, 4_u32, 1_u32, 2_u32)); assert_eq!(v.xwxz(), uvec4(1_u32, 4_u32, 1_u32, 3_u32)); assert_eq!(v.xwxw(), uvec4(1_u32, 4_u32, 1_u32, 4_u32)); assert_eq!(v.xwyx(), uvec4(1_u32, 4_u32, 2_u32, 1_u32)); assert_eq!(v.xwyy(), uvec4(1_u32, 4_u32, 2_u32, 2_u32)); assert_eq!(v.xwyz(), uvec4(1_u32, 4_u32, 2_u32, 3_u32)); assert_eq!(v.xwyw(), uvec4(1_u32, 4_u32, 2_u32, 4_u32)); assert_eq!(v.xwzx(), uvec4(1_u32, 4_u32, 3_u32, 1_u32)); assert_eq!(v.xwzy(), uvec4(1_u32, 4_u32, 3_u32, 2_u32)); assert_eq!(v.xwzz(), uvec4(1_u32, 4_u32, 3_u32, 3_u32)); assert_eq!(v.xwzw(), uvec4(1_u32, 4_u32, 3_u32, 4_u32)); assert_eq!(v.xwwx(), uvec4(1_u32, 4_u32, 4_u32, 1_u32)); assert_eq!(v.xwwy(), uvec4(1_u32, 4_u32, 4_u32, 2_u32)); assert_eq!(v.xwwz(), uvec4(1_u32, 4_u32, 4_u32, 3_u32)); assert_eq!(v.xwww(), uvec4(1_u32, 4_u32, 4_u32, 4_u32)); assert_eq!(v.yxxx(), uvec4(2_u32, 1_u32, 1_u32, 1_u32)); assert_eq!(v.yxxy(), uvec4(2_u32, 1_u32, 1_u32, 2_u32)); assert_eq!(v.yxxz(), uvec4(2_u32, 1_u32, 1_u32, 3_u32)); assert_eq!(v.yxxw(), uvec4(2_u32, 1_u32, 1_u32, 4_u32)); assert_eq!(v.yxyx(), uvec4(2_u32, 1_u32, 2_u32, 1_u32)); assert_eq!(v.yxyy(), uvec4(2_u32, 1_u32, 2_u32, 2_u32)); assert_eq!(v.yxyz(), uvec4(2_u32, 1_u32, 2_u32, 3_u32)); assert_eq!(v.yxyw(), uvec4(2_u32, 1_u32, 2_u32, 4_u32)); assert_eq!(v.yxzx(), uvec4(2_u32, 1_u32, 3_u32, 1_u32)); assert_eq!(v.yxzy(), uvec4(2_u32, 1_u32, 3_u32, 2_u32)); assert_eq!(v.yxzz(), uvec4(2_u32, 1_u32, 3_u32, 3_u32)); assert_eq!(v.yxzw(), uvec4(2_u32, 1_u32, 3_u32, 4_u32)); assert_eq!(v.yxwx(), uvec4(2_u32, 1_u32, 4_u32, 1_u32)); assert_eq!(v.yxwy(), uvec4(2_u32, 1_u32, 4_u32, 2_u32)); assert_eq!(v.yxwz(), uvec4(2_u32, 1_u32, 4_u32, 3_u32)); assert_eq!(v.yxww(), uvec4(2_u32, 1_u32, 4_u32, 4_u32)); assert_eq!(v.yyxx(), uvec4(2_u32, 2_u32, 1_u32, 1_u32)); assert_eq!(v.yyxy(), uvec4(2_u32, 2_u32, 1_u32, 2_u32)); assert_eq!(v.yyxz(), uvec4(2_u32, 2_u32, 1_u32, 3_u32)); assert_eq!(v.yyxw(), uvec4(2_u32, 2_u32, 1_u32, 4_u32)); assert_eq!(v.yyyx(), uvec4(2_u32, 2_u32, 2_u32, 1_u32)); assert_eq!(v.yyyy(), uvec4(2_u32, 2_u32, 2_u32, 2_u32)); assert_eq!(v.yyyz(), uvec4(2_u32, 2_u32, 2_u32, 3_u32)); assert_eq!(v.yyyw(), uvec4(2_u32, 2_u32, 2_u32, 4_u32)); assert_eq!(v.yyzx(), uvec4(2_u32, 2_u32, 3_u32, 1_u32)); assert_eq!(v.yyzy(), uvec4(2_u32, 2_u32, 3_u32, 2_u32)); assert_eq!(v.yyzz(), uvec4(2_u32, 2_u32, 3_u32, 3_u32)); assert_eq!(v.yyzw(), uvec4(2_u32, 2_u32, 3_u32, 4_u32)); assert_eq!(v.yywx(), uvec4(2_u32, 2_u32, 4_u32, 1_u32)); assert_eq!(v.yywy(), uvec4(2_u32, 2_u32, 4_u32, 2_u32)); assert_eq!(v.yywz(), uvec4(2_u32, 2_u32, 4_u32, 3_u32)); assert_eq!(v.yyww(), uvec4(2_u32, 2_u32, 4_u32, 4_u32)); assert_eq!(v.yzxx(), uvec4(2_u32, 3_u32, 1_u32, 1_u32)); assert_eq!(v.yzxy(), uvec4(2_u32, 3_u32, 1_u32, 2_u32)); assert_eq!(v.yzxz(), uvec4(2_u32, 3_u32, 1_u32, 3_u32)); assert_eq!(v.yzxw(), uvec4(2_u32, 3_u32, 1_u32, 4_u32)); assert_eq!(v.yzyx(), uvec4(2_u32, 3_u32, 2_u32, 1_u32)); assert_eq!(v.yzyy(), uvec4(2_u32, 3_u32, 2_u32, 2_u32)); assert_eq!(v.yzyz(), uvec4(2_u32, 3_u32, 2_u32, 3_u32)); assert_eq!(v.yzyw(), uvec4(2_u32, 3_u32, 2_u32, 4_u32)); assert_eq!(v.yzzx(), uvec4(2_u32, 3_u32, 3_u32, 1_u32)); assert_eq!(v.yzzy(), uvec4(2_u32, 3_u32, 3_u32, 2_u32)); assert_eq!(v.yzzz(), uvec4(2_u32, 3_u32, 3_u32, 3_u32)); assert_eq!(v.yzzw(), uvec4(2_u32, 3_u32, 3_u32, 4_u32)); assert_eq!(v.yzwx(), uvec4(2_u32, 3_u32, 4_u32, 1_u32)); assert_eq!(v.yzwy(), uvec4(2_u32, 3_u32, 4_u32, 2_u32)); assert_eq!(v.yzwz(), uvec4(2_u32, 3_u32, 4_u32, 3_u32)); assert_eq!(v.yzww(), uvec4(2_u32, 3_u32, 4_u32, 4_u32)); assert_eq!(v.ywxx(), uvec4(2_u32, 4_u32, 1_u32, 1_u32)); assert_eq!(v.ywxy(), uvec4(2_u32, 4_u32, 1_u32, 2_u32)); assert_eq!(v.ywxz(), uvec4(2_u32, 4_u32, 1_u32, 3_u32)); assert_eq!(v.ywxw(), uvec4(2_u32, 4_u32, 1_u32, 4_u32)); assert_eq!(v.ywyx(), uvec4(2_u32, 4_u32, 2_u32, 1_u32)); assert_eq!(v.ywyy(), uvec4(2_u32, 4_u32, 2_u32, 2_u32)); assert_eq!(v.ywyz(), uvec4(2_u32, 4_u32, 2_u32, 3_u32)); assert_eq!(v.ywyw(), uvec4(2_u32, 4_u32, 2_u32, 4_u32)); assert_eq!(v.ywzx(), uvec4(2_u32, 4_u32, 3_u32, 1_u32)); assert_eq!(v.ywzy(), uvec4(2_u32, 4_u32, 3_u32, 2_u32)); assert_eq!(v.ywzz(), uvec4(2_u32, 4_u32, 3_u32, 3_u32)); assert_eq!(v.ywzw(), uvec4(2_u32, 4_u32, 3_u32, 4_u32)); assert_eq!(v.ywwx(), uvec4(2_u32, 4_u32, 4_u32, 1_u32)); assert_eq!(v.ywwy(), uvec4(2_u32, 4_u32, 4_u32, 2_u32)); assert_eq!(v.ywwz(), uvec4(2_u32, 4_u32, 4_u32, 3_u32)); assert_eq!(v.ywww(), uvec4(2_u32, 4_u32, 4_u32, 4_u32)); assert_eq!(v.zxxx(), uvec4(3_u32, 1_u32, 1_u32, 1_u32)); assert_eq!(v.zxxy(), uvec4(3_u32, 1_u32, 1_u32, 2_u32)); assert_eq!(v.zxxz(), uvec4(3_u32, 1_u32, 1_u32, 3_u32)); assert_eq!(v.zxxw(), uvec4(3_u32, 1_u32, 1_u32, 4_u32)); assert_eq!(v.zxyx(), uvec4(3_u32, 1_u32, 2_u32, 1_u32)); assert_eq!(v.zxyy(), uvec4(3_u32, 1_u32, 2_u32, 2_u32)); assert_eq!(v.zxyz(), uvec4(3_u32, 1_u32, 2_u32, 3_u32)); assert_eq!(v.zxyw(), uvec4(3_u32, 1_u32, 2_u32, 4_u32)); assert_eq!(v.zxzx(), uvec4(3_u32, 1_u32, 3_u32, 1_u32)); assert_eq!(v.zxzy(), uvec4(3_u32, 1_u32, 3_u32, 2_u32)); assert_eq!(v.zxzz(), uvec4(3_u32, 1_u32, 3_u32, 3_u32)); assert_eq!(v.zxzw(), uvec4(3_u32, 1_u32, 3_u32, 4_u32)); assert_eq!(v.zxwx(), uvec4(3_u32, 1_u32, 4_u32, 1_u32)); assert_eq!(v.zxwy(), uvec4(3_u32, 1_u32, 4_u32, 2_u32)); assert_eq!(v.zxwz(), uvec4(3_u32, 1_u32, 4_u32, 3_u32)); assert_eq!(v.zxww(), uvec4(3_u32, 1_u32, 4_u32, 4_u32)); assert_eq!(v.zyxx(), uvec4(3_u32, 2_u32, 1_u32, 1_u32)); assert_eq!(v.zyxy(), uvec4(3_u32, 2_u32, 1_u32, 2_u32)); assert_eq!(v.zyxz(), uvec4(3_u32, 2_u32, 1_u32, 3_u32)); assert_eq!(v.zyxw(), uvec4(3_u32, 2_u32, 1_u32, 4_u32)); assert_eq!(v.zyyx(), uvec4(3_u32, 2_u32, 2_u32, 1_u32)); assert_eq!(v.zyyy(), uvec4(3_u32, 2_u32, 2_u32, 2_u32)); assert_eq!(v.zyyz(), uvec4(3_u32, 2_u32, 2_u32, 3_u32)); assert_eq!(v.zyyw(), uvec4(3_u32, 2_u32, 2_u32, 4_u32)); assert_eq!(v.zyzx(), uvec4(3_u32, 2_u32, 3_u32, 1_u32)); assert_eq!(v.zyzy(), uvec4(3_u32, 2_u32, 3_u32, 2_u32)); assert_eq!(v.zyzz(), uvec4(3_u32, 2_u32, 3_u32, 3_u32)); assert_eq!(v.zyzw(), uvec4(3_u32, 2_u32, 3_u32, 4_u32)); assert_eq!(v.zywx(), uvec4(3_u32, 2_u32, 4_u32, 1_u32)); assert_eq!(v.zywy(), uvec4(3_u32, 2_u32, 4_u32, 2_u32)); assert_eq!(v.zywz(), uvec4(3_u32, 2_u32, 4_u32, 3_u32)); assert_eq!(v.zyww(), uvec4(3_u32, 2_u32, 4_u32, 4_u32)); assert_eq!(v.zzxx(), uvec4(3_u32, 3_u32, 1_u32, 1_u32)); assert_eq!(v.zzxy(), uvec4(3_u32, 3_u32, 1_u32, 2_u32)); assert_eq!(v.zzxz(), uvec4(3_u32, 3_u32, 1_u32, 3_u32)); assert_eq!(v.zzxw(), uvec4(3_u32, 3_u32, 1_u32, 4_u32)); assert_eq!(v.zzyx(), uvec4(3_u32, 3_u32, 2_u32, 1_u32)); assert_eq!(v.zzyy(), uvec4(3_u32, 3_u32, 2_u32, 2_u32)); assert_eq!(v.zzyz(), uvec4(3_u32, 3_u32, 2_u32, 3_u32)); assert_eq!(v.zzyw(), uvec4(3_u32, 3_u32, 2_u32, 4_u32)); assert_eq!(v.zzzx(), uvec4(3_u32, 3_u32, 3_u32, 1_u32)); assert_eq!(v.zzzy(), uvec4(3_u32, 3_u32, 3_u32, 2_u32)); assert_eq!(v.zzzz(), uvec4(3_u32, 3_u32, 3_u32, 3_u32)); assert_eq!(v.zzzw(), uvec4(3_u32, 3_u32, 3_u32, 4_u32)); assert_eq!(v.zzwx(), uvec4(3_u32, 3_u32, 4_u32, 1_u32)); assert_eq!(v.zzwy(), uvec4(3_u32, 3_u32, 4_u32, 2_u32)); assert_eq!(v.zzwz(), uvec4(3_u32, 3_u32, 4_u32, 3_u32)); assert_eq!(v.zzww(), uvec4(3_u32, 3_u32, 4_u32, 4_u32)); assert_eq!(v.zwxx(), uvec4(3_u32, 4_u32, 1_u32, 1_u32)); assert_eq!(v.zwxy(), uvec4(3_u32, 4_u32, 1_u32, 2_u32)); assert_eq!(v.zwxz(), uvec4(3_u32, 4_u32, 1_u32, 3_u32)); assert_eq!(v.zwxw(), uvec4(3_u32, 4_u32, 1_u32, 4_u32)); assert_eq!(v.zwyx(), uvec4(3_u32, 4_u32, 2_u32, 1_u32)); assert_eq!(v.zwyy(), uvec4(3_u32, 4_u32, 2_u32, 2_u32)); assert_eq!(v.zwyz(), uvec4(3_u32, 4_u32, 2_u32, 3_u32)); assert_eq!(v.zwyw(), uvec4(3_u32, 4_u32, 2_u32, 4_u32)); assert_eq!(v.zwzx(), uvec4(3_u32, 4_u32, 3_u32, 1_u32)); assert_eq!(v.zwzy(), uvec4(3_u32, 4_u32, 3_u32, 2_u32)); assert_eq!(v.zwzz(), uvec4(3_u32, 4_u32, 3_u32, 3_u32)); assert_eq!(v.zwzw(), uvec4(3_u32, 4_u32, 3_u32, 4_u32)); assert_eq!(v.zwwx(), uvec4(3_u32, 4_u32, 4_u32, 1_u32)); assert_eq!(v.zwwy(), uvec4(3_u32, 4_u32, 4_u32, 2_u32)); assert_eq!(v.zwwz(), uvec4(3_u32, 4_u32, 4_u32, 3_u32)); assert_eq!(v.zwww(), uvec4(3_u32, 4_u32, 4_u32, 4_u32)); assert_eq!(v.wxxx(), uvec4(4_u32, 1_u32, 1_u32, 1_u32)); assert_eq!(v.wxxy(), uvec4(4_u32, 1_u32, 1_u32, 2_u32)); assert_eq!(v.wxxz(), uvec4(4_u32, 1_u32, 1_u32, 3_u32)); assert_eq!(v.wxxw(), uvec4(4_u32, 1_u32, 1_u32, 4_u32)); assert_eq!(v.wxyx(), uvec4(4_u32, 1_u32, 2_u32, 1_u32)); assert_eq!(v.wxyy(), uvec4(4_u32, 1_u32, 2_u32, 2_u32)); assert_eq!(v.wxyz(), uvec4(4_u32, 1_u32, 2_u32, 3_u32)); assert_eq!(v.wxyw(), uvec4(4_u32, 1_u32, 2_u32, 4_u32)); assert_eq!(v.wxzx(), uvec4(4_u32, 1_u32, 3_u32, 1_u32)); assert_eq!(v.wxzy(), uvec4(4_u32, 1_u32, 3_u32, 2_u32)); assert_eq!(v.wxzz(), uvec4(4_u32, 1_u32, 3_u32, 3_u32)); assert_eq!(v.wxzw(), uvec4(4_u32, 1_u32, 3_u32, 4_u32)); assert_eq!(v.wxwx(), uvec4(4_u32, 1_u32, 4_u32, 1_u32)); assert_eq!(v.wxwy(), uvec4(4_u32, 1_u32, 4_u32, 2_u32)); assert_eq!(v.wxwz(), uvec4(4_u32, 1_u32, 4_u32, 3_u32)); assert_eq!(v.wxww(), uvec4(4_u32, 1_u32, 4_u32, 4_u32)); assert_eq!(v.wyxx(), uvec4(4_u32, 2_u32, 1_u32, 1_u32)); assert_eq!(v.wyxy(), uvec4(4_u32, 2_u32, 1_u32, 2_u32)); assert_eq!(v.wyxz(), uvec4(4_u32, 2_u32, 1_u32, 3_u32)); assert_eq!(v.wyxw(), uvec4(4_u32, 2_u32, 1_u32, 4_u32)); assert_eq!(v.wyyx(), uvec4(4_u32, 2_u32, 2_u32, 1_u32)); assert_eq!(v.wyyy(), uvec4(4_u32, 2_u32, 2_u32, 2_u32)); assert_eq!(v.wyyz(), uvec4(4_u32, 2_u32, 2_u32, 3_u32)); assert_eq!(v.wyyw(), uvec4(4_u32, 2_u32, 2_u32, 4_u32)); assert_eq!(v.wyzx(), uvec4(4_u32, 2_u32, 3_u32, 1_u32)); assert_eq!(v.wyzy(), uvec4(4_u32, 2_u32, 3_u32, 2_u32)); assert_eq!(v.wyzz(), uvec4(4_u32, 2_u32, 3_u32, 3_u32)); assert_eq!(v.wyzw(), uvec4(4_u32, 2_u32, 3_u32, 4_u32)); assert_eq!(v.wywx(), uvec4(4_u32, 2_u32, 4_u32, 1_u32)); assert_eq!(v.wywy(), uvec4(4_u32, 2_u32, 4_u32, 2_u32)); assert_eq!(v.wywz(), uvec4(4_u32, 2_u32, 4_u32, 3_u32)); assert_eq!(v.wyww(), uvec4(4_u32, 2_u32, 4_u32, 4_u32)); assert_eq!(v.wzxx(), uvec4(4_u32, 3_u32, 1_u32, 1_u32)); assert_eq!(v.wzxy(), uvec4(4_u32, 3_u32, 1_u32, 2_u32)); assert_eq!(v.wzxz(), uvec4(4_u32, 3_u32, 1_u32, 3_u32)); assert_eq!(v.wzxw(), uvec4(4_u32, 3_u32, 1_u32, 4_u32)); assert_eq!(v.wzyx(), uvec4(4_u32, 3_u32, 2_u32, 1_u32)); assert_eq!(v.wzyy(), uvec4(4_u32, 3_u32, 2_u32, 2_u32)); assert_eq!(v.wzyz(), uvec4(4_u32, 3_u32, 2_u32, 3_u32)); assert_eq!(v.wzyw(), uvec4(4_u32, 3_u32, 2_u32, 4_u32)); assert_eq!(v.wzzx(), uvec4(4_u32, 3_u32, 3_u32, 1_u32)); assert_eq!(v.wzzy(), uvec4(4_u32, 3_u32, 3_u32, 2_u32)); assert_eq!(v.wzzz(), uvec4(4_u32, 3_u32, 3_u32, 3_u32)); assert_eq!(v.wzzw(), uvec4(4_u32, 3_u32, 3_u32, 4_u32)); assert_eq!(v.wzwx(), uvec4(4_u32, 3_u32, 4_u32, 1_u32)); assert_eq!(v.wzwy(), uvec4(4_u32, 3_u32, 4_u32, 2_u32)); assert_eq!(v.wzwz(), uvec4(4_u32, 3_u32, 4_u32, 3_u32)); assert_eq!(v.wzww(), uvec4(4_u32, 3_u32, 4_u32, 4_u32)); assert_eq!(v.wwxx(), uvec4(4_u32, 4_u32, 1_u32, 1_u32)); assert_eq!(v.wwxy(), uvec4(4_u32, 4_u32, 1_u32, 2_u32)); assert_eq!(v.wwxz(), uvec4(4_u32, 4_u32, 1_u32, 3_u32)); assert_eq!(v.wwxw(), uvec4(4_u32, 4_u32, 1_u32, 4_u32)); assert_eq!(v.wwyx(), uvec4(4_u32, 4_u32, 2_u32, 1_u32)); assert_eq!(v.wwyy(), uvec4(4_u32, 4_u32, 2_u32, 2_u32)); assert_eq!(v.wwyz(), uvec4(4_u32, 4_u32, 2_u32, 3_u32)); assert_eq!(v.wwyw(), uvec4(4_u32, 4_u32, 2_u32, 4_u32)); assert_eq!(v.wwzx(), uvec4(4_u32, 4_u32, 3_u32, 1_u32)); assert_eq!(v.wwzy(), uvec4(4_u32, 4_u32, 3_u32, 2_u32)); assert_eq!(v.wwzz(), uvec4(4_u32, 4_u32, 3_u32, 3_u32)); assert_eq!(v.wwzw(), uvec4(4_u32, 4_u32, 3_u32, 4_u32)); assert_eq!(v.wwwx(), uvec4(4_u32, 4_u32, 4_u32, 1_u32)); assert_eq!(v.wwwy(), uvec4(4_u32, 4_u32, 4_u32, 2_u32)); assert_eq!(v.wwwz(), uvec4(4_u32, 4_u32, 4_u32, 3_u32)); assert_eq!(v.wwww(), uvec4(4_u32, 4_u32, 4_u32, 4_u32)); assert_eq!(v.xxx(), uvec3(1_u32, 1_u32, 1_u32)); assert_eq!(v.xxy(), uvec3(1_u32, 1_u32, 2_u32)); assert_eq!(v.xxz(), uvec3(1_u32, 1_u32, 3_u32)); assert_eq!(v.xxw(), uvec3(1_u32, 1_u32, 4_u32)); assert_eq!(v.xyx(), uvec3(1_u32, 2_u32, 1_u32)); assert_eq!(v.xyy(), uvec3(1_u32, 2_u32, 2_u32)); assert_eq!(v.xyz(), uvec3(1_u32, 2_u32, 3_u32)); assert_eq!(v.xyw(), uvec3(1_u32, 2_u32, 4_u32)); assert_eq!(v.xzx(), uvec3(1_u32, 3_u32, 1_u32)); assert_eq!(v.xzy(), uvec3(1_u32, 3_u32, 2_u32)); assert_eq!(v.xzz(), uvec3(1_u32, 3_u32, 3_u32)); assert_eq!(v.xzw(), uvec3(1_u32, 3_u32, 4_u32)); assert_eq!(v.xwx(), uvec3(1_u32, 4_u32, 1_u32)); assert_eq!(v.xwy(), uvec3(1_u32, 4_u32, 2_u32)); assert_eq!(v.xwz(), uvec3(1_u32, 4_u32, 3_u32)); assert_eq!(v.xww(), uvec3(1_u32, 4_u32, 4_u32)); assert_eq!(v.yxx(), uvec3(2_u32, 1_u32, 1_u32)); assert_eq!(v.yxy(), uvec3(2_u32, 1_u32, 2_u32)); assert_eq!(v.yxz(), uvec3(2_u32, 1_u32, 3_u32)); assert_eq!(v.yxw(), uvec3(2_u32, 1_u32, 4_u32)); assert_eq!(v.yyx(), uvec3(2_u32, 2_u32, 1_u32)); assert_eq!(v.yyy(), uvec3(2_u32, 2_u32, 2_u32)); assert_eq!(v.yyz(), uvec3(2_u32, 2_u32, 3_u32)); assert_eq!(v.yyw(), uvec3(2_u32, 2_u32, 4_u32)); assert_eq!(v.yzx(), uvec3(2_u32, 3_u32, 1_u32)); assert_eq!(v.yzy(), uvec3(2_u32, 3_u32, 2_u32)); assert_eq!(v.yzz(), uvec3(2_u32, 3_u32, 3_u32)); assert_eq!(v.yzw(), uvec3(2_u32, 3_u32, 4_u32)); assert_eq!(v.ywx(), uvec3(2_u32, 4_u32, 1_u32)); assert_eq!(v.ywy(), uvec3(2_u32, 4_u32, 2_u32)); assert_eq!(v.ywz(), uvec3(2_u32, 4_u32, 3_u32)); assert_eq!(v.yww(), uvec3(2_u32, 4_u32, 4_u32)); assert_eq!(v.zxx(), uvec3(3_u32, 1_u32, 1_u32)); assert_eq!(v.zxy(), uvec3(3_u32, 1_u32, 2_u32)); assert_eq!(v.zxz(), uvec3(3_u32, 1_u32, 3_u32)); assert_eq!(v.zxw(), uvec3(3_u32, 1_u32, 4_u32)); assert_eq!(v.zyx(), uvec3(3_u32, 2_u32, 1_u32)); assert_eq!(v.zyy(), uvec3(3_u32, 2_u32, 2_u32)); assert_eq!(v.zyz(), uvec3(3_u32, 2_u32, 3_u32)); assert_eq!(v.zyw(), uvec3(3_u32, 2_u32, 4_u32)); assert_eq!(v.zzx(), uvec3(3_u32, 3_u32, 1_u32)); assert_eq!(v.zzy(), uvec3(3_u32, 3_u32, 2_u32)); assert_eq!(v.zzz(), uvec3(3_u32, 3_u32, 3_u32)); assert_eq!(v.zzw(), uvec3(3_u32, 3_u32, 4_u32)); assert_eq!(v.zwx(), uvec3(3_u32, 4_u32, 1_u32)); assert_eq!(v.zwy(), uvec3(3_u32, 4_u32, 2_u32)); assert_eq!(v.zwz(), uvec3(3_u32, 4_u32, 3_u32)); assert_eq!(v.zww(), uvec3(3_u32, 4_u32, 4_u32)); assert_eq!(v.wxx(), uvec3(4_u32, 1_u32, 1_u32)); assert_eq!(v.wxy(), uvec3(4_u32, 1_u32, 2_u32)); assert_eq!(v.wxz(), uvec3(4_u32, 1_u32, 3_u32)); assert_eq!(v.wxw(), uvec3(4_u32, 1_u32, 4_u32)); assert_eq!(v.wyx(), uvec3(4_u32, 2_u32, 1_u32)); assert_eq!(v.wyy(), uvec3(4_u32, 2_u32, 2_u32)); assert_eq!(v.wyz(), uvec3(4_u32, 2_u32, 3_u32)); assert_eq!(v.wyw(), uvec3(4_u32, 2_u32, 4_u32)); assert_eq!(v.wzx(), uvec3(4_u32, 3_u32, 1_u32)); assert_eq!(v.wzy(), uvec3(4_u32, 3_u32, 2_u32)); assert_eq!(v.wzz(), uvec3(4_u32, 3_u32, 3_u32)); assert_eq!(v.wzw(), uvec3(4_u32, 3_u32, 4_u32)); assert_eq!(v.wwx(), uvec3(4_u32, 4_u32, 1_u32)); assert_eq!(v.wwy(), uvec3(4_u32, 4_u32, 2_u32)); assert_eq!(v.wwz(), uvec3(4_u32, 4_u32, 3_u32)); assert_eq!(v.www(), uvec3(4_u32, 4_u32, 4_u32)); assert_eq!(v.xx(), uvec2(1_u32, 1_u32)); assert_eq!(v.xy(), uvec2(1_u32, 2_u32)); assert_eq!(v.xz(), uvec2(1_u32, 3_u32)); assert_eq!(v.xw(), uvec2(1_u32, 4_u32)); assert_eq!(v.yx(), uvec2(2_u32, 1_u32)); assert_eq!(v.yy(), uvec2(2_u32, 2_u32)); assert_eq!(v.yz(), uvec2(2_u32, 3_u32)); assert_eq!(v.yw(), uvec2(2_u32, 4_u32)); assert_eq!(v.zx(), uvec2(3_u32, 1_u32)); assert_eq!(v.zy(), uvec2(3_u32, 2_u32)); assert_eq!(v.zz(), uvec2(3_u32, 3_u32)); assert_eq!(v.zw(), uvec2(3_u32, 4_u32)); assert_eq!(v.wx(), uvec2(4_u32, 1_u32)); assert_eq!(v.wy(), uvec2(4_u32, 2_u32)); assert_eq!(v.wz(), uvec2(4_u32, 3_u32)); assert_eq!(v.ww(), uvec2(4_u32, 4_u32)); }); glam_test!(test_uvec3_swizzles, { let v = uvec3(1_u32, 2_u32, 3_u32); assert_eq!(v, v.xyz()); assert_eq!(v.xxxx(), uvec4(1_u32, 1_u32, 1_u32, 1_u32)); assert_eq!(v.xxxy(), uvec4(1_u32, 1_u32, 1_u32, 2_u32)); assert_eq!(v.xxxz(), uvec4(1_u32, 1_u32, 1_u32, 3_u32)); assert_eq!(v.xxyx(), uvec4(1_u32, 1_u32, 2_u32, 1_u32)); assert_eq!(v.xxyy(), uvec4(1_u32, 1_u32, 2_u32, 2_u32)); assert_eq!(v.xxyz(), uvec4(1_u32, 1_u32, 2_u32, 3_u32)); assert_eq!(v.xxzx(), uvec4(1_u32, 1_u32, 3_u32, 1_u32)); assert_eq!(v.xxzy(), uvec4(1_u32, 1_u32, 3_u32, 2_u32)); assert_eq!(v.xxzz(), uvec4(1_u32, 1_u32, 3_u32, 3_u32)); assert_eq!(v.xyxx(), uvec4(1_u32, 2_u32, 1_u32, 1_u32)); assert_eq!(v.xyxy(), uvec4(1_u32, 2_u32, 1_u32, 2_u32)); assert_eq!(v.xyxz(), uvec4(1_u32, 2_u32, 1_u32, 3_u32)); assert_eq!(v.xyyx(), uvec4(1_u32, 2_u32, 2_u32, 1_u32)); assert_eq!(v.xyyy(), uvec4(1_u32, 2_u32, 2_u32, 2_u32)); assert_eq!(v.xyyz(), uvec4(1_u32, 2_u32, 2_u32, 3_u32)); assert_eq!(v.xyzx(), uvec4(1_u32, 2_u32, 3_u32, 1_u32)); assert_eq!(v.xyzy(), uvec4(1_u32, 2_u32, 3_u32, 2_u32)); assert_eq!(v.xyzz(), uvec4(1_u32, 2_u32, 3_u32, 3_u32)); assert_eq!(v.xzxx(), uvec4(1_u32, 3_u32, 1_u32, 1_u32)); assert_eq!(v.xzxy(), uvec4(1_u32, 3_u32, 1_u32, 2_u32)); assert_eq!(v.xzxz(), uvec4(1_u32, 3_u32, 1_u32, 3_u32)); assert_eq!(v.xzyx(), uvec4(1_u32, 3_u32, 2_u32, 1_u32)); assert_eq!(v.xzyy(), uvec4(1_u32, 3_u32, 2_u32, 2_u32)); assert_eq!(v.xzyz(), uvec4(1_u32, 3_u32, 2_u32, 3_u32)); assert_eq!(v.xzzx(), uvec4(1_u32, 3_u32, 3_u32, 1_u32)); assert_eq!(v.xzzy(), uvec4(1_u32, 3_u32, 3_u32, 2_u32)); assert_eq!(v.xzzz(), uvec4(1_u32, 3_u32, 3_u32, 3_u32)); assert_eq!(v.yxxx(), uvec4(2_u32, 1_u32, 1_u32, 1_u32)); assert_eq!(v.yxxy(), uvec4(2_u32, 1_u32, 1_u32, 2_u32)); assert_eq!(v.yxxz(), uvec4(2_u32, 1_u32, 1_u32, 3_u32)); assert_eq!(v.yxyx(), uvec4(2_u32, 1_u32, 2_u32, 1_u32)); assert_eq!(v.yxyy(), uvec4(2_u32, 1_u32, 2_u32, 2_u32)); assert_eq!(v.yxyz(), uvec4(2_u32, 1_u32, 2_u32, 3_u32)); assert_eq!(v.yxzx(), uvec4(2_u32, 1_u32, 3_u32, 1_u32)); assert_eq!(v.yxzy(), uvec4(2_u32, 1_u32, 3_u32, 2_u32)); assert_eq!(v.yxzz(), uvec4(2_u32, 1_u32, 3_u32, 3_u32)); assert_eq!(v.yyxx(), uvec4(2_u32, 2_u32, 1_u32, 1_u32)); assert_eq!(v.yyxy(), uvec4(2_u32, 2_u32, 1_u32, 2_u32)); assert_eq!(v.yyxz(), uvec4(2_u32, 2_u32, 1_u32, 3_u32)); assert_eq!(v.yyyx(), uvec4(2_u32, 2_u32, 2_u32, 1_u32)); assert_eq!(v.yyyy(), uvec4(2_u32, 2_u32, 2_u32, 2_u32)); assert_eq!(v.yyyz(), uvec4(2_u32, 2_u32, 2_u32, 3_u32)); assert_eq!(v.yyzx(), uvec4(2_u32, 2_u32, 3_u32, 1_u32)); assert_eq!(v.yyzy(), uvec4(2_u32, 2_u32, 3_u32, 2_u32)); assert_eq!(v.yyzz(), uvec4(2_u32, 2_u32, 3_u32, 3_u32)); assert_eq!(v.yzxx(), uvec4(2_u32, 3_u32, 1_u32, 1_u32)); assert_eq!(v.yzxy(), uvec4(2_u32, 3_u32, 1_u32, 2_u32)); assert_eq!(v.yzxz(), uvec4(2_u32, 3_u32, 1_u32, 3_u32)); assert_eq!(v.yzyx(), uvec4(2_u32, 3_u32, 2_u32, 1_u32)); assert_eq!(v.yzyy(), uvec4(2_u32, 3_u32, 2_u32, 2_u32)); assert_eq!(v.yzyz(), uvec4(2_u32, 3_u32, 2_u32, 3_u32)); assert_eq!(v.yzzx(), uvec4(2_u32, 3_u32, 3_u32, 1_u32)); assert_eq!(v.yzzy(), uvec4(2_u32, 3_u32, 3_u32, 2_u32)); assert_eq!(v.yzzz(), uvec4(2_u32, 3_u32, 3_u32, 3_u32)); assert_eq!(v.zxxx(), uvec4(3_u32, 1_u32, 1_u32, 1_u32)); assert_eq!(v.zxxy(), uvec4(3_u32, 1_u32, 1_u32, 2_u32)); assert_eq!(v.zxxz(), uvec4(3_u32, 1_u32, 1_u32, 3_u32)); assert_eq!(v.zxyx(), uvec4(3_u32, 1_u32, 2_u32, 1_u32)); assert_eq!(v.zxyy(), uvec4(3_u32, 1_u32, 2_u32, 2_u32)); assert_eq!(v.zxyz(), uvec4(3_u32, 1_u32, 2_u32, 3_u32)); assert_eq!(v.zxzx(), uvec4(3_u32, 1_u32, 3_u32, 1_u32)); assert_eq!(v.zxzy(), uvec4(3_u32, 1_u32, 3_u32, 2_u32)); assert_eq!(v.zxzz(), uvec4(3_u32, 1_u32, 3_u32, 3_u32)); assert_eq!(v.zyxx(), uvec4(3_u32, 2_u32, 1_u32, 1_u32)); assert_eq!(v.zyxy(), uvec4(3_u32, 2_u32, 1_u32, 2_u32)); assert_eq!(v.zyxz(), uvec4(3_u32, 2_u32, 1_u32, 3_u32)); assert_eq!(v.zyyx(), uvec4(3_u32, 2_u32, 2_u32, 1_u32)); assert_eq!(v.zyyy(), uvec4(3_u32, 2_u32, 2_u32, 2_u32)); assert_eq!(v.zyyz(), uvec4(3_u32, 2_u32, 2_u32, 3_u32)); assert_eq!(v.zyzx(), uvec4(3_u32, 2_u32, 3_u32, 1_u32)); assert_eq!(v.zyzy(), uvec4(3_u32, 2_u32, 3_u32, 2_u32)); assert_eq!(v.zyzz(), uvec4(3_u32, 2_u32, 3_u32, 3_u32)); assert_eq!(v.zzxx(), uvec4(3_u32, 3_u32, 1_u32, 1_u32)); assert_eq!(v.zzxy(), uvec4(3_u32, 3_u32, 1_u32, 2_u32)); assert_eq!(v.zzxz(), uvec4(3_u32, 3_u32, 1_u32, 3_u32)); assert_eq!(v.zzyx(), uvec4(3_u32, 3_u32, 2_u32, 1_u32)); assert_eq!(v.zzyy(), uvec4(3_u32, 3_u32, 2_u32, 2_u32)); assert_eq!(v.zzyz(), uvec4(3_u32, 3_u32, 2_u32, 3_u32)); assert_eq!(v.zzzx(), uvec4(3_u32, 3_u32, 3_u32, 1_u32)); assert_eq!(v.zzzy(), uvec4(3_u32, 3_u32, 3_u32, 2_u32)); assert_eq!(v.zzzz(), uvec4(3_u32, 3_u32, 3_u32, 3_u32)); assert_eq!(v.xxx(), uvec3(1_u32, 1_u32, 1_u32)); assert_eq!(v.xxy(), uvec3(1_u32, 1_u32, 2_u32)); assert_eq!(v.xxz(), uvec3(1_u32, 1_u32, 3_u32)); assert_eq!(v.xyx(), uvec3(1_u32, 2_u32, 1_u32)); assert_eq!(v.xyy(), uvec3(1_u32, 2_u32, 2_u32)); assert_eq!(v.xzx(), uvec3(1_u32, 3_u32, 1_u32)); assert_eq!(v.xzy(), uvec3(1_u32, 3_u32, 2_u32)); assert_eq!(v.xzz(), uvec3(1_u32, 3_u32, 3_u32)); assert_eq!(v.yxx(), uvec3(2_u32, 1_u32, 1_u32)); assert_eq!(v.yxy(), uvec3(2_u32, 1_u32, 2_u32)); assert_eq!(v.yxz(), uvec3(2_u32, 1_u32, 3_u32)); assert_eq!(v.yyx(), uvec3(2_u32, 2_u32, 1_u32)); assert_eq!(v.yyy(), uvec3(2_u32, 2_u32, 2_u32)); assert_eq!(v.yyz(), uvec3(2_u32, 2_u32, 3_u32)); assert_eq!(v.yzx(), uvec3(2_u32, 3_u32, 1_u32)); assert_eq!(v.yzy(), uvec3(2_u32, 3_u32, 2_u32)); assert_eq!(v.yzz(), uvec3(2_u32, 3_u32, 3_u32)); assert_eq!(v.zxx(), uvec3(3_u32, 1_u32, 1_u32)); assert_eq!(v.zxy(), uvec3(3_u32, 1_u32, 2_u32)); assert_eq!(v.zxz(), uvec3(3_u32, 1_u32, 3_u32)); assert_eq!(v.zyx(), uvec3(3_u32, 2_u32, 1_u32)); assert_eq!(v.zyy(), uvec3(3_u32, 2_u32, 2_u32)); assert_eq!(v.zyz(), uvec3(3_u32, 2_u32, 3_u32)); assert_eq!(v.zzx(), uvec3(3_u32, 3_u32, 1_u32)); assert_eq!(v.zzy(), uvec3(3_u32, 3_u32, 2_u32)); assert_eq!(v.zzz(), uvec3(3_u32, 3_u32, 3_u32)); assert_eq!(v.xx(), uvec2(1_u32, 1_u32)); assert_eq!(v.xy(), uvec2(1_u32, 2_u32)); assert_eq!(v.xz(), uvec2(1_u32, 3_u32)); assert_eq!(v.yx(), uvec2(2_u32, 1_u32)); assert_eq!(v.yy(), uvec2(2_u32, 2_u32)); assert_eq!(v.yz(), uvec2(2_u32, 3_u32)); assert_eq!(v.zx(), uvec2(3_u32, 1_u32)); assert_eq!(v.zy(), uvec2(3_u32, 2_u32)); assert_eq!(v.zz(), uvec2(3_u32, 3_u32)); }); glam_test!(test_uvec2_swizzles, { let v = uvec2(1_u32, 2_u32); assert_eq!(v, v.xy()); assert_eq!(v.xxxx(), uvec4(1_u32, 1_u32, 1_u32, 1_u32)); assert_eq!(v.xxxy(), uvec4(1_u32, 1_u32, 1_u32, 2_u32)); assert_eq!(v.xxyx(), uvec4(1_u32, 1_u32, 2_u32, 1_u32)); assert_eq!(v.xxyy(), uvec4(1_u32, 1_u32, 2_u32, 2_u32)); assert_eq!(v.xyxx(), uvec4(1_u32, 2_u32, 1_u32, 1_u32)); assert_eq!(v.xyxy(), uvec4(1_u32, 2_u32, 1_u32, 2_u32)); assert_eq!(v.xyyx(), uvec4(1_u32, 2_u32, 2_u32, 1_u32)); assert_eq!(v.xyyy(), uvec4(1_u32, 2_u32, 2_u32, 2_u32)); assert_eq!(v.yxxx(), uvec4(2_u32, 1_u32, 1_u32, 1_u32)); assert_eq!(v.yxxy(), uvec4(2_u32, 1_u32, 1_u32, 2_u32)); assert_eq!(v.yxyx(), uvec4(2_u32, 1_u32, 2_u32, 1_u32)); assert_eq!(v.yxyy(), uvec4(2_u32, 1_u32, 2_u32, 2_u32)); assert_eq!(v.yyxx(), uvec4(2_u32, 2_u32, 1_u32, 1_u32)); assert_eq!(v.yyxy(), uvec4(2_u32, 2_u32, 1_u32, 2_u32)); assert_eq!(v.yyyx(), uvec4(2_u32, 2_u32, 2_u32, 1_u32)); assert_eq!(v.yyyy(), uvec4(2_u32, 2_u32, 2_u32, 2_u32)); assert_eq!(v.xxx(), uvec3(1_u32, 1_u32, 1_u32)); assert_eq!(v.xxy(), uvec3(1_u32, 1_u32, 2_u32)); assert_eq!(v.xyx(), uvec3(1_u32, 2_u32, 1_u32)); assert_eq!(v.xyy(), uvec3(1_u32, 2_u32, 2_u32)); assert_eq!(v.yxx(), uvec3(2_u32, 1_u32, 1_u32)); assert_eq!(v.yxy(), uvec3(2_u32, 1_u32, 2_u32)); assert_eq!(v.yyx(), uvec3(2_u32, 2_u32, 1_u32)); assert_eq!(v.yyy(), uvec3(2_u32, 2_u32, 2_u32)); assert_eq!(v.xx(), uvec2(1_u32, 1_u32)); assert_eq!(v.yx(), uvec2(2_u32, 1_u32)); assert_eq!(v.yy(), uvec2(2_u32, 2_u32)); });