pub enum LinearBlendingFactor {
Show 15 variants
Zero,
One,
SourceColor,
OneMinusSourceColor,
DestinationColor,
OneMinusDestinationColor,
SourceAlpha,
SourceAlphaSaturate,
OneMinusSourceAlpha,
DestinationAlpha,
OneMinusDestinationAlpha,
ConstantColor,
OneMinusConstantColor,
ConstantAlpha,
OneMinusConstantAlpha,
}
Expand description
Indicates which value to multiply each component with.
Variants§
Zero
Multiply the source or destination component by zero, which always
gives 0.0
.
One
Multiply the source or destination component by one, which always gives you the original value.
SourceColor
Multiply the source or destination component by its corresponding value in the source.
If you apply this to the source components, you get the values squared.
OneMinusSourceColor
Equivalent to 1 - SourceColor
.
DestinationColor
Multiply the source or destination component by its corresponding value in the destination.
If you apply this to the destination components, you get the values squared.
OneMinusDestinationColor
Equivalent to 1 - DestinationColor
.
SourceAlpha
Multiply the source or destination component by the alpha value of the source.
SourceAlphaSaturate
Multiply the source or destination component by the smallest value of
SourceAlpha
and 1 - DestinationAlpha
.
OneMinusSourceAlpha
Multiply the source or destination component by 1.0
minus the alpha value of the source.
DestinationAlpha
Multiply the source or destination component by the alpha value of the destination.
OneMinusDestinationAlpha
Multiply the source or destination component by 1.0
minus the alpha value of the
destination.
ConstantColor
Multiply the source or destination component by the corresponding value
in Blend::const_value
.
OneMinusConstantColor
Multiply the source or destination component by 1.0
minus the corresponding
value in Blend::const_value
.
ConstantAlpha
Multiply the source or destination component by the alpha value of Blend::const_value
.
OneMinusConstantAlpha
Multiply the source or destination component by 1.0
minus the alpha value of
Blend::const_value
.
Trait Implementations§
source§impl Clone for LinearBlendingFactor
impl Clone for LinearBlendingFactor
source§fn clone(&self) -> LinearBlendingFactor
fn clone(&self) -> LinearBlendingFactor
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LinearBlendingFactor
impl Debug for LinearBlendingFactor
source§impl PartialEq<LinearBlendingFactor> for LinearBlendingFactor
impl PartialEq<LinearBlendingFactor> for LinearBlendingFactor
source§fn eq(&self, other: &LinearBlendingFactor) -> bool
fn eq(&self, other: &LinearBlendingFactor) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for LinearBlendingFactor
impl Eq for LinearBlendingFactor
impl StructuralEq for LinearBlendingFactor
impl StructuralPartialEq for LinearBlendingFactor
Auto Trait Implementations§
impl RefUnwindSafe for LinearBlendingFactor
impl Send for LinearBlendingFactor
impl Sync for LinearBlendingFactor
impl Unpin for LinearBlendingFactor
impl UnwindSafe for LinearBlendingFactor
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
source§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere T: Copy,
source§fn read<F, E>(size: usize, f: F) -> Result<T, E>where
F: FnOnce(&mut T) -> Result<(), E>,
fn read<F, E>(size: usize, f: F) -> Result<T, E>where F: FnOnce(&mut T) -> Result<(), E>,
Owned
.