struct ArcRenderPassColorAttachment {
pub view: Arc<TextureView>,
pub resolve_target: Option<Arc<TextureView>>,
pub load_op: LoadOp<Color>,
pub store_op: StoreOp,
}
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<Color>
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.
Implementations§
source§impl ArcRenderPassColorAttachment
impl ArcRenderPassColorAttachment
fn hal_ops(&self) -> AttachmentOps
fn clear_value(&self) -> 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