pub enum LoadOp<V> {
Clear(V),
Load,
}
Expand description
Operation to perform to the output attachment at the start of a render pass.
The render target must be cleared at least once before its content is loaded.
Corresponds to WebGPU GPULoadOp
.
Variants§
Trait Implementations§
source§impl<'de, V> Deserialize<'de> for LoadOp<V>where
V: Deserialize<'de>,
impl<'de, V> Deserialize<'de> for LoadOp<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
source§impl<V: PartialEq> PartialEq<LoadOp<V>> for LoadOp<V>
impl<V: PartialEq> PartialEq<LoadOp<V>> for LoadOp<V>
impl<V: Copy> Copy for LoadOp<V>
impl<V: Eq> Eq for LoadOp<V>
impl<V> StructuralEq for LoadOp<V>
impl<V> StructuralPartialEq for LoadOp<V>
Auto Trait Implementations§
impl<V> RefUnwindSafe for LoadOp<V>where V: RefUnwindSafe,
impl<V> Send for LoadOp<V>where V: Send,
impl<V> Sync for LoadOp<V>where V: Sync,
impl<V> Unpin for LoadOp<V>where V: Unpin,
impl<V> UnwindSafe for LoadOp<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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.