pub enum LoadOp<V> {
Clear(V),
Load,
}
Expand description
Operation to perform to the output attachment at the start of a renderpass.
The render target must be cleared at least once before its content is loaded.
Corresponds to WebGPU GPULoadOp
.
Variants
Clear(V)
Clear with a specified value.
Load
Load from memory.
Trait Implementations
sourceimpl<'de, V> Deserialize<'de> for LoadOp<V> where
V: Deserialize<'de>,
impl<'de, V> Deserialize<'de> for LoadOp<V> where
V: Deserialize<'de>,
sourcefn 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: 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.