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

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

A universal clear color supporting integer formats as well as the standard floating-point.

Variants

Sfloat(ColorValue)

Standard floating-point vec4 color

Sint([i32; 4])

Integer vector to clear ivec4 targets.

Uint([u32; 4])

Unsigned int vector to clear uvec4 targets.

Trait Implementations

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 PartialOrd<ClearColor> for ClearColor[src]

impl PartialEq<ClearColor> 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 Copy for ClearColor[src]

impl Debug for ClearColor[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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]