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
Source§impl Serialize for AlphaTest
impl Serialize for AlphaTest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AlphaTest
Auto Trait Implementations§
impl Forget for AlphaTest
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