Struct wgpu::hal::Attachment
source · pub struct Attachment<'a, A>where
A: Api,{
pub view: &'a <A as Api>::TextureView,
pub usage: TextureUses,
}
Fields§
§view: &'a <A as Api>::TextureView
§usage: TextureUses
Contains either a single mutating usage as a target, or a valid combination of read-only usages.
Trait Implementations§
source§impl<A> Clone for Attachment<'_, A>where
A: Api,
impl<A> Clone for Attachment<'_, A>where
A: Api,
source§fn clone(&self) -> Attachment<'_, A>
fn clone(&self) -> Attachment<'_, A>
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, A> RefUnwindSafe for Attachment<'a, A>
impl<'a, A> Send for Attachment<'a, A>
impl<'a, A> Sync for Attachment<'a, A>
impl<'a, A> Unpin for Attachment<'a, A>
impl<'a, A> UnwindSafe for Attachment<'a, A>
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