pub struct DepthStencilState { /* private fields */ }Expand description
The pipeline’s depth-stencil state: whether depth is written, and the test fragments must pass.
Implementations§
Source§impl DepthStencilState
Named constructors for the pipeline state structs.
impl DepthStencilState
Named constructors for the pipeline state structs.
Sourcepub fn writing_depth(format: GpuTextureFormat) -> Self
pub fn writing_depth(format: GpuTextureFormat) -> Self
Source§impl DepthStencilState
impl DepthStencilState
pub fn get_format(&self) -> GpuTextureFormat
pub fn get_mut_format(&mut self) -> &mut GpuTextureFormat
pub fn set_format(&mut self, val: GpuTextureFormat) -> &mut Self
pub fn get_depth_write_enabled(&self) -> bool
pub fn get_mut_depth_write_enabled(&mut self) -> &mut bool
pub fn set_depth_write_enabled(&mut self, val: bool) -> &mut Self
pub fn get_depth_compare(&self) -> CompareFunction
pub fn get_mut_depth_compare(&mut self) -> &mut CompareFunction
pub fn set_depth_compare(&mut self, val: CompareFunction) -> &mut Self
Trait Implementations§
Source§impl Clone for DepthStencilState
impl Clone for DepthStencilState
impl Copy for DepthStencilState
Source§impl Debug for DepthStencilState
impl Debug for DepthStencilState
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