Struct wgpu_core::command::render::ArcRenderPassColorAttachment
source · struct ArcRenderPassColorAttachment {
pub view: Arc<TextureView>,
pub resolve_target: Option<Arc<TextureView>>,
pub load_op: LoadOp,
pub store_op: StoreOp,
pub clear_value: Color,
}
Expand description
Describes a color attachment to a render pass.
Fields§
§view: Arc<TextureView>
The view to use as an attachment.
resolve_target: Option<Arc<TextureView>>
The view that will receive the resolved output if multisampling is used.
load_op: LoadOp
Operation to perform to the output attachment at the start of a renderpass.
This must be clear if it is the first renderpass rendering to a swap chain image.
store_op: StoreOp
Operation to perform to the output attachment at the end of a renderpass.
clear_value: Color
If load_op is LoadOp::Clear
, the attachment will be cleared to this
color.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArcRenderPassColorAttachment
impl !RefUnwindSafe for ArcRenderPassColorAttachment
impl Send for ArcRenderPassColorAttachment
impl Sync for ArcRenderPassColorAttachment
impl Unpin for ArcRenderPassColorAttachment
impl !UnwindSafe for ArcRenderPassColorAttachment
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