pub struct Operations<V> {
pub load: LoadOp<V>,
pub store: StoreOp,
}Expand description
Pair of load and store operations for an attachment aspect.
This type is unique to the Rust API of wgpu. In the WebGPU specification,
separate loadOp and storeOp fields are used instead.
Fields§
§load: LoadOp<V>How data should be read through this attachment.
store: StoreOpWhether data will be written to through this attachment.
Note that resolve textures (if specified) are always written to, regardless of this setting.
Trait Implementations§
Source§impl<V: Clone> Clone for Operations<V>
impl<V: Clone> Clone for Operations<V>
Source§fn clone(&self) -> Operations<V>
fn clone(&self) -> Operations<V>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<V: Copy> Copy for Operations<V>
Source§impl<V: Debug> Debug for Operations<V>
impl<V: Debug> Debug for Operations<V>
Source§impl<V: Default> Default for Operations<V>
impl<V: Default> Default for Operations<V>
Source§impl<'de, V> Deserialize<'de> for Operations<V>where
V: Deserialize<'de>,
impl<'de, V> Deserialize<'de> for Operations<V>where
V: 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
impl<V: Eq> Eq for Operations<V>
Source§impl<V: Hash> Hash for Operations<V>
impl<V: Hash> Hash for Operations<V>
Source§impl<V: PartialEq> PartialEq for Operations<V>
impl<V: PartialEq> PartialEq for Operations<V>
Source§fn eq(&self, other: &Operations<V>) -> bool
fn eq(&self, other: &Operations<V>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<V> Serialize for Operations<V>where
V: Serialize,
impl<V> Serialize for Operations<V>where
V: Serialize,
impl<V: PartialEq> StructuralPartialEq for Operations<V>
Auto Trait Implementations§
impl<V> Freeze for Operations<V>where
V: Freeze,
impl<V> RefUnwindSafe for Operations<V>where
V: RefUnwindSafe,
impl<V> Send for Operations<V>where
V: Send,
impl<V> Sync for Operations<V>where
V: Sync,
impl<V> Unpin for Operations<V>where
V: Unpin,
impl<V> UnsafeUnpin for Operations<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for Operations<V>where
V: 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more