Enum vulkano::command_buffer::ClearAttachment
source · pub enum ClearAttachment {
Color {
color_attachment: u32,
clear_value: ClearColorValue,
},
Depth(f32),
Stencil(u32),
DepthStencil((f32, u32)),
}
Expand description
Clear attachment type, used in clear_attachments
command.
Variants§
Color
Clear the color attachment at the specified index, with the specified clear value.
Depth(f32)
Clear the depth attachment with the specified depth value.
Stencil(u32)
Clear the stencil attachment with the specified stencil value.
DepthStencil((f32, u32))
Clear the depth and stencil attachments with the specified depth and stencil values.
Trait Implementations§
source§impl Clone for ClearAttachment
impl Clone for ClearAttachment
source§fn clone(&self) -> ClearAttachment
fn clone(&self) -> ClearAttachment
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 ClearAttachment
impl Debug for ClearAttachment
source§impl From<ClearAttachment> for ClearAttachment
impl From<ClearAttachment> for ClearAttachment
source§fn from(v: ClearAttachment) -> Self
fn from(v: ClearAttachment) -> Self
Converts to this type from the input type.
impl Copy for ClearAttachment
Auto Trait Implementations§
impl RefUnwindSafe for ClearAttachment
impl Send for ClearAttachment
impl Sync for ClearAttachment
impl Unpin for ClearAttachment
impl UnwindSafe for ClearAttachment
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