pub enum StencilTest {
None,
Inside,
Outside,
}Expand description
Stencil test mode baked into a content pipeline. Selected per masked part
from the target’s visible_inside_mask polarity.
Hashable because it is half of the renderer’s pipeline cache key.
Variants§
None
Not masked — compare Always (draw everywhere, ignore stencil).
Inside
visible_inside_mask == true: draw where coverage is set (NotEqual, 0).
Outside
visible_inside_mask == false: draw where coverage is clear (Equal, 0).
Trait Implementations§
Source§impl Clone for StencilTest
impl Clone for StencilTest
impl Copy for StencilTest
Source§impl Debug for StencilTest
impl Debug for StencilTest
impl Eq for StencilTest
Source§impl Hash for StencilTest
impl Hash for StencilTest
Source§impl PartialEq for StencilTest
impl PartialEq 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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.