pub struct AlphaTest {
pub compare: Compare,
pub reference: f32,
}Expand description
Alpha test: a pixel is kept where alpha compare reference.
Fields§
§compare: CompareThe comparison of the fragment’s alpha with reference.
reference: f32The reference alpha, 0 to 1.
Trait Implementations§
impl Copy for AlphaTest
impl StructuralPartialEq for AlphaTest
Auto Trait Implementations§
impl Freeze for AlphaTest
impl RefUnwindSafe for AlphaTest
impl Send for AlphaTest
impl Sync for AlphaTest
impl Unpin for AlphaTest
impl UnsafeUnpin for AlphaTest
impl UnwindSafe for AlphaTest
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