pub enum DataType {
I8,
U8,
I16,
U16,
U32,
F32,
}
Expand description
The component data type.
Variants§
I8
Corresponds to GL_BYTE
.
U8
Corresponds to GL_UNSIGNED_BYTE
.
I16
Corresponds to GL_SHORT
.
U16
Corresponds to GL_UNSIGNED_SHORT
.
U32
Corresponds to GL_UNSIGNED_INT
.
F32
Corresponds to GL_FLOAT
.
Implementations§
source§impl ComponentType
impl ComponentType
Trait Implementations§
source§impl Clone for ComponentType
impl Clone for ComponentType
source§fn clone(&self) -> ComponentType
fn clone(&self) -> ComponentType
Returns a copy 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 ComponentType
impl Debug for ComponentType
source§impl<'de> Deserialize<'de> for ComponentType
impl<'de> Deserialize<'de> for ComponentType
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ComponentType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ComponentType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ComponentType> for ComponentType
impl PartialEq<ComponentType> for ComponentType
source§fn eq(&self, other: &ComponentType) -> bool
fn eq(&self, other: &ComponentType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ComponentType
impl Serialize for ComponentType
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more