pub enum BlendOp {
Add {
src: Factor,
dst: Factor,
},
Sub {
src: Factor,
dst: Factor,
},
RevSub {
src: Factor,
dst: Factor,
},
Min,
Max,
}
Expand description
Blending operations.
Variants§
Add
Adds source and destination. Source and destination are multiplied by factors before addition.
Sub
Subtracts destination from source. Source and destination are multiplied by factors before subtraction.
RevSub
Subtracts source from destination. Source and destination are multiplied by factors before subtraction.
Min
Component-wise minimum value of source and destination.
Max
Component-wise maximum value of source and destination.
Implementations§
Source§impl BlendOp
impl BlendOp
Sourcepub const PREMULTIPLIED_ALPHA: Self = _
pub const PREMULTIPLIED_ALPHA: Self = _
Alpha blend a premultiplied-alpha source with the destination.
Trait Implementations§
Source§impl Ord for BlendOp
impl Ord for BlendOp
Source§impl PartialOrd for BlendOp
impl PartialOrd for BlendOp
impl Copy for BlendOp
impl Eq for BlendOp
impl StructuralPartialEq for BlendOp
Auto Trait Implementations§
impl Freeze for BlendOp
impl RefUnwindSafe for BlendOp
impl Send for BlendOp
impl Sync for BlendOp
impl Unpin for BlendOp
impl UnwindSafe for BlendOp
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