pub enum BlendEquation {
Same(BlendOperation),
Separate {
color: BlendOperation,
alpha: BlendOperation,
},
}Expand description
How to combine the values when blending
Almost all the time you’ll want BlendEquation::Same(BlendOperation::Add), but there are cases
where other blend equatiosn come in handy.
Variants§
Same(BlendOperation)
Apply the same equation to the color and alpha of the blended pixels
Separate
Apply a different equation to the color and alpha channel of the blended pixels
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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlendEquation
impl Debug for BlendEquation
Source§impl Default for BlendEquation
impl Default for BlendEquation
Source§fn default() -> BlendEquation
fn default() -> BlendEquation
Returns the “default value” for a type. Read more
Source§impl Hash for BlendEquation
impl Hash for BlendEquation
Source§impl PartialEq for BlendEquation
impl PartialEq for BlendEquation
impl Copy for BlendEquation
impl Eq for BlendEquation
impl StructuralPartialEq 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