Struct wgpu_hal::ColorAttachment
source · pub struct ColorAttachment<'a, T: DynTextureView + ?Sized> {
pub target: Attachment<'a, T>,
pub resolve_target: Option<Attachment<'a, T>>,
pub ops: AttachmentOps,
pub clear_value: Color,
}
Fields§
§target: Attachment<'a, T>
§resolve_target: Option<Attachment<'a, T>>
§ops: AttachmentOps
§clear_value: Color
Implementations§
source§impl ColorAttachment<'_, TextureView>
impl ColorAttachment<'_, TextureView>
pub(super) unsafe fn make_vk_clear_color(&self) -> ClearColorValue
source§impl<'a> ColorAttachment<'a, dyn DynTextureView>
impl<'a> ColorAttachment<'a, dyn DynTextureView>
pub fn expect_downcast<B: DynTextureView>(&self) -> ColorAttachment<'a, B>
Trait Implementations§
source§impl<'a, T: Clone + DynTextureView + ?Sized> Clone for ColorAttachment<'a, T>
impl<'a, T: Clone + DynTextureView + ?Sized> Clone for ColorAttachment<'a, T>
source§fn clone(&self) -> ColorAttachment<'a, T>
fn clone(&self) -> ColorAttachment<'a, T>
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 moreAuto Trait Implementations§
impl<'a, T> Freeze for ColorAttachment<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for ColorAttachment<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for ColorAttachment<'a, T>where
T: ?Sized,
impl<'a, T> Sync for ColorAttachment<'a, T>where
T: ?Sized,
impl<'a, T> Unpin for ColorAttachment<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for ColorAttachment<'a, T>where
T: RefUnwindSafe + ?Sized,
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
)