pub enum StoreOp {
Store,
Discard,
}Expand description
What a render pass attachment does with the contents it produced once the pass ends.
Replaces the "store" / "discard" string literals accepted by
storeOp and depthStoreOp. Discard saves bandwidth for attachments
the pass writes but nothing ever reads back — the depth buffer of a
depth-test-only pass is the canonical case.
Variants§
Store
Keep the attachment’s contents after the pass so later passes can read or resolve them.
Discard
Drop the attachment’s contents after the pass.
Trait Implementations§
impl Copy for StoreOp
impl Eq for StoreOp
impl StructuralPartialEq for StoreOp
Auto Trait Implementations§
impl Freeze for StoreOp
impl RefUnwindSafe for StoreOp
impl Send for StoreOp
impl Sync for StoreOp
impl Unpin for StoreOp
impl UnsafeUnpin for StoreOp
impl UnwindSafe for StoreOp
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