pub enum AttachmentClear {
Color {
index: usize,
value: ClearColor,
},
DepthStencil {
depth: Option<DepthValue>,
stencil: Option<StencilValue>,
},
}
Expand description
Attachment clear description for the current subpass.
Variants§
Color
Clear color attachment.
Fields
§
value: ClearColor
Value to clear with.
DepthStencil
Clear depth-stencil attachment.
Fields
§
depth: Option<DepthValue>
Depth value to clear with.
§
stencil: Option<StencilValue>
Stencil value to clear with.
Trait Implementations§
Source§impl Clone for AttachmentClear
impl Clone for AttachmentClear
Source§fn clone(&self) -> AttachmentClear
fn clone(&self) -> AttachmentClear
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 AttachmentClear
impl Debug for AttachmentClear
impl Copy for AttachmentClear
Auto Trait Implementations§
impl Freeze for AttachmentClear
impl RefUnwindSafe for AttachmentClear
impl Send for AttachmentClear
impl Sync for AttachmentClear
impl Unpin for AttachmentClear
impl UnwindSafe for AttachmentClear
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