[−][src]Enum mallumo_gls::raw::BlendingEquation
Equation that the GPU will use for blending.
Variants
Min
For each individual component (red, green, blue, and alpha), the minimum value is chosen between the source and the destination.
For example writing (0.5, 0.9, 0.4, 0.2)
over (0.9, 0.1, 0.4, 0.3)
will
result in (0.5, 0.1, 0.4, 0.2)
.
Max
For each individual component (red, green, blue, and alpha), the maximum value is chosen between the source and the destination.
For example writing (0.5, 0.9, 0.4, 0.2)
over (0.9, 0.1, 0.4, 0.3)
will
result in (0.9, 0.9, 0.4, 0.3)
.
Addition
For each individual component (red, green, blue, and alpha), a weighted addition between the source and the destination.
The result is equal to source_component * source_factor + dest_component * dest_factor
,
where source_factor
and dest_factor
are the values of source
and destination
of
this enum.
Subtraction
For each individual component (red, green, blue, and alpha), a weighted substraction of the source by the destination.
The result is equal to source_component * source_factor - dest_component * dest_factor
,
where source_factor
and dest_factor
are the values of source
and destination
of
this enum.
ReverseSubtraction
For each individual component (red, green, blue, and alpha), a weighted substraction of the destination by the source.
The result is equal to -source_component * source_factor + dest_component * dest_factor
,
where source_factor
and dest_factor
are the values of source
and destination
of
this enum.
Trait Implementations
impl PartialEq<BlendingEquation> for BlendingEquation
[src]
fn eq(&self, other: &BlendingEquation) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for BlendingEquation
[src]
impl Clone for BlendingEquation
[src]
fn clone(&self) -> BlendingEquation
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for BlendingEquation
[src]
fn default() -> BlendingEquation
[src]
impl Copy for BlendingEquation
[src]
impl Debug for BlendingEquation
[src]
Auto Trait Implementations
impl Send for BlendingEquation
impl Sync for BlendingEquation
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,