pub enum ClearValue {
Color(f32, f32, f32, f32),
DepthStencil(f32, u32),
}Expand description
Value for attachment load clear operation.
Variants§
Trait Implementations§
Source§impl Clone for ClearValue
impl Clone for ClearValue
Source§fn clone(&self) -> ClearValue
fn clone(&self) -> ClearValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClearValue
impl Debug for ClearValue
Source§impl From<ClearColor> for ClearValue
impl From<ClearColor> for ClearValue
Source§fn from(ClearColor: ClearColor) -> Self
fn from(ClearColor: ClearColor) -> Self
Converts to this type from the input type.
Source§impl From<ClearDepth> for ClearValue
impl From<ClearDepth> for ClearValue
Source§fn from(ClearDepth: ClearDepth) -> Self
fn from(ClearDepth: ClearDepth) -> Self
Converts to this type from the input type.
Source§impl From<ClearDepthStencil> for ClearValue
impl From<ClearDepthStencil> for ClearValue
Source§fn from(ClearDepthStencil: ClearDepthStencil) -> Self
fn from(ClearDepthStencil: ClearDepthStencil) -> Self
Converts to this type from the input type.
Source§impl From<ClearStencil> for ClearValue
impl From<ClearStencil> for ClearValue
Source§fn from(ClearStencil: ClearStencil) -> Self
fn from(ClearStencil: ClearStencil) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ClearValue
impl PartialEq for ClearValue
Source§fn eq(&self, other: &ClearValue) -> bool
fn eq(&self, other: &ClearValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ClearValue
impl StructuralPartialEq for ClearValue
Auto Trait Implementations§
impl Freeze for ClearValue
impl RefUnwindSafe for ClearValue
impl Send for ClearValue
impl Sync for ClearValue
impl Unpin for ClearValue
impl UnsafeUnpin for ClearValue
impl UnwindSafe for ClearValue
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