pub struct IndexBufferView<'a, B>where
B: Backend,{
pub buffer: &'a <B as Backend>::Buffer,
pub offset: u64,
pub index_type: IndexType,
}
Expand description
Index buffer view for bind_index_buffer
.
Defines a buffer slice used for acquiring the indices on draw commands. Indices are used to lookup vertex indices in the vertex buffers.
Fields§
§buffer: &'a <B as Backend>::Buffer
The buffer to bind.
offset: u64
The offset into the buffer to start at.
index_type: IndexType
The type of the table elements (u16
or u32
).
Trait Implementations§
Auto Trait Implementations§
impl<'a, B> Freeze for IndexBufferView<'a, B>
impl<'a, B> RefUnwindSafe for IndexBufferView<'a, B>
impl<'a, B> Send for IndexBufferView<'a, B>
impl<'a, B> Sync for IndexBufferView<'a, B>
impl<'a, B> Unpin for IndexBufferView<'a, B>
impl<'a, B> UnwindSafe for IndexBufferView<'a, B>
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