diff --git a/crates/bevy_reflect/src/impls/glam.rs b/crates/bevy_reflect/src/impls/glam.rs index a9e451bf63d98..3d3821020bdd8 100644 --- a/crates/bevy_reflect/src/impls/glam.rs +++ b/crates/bevy_reflect/src/impls/glam.rs @@ -46,6 +46,66 @@ impl_reflect!( } ); +impl_reflect!( + #[reflect(Debug, Hash, PartialEq, Default, Deserialize, Serialize)] + #[type_path = "glam"] + struct I8Vec2 { + x: i8, + y: i8, + } +); + +impl_reflect!( + #[reflect(Debug, Hash, PartialEq, Default, Deserialize, Serialize)] + #[type_path = "glam"] + struct I8Vec3 { + x: i8, + y: i8, + z: i8, + } +); + +impl_reflect!( + #[reflect(Debug, Hash, PartialEq, Default, Deserialize, Serialize)] + #[type_path = "glam"] + struct I8Vec4 { + x: i8, + y: i8, + z: i8, + w: i8, + } +); + +impl_reflect!( + #[reflect(Debug, Hash, PartialEq, Default, Deserialize, Serialize)] + #[type_path = "glam"] + struct I16Vec2 { + x: i16, + y: i16, + } +); + +impl_reflect!( + #[reflect(Debug, Hash, PartialEq, Default, Deserialize, Serialize)] + #[type_path = "glam"] + struct I16Vec3 { + x: i16, + y: i16, + z: i16, + } +); + +impl_reflect!( + #[reflect(Debug, Hash, PartialEq, Default, Deserialize, Serialize)] + #[type_path = "glam"] + struct I16Vec4 { + x: i16, + y: i16, + z: i16, + w: i16, + } +); + impl_reflect!( #[reflect(Debug, Hash, PartialEq, Default, Deserialize, Serialize)] #[type_path = "glam"] @@ -104,6 +164,62 @@ impl_reflect!( } ); +impl_reflect!( + #[reflect(Debug, Hash, PartialEq, Default, Deserialize, Serialize)] + #[type_path = "glam"] + struct U8Vec2 { + x: u8, + y: u8, + } +); +impl_reflect!( + #[reflect(Debug, Hash, PartialEq, Default, Deserialize, Serialize)] + #[type_path = "glam"] + struct U8Vec3 { + x: u8, + y: u8, + z: u8, + } +); +impl_reflect!( + #[reflect(Debug, Hash, PartialEq, Default, Deserialize, Serialize)] + #[type_path = "glam"] + struct U8Vec4 { + x: u8, + y: u8, + z: u8, + w: u8, + } +); + +impl_reflect!( + #[reflect(Debug, Hash, PartialEq, Default, Deserialize, Serialize)] + #[type_path = "glam"] + struct U16Vec2 { + x: u16, + y: u16, + } +); +impl_reflect!( + #[reflect(Debug, Hash, PartialEq, Default, Deserialize, Serialize)] + #[type_path = "glam"] + struct U16Vec3 { + x: u16, + y: u16, + z: u16, + } +); +impl_reflect!( + #[reflect(Debug, Hash, PartialEq, Default, Deserialize, Serialize)] + #[type_path = "glam"] + struct U16Vec4 { + x: u16, + y: u16, + z: u16, + w: u16, + } +); + impl_reflect!( #[reflect(Debug, Hash, PartialEq, Default, Deserialize, Serialize)] #[type_path = "glam"]