Type Alias ClearColorValue

Source
pub type ClearColorValue = VkClearColorValue;
Expand description

A color value representation for clearing operations. Constructable from RGBA values using From::from.

Aliased Type§

#[repr(C)]
pub union ClearColorValue {
    pub float32: [f32; 4],
    pub int32: [i32; 4],
    pub uint32: [u32; 4],
}

Fields§

§float32: [f32; 4]§int32: [i32; 4]§uint32: [u32; 4]

Trait Implementations§

Source§

impl From<[f32; 4]> for ClearColorValue

Source§

fn from(c: [f32; 4]) -> Self

Converts to this type from the input type.
Source§

impl From<[i32; 4]> for ClearColorValue

Source§

fn from(c: [i32; 4]) -> Self

Converts to this type from the input type.
Source§

impl From<[u32; 4]> for ClearColorValue

Source§

fn from(c: [u32; 4]) -> Self

Converts to this type from the input type.