pub struct VertexBufferView {
pub buffer: Buffer,
pub offset: u64,
pub stride: u32,
pub input_rate: InputRate,
}
Expand description
Buffer representation for vertex attributes
Fields§
§buffer: Buffer
Buffer handle for this buffer binding.
offset: u64
Vertex binding start address relative to the buffer.
stride: u32
Distance in bytes between two consecutive elements.
input_rate: InputRate
Vertex attribute addressing.
Trait Implementations§
Source§impl Clone for VertexBufferView
impl Clone for VertexBufferView
Source§fn clone(&self) -> VertexBufferView
fn clone(&self) -> VertexBufferView
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 moreAuto Trait Implementations§
impl Freeze for VertexBufferView
impl RefUnwindSafe for VertexBufferView
impl Send for VertexBufferView
impl Sync for VertexBufferView
impl Unpin for VertexBufferView
impl UnwindSafe for VertexBufferView
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