[][src]Struct gfx_hal::buffer::IndexBufferView

pub struct IndexBufferView<'a, B: Backend> {
    pub buffer: &'a B::Buffer,
    pub offset: u64,
    pub index_type: IndexType,
}

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).

Trait Implementations

impl<'a, B: Debug + Backend> Debug for IndexBufferView<'a, B> where
    B::Buffer: Debug
[src]

Auto Trait Implementations

impl<'a, B> Send for IndexBufferView<'a, B> where
    <B as Backend>::Buffer: Sync

impl<'a, B> Sync for IndexBufferView<'a, B> where
    <B as Backend>::Buffer: Sync

impl<'a, B> Unpin for IndexBufferView<'a, B>

impl<'a, B> UnwindSafe for IndexBufferView<'a, B> where
    <B as Backend>::Buffer: RefUnwindSafe

impl<'a, B> RefUnwindSafe for IndexBufferView<'a, B> where
    <B as Backend>::Buffer: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]