pub enum BlendEquation {
FuncAdd = 32_774,
FuncSubstract = 32_778,
FuncReverseSubtract = 32_779,
Min = 32_775,
Max = 32_776,
}
Expand description
Constants passed to WebGLRenderingContext.blendEquation() or WebGLRenderingContext.blendEquationSeparate() to control how the blending is calculated (for both, RBG and alpha, or separately).
Variants§
FuncAdd = 32_774
Passed to blendEquation or blendEquationSeparate to set an addition blend function.
FuncSubstract = 32_778
Passed to blendEquation or blendEquationSeparate to specify a subtraction blend function (source - destination).
FuncReverseSubtract = 32_779
Passed to blendEquation or blendEquationSeparate to specify a reverse subtraction blend function (destination - source).
Min = 32_775
Minimum of source and destination,
Max = 32_776
Maximum of source and destination,
Trait Implementations§
Source§impl Clone for BlendEquation
impl Clone for BlendEquation
Source§fn clone(&self) -> BlendEquation
fn clone(&self) -> BlendEquation
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 BlendEquation
impl Debug for BlendEquation
Source§impl From<BlendEquation> for JsValue
impl From<BlendEquation> for JsValue
Source§fn from(value: BlendEquation) -> Self
fn from(value: BlendEquation) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for BlendEquation
impl FromWasmAbi for BlendEquation
Source§impl IntoWasmAbi for BlendEquation
impl IntoWasmAbi for BlendEquation
Source§impl OptionFromWasmAbi for BlendEquation
impl OptionFromWasmAbi for BlendEquation
Source§impl OptionIntoWasmAbi for BlendEquation
impl OptionIntoWasmAbi for BlendEquation
Source§impl TryFromJsValue for BlendEquation
impl TryFromJsValue for BlendEquation
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <BlendEquation as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <BlendEquation as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for BlendEquation
impl VectorFromWasmAbi for BlendEquation
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[BlendEquation]>
Source§impl VectorIntoJsValue for BlendEquation
impl VectorIntoJsValue for BlendEquation
fn vector_into_jsvalue(vector: Box<[BlendEquation]>) -> JsValue
Source§impl VectorIntoWasmAbi for BlendEquation
impl VectorIntoWasmAbi for BlendEquation
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[BlendEquation]>) -> Self::Abi
Source§impl WasmDescribeVector for BlendEquation
impl WasmDescribeVector for BlendEquation
impl Copy for BlendEquation
Auto Trait Implementations§
impl Freeze for BlendEquation
impl RefUnwindSafe for BlendEquation
impl Send for BlendEquation
impl Sync for BlendEquation
impl Unpin for BlendEquation
impl UnwindSafe for BlendEquation
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
.