Struct wgpu::core::command::RenderPassColorAttachment
source · #[repr(C)]pub struct RenderPassColorAttachment {
pub view: Id<TextureView>,
pub resolve_target: Option<Id<TextureView>>,
pub channel: PassChannel<Color>,
}
Available on
wgpu_core
only.Expand description
Describes a color attachment to a render pass.
Fields§
§view: Id<TextureView>
The view to use as an attachment.
resolve_target: Option<Id<TextureView>>
The view that will receive the resolved output if multisampling is used.
channel: PassChannel<Color>
What operations will be performed on this color attachment.
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<RenderPassColorAttachment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<RenderPassColorAttachment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for RenderPassColorAttachment
impl PartialEq for RenderPassColorAttachment
source§fn eq(&self, other: &RenderPassColorAttachment) -> bool
fn eq(&self, other: &RenderPassColorAttachment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RenderPassColorAttachment
impl Serialize for RenderPassColorAttachment
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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