Enum glium::index::IndexType
[−]
[src]
#[repr(u32)]pub enum IndexType { U8, U16, U32, }
Type of the indices in an index source.
Variants
U8
u8
U16
u16
U32
u32
Methods
impl IndexType
[src]
pub fn get_size(&self) -> usize
[src]
Returns the size in bytes of each index of this type.
pub fn is_supported<C: ?Sized>(&self, caps: &C) -> bool where
C: CapabilitiesSource,
[src]
C: CapabilitiesSource,
Returns true if the backend supports this type of index.
Trait Implementations
impl Debug for IndexType
[src]
impl Clone for IndexType
[src]
fn clone(&self) -> IndexType
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for IndexType
[src]
impl PartialEq for IndexType
[src]
fn eq(&self, __arg_0: &IndexType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.