Enum components::platform::core::PipelineAlphaFunc
source · [−]#[non_exhaustive]
pub enum PipelineAlphaFunc {
Never,
Less,
Equal,
Lequal,
Greater,
Notequal,
Gequal,
Always,
}
Expand description
Aplha testing function.
Alpha testing happens before blending primitives with the framebuffer and
gives an opportunity to discard fragments based on a comparison with the
incoming alpha value and a reference alpha value. The PipelineAlphaFunc
determines how the comparison is done.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Never
Never let the fragment through.
Less
Let the fragment through if the incoming alpha value is less than the reference alpha value
Equal
Let the fragment through if the incoming alpha value equals the reference alpha value
Lequal
Let the fragment through if the incoming alpha value is less than or equal to the reference alpha value
Greater
Let the fragment through if the incoming alpha value is greater than the reference alpha value
Notequal
Let the fragment through if the incoming alpha value does not equal the reference alpha value
Gequal
Let the fragment through if the incoming alpha value is greater than or equal to the reference alpha value.
Always
Always let the fragment through.
Trait Implementations
sourceimpl Clone for PipelineAlphaFunc
impl Clone for PipelineAlphaFunc
sourcefn clone(&self) -> PipelineAlphaFunc
fn clone(&self) -> PipelineAlphaFunc
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PipelineAlphaFunc
impl Debug for PipelineAlphaFunc
sourceimpl Display for PipelineAlphaFunc
impl Display for PipelineAlphaFunc
sourceimpl Hash for PipelineAlphaFunc
impl Hash for PipelineAlphaFunc
sourceimpl Ord for PipelineAlphaFunc
impl Ord for PipelineAlphaFunc
sourceimpl PartialOrd<PipelineAlphaFunc> for PipelineAlphaFunc
impl PartialOrd<PipelineAlphaFunc> for PipelineAlphaFunc
sourcefn partial_cmp(&self, other: &PipelineAlphaFunc) -> Option<Ordering>
fn partial_cmp(&self, other: &PipelineAlphaFunc) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for PipelineAlphaFunc
impl Eq for PipelineAlphaFunc
impl StructuralEq for PipelineAlphaFunc
impl StructuralPartialEq for PipelineAlphaFunc
Auto Trait Implementations
impl RefUnwindSafe for PipelineAlphaFunc
impl Send for PipelineAlphaFunc
impl Sync for PipelineAlphaFunc
impl Unpin for PipelineAlphaFunc
impl UnwindSafe for PipelineAlphaFunc
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
fn clamped(self, min: T, max: T) -> T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.