Enum vulkano::format::ClearColorValue
source · pub enum ClearColorValue {
Float([f32; 4]),
Int([i32; 4]),
Uint([u32; 4]),
}
Expand description
A value that will be used to clear a color image.
Variants§
Float([f32; 4])
Value for formats with a numeric type that is not SINT
or UINT
.
Int([i32; 4])
Value for formats with a numeric type of SINT
.
Uint([u32; 4])
Value for formats with a numeric type of UINT
.
Implementations§
source§impl ClearColorValue
impl ClearColorValue
sourcepub fn numeric_type(&self) -> NumericType
pub fn numeric_type(&self) -> NumericType
Returns the numeric type of the clear value.
Trait Implementations§
source§impl Clone for ClearColorValue
impl Clone for ClearColorValue
source§fn clone(&self) -> ClearColorValue
fn clone(&self) -> ClearColorValue
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 ClearColorValue
impl Debug for ClearColorValue
source§impl From<ClearColorValue> for ClearColorValue
impl From<ClearColorValue> for ClearColorValue
source§fn from(val: ClearColorValue) -> Self
fn from(val: ClearColorValue) -> Self
Converts to this type from the input type.
source§impl From<ClearColorValue> for ClearValue
impl From<ClearColorValue> for ClearValue
source§fn from(val: ClearColorValue) -> Self
fn from(val: ClearColorValue) -> Self
Converts to this type from the input type.
source§impl PartialEq for ClearColorValue
impl PartialEq for ClearColorValue
source§fn eq(&self, other: &ClearColorValue) -> bool
fn eq(&self, other: &ClearColorValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ClearColorValue
impl StructuralPartialEq for ClearColorValue
Auto Trait Implementations§
impl RefUnwindSafe for ClearColorValue
impl Send for ClearColorValue
impl Sync for ClearColorValue
impl Unpin for ClearColorValue
impl UnwindSafe for ClearColorValue
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