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 for LinearBlendingFactor
impl PartialEq for LinearBlendingFactor
impl Copy for LinearBlendingFactor
impl Eq for LinearBlendingFactor
impl StructuralPartialEq for LinearBlendingFactor
Auto Trait Implementations§
impl Freeze for LinearBlendingFactor
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
fn read<F, E>(size: usize, f: F) -> Result<T, E>
Owned.Source§fn get_elements_size() -> usize
fn get_elements_size() -> usize
Source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Source§fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> SetParameter for T
impl<T> SetParameter for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.