pub enum VertexAttrib {
Current = 34_342,
ArrayEnabled = 34_338,
ArraySize = 34_339,
ArrayStride = 34_340,
ArrayType = 34_341,
ArrayNormalized = 34_922,
ArrayPointer = 34_373,
ArrayBufferBinding = 34_975,
}
Expand description
Constants passed to WebGLRenderingContext.getVertexAttrib().
Variants§
Current = 34_342
Passed to getVertexAttrib to read back the current vertex attribute.
ArrayEnabled = 34_338
ArraySize = 34_339
ArrayStride = 34_340
ArrayType = 34_341
ArrayNormalized = 34_922
ArrayPointer = 34_373
ArrayBufferBinding = 34_975
Trait Implementations§
Source§impl Clone for VertexAttrib
impl Clone for VertexAttrib
Source§fn clone(&self) -> VertexAttrib
fn clone(&self) -> VertexAttrib
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 VertexAttrib
impl Debug for VertexAttrib
Source§impl From<VertexAttrib> for JsValue
impl From<VertexAttrib> for JsValue
Source§fn from(value: VertexAttrib) -> Self
fn from(value: VertexAttrib) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for VertexAttrib
impl FromWasmAbi for VertexAttrib
Source§impl IntoWasmAbi for VertexAttrib
impl IntoWasmAbi for VertexAttrib
Source§impl OptionFromWasmAbi for VertexAttrib
impl OptionFromWasmAbi for VertexAttrib
Source§impl OptionIntoWasmAbi for VertexAttrib
impl OptionIntoWasmAbi for VertexAttrib
Source§impl TryFromJsValue for VertexAttrib
impl TryFromJsValue for VertexAttrib
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <VertexAttrib as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <VertexAttrib as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for VertexAttrib
impl VectorFromWasmAbi for VertexAttrib
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[VertexAttrib]>
Source§impl VectorIntoJsValue for VertexAttrib
impl VectorIntoJsValue for VertexAttrib
fn vector_into_jsvalue(vector: Box<[VertexAttrib]>) -> JsValue
Source§impl VectorIntoWasmAbi for VertexAttrib
impl VectorIntoWasmAbi for VertexAttrib
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[VertexAttrib]>) -> Self::Abi
Source§impl WasmDescribeVector for VertexAttrib
impl WasmDescribeVector for VertexAttrib
impl Copy for VertexAttrib
Auto Trait Implementations§
impl Freeze for VertexAttrib
impl RefUnwindSafe for VertexAttrib
impl Send for VertexAttrib
impl Sync for VertexAttrib
impl Unpin for VertexAttrib
impl UnwindSafe for VertexAttrib
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
.