[][src]Struct rendy::resource::IndexBufferView

pub struct IndexBufferView<'a, B> where
    B: Backend,
    <B as Backend>::Buffer: 'a, 
{ pub buffer: &'a <B as Backend>::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 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

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

Auto Trait Implementations

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

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

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

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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]

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

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.

impl<T> Erased for T[src]

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

fn adapt_into(self) -> D[src]

Convert the source color to the destination color using the bradford method by default Read more