pub struct VertexBufferDesc {
pub binding: BufferIndex,
pub stride: ElemStride,
pub rate: VertexInputRate,
}
Expand description
Vertex buffer description. Notably, completely separate from resource Descriptor
s
used in DescriptorSet
s.
Fields§
§binding: BufferIndex
Binding number of this vertex buffer. This binding number is
used only for vertex buffers, and is completely separate from
Descriptor
and DescriptorSet
bind points.
stride: ElemStride
Total container size, in bytes. Specifies the byte distance between two consecutive elements.
rate: VertexInputRate
The rate at which to advance data for the given buffer
i.e. the rate at which data passed to shaders will get advanced by
stride
bytes
Trait Implementations§
Source§impl Clone for VertexBufferDesc
impl Clone for VertexBufferDesc
Source§fn clone(&self) -> VertexBufferDesc
fn clone(&self) -> VertexBufferDesc
Returns a copy 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 VertexBufferDesc
impl Debug for VertexBufferDesc
Source§impl Hash for VertexBufferDesc
impl Hash for VertexBufferDesc
Source§impl Ord for VertexBufferDesc
impl Ord for VertexBufferDesc
Source§fn cmp(&self, other: &VertexBufferDesc) -> Ordering
fn cmp(&self, other: &VertexBufferDesc) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VertexBufferDesc
impl PartialEq for VertexBufferDesc
Source§impl PartialOrd for VertexBufferDesc
impl PartialOrd for VertexBufferDesc
impl Copy for VertexBufferDesc
impl Eq for VertexBufferDesc
impl StructuralPartialEq for VertexBufferDesc
Auto Trait Implementations§
impl Freeze for VertexBufferDesc
impl RefUnwindSafe for VertexBufferDesc
impl Send for VertexBufferDesc
impl Sync for VertexBufferDesc
impl Unpin for VertexBufferDesc
impl UnwindSafe for VertexBufferDesc
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