Struct gfx_hal::buffer::IndexBufferView
source · pub struct IndexBufferView<'a, B: Backend> {
pub buffer: &'a B::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::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
).
Auto Trait Implementations
impl<'a, B> RefUnwindSafe for IndexBufferView<'a, B>where
<B as Backend>::Buffer: RefUnwindSafe,
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>where
<B as Backend>::Buffer: RefUnwindSafe,
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