Enum vulkano::render_pass::LoadOp [−][src]
#[repr(u32)] pub enum LoadOp { Load, Clear, DontCare, }
Describes what the implementation should do with an attachment at the start of the subpass.
Variants
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.
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.
See the draw_inline
and draw_secondary
methods of PrimaryComputeBufferBuilder
.
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
impl Copy for LoadOp
[src]
impl Eq for LoadOp
[src]
impl StructuralEq for LoadOp
[src]
impl StructuralPartialEq for LoadOp
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Content for T
[src]
impl<T> Content for T
[src]pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]Builds a pointer to this type from a raw pointer.
pub fn is_size_suitable(usize) -> bool
[src]
pub fn is_size_suitable(usize) -> bool
[src]Returns true if the size is suitable to store a type like this.
pub fn indiv_size() -> usize
[src]
pub fn indiv_size() -> usize
[src]Returns the size of an individual element.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more