Enum gfx_hal::command::ClearColor
source · pub enum ClearColor {
Float(ColorValue),
Int([i32; 4]),
Uint([u32; 4]),
}
Expand description
A universal clear color supporting integer formats as well as the standard floating-point.
Variants
Float(ColorValue)
Standard floating-point vec4
color
Int([i32; 4])
Integer vector to clear ivec4
targets.
Uint([u32; 4])
Unsigned int vector to clear uvec4
targets.
Trait Implementations
sourceimpl Clone for ClearColor
impl Clone for ClearColor
sourcefn clone(&self) -> ClearColor
fn clone(&self) -> ClearColor
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 ClearColor
impl Debug for ClearColor
sourceimpl From<[f32; 2]> for ClearColor
impl From<[f32; 2]> for ClearColor
sourceimpl From<[f32; 3]> for ClearColor
impl From<[f32; 3]> for ClearColor
sourceimpl From<[f32; 4]> for ClearColor
impl From<[f32; 4]> for ClearColor
sourceimpl From<[i32; 2]> for ClearColor
impl From<[i32; 2]> for ClearColor
sourceimpl From<[i32; 3]> for ClearColor
impl From<[i32; 3]> for ClearColor
sourceimpl From<[i32; 4]> for ClearColor
impl From<[i32; 4]> for ClearColor
sourceimpl From<[u32; 2]> for ClearColor
impl From<[u32; 2]> for ClearColor
sourceimpl From<[u32; 3]> for ClearColor
impl From<[u32; 3]> for ClearColor
sourceimpl From<[u32; 4]> for ClearColor
impl From<[u32; 4]> for ClearColor
sourceimpl From<ClearColor> for ClearColorRaw
impl From<ClearColor> for ClearColorRaw
sourcefn from(cv: ClearColor) -> Self
fn from(cv: ClearColor) -> Self
Converts to this type from the input type.
sourceimpl From<f32> for ClearColor
impl From<f32> for ClearColor
sourceimpl From<i32> for ClearColor
impl From<i32> for ClearColor
sourceimpl From<u32> for ClearColor
impl From<u32> for ClearColor
sourceimpl PartialEq<ClearColor> for ClearColor
impl PartialEq<ClearColor> for ClearColor
sourcefn eq(&self, other: &ClearColor) -> bool
fn eq(&self, other: &ClearColor) -> bool
sourceimpl PartialOrd<ClearColor> for ClearColor
impl PartialOrd<ClearColor> for ClearColor
sourcefn partial_cmp(&self, other: &ClearColor) -> Option<Ordering>
fn partial_cmp(&self, other: &ClearColor) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ClearColor
impl StructuralPartialEq for ClearColor
Auto Trait Implementations
impl RefUnwindSafe for ClearColor
impl Send for ClearColor
impl Sync for ClearColor
impl Unpin for ClearColor
impl UnwindSafe for ClearColor
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