pub struct Attachment<'a, V> {
pub view: &'a TextureView,
pub load: LoadOp<V>,
pub store: StoreOp,
}Expand description
One attachment of a RenderTarget: the view rendered into, and the
load/store ops framing that render pass’s access to it.
Generic over the clear-value type (V) because a color attachment’s
clear value is wgpu::Color while a depth attachment’s is f32 — the
same split wgpu::RenderPassColorAttachment/RenderPassDepthStencilAttachment
draw between themselves.
Fields§
§view: &'a TextureViewThe view rendered into.
load: LoadOp<V>How the attachment’s prior contents are treated at pass start.
store: StoreOpWhether the attachment’s contents are kept or discarded at pass end.
Trait Implementations§
Source§impl<'a, V: Clone> Clone for Attachment<'a, V>
impl<'a, V: Clone> Clone for Attachment<'a, V>
Auto Trait Implementations§
impl<'a, V> !RefUnwindSafe for Attachment<'a, V>
impl<'a, V> !UnwindSafe for Attachment<'a, V>
impl<'a, V> Freeze for Attachment<'a, V>
impl<'a, V> Send for Attachment<'a, V>
impl<'a, V> Sync for Attachment<'a, V>
impl<'a, V> Unpin for Attachment<'a, V>
impl<'a, V> UnsafeUnpin for Attachment<'a, V>where
LoadOp<V>: UnsafeUnpin,
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