Enum cogl::IndicesType[][src]

#[non_exhaustive]
pub enum IndicesType {
    Byte,
    Short,
    Int,
    // some variants omitted
}

You should aim to use the smallest data type that gives you enough range, since it reduces the size of your index array and can help reduce the demand on memory bandwidth.

Note that IndicesType::Int is only supported if the FeatureID::OglFeatureIdUnsignedIntIndices feature is available. This should always be available on OpenGL but on OpenGL ES it will only be available if the GL_OES_element_index_uint extension is advertized.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Byte

Your indices are unsigned bytes

Short

Your indices are unsigned shorts

Int

Your indices are unsigned ints

Trait Implementations

impl Clone for IndicesType[src]

impl Copy for IndicesType[src]

impl Debug for IndicesType[src]

impl Display for IndicesType[src]

impl Eq for IndicesType[src]

impl<'a> FromValue<'a> for IndicesType[src]

impl<'a> FromValueOptional<'a> for IndicesType[src]

impl Hash for IndicesType[src]

impl Ord for IndicesType[src]

impl PartialEq<IndicesType> for IndicesType[src]

impl PartialOrd<IndicesType> for IndicesType[src]

impl SetValue for IndicesType[src]

impl StaticType for IndicesType[src]

impl StructuralEq for IndicesType[src]

impl StructuralPartialEq for IndicesType[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: SetValue + Send + ToValue + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[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.