pub enum BlendMode {
Replace,
Alpha,
Additive,
ReverseMultiply,
}Expand description
How a color target blends its output.
Variants§
Replace
Overwrite the destination.
Alpha
Classic source-over alpha blending.
Additive
Additive accumulation.
ReverseMultiply
Multiply destination by (1 − source alpha); the revealage half of weighted-blended transparency.
Trait Implementations§
impl Copy for BlendMode
impl Eq for BlendMode
impl StructuralPartialEq for BlendMode
Auto Trait Implementations§
impl Freeze for BlendMode
impl RefUnwindSafe for BlendMode
impl Send for BlendMode
impl Sync for BlendMode
impl Unpin for BlendMode
impl UnsafeUnpin for BlendMode
impl UnwindSafe for BlendMode
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