Enum glium::index::IndexType [] [src]

pub enum IndexType {
    U8,
    U16,
    U32,
}

Type of the indices in an index source.

Variants

U8

u8

U16

u16

U32

u32

Methods

impl IndexType

fn get_size(&self) -> usize

Returns the size in bytes of each index of this type.

fn is_supported<C>(&self, caps: &C) -> bool where C: CapabilitiesSource

Returns true if the backend supports this type of index.

Trait Implementations

Derived Implementations

impl Eq for IndexType

impl PartialEq for IndexType

fn eq(&self, __arg_0: &IndexType) -> bool

fn ne(&self, __arg_0: &IndexType) -> bool

impl Copy for IndexType

impl Clone for IndexType

fn clone(&self) -> IndexType

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

impl Debug for IndexType

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