pub struct ArcRenderPassDepthStencilAttachment {
pub view: Arc<TextureView>,
pub depth: PassChannel<f32, LoadOp, StoreOp>,
pub stencil: PassChannel<u32, LoadOp, StoreOp>,
}
Expand description
Describes a depth/stencil attachment to a render pass.
Fields§
§view: Arc<TextureView>
The view to use as an attachment.
depth: PassChannel<f32, LoadOp, StoreOp>
What operations will be performed on the depth part of the attachment.
stencil: PassChannel<u32, LoadOp, StoreOp>
What operations will be performed on the stencil part of the attachment.
Implementations§
source§impl ArcRenderPassDepthStencilAttachment
impl ArcRenderPassDepthStencilAttachment
sourcefn depth_stencil_read_only(
&self,
aspects: FormatAspects,
) -> Result<(bool, bool), RenderPassErrorInner>
fn depth_stencil_read_only( &self, aspects: FormatAspects, ) -> Result<(bool, bool), RenderPassErrorInner>
Validate the given aspects’ read-only flags against their load and store ops.
When an aspect is read-only, its load and store ops must be
LoadOp::Load
and StoreOp::Store
.
On success, return a pair (depth, stencil)
indicating
whether the depth and stencil passes are read-only.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArcRenderPassDepthStencilAttachment
impl !RefUnwindSafe for ArcRenderPassDepthStencilAttachment
impl Send for ArcRenderPassDepthStencilAttachment
impl Sync for ArcRenderPassDepthStencilAttachment
impl Unpin for ArcRenderPassDepthStencilAttachment
impl !UnwindSafe for ArcRenderPassDepthStencilAttachment
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