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

Standard floating-point vec4 color

Integer vector to clear ivec4 targets.

Unsigned int vector to clear uvec4 targets.

Trait Implementations

impl Clone for ClearColor
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ClearColor
[src]

impl Debug for ClearColor
[src]

Formats the value using the given formatter.

impl PartialEq for ClearColor
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for ClearColor
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

impl From<f32> for ClearColor
[src]

Performs the conversion.

impl From<i32> for ClearColor
[src]

Performs the conversion.

impl From<u32> for ClearColor
[src]

Performs the conversion.