pub enum LoadOp {
Load,
Clear,
DontCare,
}Expand description
What to do with an attachment’s existing contents at the start of a pass.
Variants§
Load
Preserve them. The most expensive option on tile-based GPUs; use only when the pass genuinely reads what was there.
Clear
Replace them with the attachment’s clear value.
DontCare
Leave them undefined. Correct whenever the pass writes every pixel — and the right default for a swapchain image, whose previous contents are never meaningful.
Trait Implementations§
impl Copy for LoadOp
impl Eq for LoadOp
impl StructuralPartialEq for LoadOp
Auto Trait Implementations§
impl Freeze for LoadOp
impl RefUnwindSafe for LoadOp
impl Send for LoadOp
impl Sync for LoadOp
impl Unpin for LoadOp
impl UnsafeUnpin for LoadOp
impl UnwindSafe for LoadOp
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