#[repr(C)]
pub union VkClearValue {
pub color: VkClearColorValue,
pub depthStencil: VkClearDepthStencilValue,
}Fields§
§color: VkClearColorValue§depthStencil: VkClearDepthStencilValueImplementations§
Source§impl VkClearValue
impl VkClearValue
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
Trait Implementations§
Source§impl Clone for VkClearValue
impl Clone for VkClearValue
Source§fn clone(&self) -> VkClearValue
fn clone(&self) -> VkClearValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VkClearValue
Auto Trait Implementations§
impl Freeze for VkClearValue
impl RefUnwindSafe for VkClearValue
impl Send for VkClearValue
impl Sync for VkClearValue
impl Unpin for VkClearValue
impl UnwindSafe for VkClearValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more