pub struct StencilOpState { /* private fields */ }Implementations§
Source§impl StencilOpState
impl StencilOpState
pub fn new() -> Self
Sourcepub fn with_fail_op(self, value: StencilOp) -> Self
pub fn with_fail_op(self, value: StencilOp) -> Self
The action performed on samples that fail the stencil test.
Sourcepub fn with_pass_op(self, value: StencilOp) -> Self
pub fn with_pass_op(self, value: StencilOp) -> Self
The action performed on samples that pass the depth and stencil tests.
Sourcepub fn with_depth_fail_op(self, value: StencilOp) -> Self
pub fn with_depth_fail_op(self, value: StencilOp) -> Self
The action performed on samples that pass the stencil test and fail the depth test.
Sourcepub fn compare_op(self, value: CompareOp) -> Self
pub fn compare_op(self, value: CompareOp) -> Self
The comparison operator used in the stencil test.
Trait Implementations§
Source§impl Default for StencilOpState
impl Default for StencilOpState
Source§fn default() -> StencilOpState
fn default() -> StencilOpState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StencilOpState
impl RefUnwindSafe for StencilOpState
impl Send for StencilOpState
impl Sync for StencilOpState
impl Unpin for StencilOpState
impl UnsafeUnpin for StencilOpState
impl UnwindSafe for StencilOpState
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