Enum gfx_hal::pso::StencilTest
source · pub enum StencilTest {
On {
front: StencilFace,
back: StencilFace,
},
Off,
}
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.
Variants
On
Off
Trait Implementations
sourceimpl Clone for StencilTest
impl Clone for StencilTest
sourcefn clone(&self) -> StencilTest
fn clone(&self) -> StencilTest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for StencilTest
impl Debug for StencilTest
sourceimpl Default for StencilTest
impl Default for StencilTest
sourceimpl Hash for StencilTest
impl Hash for StencilTest
sourceimpl PartialEq<StencilTest> for StencilTest
impl PartialEq<StencilTest> for StencilTest
sourcefn eq(&self, other: &StencilTest) -> bool
fn eq(&self, other: &StencilTest) -> bool
impl Copy for StencilTest
impl Eq for StencilTest
impl StructuralEq for StencilTest
impl StructuralPartialEq for StencilTest
Auto Trait Implementations
impl RefUnwindSafe for StencilTest
impl Send for StencilTest
impl Sync for StencilTest
impl Unpin for StencilTest
impl UnwindSafe for StencilTest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more