pub struct VertexLayoutDesc {
pub stride: u32,
pub step_mode: VertexStepMode,
}Expand description
Describes vertex buffer layout.
Fields§
§stride: u32Stride in bytes between vertices in the vertex buffer.
step_mode: VertexStepModeSpecifies when to advance to the next vertex (by stride bytes).
Trait Implementations§
Source§impl Clone for VertexLayoutDesc
impl Clone for VertexLayoutDesc
Source§fn clone(&self) -> VertexLayoutDesc
fn clone(&self) -> VertexLayoutDesc
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VertexLayoutDesc
Source§impl Debug for VertexLayoutDesc
impl Debug for VertexLayoutDesc
impl Eq for VertexLayoutDesc
Source§impl Hash for VertexLayoutDesc
impl Hash for VertexLayoutDesc
Source§impl PartialEq for VertexLayoutDesc
impl PartialEq for VertexLayoutDesc
Source§fn eq(&self, other: &VertexLayoutDesc) -> bool
fn eq(&self, other: &VertexLayoutDesc) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VertexLayoutDesc
Auto Trait Implementations§
impl Freeze for VertexLayoutDesc
impl RefUnwindSafe for VertexLayoutDesc
impl Send for VertexLayoutDesc
impl Sync for VertexLayoutDesc
impl Unpin for VertexLayoutDesc
impl UnsafeUnpin for VertexLayoutDesc
impl UnwindSafe for VertexLayoutDesc
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.