From 7a5b24c90cc1d4724dd8072fae296cc7b5696038 Mon Sep 17 00:00:00 2001 From: Natasha England-Elbro Date: Mon, 5 Feb 2024 11:36:33 +0000 Subject: [PATCH] fix: Uniform missing standard derives --- citro3d/src/math.rs | 2 +- citro3d/src/uniform.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/citro3d/src/math.rs b/citro3d/src/math.rs index 35a188e..ec2ebfb 100644 --- a/citro3d/src/math.rs +++ b/citro3d/src/math.rs @@ -21,7 +21,7 @@ pub use projection::{ /// Uses the PICA layout of WZYX #[doc(alias = "C3D_IVec")] #[repr(transparent)] -#[derive(Clone, Copy, PartialEq, Eq)] +#[derive(Clone, Copy, PartialEq, Eq, Debug)] pub struct IVec(citro3d_sys::C3D_IVec); impl IVec { diff --git a/citro3d/src/uniform.rs b/citro3d/src/uniform.rs index b30ff70..edd28bf 100644 --- a/citro3d/src/uniform.rs +++ b/citro3d/src/uniform.rs @@ -24,6 +24,7 @@ impl From for i32 { /// A uniform which may be bound as input to a shader program #[non_exhaustive] +#[derive(Debug, PartialEq, Clone, Copy)] pub enum Uniform { /// Single float uniform (`.fvec name`) Float(FVec4),