pub enum HintTarget {
GenerateMipmapHint = 33_170,
FragmentShaderDerivativeHint = 35_723,
}
Expand description
Constants passed to WebGLRenderingContext.hint() target argument
Variants§
GenerateMipmapHint = 33_170
Hint for the quality of filtering when generating mipmap images with WebGLRenderingContext.generateMipmap().
FragmentShaderDerivativeHint = 35_723
Accuracy of the derivative calculation for the GLSL built-in functions: dFdx, dFdy, and fwidth.
Trait Implementations§
Source§impl Clone for HintTarget
impl Clone for HintTarget
Source§fn clone(&self) -> HintTarget
fn clone(&self) -> HintTarget
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 HintTarget
impl Debug for HintTarget
Source§impl From<HintTarget> for JsValue
impl From<HintTarget> for JsValue
Source§fn from(value: HintTarget) -> Self
fn from(value: HintTarget) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for HintTarget
impl FromWasmAbi for HintTarget
Source§impl IntoWasmAbi for HintTarget
impl IntoWasmAbi for HintTarget
Source§impl OptionFromWasmAbi for HintTarget
impl OptionFromWasmAbi for HintTarget
Source§impl OptionIntoWasmAbi for HintTarget
impl OptionIntoWasmAbi for HintTarget
Source§impl TryFromJsValue for HintTarget
impl TryFromJsValue for HintTarget
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <HintTarget as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <HintTarget as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for HintTarget
impl VectorFromWasmAbi for HintTarget
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[HintTarget]>
Source§impl VectorIntoJsValue for HintTarget
impl VectorIntoJsValue for HintTarget
fn vector_into_jsvalue(vector: Box<[HintTarget]>) -> JsValue
Source§impl VectorIntoWasmAbi for HintTarget
impl VectorIntoWasmAbi for HintTarget
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[HintTarget]>) -> Self::Abi
Source§impl WasmDescribeVector for HintTarget
impl WasmDescribeVector for HintTarget
impl Copy for HintTarget
Auto Trait Implementations§
impl Freeze for HintTarget
impl RefUnwindSafe for HintTarget
impl Send for HintTarget
impl Sync for HintTarget
impl Unpin for HintTarget
impl UnwindSafe for HintTarget
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
.