#[non_exhaustive]pub enum IndicesType {
Byte,
Short,
Int,
}
Expand description
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
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§
Source§impl Clone for IndicesType
impl Clone for IndicesType
Source§fn clone(&self) -> IndicesType
fn clone(&self) -> IndicesType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IndicesType
impl Debug for IndicesType
Source§impl Display for IndicesType
impl Display for IndicesType
Source§impl<'a> FromValue<'a> for IndicesType
impl<'a> FromValue<'a> for IndicesType
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Safety Read more
Source§impl<'a> FromValueOptional<'a> for IndicesType
impl<'a> FromValueOptional<'a> for IndicesType
Source§impl Hash for IndicesType
impl Hash for IndicesType
Source§impl Ord for IndicesType
impl Ord for IndicesType
Source§fn cmp(&self, other: &IndicesType) -> Ordering
fn cmp(&self, other: &IndicesType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for IndicesType
impl PartialEq for IndicesType
Source§impl PartialOrd for IndicesType
impl PartialOrd for IndicesType
Source§impl SetValue for IndicesType
impl SetValue for IndicesType
Source§impl StaticType for IndicesType
impl StaticType for IndicesType
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for IndicesType
impl Eq for IndicesType
impl StructuralPartialEq for IndicesType
Auto Trait Implementations§
impl Freeze for IndicesType
impl RefUnwindSafe for IndicesType
impl Send for IndicesType
impl Sync for IndicesType
impl Unpin for IndicesType
impl UnwindSafe for IndicesType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.