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: StoreOp
Whether 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 for Operations<V>where
V: Clone,
impl<V> Clone for Operations<V>where
V: Clone,
source§fn clone(&self) -> Operations<V>
fn clone(&self) -> Operations<V>
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<V> Debug for Operations<V>where
V: Debug,
impl<V> Debug for Operations<V>where
V: Debug,
source§impl<V> Default for Operations<V>where
V: Default,
impl<V> Default for Operations<V>where
V: Default,
source§fn default() -> Operations<V>
fn default() -> Operations<V>
Returns the “default value” for a type. Read more
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<Operations<V>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Operations<V>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<V> Hash for Operations<V>where
V: Hash,
impl<V> Hash for Operations<V>where
V: Hash,
source§impl<V> PartialEq for Operations<V>where
V: PartialEq,
impl<V> PartialEq for Operations<V>where
V: PartialEq,
source§impl<V> Serialize for Operations<V>where
V: Serialize,
impl<V> Serialize for Operations<V>where
V: Serialize,
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<V> Copy for Operations<V>where
V: Copy,
impl<V> Eq for Operations<V>where
V: Eq,
impl<V> 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> 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,
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
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.