pub enum BlendFactor {
Zero,
One,
SrcAlpha,
OneMinusSrcAlpha,
DstAlpha,
OneMinusDstAlpha,
DstColor,
}Expand description
A factor a blend equation multiplies one side by.
Portable rather than each backend naming its own, so the Porter-Duff table below exists once instead of once per backend, where the two copies would drift.
Variants§
Trait Implementations§
Source§impl Clone for BlendFactor
impl Clone for BlendFactor
impl Copy for BlendFactor
Source§impl Debug for BlendFactor
impl Debug for BlendFactor
impl Eq for BlendFactor
Source§impl Hash for BlendFactor
impl Hash for BlendFactor
Source§impl PartialEq for BlendFactor
impl PartialEq for BlendFactor
impl StructuralPartialEq for BlendFactor
Auto Trait Implementations§
impl Freeze for BlendFactor
impl RefUnwindSafe for BlendFactor
impl Send for BlendFactor
impl Sync for BlendFactor
impl Unpin for BlendFactor
impl UnsafeUnpin for BlendFactor
impl UnwindSafe for BlendFactor
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