pub struct PipelineDepthStencilStateCreateInfo(/* private fields */);
Expand description
Structure specifying parameters of a newly created pipeline depth stencil state
Implementations§
Source§impl PipelineDepthStencilStateCreateInfo
impl PipelineDepthStencilStateCreateInfo
pub const fn new() -> Self
pub const unsafe fn from_raw(raw: VkPipelineDepthStencilStateCreateInfo) -> Self
pub const fn into_raw(self) -> VkPipelineDepthStencilStateCreateInfo
Sourcepub const fn config_depth(
self,
compare_op: Option<CompareOp>,
write_enable: bool,
) -> Self
pub const fn config_depth( self, compare_op: Option<CompareOp>, write_enable: bool, ) -> Self
Configures depth operation
Controls whether depth testing is enabled, depth writes are enabled, and the comparison operator used in the depth test
Specifying None
to compare_to
disables depth testing
Sourcepub const fn disable_depth_test(self) -> Self
pub const fn disable_depth_test(self) -> Self
Disables depth testing
Sourcepub const fn depth_write(self, enable: bool) -> Self
pub const fn depth_write(self, enable: bool) -> Self
Controls whether depth writes are enabled, or always disabled
Sourcepub const fn depth_bounds(self, bounds: Option<Range<f32>>) -> Self
pub const fn depth_bounds(self, bounds: Option<Range<f32>>) -> Self
Sets depth bounds. Specifying None
to disable depth bounds test
Sourcepub const fn stencil_test(self, enable: bool) -> Self
pub const fn stencil_test(self, enable: bool) -> Self
Controls whether stencil testing is enabled
Sourcepub const fn stencil_state_front(self, state: VkStencilOpState) -> Self
pub const fn stencil_state_front(self, state: VkStencilOpState) -> Self
Sets the state parameters for the front-face stencil test
Sourcepub const fn stencil_state_back(self, state: VkStencilOpState) -> Self
pub const fn stencil_state_back(self, state: VkStencilOpState) -> Self
Sets the state parameters for the back-face stencil test
Trait Implementations§
Source§impl Clone for PipelineDepthStencilStateCreateInfo
impl Clone for PipelineDepthStencilStateCreateInfo
Source§fn clone(&self) -> PipelineDepthStencilStateCreateInfo
fn clone(&self) -> PipelineDepthStencilStateCreateInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PipelineDepthStencilStateCreateInfo
impl RefUnwindSafe for PipelineDepthStencilStateCreateInfo
impl !Send for PipelineDepthStencilStateCreateInfo
impl !Sync for PipelineDepthStencilStateCreateInfo
impl Unpin for PipelineDepthStencilStateCreateInfo
impl UnwindSafe for PipelineDepthStencilStateCreateInfo
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