pub struct VertexOutputType { /* private fields */ }Expand description
The output format a vertice will be converted into.
Implementations§
Source§impl VertexOutputType
impl VertexOutputType
Sourcepub const NormalizedF32: VertexOutputType
pub const NormalizedF32: VertexOutputType
F32 specifies the input be converted into a f32, normalizing in the process. Signed values are normalized into [-1, 1], and unsigned values are normalized into [0, 1]. For example, if the input is a u16 with the value of u16::MAX / 2, it will be converted into 0.5.
Sourcepub const F32: VertexOutputType
pub const F32: VertexOutputType
F32 specifies the input be converted into a f32. For example, if the input is a u32 with the value of 10, it will be converted into 10.0.
Sourcepub const I32: VertexOutputType
pub const I32: VertexOutputType
I32 specifies the input be converted into a i32. For example, if the input is a f32 with the value of 10.1, it will be converted into 10.
Trait Implementations§
Source§impl Clone for VertexOutputType
impl Clone for VertexOutputType
Source§fn clone(&self) -> VertexOutputType
fn clone(&self) -> VertexOutputType
Returns a duplicate 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 VertexOutputType
impl Debug for VertexOutputType
Source§impl PartialEq for VertexOutputType
impl PartialEq for VertexOutputType
impl Copy for VertexOutputType
impl StructuralPartialEq for VertexOutputType
Auto Trait Implementations§
impl Freeze for VertexOutputType
impl RefUnwindSafe for VertexOutputType
impl Send for VertexOutputType
impl Sync for VertexOutputType
impl Unpin for VertexOutputType
impl UnwindSafe for VertexOutputType
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