Struct gfx::device::handle::IndexBuffer [] [src]

pub struct IndexBuffer<R: Resources, T> {
    // some fields omitted
}

Type-safe index buffer handle

Methods

impl<R: Resources, T> IndexBuffer<R, T>

fn from_raw(handle: RawBuffer<R>) -> IndexBuffer<R, T>

Create a type-safe IndexBuffer from a RawBuffer

fn raw(&self) -> &RawBuffer<R>

Get the underlying raw Handle

fn get_info(&self) -> &BufferInfo

Get the associated information about the buffer

fn len(&self) -> usize

Get the number of elements in the buffer.

Fails if T is zero-sized.

Trait Implementations

impl<R: Resources> ToSlice<R> for IndexBuffer<R, u8>

fn to_slice(&self, ty: PrimitiveType) -> Slice<R>

impl<R: Resources> ToSlice<R> for IndexBuffer<R, u16>

fn to_slice(&self, ty: PrimitiveType) -> Slice<R>

impl<R: Resources> ToSlice<R> for IndexBuffer<R, u32>

fn to_slice(&self, ty: PrimitiveType) -> Slice<R>

Derived Implementations

impl<R: PartialEq + Resources, T: PartialEq> PartialEq for IndexBuffer<R, T> where R: PartialEq, T: PartialEq

fn eq(&self, __arg_0: &IndexBuffer<R, T>) -> bool

fn ne(&self, __arg_0: &IndexBuffer<R, T>) -> bool

impl<R: Hash + Resources, T: Hash> Hash for IndexBuffer<R, T> where R: Hash, T: Hash

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl<R: Debug + Resources, T: Debug> Debug for IndexBuffer<R, T> where R: Debug, T: Debug

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<R: Clone + Resources, T: Clone> Clone for IndexBuffer<R, T> where R: Clone, T: Clone

fn clone(&self) -> IndexBuffer<R, T>

fn clone_from(&mut self, source: &Self)