Struct gfx_hal::pso::StencilFace
source · [−]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
sourceimpl Clone for StencilFace
impl Clone for StencilFace
sourcefn clone(&self) -> StencilFace
fn clone(&self) -> StencilFace
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 more
sourceimpl Debug for StencilFace
impl Debug for StencilFace
sourceimpl Default for StencilFace
impl Default for StencilFace
sourcefn default() -> StencilFace
fn default() -> StencilFace
Returns the “default value” for a type. Read more
sourceimpl Hash for StencilFace
impl Hash for StencilFace
sourceimpl Ord for StencilFace
impl Ord for StencilFace
sourceimpl PartialEq<StencilFace> for StencilFace
impl PartialEq<StencilFace> for StencilFace
sourcefn eq(&self, other: &StencilFace) -> bool
fn eq(&self, other: &StencilFace) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StencilFace) -> bool
fn ne(&self, other: &StencilFace) -> bool
This method tests for !=
.
sourceimpl PartialOrd<StencilFace> for StencilFace
impl PartialOrd<StencilFace> for StencilFace
sourcefn partial_cmp(&self, other: &StencilFace) -> Option<Ordering>
fn partial_cmp(&self, other: &StencilFace) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
impl Copy for StencilFace
impl Eq for StencilFace
impl StructuralEq for StencilFace
impl StructuralPartialEq for StencilFace
Auto Trait Implementations
impl RefUnwindSafe for StencilFace
impl Send for StencilFace
impl Sync for StencilFace
impl Unpin for StencilFace
impl UnwindSafe for StencilFace
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more