Enum ux::prelude::dx::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.
Your indices are unsigned bytes
Your indices are unsigned shorts
Your indices are unsigned ints
Trait Implementations
impl Clone for IndicesType
[src]
impl Clone for IndicesType
[src]pub fn clone(&self) -> IndicesType
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for IndicesType
[src]
impl Copy for IndicesType
[src]impl Eq for IndicesType
[src]
impl Eq for IndicesType
[src]impl<'a> FromValue<'a> for IndicesType
[src]
impl<'a> FromValue<'a> for IndicesType
[src]pub unsafe fn from_value(value: &Value) -> IndicesType
[src]
impl<'a> FromValueOptional<'a> for IndicesType
[src]
impl<'a> FromValueOptional<'a> for IndicesType
[src]pub unsafe fn from_value_optional(value: &Value) -> Option<IndicesType>
[src]
impl Hash for IndicesType
[src]
impl Hash for IndicesType
[src]impl Ord for IndicesType
[src]
impl Ord for IndicesType
[src]impl PartialEq<IndicesType> for IndicesType
[src]
impl PartialEq<IndicesType> for IndicesType
[src]pub fn eq(&self, other: &IndicesType) -> bool
[src]
pub fn ne(&self, other: &IndicesType) -> bool
[src]
impl PartialOrd<IndicesType> for IndicesType
[src]
impl PartialOrd<IndicesType> for IndicesType
[src]pub fn partial_cmp(&self, other: &IndicesType) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl SetValue for IndicesType
[src]
impl SetValue for IndicesType
[src]pub unsafe fn set_value(value: &mut Value, this: &IndicesType)
[src]
impl StaticType for IndicesType
[src]
impl StaticType for IndicesType
[src]pub fn static_type() -> Type
[src]
impl StructuralEq for IndicesType
[src]
impl StructuralEq for IndicesType
[src]impl StructuralPartialEq for IndicesType
[src]
impl StructuralPartialEq for IndicesType
[src]Auto Trait Implementations
impl RefUnwindSafe for IndicesType
impl RefUnwindSafe for IndicesType
impl Send for IndicesType
impl Send for IndicesType
impl Sync for IndicesType
impl Sync for IndicesType
impl Unpin for IndicesType
impl Unpin for IndicesType
impl UnwindSafe for IndicesType
impl UnwindSafe for IndicesType
Blanket Implementations
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
[src]
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
[src]pub fn into_color(self) -> To
[src]
impl<T> ToSendValue for T where
T: SetValue + Send + ToValue + ?Sized,
[src]
impl<T> ToSendValue for T where
T: SetValue + Send + ToValue + ?Sized,
[src]pub fn to_send_value(&self) -> SendValue
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,