[][src]Enum gfx_hal::command::ClearColor

pub enum ClearColor {
    Float(ColorValue),
    Int([i32; 4]),
    Uint([u32; 4]),
}

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

impl Copy for ClearColor[src]

impl Clone for ClearColor[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialOrd<ClearColor> for ClearColor[src]

impl PartialEq<ClearColor> for ClearColor[src]

impl From<[f32; 4]> for ClearColor[src]

impl From<[f32; 3]> for ClearColor[src]

impl From<[f32; 2]> for ClearColor[src]

impl From<[i32; 4]> for ClearColor[src]

impl From<[i32; 3]> for ClearColor[src]

impl From<[i32; 2]> for ClearColor[src]

impl From<[u32; 4]> for ClearColor[src]

impl From<[u32; 3]> for ClearColor[src]

impl From<[u32; 2]> for ClearColor[src]

impl From<f32> for ClearColor[src]

impl From<i32> for ClearColor[src]

impl From<u32> for ClearColor[src]

impl From<ClearColor> for ClearColorRaw[src]

impl Debug for ClearColor[src]

impl Serialize for ClearColor[src]

impl<'de> Deserialize<'de> for ClearColor[src]

Auto Trait Implementations

impl Unpin for ClearColor

impl Sync for ClearColor

impl Send for ClearColor

impl UnwindSafe for ClearColor

impl RefUnwindSafe for ClearColor

Blanket Implementations

impl<T> Supports<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]