pub enum Factor {
Show 19 variants
Zero = 0,
One = 1,
SrcColor = 2,
OneMinusSrcColor = 3,
DstColor = 4,
OneMinusDstColor = 5,
SrcAlpha = 6,
OneMinusSrcAlpha = 7,
DstAlpha = 8,
OneMinusDstAlpha = 9,
ConstColor = 10,
OneMinusConstColor = 11,
ConstAlpha = 12,
OneMinusConstAlpha = 13,
SrcAlphaSaturate = 14,
Src1Color = 15,
OneMinusSrc1Color = 16,
Src1Alpha = 17,
OneMinusSrc1Alpha = 18,
}
Expand description
Defines the possible blending factors. During blending, the source or destination fragment may be multiplied by a factor to produce the final result.
Variants§
Zero = 0
One = 1
SrcColor = 2
OneMinusSrcColor = 3
DstColor = 4
OneMinusDstColor = 5
SrcAlpha = 6
OneMinusSrcAlpha = 7
DstAlpha = 8
OneMinusDstAlpha = 9
ConstColor = 10
OneMinusConstColor = 11
ConstAlpha = 12
OneMinusConstAlpha = 13
SrcAlphaSaturate = 14
Src1Color = 15
OneMinusSrc1Color = 16
Src1Alpha = 17
OneMinusSrc1Alpha = 18
Trait Implementations§
Source§impl Ord for Factor
impl Ord for Factor
Source§impl PartialOrd for Factor
impl PartialOrd for Factor
impl Copy for Factor
impl Eq for Factor
impl StructuralPartialEq for Factor
Auto Trait Implementations§
impl Freeze for Factor
impl RefUnwindSafe for Factor
impl Send for Factor
impl Sync for Factor
impl Unpin for Factor
impl UnwindSafe for Factor
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