pub enum VertexStepMode {
Vertex,
Instance,
}Expand description
Defines how often the GPU advances to the next element in a vertex buffer.
Variants§
Vertex
The GPU advances to the next element for each vertex.
Instance
The GPU advances to the next element only for each new instance being rendered.
Trait Implementations§
Source§impl Clone for VertexStepMode
impl Clone for VertexStepMode
Source§fn clone(&self) -> VertexStepMode
fn clone(&self) -> VertexStepMode
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 VertexStepMode
impl Debug for VertexStepMode
Source§impl Hash for VertexStepMode
impl Hash for VertexStepMode
Source§impl PartialEq for VertexStepMode
impl PartialEq for VertexStepMode
impl Copy for VertexStepMode
impl Eq for VertexStepMode
impl StructuralPartialEq for VertexStepMode
Auto Trait Implementations§
impl Freeze for VertexStepMode
impl RefUnwindSafe for VertexStepMode
impl Send for VertexStepMode
impl Sync for VertexStepMode
impl Unpin for VertexStepMode
impl UnwindSafe for VertexStepMode
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