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]
fn clone(&self) -> ClearColor[src]
Returns a copy of the value. Read more
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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl PartialEq for ClearColor[src]
fn eq(&self, __arg_0: &ClearColor) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ClearColor) -> bool[src]
This method tests for !=.
impl PartialOrd for ClearColor[src]
fn partial_cmp(&self, __arg_0: &ClearColor) -> Option<Ordering>[src]
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, __arg_0: &ClearColor) -> bool[src]
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, __arg_0: &ClearColor) -> bool[src]
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, __arg_0: &ClearColor) -> bool[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, __arg_0: &ClearColor) -> bool[src]
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]
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]
fn from(v: f32) -> ClearColor[src]
Performs the conversion.
impl From<i32> for ClearColor[src]
fn from(v: i32) -> ClearColor[src]
Performs the conversion.
impl From<u32> for ClearColor[src]
fn from(v: u32) -> ClearColor[src]
Performs the conversion.