pub enum BlendFunction {
Same {
source: BlendFactor,
destination: BlendFactor,
},
Separate {
source_color: BlendFactor,
source_alpha: BlendFactor,
destination_color: BlendFactor,
destination_alpha: BlendFactor,
},
}Expand description
The blend function controls how the source and destination are transformed
Before being passed to the BlendEquation, the source and destination are multiplied by the
value determined by BlendFunction.
Variants§
Same
Use the same BlendFactor on the color and alpha channels
Separate
Use different BlendFactors on the color and alpha channels
Fields
§
source_color: BlendFactor§
source_alpha: BlendFactor§
destination_color: BlendFactor§
destination_alpha: BlendFactorTrait Implementations§
Source§impl Clone for BlendFunction
impl Clone for BlendFunction
Source§fn clone(&self) -> BlendFunction
fn clone(&self) -> BlendFunction
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 BlendFunction
impl Debug for BlendFunction
Source§impl Default for BlendFunction
impl Default for BlendFunction
Source§fn default() -> BlendFunction
fn default() -> BlendFunction
Returns the “default value” for a type. Read more
Source§impl Hash for BlendFunction
impl Hash for BlendFunction
Source§impl PartialEq for BlendFunction
impl PartialEq for BlendFunction
impl Copy for BlendFunction
impl Eq for BlendFunction
impl StructuralPartialEq for BlendFunction
Auto Trait Implementations§
impl Freeze for BlendFunction
impl RefUnwindSafe for BlendFunction
impl Send for BlendFunction
impl Sync for BlendFunction
impl Unpin for BlendFunction
impl UnwindSafe for BlendFunction
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