pub struct StencilTest {
pub comparison: Comparison,
pub reference: u8,
pub mask: u8,
}Expand description
The stencil test is a bit weird. It’s a Comparison as well as the « stencil mask ».
Fields§
§comparison: ComparisonComparison to apply to make a fragment pass the test.
reference: u8Reference value for the comparison.
mask: u8The mask to apply on the fragment stencil value.
Implementations§
Source§impl StencilTest
impl StencilTest
Sourcepub fn new(comparison: Comparison, reference: u8, mask: u8) -> StencilTest
pub fn new(comparison: Comparison, reference: u8, mask: u8) -> StencilTest
Create a new StencilTest from the comparison, reference and mask values.
Trait Implementations§
Source§impl Clone for StencilTest
impl Clone for StencilTest
Source§fn clone(&self) -> StencilTest
fn clone(&self) -> StencilTest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StencilTest
impl Debug for StencilTest
Source§impl PartialEq for StencilTest
impl PartialEq for StencilTest
impl Copy for StencilTest
impl Eq for StencilTest
impl StructuralPartialEq for StencilTest
Auto Trait Implementations§
impl Freeze for StencilTest
impl RefUnwindSafe for StencilTest
impl Send for StencilTest
impl Sync for StencilTest
impl Unpin for StencilTest
impl UnwindSafe for StencilTest
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