pub struct StencilFace {
pub fun: Comparison,
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: Comparison
Comparison function to use to determine if the stencil test passes.
op_fail: StencilOp
What operation to do if the stencil test fails.
op_depth_fail: StencilOp
What operation to do if the stencil test passes but the depth test fails.
op_pass: StencilOp
What operation to do if both the depth and stencil test pass.
Trait Implementations§
Source§impl Clone for StencilFace
impl Clone for StencilFace
Source§fn clone(&self) -> StencilFace
fn clone(&self) -> StencilFace
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 StencilFace
impl Debug for StencilFace
Source§impl Default for StencilFace
impl Default for StencilFace
Source§fn default() -> StencilFace
fn default() -> StencilFace
Returns the “default value” for a type. Read more
Source§impl Hash for StencilFace
impl Hash for StencilFace
Source§impl Ord for StencilFace
impl Ord for StencilFace
Source§fn cmp(&self, other: &StencilFace) -> Ordering
fn cmp(&self, other: &StencilFace) -> 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 StencilFace
impl PartialEq for StencilFace
Source§impl PartialOrd for StencilFace
impl PartialOrd for StencilFace
impl Copy for StencilFace
impl Eq for StencilFace
impl StructuralPartialEq for StencilFace
Auto Trait Implementations§
impl Freeze for StencilFace
impl RefUnwindSafe for StencilFace
impl Send for StencilFace
impl Sync for StencilFace
impl Unpin for StencilFace
impl UnwindSafe for StencilFace
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