Enum gfx_core::command::ClearColor[][src]

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

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

Variants

Float([f32; 4])

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

impl Copy for ClearColor[src]

impl Debug for ClearColor[src]

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

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

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

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

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

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

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

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

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

impl From<f32> for ClearColor[src]

impl From<i32> for ClearColor[src]

impl From<u32> for ClearColor[src]

impl PartialEq<ClearColor> for ClearColor[src]

impl PartialOrd<ClearColor> for ClearColor[src]

impl StructuralPartialEq for ClearColor[src]

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

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

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

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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.