pub type ClearValue = VkClearValue;Aliased Type§
#[repr(C)]pub union ClearValue {
pub color: VkClearColorValue,
pub depthStencil: VkClearDepthStencilValue,
}Fields§
§color: VkClearColorValue§depthStencil: VkClearDepthStencilValueImplementations§
Source§impl ClearValue
impl ClearValue
Sourcepub fn color(c: impl Into<ClearColorValue>) -> Self
pub fn color(c: impl Into<ClearColorValue>) -> Self
Constructs a ClearValue which represents clearing color value
Sourcepub const fn color_f32(c: [f32; 4]) -> Self
pub const fn color_f32(c: [f32; 4]) -> Self
Constructs a ClearValue which represents clearing color value
Sourcepub const fn color_u32(c: [u32; 4]) -> Self
pub const fn color_u32(c: [u32; 4]) -> Self
Constructs a ClearValue which represents clearing color value
Sourcepub const fn color_i32(c: [i32; 4]) -> Self
pub const fn color_i32(c: [i32; 4]) -> Self
Constructs a ClearValue which represents clearing color value
Sourcepub const fn depth_stencil(depth: f32, stencil: u32) -> Self
pub const fn depth_stencil(depth: f32, stencil: u32) -> Self
Constructs a ClearValue which represents clearing both depth and stencil values