Struct gfx_core::state::StencilSide [−][src]
pub struct StencilSide { pub fun: Comparison, pub mask_read: u8, pub mask_write: u8, pub op_fail: StencilOp, pub op_depth_fail: StencilOp, pub op_pass: StencilOp, }
Complete stencil state for a given side of a face.
Fields
fun: Comparison
Comparison function to use to determine if the stencil test passes.
mask_read: u8
A mask that is ANDd with both the stencil buffer value and the reference value when they are read before doing the stencil test.
mask_write: u8
A mask that is ANDd with the stencil value before writing to the stencil buffer.
op_fail: StencilOp
What operation to do if the stencil test fails.
op_depth_fail: StencilOp
What operation to do if the stenil test passes but the depth test fails.
op_pass: StencilOp
What operation to do if both the depth and stencil test pass.
Trait Implementations
impl Clone for StencilSide
[src][+]
impl Copy for StencilSide
[src]
impl Debug for StencilSide
[src][+]
impl Default for StencilSide
[src][+]
impl Eq for StencilSide
[src]
impl Hash for StencilSide
[src][+]
impl Ord for StencilSide
[src][+]
impl PartialEq<StencilSide> for StencilSide
[src][+]
impl PartialOrd<StencilSide> for StencilSide
[src][+]
impl StructuralEq for StencilSide
[src]
impl StructuralPartialEq for StencilSide
[src]
Auto Trait Implementations
impl RefUnwindSafe for StencilSide
impl Send for StencilSide
impl Sync for StencilSide
impl Unpin for StencilSide
impl UnwindSafe for StencilSide
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,