Struct storm::graphics::VertexOutputType
source · [−]pub struct VertexOutputType { /* private fields */ }
Expand description
The output format a vertice will be converted into.
Implementations
sourceimpl 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
sourceimpl Clone for VertexOutputType
impl Clone for VertexOutputType
sourcefn clone(&self) -> VertexOutputType
fn clone(&self) -> VertexOutputType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VertexOutputType
impl Debug for VertexOutputType
sourceimpl PartialEq<VertexOutputType> for VertexOutputType
impl PartialEq<VertexOutputType> for VertexOutputType
sourcefn eq(&self, other: &VertexOutputType) -> bool
fn eq(&self, other: &VertexOutputType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &VertexOutputType) -> bool
fn ne(&self, other: &VertexOutputType) -> bool
This method tests for !=
.
impl Copy for VertexOutputType
impl StructuralPartialEq for VertexOutputType
Auto Trait Implementations
impl RefUnwindSafe for VertexOutputType
impl Send for VertexOutputType
impl Sync for VertexOutputType
impl Unpin for VertexOutputType
impl UnwindSafe for VertexOutputType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more