pub struct DepthStencilInfoBuilder { /* private fields */ }Expand description
Builder for DepthStencilInfo.
Implementations§
Source§impl DepthStencilInfoBuilder
impl DepthStencilInfoBuilder
Sourcepub fn back(self, value: StencilMode) -> Self
pub fn back(self, value: StencilMode) -> Self
Control parameters of the stencil test.
Defaults to StencilMode::IGNORE.
Sourcepub fn bounds_test(self, value: bool) -> Self
pub fn bounds_test(self, value: bool) -> Self
Controls whether [depth bounds testing] is enabled.
Sourcepub fn compare_op(self, value: CompareOp) -> Self
pub fn compare_op(self, value: CompareOp) -> Self
A value specifying the comparison operator to use in the [depth comparison] step of the [depth test].
See VkPipelineDepthStencilStateCreateInfo.
Defaults to vk::CompareOp::NEVER.
Sourcepub fn depth_test(self, value: bool) -> Self
pub fn depth_test(self, value: bool) -> Self
Controls whether [depth testing] is enabled.
Sourcepub fn depth_write(self, value: bool) -> Self
pub fn depth_write(self, value: bool) -> Self
Controls whether [depth writes] are enabled when depth_test is true.
Depth writes are always disabled when depth_test is false.
Sourcepub fn front(self, value: StencilMode) -> Self
pub fn front(self, value: StencilMode) -> Self
Control parameters of the stencil test.
Defaults to StencilMode::IGNORE.
Sourcepub fn min<VALUE: Into<OrderedFloat<f32>>>(self, value: VALUE) -> Self
pub fn min<VALUE: Into<OrderedFloat<f32>>>(self, value: VALUE) -> Self
Minimum depth bound used in the [depth bounds test].
Sourcepub fn max<VALUE: Into<OrderedFloat<f32>>>(self, value: VALUE) -> Self
pub fn max<VALUE: Into<OrderedFloat<f32>>>(self, value: VALUE) -> Self
Maximum depth bound used in the [depth bounds test].
Sourcepub fn stencil_test(self, value: bool) -> Self
pub fn stencil_test(self, value: bool) -> Self
Controls whether [stencil testing] is enabled.
Source§impl DepthStencilInfoBuilder
impl DepthStencilInfoBuilder
Sourcepub fn build(self) -> DepthStencilInfo
pub fn build(self) -> DepthStencilInfo
Builds a new DepthStencilInfo.
Trait Implementations§
Source§impl Clone for DepthStencilInfoBuilder
impl Clone for DepthStencilInfoBuilder
Source§fn clone(&self) -> DepthStencilInfoBuilder
fn clone(&self) -> DepthStencilInfoBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DepthStencilInfoBuilder
Source§impl Debug for DepthStencilInfoBuilder
impl Debug for DepthStencilInfoBuilder
Auto Trait Implementations§
impl Freeze for DepthStencilInfoBuilder
impl RefUnwindSafe for DepthStencilInfoBuilder
impl Send for DepthStencilInfoBuilder
impl Sync for DepthStencilInfoBuilder
impl Unpin for DepthStencilInfoBuilder
impl UnsafeUnpin for DepthStencilInfoBuilder
impl UnwindSafe for DepthStencilInfoBuilder
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