#[non_exhaustive]pub enum MaterialAlphaFunc {
Never,
Less,
Equal,
Lequal,
Greater,
Notequal,
Gequal,
Always,
}
Expand description
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§
Source§impl Clone for MaterialAlphaFunc
impl Clone for MaterialAlphaFunc
Source§fn clone(&self) -> MaterialAlphaFunc
fn clone(&self) -> MaterialAlphaFunc
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MaterialAlphaFunc
impl Debug for MaterialAlphaFunc
Source§impl Display for MaterialAlphaFunc
impl Display for MaterialAlphaFunc
Source§impl<'a> FromValue<'a> for MaterialAlphaFunc
impl<'a> FromValue<'a> for MaterialAlphaFunc
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Source§impl<'a> FromValueOptional<'a> for MaterialAlphaFunc
impl<'a> FromValueOptional<'a> for MaterialAlphaFunc
Source§impl Hash for MaterialAlphaFunc
impl Hash for MaterialAlphaFunc
Source§impl Ord for MaterialAlphaFunc
impl Ord for MaterialAlphaFunc
Source§fn cmp(&self, other: &MaterialAlphaFunc) -> Ordering
fn cmp(&self, other: &MaterialAlphaFunc) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for MaterialAlphaFunc
impl PartialEq for MaterialAlphaFunc
Source§impl PartialOrd for MaterialAlphaFunc
impl PartialOrd for MaterialAlphaFunc
Source§impl SetValue for MaterialAlphaFunc
impl SetValue for MaterialAlphaFunc
Source§impl StaticType for MaterialAlphaFunc
impl StaticType for MaterialAlphaFunc
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Copy for MaterialAlphaFunc
impl Eq for MaterialAlphaFunc
impl StructuralPartialEq for MaterialAlphaFunc
Auto Trait Implementations§
impl Freeze for MaterialAlphaFunc
impl RefUnwindSafe for MaterialAlphaFunc
impl Send for MaterialAlphaFunc
impl Sync for MaterialAlphaFunc
impl Unpin for MaterialAlphaFunc
impl UnwindSafe for MaterialAlphaFunc
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> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.