pub enum Equation {
Additive,
Subtract,
ReverseSubtract,
Min,
Max,
}Expand description
Blending equation. Used to state how blending factors and pixel data should be blended.
Variants§
Additive
Additive represents the following blending equation:
blended = src * srcK + dst * dstK
Subtract
Subtract represents the following blending equation:
blended = src * srcK - dst * dstK
ReverseSubtract
Because subtracting is not commutative, ReverseSubtract represents the following additional
blending equation:
blended = dst * dstK - src * srcK
Min
Min represents the following blending equation:
blended = min(src, dst)
Max
Max represents the following blending equation:
blended = max(src, dst)
Trait Implementations§
impl Copy for Equation
impl Eq for Equation
impl StructuralPartialEq for Equation
Auto Trait Implementations§
impl Freeze for Equation
impl RefUnwindSafe for Equation
impl Send for Equation
impl Sync for Equation
impl Unpin for Equation
impl UnwindSafe for Equation
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