Struct wgpu_core::command::RenderPassColorAttachment
source · #[repr(C)]pub struct RenderPassColorAttachment {
pub view: TextureViewId,
pub resolve_target: Option<TextureViewId>,
pub load_op: LoadOp,
pub store_op: StoreOp,
pub clear_value: Color,
}
Expand description
Describes a color attachment to a render pass.
Fields§
§view: TextureViewId
The view to use as an attachment.
resolve_target: Option<TextureViewId>
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§
source§impl Clone for RenderPassColorAttachment
impl Clone for RenderPassColorAttachment
source§fn clone(&self) -> RenderPassColorAttachment
fn clone(&self) -> RenderPassColorAttachment
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 moresource§impl Debug for RenderPassColorAttachment
impl Debug for RenderPassColorAttachment
source§impl<'de> Deserialize<'de> for RenderPassColorAttachment
impl<'de> Deserialize<'de> for RenderPassColorAttachment
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for RenderPassColorAttachment
Auto Trait Implementations§
impl Freeze for RenderPassColorAttachment
impl RefUnwindSafe for RenderPassColorAttachment
impl Send for RenderPassColorAttachment
impl Sync for RenderPassColorAttachment
impl Unpin for RenderPassColorAttachment
impl UnwindSafe for RenderPassColorAttachment
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
)