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,
}Expand description
Complete stencil state for a given side of a face.
Fields§
§fun: ComparisonComparison function to use to determine if the stencil test passes.
mask_read: u8A 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: u8A mask that is ANDd with the stencil value before writing to the stencil buffer.
op_fail: StencilOpWhat operation to do if the stencil test fails.
op_depth_fail: StencilOpWhat operation to do if the stenil test passes but the depth test fails.
op_pass: StencilOpWhat operation to do if both the depth and stencil test pass.
Trait Implementations§
Source§impl Clone for StencilSide
impl Clone for StencilSide
Source§fn clone(&self) -> StencilSide
fn clone(&self) -> StencilSide
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 StencilSide
impl Debug for StencilSide
Source§impl Default for StencilSide
impl Default for StencilSide
Source§fn default() -> StencilSide
fn default() -> StencilSide
Returns the “default value” for a type. Read more
Source§impl Hash for StencilSide
impl Hash for StencilSide
Source§impl Ord for StencilSide
impl Ord for StencilSide
Source§fn cmp(&self, other: &StencilSide) -> Ordering
fn cmp(&self, other: &StencilSide) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StencilSide
impl PartialEq for StencilSide
Source§impl PartialOrd for StencilSide
impl PartialOrd for StencilSide
impl Copy for StencilSide
impl Eq for StencilSide
impl StructuralPartialEq for StencilSide
Auto Trait Implementations§
impl Freeze for StencilSide
impl RefUnwindSafe for StencilSide
impl Send for StencilSide
impl Sync for StencilSide
impl Unpin for StencilSide
impl UnwindSafe for StencilSide
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