Struct storm::graphics::VertexInstancing
source · [−]Expand description
Describes how instancing will apply to verticies of this type.
Fields
divisor: u32
The rate at which generic vertex attributes advance when rendering multiple instances of primitives in a single draw call. If divisor is zero, the attribute at slot index advances once per vertex. If divisor is non-zero, the attribute advances once per divisor instances of the set(s) of vertices being rendered.
count: i32
The number of verticies required to render a single instance.
Implementations
sourceimpl VertexInstancing
impl VertexInstancing
sourcepub const fn none() -> VertexInstancing
pub const fn none() -> VertexInstancing
No instancing will be applied when this vertex is drawn.
sourcepub const fn instanced(count: i32) -> VertexInstancing
pub const fn instanced(count: i32) -> VertexInstancing
Instancing will be applied when this vertex is drawn.
Arguments
count
- Specifies the number of instances to be rendered per vertex.
sourcepub const fn is_instanced(&self) -> bool
pub const fn is_instanced(&self) -> bool
Gets if this is instanced or not.
Trait Implementations
sourceimpl Clone for VertexInstancing
impl Clone for VertexInstancing
sourcefn clone(&self) -> VertexInstancing
fn clone(&self) -> VertexInstancing
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 VertexInstancing
impl Debug for VertexInstancing
sourceimpl PartialEq<VertexInstancing> for VertexInstancing
impl PartialEq<VertexInstancing> for VertexInstancing
sourcefn eq(&self, other: &VertexInstancing) -> bool
fn eq(&self, other: &VertexInstancing) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &VertexInstancing) -> bool
fn ne(&self, other: &VertexInstancing) -> bool
This method tests for !=
.
impl Copy for VertexInstancing
impl StructuralPartialEq for VertexInstancing
Auto Trait Implementations
impl RefUnwindSafe for VertexInstancing
impl Send for VertexInstancing
impl Sync for VertexInstancing
impl Unpin for VertexInstancing
impl UnwindSafe for VertexInstancing
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