Struct gfx_hal::pso::DepthStencilDesc
source · [−]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
sourceimpl 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
sourceimpl Clone for DepthStencilDesc
impl Clone for DepthStencilDesc
sourcefn clone(&self) -> DepthStencilDesc
fn clone(&self) -> DepthStencilDesc
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DepthStencilDesc
impl Debug for DepthStencilDesc
sourceimpl Default for DepthStencilDesc
impl Default for DepthStencilDesc
sourcefn default() -> DepthStencilDesc
fn default() -> DepthStencilDesc
Returns the “default value” for a type. Read more
sourceimpl Hash for DepthStencilDesc
impl Hash for DepthStencilDesc
sourceimpl PartialEq<DepthStencilDesc> for DepthStencilDesc
impl PartialEq<DepthStencilDesc> for DepthStencilDesc
sourcefn eq(&self, other: &DepthStencilDesc) -> bool
fn eq(&self, other: &DepthStencilDesc) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DepthStencilDesc) -> bool
fn ne(&self, other: &DepthStencilDesc) -> bool
This method tests for !=
.
impl Copy for DepthStencilDesc
impl Eq for DepthStencilDesc
impl StructuralEq for DepthStencilDesc
impl StructuralPartialEq for DepthStencilDesc
Auto Trait Implementations
impl RefUnwindSafe for DepthStencilDesc
impl Send for DepthStencilDesc
impl Sync for DepthStencilDesc
impl Unpin for DepthStencilDesc
impl UnwindSafe for DepthStencilDesc
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more