Enum macroquad::prelude::UniformType
source · pub enum UniformType {
Float1,
Float2,
Float3,
Float4,
Int1,
Int2,
Int3,
Int4,
Mat4,
}
Variants§
Float1
One 32-bit wide float (equivalent to f32
)
Float2
Two 32-bit wide floats (equivalent to [f32; 2]
)
Float3
Three 32-bit wide floats (equivalent to [f32; 3]
)
Float4
Four 32-bit wide floats (equivalent to [f32; 4]
)
Int1
One unsigned 32-bit integers (equivalent to [u32; 1]
)
Int2
Two unsigned 32-bit integers (equivalent to [u32; 2]
)
Int3
Three unsigned 32-bit integers (equivalent to [u32; 3]
)
Int4
Four unsigned 32-bit integers (equivalent to [u32; 4]
)
Mat4
Four by four matrix of 32-bit floats
Implementations§
Trait Implementations§
source§impl Clone for UniformType
impl Clone for UniformType
source§fn clone(&self) -> UniformType
fn clone(&self) -> UniformType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UniformType
impl Debug for UniformType
impl Copy for UniformType
Auto Trait Implementations§
impl RefUnwindSafe for UniformType
impl Send for UniformType
impl Sync for UniformType
impl Unpin for UniformType
impl UnwindSafe for UniformType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more