pub struct DepthStencilDesc {
pub depth: Option<DepthTest>,
pub depth_bounds: bool,
pub stencil: Option<StencilTest>,
}
Expand description
PSO depth-stencil target descriptor.
Fields§
§depth: Option<DepthTest>
Optional depth testing/writing.
depth_bounds: bool
Enable depth bounds testing.
stencil: Option<StencilTest>
Stencil test/write.
Implementations§
Source§impl DepthStencilDesc
impl DepthStencilDesc
Sourcepub fn uses_depth(&self) -> bool
pub fn uses_depth(&self) -> bool
Returns true if the descriptor assumes the depth attachment.
Sourcepub fn uses_stencil(&self) -> bool
pub fn uses_stencil(&self) -> bool
Returns true if the descriptor assumes the stencil attachment.
Trait Implementations§
Source§impl Clone for DepthStencilDesc
impl Clone for DepthStencilDesc
Source§fn clone(&self) -> DepthStencilDesc
fn clone(&self) -> DepthStencilDesc
Returns a copy 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§fn default() -> DepthStencilDesc
fn default() -> DepthStencilDesc
Returns the “default value” for a type. Read more
Source§impl Hash for DepthStencilDesc
impl Hash for DepthStencilDesc
Source§impl PartialEq for DepthStencilDesc
impl PartialEq 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