pub struct DepthStencilState {
pub depth_test_enable: bool,
pub depth_write_enable: bool,
pub depth_compare_op: CompareOp,
pub depth_bounds_test_enable: bool,
pub stencil_test_enable: bool,
pub min_depth_bounds: f32,
pub max_depth_bounds: f32,
}Fields§
§depth_test_enable: bool§depth_write_enable: bool§depth_compare_op: CompareOp§depth_bounds_test_enable: bool§stencil_test_enable: bool§min_depth_bounds: f32§max_depth_bounds: f32Implementations§
Source§impl DepthStencilState
impl DepthStencilState
pub fn default() -> Self
pub fn with_depth_test_enable(self, enable: bool) -> Self
pub fn with_depth_write_enable(self, enable: bool) -> Self
pub fn with_depth_compare_op(self, op: CompareOp) -> Self
pub fn with_depth_bounds_test_enable(self, enable: bool) -> Self
pub fn with_stencil_test_enable(self, enable: bool) -> Self
pub fn with_depth_bounds(self, min: f32, max: f32) -> Self
pub fn to_vk_depth_stencil_state( &self, ) -> PipelineDepthStencilStateCreateInfo<'_>
Auto Trait Implementations§
impl Freeze for DepthStencilState
impl RefUnwindSafe for DepthStencilState
impl Send for DepthStencilState
impl Sync for DepthStencilState
impl Unpin for DepthStencilState
impl UnsafeUnpin for DepthStencilState
impl UnwindSafe for DepthStencilState
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