pub enum ShaderKind {
Fragment = 35_632,
Vertex = 35_633,
}
Expand description
Constants passed to WebGLRenderingContext.createShader()
Variants§
Fragment = 35_632
Passed to createShader to define a fragment shader.
Vertex = 35_633
Passed to createShader to define a vertex shader
Trait Implementations§
Source§impl Clone for ShaderKind
impl Clone for ShaderKind
Source§fn clone(&self) -> ShaderKind
fn clone(&self) -> ShaderKind
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 ShaderKind
impl Debug for ShaderKind
Source§impl From<ShaderKind> for JsValue
impl From<ShaderKind> for JsValue
Source§fn from(value: ShaderKind) -> Self
fn from(value: ShaderKind) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ShaderKind
impl FromWasmAbi for ShaderKind
Source§impl IntoWasmAbi for ShaderKind
impl IntoWasmAbi for ShaderKind
Source§impl OptionFromWasmAbi for ShaderKind
impl OptionFromWasmAbi for ShaderKind
Source§impl OptionIntoWasmAbi for ShaderKind
impl OptionIntoWasmAbi for ShaderKind
Source§impl TryFromJsValue for ShaderKind
impl TryFromJsValue for ShaderKind
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <ShaderKind as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <ShaderKind as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for ShaderKind
impl VectorFromWasmAbi for ShaderKind
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ShaderKind]>
Source§impl VectorIntoJsValue for ShaderKind
impl VectorIntoJsValue for ShaderKind
fn vector_into_jsvalue(vector: Box<[ShaderKind]>) -> JsValue
Source§impl VectorIntoWasmAbi for ShaderKind
impl VectorIntoWasmAbi for ShaderKind
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ShaderKind]>) -> Self::Abi
Source§impl WasmDescribeVector for ShaderKind
impl WasmDescribeVector for ShaderKind
impl Copy for ShaderKind
Auto Trait Implementations§
impl Freeze for ShaderKind
impl RefUnwindSafe for ShaderKind
impl Send for ShaderKind
impl Sync for ShaderKind
impl Unpin for ShaderKind
impl UnwindSafe for ShaderKind
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
.