#[non_exhaustive]pub enum SurfaceAlphaMode3d {
Opaque,
Mask,
Blend,
}Expand description
Coverage/depth behavior for a retained surface.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Opaque
Ignores combined alpha, writes opaque coverage and depth.
Mask
Discards alpha below the cutoff; surviving fragments write alpha one/depth.
Blend
Straight-alpha blending after opaque/masked surfaces, without depth writes.
Trait Implementations§
Source§impl Clone for SurfaceAlphaMode3d
impl Clone for SurfaceAlphaMode3d
impl Copy for SurfaceAlphaMode3d
Source§impl Debug for SurfaceAlphaMode3d
impl Debug for SurfaceAlphaMode3d
Source§impl Default for SurfaceAlphaMode3d
impl Default for SurfaceAlphaMode3d
impl Eq for SurfaceAlphaMode3d
Source§impl PartialEq for SurfaceAlphaMode3d
impl PartialEq for SurfaceAlphaMode3d
impl StructuralPartialEq for SurfaceAlphaMode3d
Auto Trait Implementations§
impl Freeze for SurfaceAlphaMode3d
impl RefUnwindSafe for SurfaceAlphaMode3d
impl Send for SurfaceAlphaMode3d
impl Sync for SurfaceAlphaMode3d
impl Unpin for SurfaceAlphaMode3d
impl UnsafeUnpin for SurfaceAlphaMode3d
impl UnwindSafe for SurfaceAlphaMode3d
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.