Struct wgpu::Operations
source · pub struct Operations<V> {
pub load: LoadOp<V>,
pub store: bool,
}
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: bool
Whether data will be written to through this attachment.
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 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> 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<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
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<V: Copy> Copy for Operations<V>
impl<V: Eq> Eq for Operations<V>
impl<V> StructuralEq for Operations<V>
impl<V> StructuralPartialEq for Operations<V>
Auto Trait Implementations§
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<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.