Struct wgpu::RenderPassDepthStencilAttachment
source · pub struct RenderPassDepthStencilAttachment<'tex> {
pub view: &'tex TextureView,
pub depth_ops: Option<Operations<f32>>,
pub stencil_ops: Option<Operations<u32>>,
}
Expand description
Describes a depth/stencil attachment to a RenderPass
.
For use with RenderPassDescriptor
.
Corresponds to WebGPU GPURenderPassDepthStencilAttachment
.
Fields§
§view: &'tex TextureView
The view to use as an attachment.
depth_ops: Option<Operations<f32>>
What operations will be performed on the depth part of the attachment.
stencil_ops: Option<Operations<u32>>
What operations will be performed on the stencil part of the attachment.
Trait Implementations§
source§impl<'tex> Clone for RenderPassDepthStencilAttachment<'tex>
impl<'tex> Clone for RenderPassDepthStencilAttachment<'tex>
source§fn clone(&self) -> RenderPassDepthStencilAttachment<'tex>
fn clone(&self) -> RenderPassDepthStencilAttachment<'tex>
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 moreAuto Trait Implementations§
impl<'tex> !RefUnwindSafe for RenderPassDepthStencilAttachment<'tex>
impl<'tex> Send for RenderPassDepthStencilAttachment<'tex>
impl<'tex> Sync for RenderPassDepthStencilAttachment<'tex>
impl<'tex> Unpin for RenderPassDepthStencilAttachment<'tex>
impl<'tex> !UnwindSafe for RenderPassDepthStencilAttachment<'tex>
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