Struct gfx_hal::pso::StencilTest
source · [−]pub struct StencilTest {
pub faces: Sided<StencilFace>,
pub read_masks: StencilValues,
pub write_masks: StencilValues,
pub reference_values: StencilValues,
}
Expand description
Defines a stencil test. Stencil testing is an operation performed to cull fragments; the new fragment is tested against the value held in the stencil buffer, and if the test fails the fragment is discarded.
Fields
faces: Sided<StencilFace>
Operations for stencil faces.
read_masks: StencilValues
Masks that are ANDd with both the stencil buffer value and the reference value when they are read before doing the stencil test.
write_masks: StencilValues
Mask that are ANDd with the stencil value before writing to the stencil buffer.
reference_values: StencilValues
The reference values used for stencil tests.
Trait Implementations
sourceimpl Clone for StencilTest
impl Clone for StencilTest
sourcefn clone(&self) -> StencilTest
fn clone(&self) -> StencilTest
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 StencilTest
impl Debug for StencilTest
sourceimpl Default for StencilTest
impl Default for StencilTest
sourceimpl Hash for StencilTest
impl Hash for StencilTest
sourceimpl PartialEq<StencilTest> for StencilTest
impl PartialEq<StencilTest> for StencilTest
sourcefn eq(&self, other: &StencilTest) -> bool
fn eq(&self, other: &StencilTest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StencilTest) -> bool
fn ne(&self, other: &StencilTest) -> bool
This method tests for !=
.
impl Copy for StencilTest
impl Eq for StencilTest
impl StructuralEq for StencilTest
impl StructuralPartialEq for StencilTest
Auto Trait Implementations
impl RefUnwindSafe for StencilTest
impl Send for StencilTest
impl Sync for StencilTest
impl Unpin for StencilTest
impl UnwindSafe for StencilTest
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