pub struct DepthStencilPolicy {
pub depth_write_enabled: bool,
pub depth_compare: CompareFunction,
}Expand description
The depth-test policy of a lit pipeline, without the attachment’s format.
The format belongs to the target a pipeline is specialized for
(SurfaceKey::depth_stencil_format), not to the policy: one policy
serves every target, and the variant’s descriptor fills the format in when
it builds the pipeline. The options could not carry it and stay a
policy — a pipeline built for one attachment’s format cannot bind against a
pass recording into another.
Fields§
§depth_write_enabled: boolWhether the pipeline writes the depth of the fragments it draws, or leaves the attachment’s records to the draws that wrote them.
depth_compare: CompareFunctionThe comparison a fragment’s depth passes against the attachment’s record with.
Implementations§
Trait Implementations§
Source§impl Clone for DepthStencilPolicy
impl Clone for DepthStencilPolicy
impl Copy for DepthStencilPolicy
Source§impl Debug for DepthStencilPolicy
impl Debug for DepthStencilPolicy
Source§impl Default for DepthStencilPolicy
impl Default for DepthStencilPolicy
impl Eq for DepthStencilPolicy
Source§impl Hash for DepthStencilPolicy
impl Hash for DepthStencilPolicy
Source§impl PartialEq for DepthStencilPolicy
impl PartialEq for DepthStencilPolicy
impl StructuralPartialEq for DepthStencilPolicy
Auto Trait Implementations§
impl Forget for DepthStencilPolicy
impl Freeze for DepthStencilPolicy
impl RefUnwindSafe for DepthStencilPolicy
impl Send for DepthStencilPolicy
impl Sync for DepthStencilPolicy
impl Unpin for DepthStencilPolicy
impl UnsafeUnpin for DepthStencilPolicy
impl UnwindSafe for DepthStencilPolicy
Blanket Implementations§
impl<T> AsId for T
impl<T> AsIdSalt for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more