pub struct StencilMode {
pub fail_op: StencilOp,
pub pass_op: StencilOp,
pub depth_fail_op: StencilOp,
pub compare_op: CompareOp,
pub compare_mask: u32,
pub write_mask: u32,
pub reference: u32,
}Expand description
Specifies stencil mode during rasterization.
See stencil test.
Fields§
§fail_op: StencilOpThe action performed on samples that fail the stencil test.
pass_op: StencilOpThe action performed on samples that pass both the depth and stencil tests.
depth_fail_op: StencilOpThe action performed on samples that pass the stencil test and fail the depth test.
compare_op: CompareOpThe comparison operator used in the stencil test.
compare_mask: u32The bits of the unsigned integer stencil values participating in the stencil test.
write_mask: u32The bits of the unsigned integer stencil values updated by the stencil test in the stencil framebuffer attachment.
reference: u32An unsigned integer stencil reference value that is used in the unsigned stencil comparison.
Implementations§
Source§impl StencilMode
impl StencilMode
Trait Implementations§
Source§impl Clone for StencilMode
impl Clone for StencilMode
Source§fn clone(&self) -> StencilMode
fn clone(&self) -> StencilMode
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StencilMode
impl Debug for StencilMode
Source§impl Default for StencilMode
impl Default for StencilMode
Source§impl From<StencilMode> for StencilOpState
impl From<StencilMode> for StencilOpState
Source§fn from(mode: StencilMode) -> Self
fn from(mode: StencilMode) -> Self
Converts to this type from the input type.
Source§impl Hash for StencilMode
impl Hash for StencilMode
Source§impl Ord for StencilMode
impl Ord for StencilMode
Source§impl PartialEq for StencilMode
impl PartialEq for StencilMode
Source§impl PartialOrd for StencilMode
impl PartialOrd for StencilMode
impl Copy for StencilMode
impl Eq for StencilMode
impl StructuralPartialEq for StencilMode
Auto Trait Implementations§
impl Freeze for StencilMode
impl RefUnwindSafe for StencilMode
impl Send for StencilMode
impl Sync for StencilMode
impl Unpin for StencilMode
impl UnwindSafe for StencilMode
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)