Enum webgl_rs::glenum::AttributeType
source · pub enum AttributeType {
Byte,
Short,
UnsignedByte,
UnsignedShort,
Float,
HalfFloat,
}
Expand description
Constants passed to vertexAttribPointer
Variants§
Byte
signed 8-bit integer, with values in [-128, 127]
Short
signed 16-bit integer, with values in [-32768, 32767]
UnsignedByte
unsigned 8-bit integer, with values in [0, 255]
UnsignedShort
unsigned 16-bit integer, with values in [0, 65535]
Float
32-bit IEEE floating point number
HalfFloat
16-bit IEEE floating point number
Trait Implementations§
source§impl Clone for AttributeType
impl Clone for AttributeType
source§fn clone(&self) -> AttributeType
fn clone(&self) -> AttributeType
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 AttributeType
impl Debug for AttributeType
source§impl FromWasmAbi for AttributeType
impl FromWasmAbi for AttributeType
source§impl IntoWasmAbi for AttributeType
impl IntoWasmAbi for AttributeType
source§impl OptionFromWasmAbi for AttributeType
impl OptionFromWasmAbi for AttributeType
source§impl OptionIntoWasmAbi for AttributeType
impl OptionIntoWasmAbi for AttributeType
impl Copy for AttributeType
Auto Trait Implementations§
impl RefUnwindSafe for AttributeType
impl Send for AttributeType
impl Sync for AttributeType
impl Unpin for AttributeType
impl UnwindSafe for AttributeType
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more