Struct three::custom::state::StencilSide
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: 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
impl Clone for StencilSide
fn clone(&self) -> StencilSide
fn clone(&self) -> StencilSide
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 moreimpl Debug for StencilSide
impl Debug for StencilSide
impl Default for StencilSide
impl Default for StencilSide
fn default() -> StencilSide
fn default() -> StencilSide
Returns the “default value” for a type. Read more
impl Hash for StencilSide
impl Hash for StencilSide
impl Ord for StencilSide
impl Ord for StencilSide
fn cmp(&self, other: &StencilSide) -> Ordering
fn cmp(&self, other: &StencilSide) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
impl PartialEq<StencilSide> for StencilSide
impl PartialEq<StencilSide> for StencilSide
fn eq(&self, other: &StencilSide) -> bool
fn eq(&self, other: &StencilSide) -> bool
impl PartialOrd<StencilSide> for StencilSide
impl PartialOrd<StencilSide> for StencilSide
fn partial_cmp(&self, other: &StencilSide) -> Option<Ordering>
fn partial_cmp(&self, other: &StencilSide) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for StencilSide
impl Eq for StencilSide
impl StructuralEq for StencilSide
impl StructuralPartialEq for StencilSide
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
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
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.