pub struct StencilTest {
pub faces: Sided<StencilFace>,
pub read_masks: StencilValues,
pub write_masks: StencilValues,
pub reference_values: StencilValues,
}
Expand description
Defines a stencil test. Stencil testing is an operation performed to cull fragments; the new fragment is tested against the value held in the stencil buffer, and if the test fails the fragment is discarded.
Fields§
§faces: Sided<StencilFace>
Operations for stencil faces.
read_masks: StencilValues
Masks that are ANDd with both the stencil buffer value and the reference value when they are read before doing the stencil test.
write_masks: StencilValues
Mask that are ANDd with the stencil value before writing to the stencil buffer.
reference_values: StencilValues
The reference values used for stencil tests.
Trait Implementations§
Source§impl Clone for StencilTest
impl Clone for StencilTest
Source§fn clone(&self) -> StencilTest
fn clone(&self) -> StencilTest
Returns a copy 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 Default for StencilTest
impl Default for StencilTest
Source§impl Hash for StencilTest
impl Hash 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