pub enum ShaderParameter {
CompileStatus = 35_713,
DeleteStatus = 35_712,
ShaderType = 35_663,
}
Expand description
Constants passed to WebGLRenderingContext.getShaderParameter() TODO decide if im keeping it public or move to shader_program as it is only used internally i think
Variants§
CompileStatus = 35_713
Passed to getShaderParameter to get the status of the compilation. Returns false if the shader was not compiled. You can then query getShaderInfoLog to find the exact error
DeleteStatus = 35_712
Passed to getShaderParameter to determine if a shader was deleted via deleteShader. Returns true if it was, false otherwise.
ShaderType = 35_663
Passed to getShaderParameter to get the shader type.
Trait Implementations§
Source§impl Clone for ShaderParameter
impl Clone for ShaderParameter
Source§fn clone(&self) -> ShaderParameter
fn clone(&self) -> ShaderParameter
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 ShaderParameter
impl Debug for ShaderParameter
Source§impl From<ShaderParameter> for JsValue
impl From<ShaderParameter> for JsValue
Source§fn from(value: ShaderParameter) -> Self
fn from(value: ShaderParameter) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ShaderParameter
impl FromWasmAbi for ShaderParameter
Source§impl IntoWasmAbi for ShaderParameter
impl IntoWasmAbi for ShaderParameter
Source§impl OptionFromWasmAbi for ShaderParameter
impl OptionFromWasmAbi for ShaderParameter
Source§impl OptionIntoWasmAbi for ShaderParameter
impl OptionIntoWasmAbi for ShaderParameter
Source§impl TryFromJsValue for ShaderParameter
impl TryFromJsValue for ShaderParameter
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <ShaderParameter as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <ShaderParameter as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for ShaderParameter
impl VectorFromWasmAbi for ShaderParameter
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ShaderParameter]>
Source§impl VectorIntoJsValue for ShaderParameter
impl VectorIntoJsValue for ShaderParameter
fn vector_into_jsvalue(vector: Box<[ShaderParameter]>) -> JsValue
Source§impl VectorIntoWasmAbi for ShaderParameter
impl VectorIntoWasmAbi for ShaderParameter
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ShaderParameter]>) -> Self::Abi
Source§impl WasmDescribeVector for ShaderParameter
impl WasmDescribeVector for ShaderParameter
impl Copy for ShaderParameter
Auto Trait Implementations§
impl Freeze for ShaderParameter
impl RefUnwindSafe for ShaderParameter
impl Send for ShaderParameter
impl Sync for ShaderParameter
impl Unpin for ShaderParameter
impl UnwindSafe for ShaderParameter
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
.