Struct vulkano::pipeline::graphics::depth_stencil::DepthStencilState
source · [−]pub struct DepthStencilState {
pub depth: Option<DepthState>,
pub depth_bounds: Option<DepthBoundsState>,
pub stencil: Option<StencilState>,
}
Expand description
The state in a graphics pipeline describing how the depth, depth bounds and stencil tests should behave.
Fields
depth: Option<DepthState>
The state of the depth test.
If set to None
, the depth test is disabled, all fragments will pass and no depth writes
are performed.
depth_bounds: Option<DepthBoundsState>
The state of the depth bounds test.
If set to None
, the depth bounds test is disabled, all fragments will pass.
stencil: Option<StencilState>
The state of the stencil test.
If set to None
, the stencil test is disabled, all fragments will pass and no stencil
writes are performed.
Implementations
sourceimpl DepthStencilState
impl DepthStencilState
sourcepub fn disabled() -> Self
pub fn disabled() -> Self
Creates a DepthStencilState
where all tests are disabled and have no effect.
sourcepub fn simple_depth_test() -> Self
pub fn simple_depth_test() -> Self
Creates a DepthStencilState
with a Less
depth test, depth_write
set to true, and other
tests disabled.
Trait Implementations
sourceimpl Clone for DepthStencilState
impl Clone for DepthStencilState
sourcefn clone(&self) -> DepthStencilState
fn clone(&self) -> DepthStencilState
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 moresourceimpl Debug for DepthStencilState
impl Debug for DepthStencilState
sourceimpl Default for DepthStencilState
impl Default for DepthStencilState
sourcefn default() -> Self
fn default() -> Self
Returns DepthStencilState::disabled()
.
Auto Trait Implementations
impl RefUnwindSafe for DepthStencilState
impl Send for DepthStencilState
impl Sync for DepthStencilState
impl Unpin for DepthStencilState
impl UnwindSafe for DepthStencilState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more