Enum vulkano::render_pass::LoadOp
source · [−]#[repr(i32)]
#[non_exhaustive]
pub enum LoadOp {
Load,
Clear,
DontCare,
}
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
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
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
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
sourceimpl From<LoadOp> for AttachmentLoadOp
impl From<LoadOp> for AttachmentLoadOp
impl Copy for LoadOp
impl Eq for LoadOp
impl StructuralEq for LoadOp
impl StructuralPartialEq for LoadOp
Auto Trait Implementations
impl RefUnwindSafe for LoadOp
impl Send for LoadOp
impl Sync for LoadOp
impl Unpin for LoadOp
impl UnwindSafe for LoadOp
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<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more