Enum vulkano::render_pass::AttachmentLoadOp
source · #[non_exhaustive]#[repr(i32)]pub enum AttachmentLoadOp {
Load = 0,
Clear = 1,
DontCare = 2,
}
Expand description
Describes what the implementation should do with an attachment at the start of the subpass.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Load = 0
The content of the attachment will be loaded from memory. This is what you want if you want to draw over something existing.
While this is the most intuitive option, it is also the slowest because it uses a lot of memory bandwidth.
Clear = 1
The content of the attachment will be filled by the implementation with a uniform value that you must provide when you start drawing.
This is what you usually use at the start of a frame, in order to reset the content of the color, depth and/or stencil buffers.
DontCare = 2
The attachment will have undefined content.
This is what you should use for attachments that you intend to entirely cover with draw
commands.
If you are going to fill the attachment with a uniform value, it is better to use Clear
instead.
Trait Implementations§
source§impl Clone for AttachmentLoadOp
impl Clone for AttachmentLoadOp
source§fn clone(&self) -> AttachmentLoadOp
fn clone(&self) -> AttachmentLoadOp
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AttachmentLoadOp
impl Debug for AttachmentLoadOp
source§impl From<AttachmentLoadOp> for AttachmentLoadOp
impl From<AttachmentLoadOp> for AttachmentLoadOp
source§fn from(val: AttachmentLoadOp) -> Self
fn from(val: AttachmentLoadOp) -> Self
source§impl Hash for AttachmentLoadOp
impl Hash for AttachmentLoadOp
source§impl PartialEq for AttachmentLoadOp
impl PartialEq for AttachmentLoadOp
source§fn eq(&self, other: &AttachmentLoadOp) -> bool
fn eq(&self, other: &AttachmentLoadOp) -> bool
self
and other
values to be equal, and is used
by ==
.