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

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.