Type Alias ClearValue

Source
pub type ClearValue = VkClearValue;

Aliased Type§

#[repr(C)]
pub union ClearValue {
    pub color: VkClearColorValue,
    pub depthStencil: VkClearDepthStencilValue,
}

Fields§

§color: VkClearColorValue§depthStencil: VkClearDepthStencilValue

Implementations§

Source§

impl ClearValue

Source

pub fn color(c: impl Into<ClearColorValue>) -> Self

Constructs a ClearValue which represents clearing color value

Source

pub const fn color_f32(c: [f32; 4]) -> Self

Constructs a ClearValue which represents clearing color value

Source

pub const fn color_u32(c: [u32; 4]) -> Self

Constructs a ClearValue which represents clearing color value

Source

pub const fn color_i32(c: [i32; 4]) -> Self

Constructs a ClearValue which represents clearing color value

Source

pub const fn depth_stencil(depth: f32, stencil: u32) -> Self

Constructs a ClearValue which represents clearing both depth and stencil values