pub struct DepthStencilDesc(/* private fields */);Expand description
Wrapper around D3D12_DEPTH_STENCIL_DESC structure
Implementations§
Source§impl DepthStencilDesc
impl DepthStencilDesc
pub fn set_depth_enable(&mut self, depth_enable: bool) -> &mut Self
pub fn with_depth_enable(self, depth_enable: bool) -> Self
pub fn depth_enable(&self) -> bool
pub fn set_depth_write_mask( &mut self, depth_write_mask: DepthWriteMask, ) -> &mut Self
pub fn with_depth_write_mask(self, depth_write_mask: DepthWriteMask) -> Self
pub fn depth_write_mask(&self) -> DepthWriteMask
pub fn set_depth_func(&mut self, depth_func: ComparisonFunc) -> &mut Self
pub fn with_depth_func(self, depth_func: ComparisonFunc) -> Self
pub fn depth_func(&self) -> ComparisonFunc
pub fn set_stencil_enable(&mut self, stencil_enable: bool) -> &mut Self
pub fn with_stencil_enable(self, stencil_enable: bool) -> Self
pub fn stencil_enable(&self) -> bool
pub fn set_stencil_read_mask(&mut self, stencil_read_mask: u8) -> &mut Self
pub fn with_stencil_read_mask(self, stencil_read_mask: u8) -> Self
pub fn stencil_read_mask(&self) -> u8
pub fn set_stencil_write_mask(&mut self, stencil_write_mask: u8) -> &mut Self
pub fn with_stencil_write_mask(self, stencil_write_mask: u8) -> Self
pub fn stencil_write_mask(&self) -> u8
pub fn set_front_face(&mut self, front_face: DepthStencilOpDesc) -> &mut Self
pub fn with_front_face(self, front_face: DepthStencilOpDesc) -> Self
pub fn front_face(&self) -> DepthStencilOpDesc
pub fn set_back_face(&mut self, back_face: DepthStencilOpDesc) -> &mut Self
pub fn with_back_face(self, back_face: DepthStencilOpDesc) -> Self
pub fn back_face(&self) -> DepthStencilOpDesc
Trait Implementations§
Source§impl Clone for DepthStencilDesc
impl Clone for DepthStencilDesc
Source§fn clone(&self) -> DepthStencilDesc
fn clone(&self) -> DepthStencilDesc
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 moreSource§impl Debug for DepthStencilDesc
impl Debug for DepthStencilDesc
Source§impl Default for DepthStencilDesc
impl Default for DepthStencilDesc
Source§impl Hash for DepthStencilDesc
impl Hash for DepthStencilDesc
Source§impl Ord for DepthStencilDesc
impl Ord for DepthStencilDesc
Source§fn cmp(&self, other: &DepthStencilDesc) -> Ordering
fn cmp(&self, other: &DepthStencilDesc) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DepthStencilDesc
impl PartialEq for DepthStencilDesc
Source§impl PartialOrd for DepthStencilDesc
impl PartialOrd for DepthStencilDesc
impl Copy for DepthStencilDesc
impl Eq for DepthStencilDesc
impl StructuralPartialEq for DepthStencilDesc
Auto Trait Implementations§
impl Freeze for DepthStencilDesc
impl RefUnwindSafe for DepthStencilDesc
impl Send for DepthStencilDesc
impl Sync for DepthStencilDesc
impl Unpin for DepthStencilDesc
impl UnwindSafe for DepthStencilDesc
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