pub enum AlphaMode {
Opaque,
Mask(f32),
Blend,
}Expand description
Material alpha behavior.
Variants§
Opaque
Fully opaque material.
Mask(f32)
Alpha-tested material using the stored cutoff threshold.
Blend
Alpha-blended material.
Implementations§
Source§impl AlphaMode
impl AlphaMode
Sourcepub const fn pipeline_alpha(self) -> PipelineAlphaMode
pub const fn pipeline_alpha(self) -> PipelineAlphaMode
Returns the pipeline-level alpha mode.
Sourcepub const fn is_transparent(self) -> bool
pub const fn is_transparent(self) -> bool
Returns whether this mode needs transparent sorting and blending.
Trait Implementations§
impl Copy for AlphaMode
impl StructuralPartialEq for AlphaMode
Auto Trait Implementations§
impl Freeze for AlphaMode
impl RefUnwindSafe for AlphaMode
impl Send for AlphaMode
impl Sync for AlphaMode
impl Unpin for AlphaMode
impl UnsafeUnpin for AlphaMode
impl UnwindSafe for AlphaMode
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
Mutably borrows from an owned value. Read more