Enum vulkano::render_pass::AttachmentStoreOp
source · #[non_exhaustive]#[repr(i32)]pub enum AttachmentStoreOp {
Store = 0,
DontCare = 1,
}
Expand description
Describes what the implementation should do with an attachment after all the subpasses have completed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Store = 0
The attachment will be stored. This is what you usually want.
While this is the most intuitive option, it is also slower than DontCare
because it can
take time to write the data back to memory.
DontCare = 1
What happens is implementation-specific.
This is purely an optimization compared to Store
. The implementation doesn’t need to copy
from the internal cache to the memory, which saves memory bandwidth.
This doesn’t mean that the data won’t be copied, as an implementation is also free to not use a cache and write the output directly in memory. In other words, the content of the image will be undefined.
Trait Implementations§
source§impl Clone for AttachmentStoreOp
impl Clone for AttachmentStoreOp
source§fn clone(&self) -> AttachmentStoreOp
fn clone(&self) -> AttachmentStoreOp
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 Debug for AttachmentStoreOp
impl Debug for AttachmentStoreOp
source§impl From<AttachmentStoreOp> for AttachmentStoreOp
impl From<AttachmentStoreOp> for AttachmentStoreOp
source§fn from(val: AttachmentStoreOp) -> Self
fn from(val: AttachmentStoreOp) -> Self
Converts to this type from the input type.
source§impl Hash for AttachmentStoreOp
impl Hash for AttachmentStoreOp
source§impl PartialEq for AttachmentStoreOp
impl PartialEq for AttachmentStoreOp
source§fn eq(&self, other: &AttachmentStoreOp) -> bool
fn eq(&self, other: &AttachmentStoreOp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<AttachmentStoreOp> for AttachmentStoreOp
impl TryFrom<AttachmentStoreOp> for AttachmentStoreOp
impl Copy for AttachmentStoreOp
impl Eq for AttachmentStoreOp
impl StructuralEq for AttachmentStoreOp
impl StructuralPartialEq for AttachmentStoreOp
Auto Trait Implementations§
impl RefUnwindSafe for AttachmentStoreOp
impl Send for AttachmentStoreOp
impl Sync for AttachmentStoreOp
impl Unpin for AttachmentStoreOp
impl UnwindSafe for AttachmentStoreOp
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