pub enum AttributeType {
Byte = 5_120,
Short = 5_122,
UnsignedByte = 5_121,
UnsignedShort = 5_123,
Float = 5_126,
HalfFloat = 5_131,
}
Expand description
Constants passed to vertexAttribPointer
Variants§
Byte = 5_120
signed 8-bit integer, with values in [-128, 127]
Short = 5_122
signed 16-bit integer, with values in [-32768, 32767]
UnsignedByte = 5_121
unsigned 8-bit integer, with values in [0, 255]
UnsignedShort = 5_123
unsigned 16-bit integer, with values in [0, 65535]
Float = 5_126
32-bit IEEE floating point number
HalfFloat = 5_131
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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AttributeType
impl Debug for AttributeType
Source§impl From<AttributeType> for JsValue
impl From<AttributeType> for JsValue
Source§fn from(value: AttributeType) -> Self
fn from(value: AttributeType) -> Self
Converts to this type from the input type.
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
Source§impl TryFromJsValue for AttributeType
impl TryFromJsValue for AttributeType
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <AttributeType as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <AttributeType as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for AttributeType
impl VectorFromWasmAbi for AttributeType
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[AttributeType]>
Source§impl VectorIntoJsValue for AttributeType
impl VectorIntoJsValue for AttributeType
fn vector_into_jsvalue(vector: Box<[AttributeType]>) -> JsValue
Source§impl VectorIntoWasmAbi for AttributeType
impl VectorIntoWasmAbi for AttributeType
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[AttributeType]>) -> Self::Abi
Source§impl WasmDescribeVector for AttributeType
impl WasmDescribeVector for AttributeType
impl Copy for AttributeType
Auto Trait Implementations§
impl Freeze for AttributeType
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> 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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§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
.