Struct wgpu_hal::Attachment
source · pub struct Attachment<'a, T: DynTextureView + ?Sized> {
pub view: &'a T,
pub usage: TextureUses,
}
Fields§
§view: &'a T
§usage: TextureUses
Contains either a single mutating usage as a target, or a valid combination of read-only usages.
Implementations§
source§impl Attachment<'_, TextureView>
impl Attachment<'_, TextureView>
pub(super) fn make_attachment_key( &self, ops: AttachmentOps, caps: &PrivateCapabilities, ) -> AttachmentKey
source§impl<'a> Attachment<'a, dyn DynTextureView>
impl<'a> Attachment<'a, dyn DynTextureView>
pub fn expect_downcast<B: DynTextureView>(&self) -> Attachment<'a, B>
Trait Implementations§
source§impl<'a, T: Clone + DynTextureView + ?Sized> Clone for Attachment<'a, T>
impl<'a, T: Clone + DynTextureView + ?Sized> Clone for Attachment<'a, T>
source§fn clone(&self) -> Attachment<'a, T>
fn clone(&self) -> Attachment<'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 Attachment<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for Attachment<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for Attachment<'a, T>where
T: ?Sized,
impl<'a, T> Sync for Attachment<'a, T>where
T: ?Sized,
impl<'a, T> Unpin for Attachment<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for Attachment<'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
)