Enum vg::BlendFactor
source · [−]pub enum BlendFactor {
Zero,
One,
SrcColor,
OneMinusSrcColor,
DstColor,
OneMinusDstColor,
SrcAlpha,
OneMinusSrcAlpha,
DstAlpha,
OneMinusDstAlpha,
SrcAlphaSaturate,
}
Expand description
Blend factors.
Variants
Zero
Not all
One
All use
SrcColor
Using the source color
OneMinusSrcColor
Minus the source color
DstColor
Using the target color
OneMinusDstColor
Minus the target color
SrcAlpha
Using the source alpha
OneMinusSrcAlpha
Minus the source alpha
DstAlpha
Using the target alpha
OneMinusDstAlpha
Minus the target alpha
SrcAlphaSaturate
Scale color by minimum of source alpha and destination alpha
Trait Implementations
sourceimpl Clone for BlendFactor
impl Clone for BlendFactor
sourcefn clone(&self) -> BlendFactor
fn clone(&self) -> BlendFactor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BlendFactor
impl Debug for BlendFactor
sourceimpl Hash for BlendFactor
impl Hash for BlendFactor
sourceimpl PartialEq<BlendFactor> for BlendFactor
impl PartialEq<BlendFactor> for BlendFactor
sourceimpl PartialOrd<BlendFactor> for BlendFactor
impl PartialOrd<BlendFactor> for BlendFactor
sourcefn partial_cmp(&self, other: &BlendFactor) -> Option<Ordering>
fn partial_cmp(&self, other: &BlendFactor) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for BlendFactor
impl Eq for BlendFactor
impl StructuralEq for BlendFactor
impl StructuralPartialEq for BlendFactor
Auto Trait Implementations
impl RefUnwindSafe for BlendFactor
impl Send for BlendFactor
impl Sync for BlendFactor
impl Unpin for BlendFactor
impl UnwindSafe for BlendFactor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more