Struct wgpu_core::device::AttachmentData
source · pub(crate) struct AttachmentData<T> {
pub colors: ArrayVec<Option<T>, { hal::MAX_COLOR_ATTACHMENTS }>,
pub resolves: ArrayVec<T, { hal::MAX_COLOR_ATTACHMENTS }>,
pub depth_stencil: Option<T>,
}
Fields§
§colors: ArrayVec<Option<T>, { hal::MAX_COLOR_ATTACHMENTS }>
§resolves: ArrayVec<T, { hal::MAX_COLOR_ATTACHMENTS }>
§depth_stencil: Option<T>
Trait Implementations§
source§impl<T: Clone> Clone for AttachmentData<T>
impl<T: Clone> Clone for AttachmentData<T>
source§fn clone(&self) -> AttachmentData<T>
fn clone(&self) -> AttachmentData<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 moresource§impl<T: Debug> Debug for AttachmentData<T>
impl<T: Debug> Debug for AttachmentData<T>
source§impl<'de, T> Deserialize<'de> for AttachmentData<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for AttachmentData<T>where
T: 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<T: Hash> Hash for AttachmentData<T>
impl<T: Hash> Hash for AttachmentData<T>
source§impl<T: PartialEq> PartialEq for AttachmentData<T>
impl<T: PartialEq> PartialEq for AttachmentData<T>
source§fn eq(&self, other: &AttachmentData<T>) -> bool
fn eq(&self, other: &AttachmentData<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> Serialize for AttachmentData<T>where
T: Serialize,
impl<T> Serialize for AttachmentData<T>where
T: Serialize,
impl<T: PartialEq> Eq for AttachmentData<T>
impl<T> StructuralPartialEq for AttachmentData<T>
Auto Trait Implementations§
impl<T> Freeze for AttachmentData<T>where
T: Freeze,
impl<T> RefUnwindSafe for AttachmentData<T>where
T: RefUnwindSafe,
impl<T> Send for AttachmentData<T>where
T: Send,
impl<T> Sync for AttachmentData<T>where
T: Sync,
impl<T> Unpin for AttachmentData<T>where
T: Unpin,
impl<T> UnwindSafe for AttachmentData<T>where
T: 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.