Enum vulkano::image::attachment::ClearAttachment
source · [−]pub enum ClearAttachment {
Color(ClearValue, u32),
Depth(f32),
Stencil(u32),
DepthStencil((f32, u32)),
}
Expand description
Clear attachment type, used in clear_attachments
command.
Variants
Color(ClearValue, u32)
Clear the color attachment at the specified index, with the specified clear value.
Depth(f32)
Clear the depth attachment with the speficied depth value.
Stencil(u32)
Clear the stencil attachment with the speficied stencil value.
DepthStencil((f32, u32))
Clear the depth and stencil attachments with the speficied depth and stencil values.
Trait Implementations
sourceimpl From<ClearAttachment> for ClearAttachment
impl From<ClearAttachment> for ClearAttachment
sourcefn from(v: ClearAttachment) -> Self
fn from(v: ClearAttachment) -> Self
Performs the conversion.
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 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