#[non_exhaustive]pub enum PipelineAlphaFunc {
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 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§
Source§impl Clone for PipelineAlphaFunc
impl Clone for PipelineAlphaFunc
Source§fn clone(&self) -> PipelineAlphaFunc
fn clone(&self) -> PipelineAlphaFunc
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more