#[non_exhaustive]
pub enum IndicesType {
Byte,
Short,
Int,
}
Expand description
Indices type
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)
This enum is marked as non-exhaustive
Byte
Your indices are unsigned bytes
Short
Your indices are unsigned shorts
Int
Your indices are unsigned ints
Trait Implementations
sourceimpl Clone for IndicesType
impl Clone for IndicesType
sourcefn clone(&self) -> IndicesType
fn clone(&self) -> IndicesType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for IndicesType
impl Debug for IndicesType
sourceimpl Display for IndicesType
impl Display for IndicesType
sourceimpl Hash for IndicesType
impl Hash for IndicesType
sourceimpl Ord for IndicesType
impl Ord for IndicesType
sourceimpl PartialEq<IndicesType> for IndicesType
impl PartialEq<IndicesType> for IndicesType
sourceimpl PartialOrd<IndicesType> for IndicesType
impl PartialOrd<IndicesType> for IndicesType
sourcefn partial_cmp(&self, other: &IndicesType) -> Option<Ordering>
fn partial_cmp(&self, other: &IndicesType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for IndicesType
impl Eq for IndicesType
impl StructuralEq for IndicesType
impl StructuralPartialEq for IndicesType
Auto Trait Implementations
impl RefUnwindSafe for IndicesType
impl Send for IndicesType
impl Sync for IndicesType
impl Unpin for IndicesType
impl UnwindSafe for IndicesType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
fn clamped(self, min: T, max: T) -> T
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.