#[repr(C)]pub struct RenderPassColorAttachment<TV = TextureViewId> {
pub view: TV,
pub resolve_target: Option<TV>,
pub load_op: LoadOp<Color>,
pub store_op: StoreOp,
}
Expand description
Describes a color attachment to a render pass.
Fields§
§view: TV
The view to use as an attachment.
resolve_target: Option<TV>
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 RenderPassColorAttachment<Arc<TextureView>>
impl RenderPassColorAttachment<Arc<TextureView>>
fn hal_ops(&self) -> AttachmentOps
fn clear_value(&self) -> Color
Trait Implementations§
source§impl<TV: Clone> Clone for RenderPassColorAttachment<TV>
impl<TV: Clone> Clone for RenderPassColorAttachment<TV>
source§fn clone(&self) -> RenderPassColorAttachment<TV>
fn clone(&self) -> RenderPassColorAttachment<TV>
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<TV: Debug> Debug for RenderPassColorAttachment<TV>
impl<TV: Debug> Debug for RenderPassColorAttachment<TV>
source§impl<'de, TV> Deserialize<'de> for RenderPassColorAttachment<TV>where
TV: Deserialize<'de>,
impl<'de, TV> Deserialize<'de> for RenderPassColorAttachment<TV>where
TV: Deserialize<'de>,
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
source§impl<TV: PartialEq> PartialEq for RenderPassColorAttachment<TV>
impl<TV: PartialEq> PartialEq for RenderPassColorAttachment<TV>
source§fn eq(&self, other: &RenderPassColorAttachment<TV>) -> bool
fn eq(&self, other: &RenderPassColorAttachment<TV>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.source§impl<TV> Serialize for RenderPassColorAttachment<TV>where
TV: Serialize,
impl<TV> Serialize for RenderPassColorAttachment<TV>where
TV: Serialize,
impl<TV> StructuralPartialEq for RenderPassColorAttachment<TV>
Auto Trait Implementations§
impl<TV> Freeze for RenderPassColorAttachment<TV>where
TV: Freeze,
impl<TV> RefUnwindSafe for RenderPassColorAttachment<TV>where
TV: RefUnwindSafe,
impl<TV> Send for RenderPassColorAttachment<TV>where
TV: Send,
impl<TV> Sync for RenderPassColorAttachment<TV>where
TV: Sync,
impl<TV> Unpin for RenderPassColorAttachment<TV>where
TV: Unpin,
impl<TV> UnwindSafe for RenderPassColorAttachment<TV>where
TV: UnwindSafe,
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
)