Skip to main content

DepthAttachment

Type Alias DepthAttachment 

Source
pub type DepthAttachment<'a> = Attachment<'a, f32>;
Expand description

A RenderTarget’s depth attachment: clear value is a plain f32 depth, matching wgpu::RenderPassDepthStencilAttachment’s depth op.

Aliased Type§

pub struct DepthAttachment<'a> {
    pub view: &'a TextureView,
    pub load: LoadOp<f32>,
    pub store: StoreOp,
}

Fields§

§view: &'a TextureView

The view rendered into.

§load: LoadOp<f32>

How the attachment’s prior contents are treated at pass start.

§store: StoreOp

Whether the attachment’s contents are kept or discarded at pass end.