#[repr(C)]pub union ClearColorValue {
pub float32: [f32; 4],
pub int32: [i32; 4],
pub uint32: [u32; 4],
}Expand description
VkClearColorValue
Provided by VK_COMPUTE_VERSION_1_0.
Fields§
§float32: [f32; 4]§int32: [i32; 4]§uint32: [u32; 4]Implementations§
Source§impl ClearColorValue
impl ClearColorValue
Sourcepub const fn from_float32(rgba: [f32; 4]) -> Self
pub const fn from_float32(rgba: [f32; 4]) -> Self
Create from RGBA float values.
Sourcepub const fn from_int32(rgba: [i32; 4]) -> Self
pub const fn from_int32(rgba: [i32; 4]) -> Self
Create from RGBA signed integer values.
Sourcepub const fn from_uint32(rgba: [u32; 4]) -> Self
pub const fn from_uint32(rgba: [u32; 4]) -> Self
Create from RGBA unsigned integer values.
Trait Implementations§
Source§impl Clone for ClearColorValue
impl Clone for ClearColorValue
Source§fn clone(&self) -> ClearColorValue
fn clone(&self) -> ClearColorValue
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 moreSource§impl Debug for ClearColorValue
impl Debug for ClearColorValue
Source§impl Default for ClearColorValue
impl Default for ClearColorValue
impl Copy for ClearColorValue
Auto Trait Implementations§
impl Freeze for ClearColorValue
impl RefUnwindSafe for ClearColorValue
impl Send for ClearColorValue
impl Sync for ClearColorValue
impl Unpin for ClearColorValue
impl UnsafeUnpin for ClearColorValue
impl UnwindSafe for ClearColorValue
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