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
sourceimpl Clone for ClearAttachment
impl Clone for ClearAttachment
sourcefn clone(&self) -> ClearAttachment
fn clone(&self) -> ClearAttachment
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ClearAttachment
impl Debug for ClearAttachment
sourceimpl From<ClearAttachment> for ClearAttachment
impl From<ClearAttachment> for ClearAttachment
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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