#[repr(C)]pub union ClearValue {
pub color: ClearColorValue,
pub depth_stencil: ClearDepthStencilValue,
}Expand description
Native union VkClearValue.
Fields§
§color: ClearColorValueNative field color.
depth_stencil: ClearDepthStencilValueNative field depthStencil.
Implementations§
Source§impl ClearValue
impl ClearValue
Sourcepub fn set_color(self, value: ClearColorValue) -> Self
pub fn set_color(self, value: ClearColorValue) -> Self
Set native field color without native effects.
Sourcepub fn set_depth_stencil(self, value: ClearDepthStencilValue) -> Self
pub fn set_depth_stencil(self, value: ClearDepthStencilValue) -> Self
Set native field depthStencil without native effects.
Trait Implementations§
Source§impl Clone for ClearValue
impl Clone for ClearValue
impl Copy for ClearValue
Auto Trait Implementations§
impl Forget for ClearValue
impl Freeze for ClearValue
impl Move for ClearValue
impl RefUnwindSafe for ClearValue
impl Send for ClearValue
impl Sync for ClearValue
impl Unpin for ClearValue
impl UnsafeUnpin for ClearValue
impl UnwindSafe for ClearValue
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