pub struct VertexInputBindingDescription {
pub stride: u32,
pub input_rate: VertexInputRate,
}
Expand description
Describes a single vertex buffer binding.
Fields
stride: u32
The number of bytes from the start of one element in the vertex buffer to the start of the next element. This can be simply the size of the data in each element, but larger strides are possible.
input_rate: VertexInputRate
How often the vertex input should advance to the next element.
Trait Implementations
sourceimpl Clone for VertexInputBindingDescription
impl Clone for VertexInputBindingDescription
sourcefn clone(&self) -> VertexInputBindingDescription
fn clone(&self) -> VertexInputBindingDescription
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 moreAuto Trait Implementations
impl RefUnwindSafe for VertexInputBindingDescription
impl Send for VertexInputBindingDescription
impl Sync for VertexInputBindingDescription
impl Unpin for VertexInputBindingDescription
impl UnwindSafe for VertexInputBindingDescription
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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