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> Freeze for RenderPassDepthStencilAttachment<'tex>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)