Enum components::platform::core::MaterialAlphaFunc
source · [−]#[non_exhaustive]
pub enum MaterialAlphaFunc {
Never,
Less,
Equal,
Lequal,
Greater,
Notequal,
Gequal,
Always,
}
Expand description
Material alpha 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 MaterialAlphaFunc
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 MaterialAlphaFunc
impl Clone for MaterialAlphaFunc
sourcefn clone(&self) -> MaterialAlphaFunc
fn clone(&self) -> MaterialAlphaFunc
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 MaterialAlphaFunc
impl Debug for MaterialAlphaFunc
sourceimpl Display for MaterialAlphaFunc
impl Display for MaterialAlphaFunc
sourceimpl Hash for MaterialAlphaFunc
impl Hash for MaterialAlphaFunc
sourceimpl Ord for MaterialAlphaFunc
impl Ord for MaterialAlphaFunc
sourceimpl PartialOrd<MaterialAlphaFunc> for MaterialAlphaFunc
impl PartialOrd<MaterialAlphaFunc> for MaterialAlphaFunc
sourcefn partial_cmp(&self, other: &MaterialAlphaFunc) -> Option<Ordering>
fn partial_cmp(&self, other: &MaterialAlphaFunc) -> 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 MaterialAlphaFunc
impl Eq for MaterialAlphaFunc
impl StructuralEq for MaterialAlphaFunc
impl StructuralPartialEq for MaterialAlphaFunc
Auto Trait Implementations
impl RefUnwindSafe for MaterialAlphaFunc
impl Send for MaterialAlphaFunc
impl Sync for MaterialAlphaFunc
impl Unpin for MaterialAlphaFunc
impl UnwindSafe for MaterialAlphaFunc
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
.