pub struct DepthStencilMode {
pub back: StencilMode,
pub bounds_test: bool,
pub compare_op: CompareOp,
pub depth_test: bool,
pub depth_write: bool,
pub front: StencilMode,
pub min: OrderedFloat<f32>,
pub max: OrderedFloat<f32>,
pub stencil_test: bool,
}Expand description
Specifies the depth bounds tests, stencil test, and depth test pipeline state.
Fields§
§back: StencilModeControl parameters of the stencil test.
bounds_test: boolControls whether depth bounds testing is enabled.
compare_op: CompareOpA value specifying the comparison operator to use in the depth comparison step of the depth test.
depth_test: boolControls whether depth testing is enabled.
depth_write: boolControls whether depth writes are enabled when depth_test is true.
Depth writes are always disabled when depth_test is false.
front: StencilModeControl parameters of the stencil test.
min: OrderedFloat<f32>Minimum depth bound used in the depth bounds test.
max: OrderedFloat<f32>Maximum depth bound used in the depth bounds test.
stencil_test: boolControls whether stencil testing is enabled.
Implementations§
Source§impl DepthStencilMode
impl DepthStencilMode
Sourcepub const DEPTH_READ: Self
pub const DEPTH_READ: Self
A commonly used depth/stencil mode
Sourcepub const DEPTH_WRITE: Self
pub const DEPTH_WRITE: Self
A commonly used depth/stencil mode
Sourcepub fn new() -> DepthStencilModeBuilder
pub fn new() -> DepthStencilModeBuilder
Specifies a default depth/stencil mode which is equal to DepthStencilMode::IGNORE.
Trait Implementations§
Source§impl Clone for DepthStencilMode
impl Clone for DepthStencilMode
Source§fn clone(&self) -> DepthStencilMode
fn clone(&self) -> DepthStencilMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DepthStencilMode
Source§impl Debug for DepthStencilMode
impl Debug for DepthStencilMode
impl Eq for DepthStencilMode
Source§impl From<DepthStencilMode> for PipelineDepthStencilStateCreateInfo<'_>
impl From<DepthStencilMode> for PipelineDepthStencilStateCreateInfo<'_>
Source§fn from(mode: DepthStencilMode) -> Self
fn from(mode: DepthStencilMode) -> Self
Source§impl Hash for DepthStencilMode
impl Hash for DepthStencilMode
Source§impl Ord for DepthStencilMode
impl Ord for DepthStencilMode
Source§fn cmp(&self, other: &DepthStencilMode) -> Ordering
fn cmp(&self, other: &DepthStencilMode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for DepthStencilMode
impl PartialEq for DepthStencilMode
Source§fn eq(&self, other: &DepthStencilMode) -> bool
fn eq(&self, other: &DepthStencilMode) -> bool
self and other values to be equal, and is used by ==.