#[repr(C)]pub struct VkComponentMapping {
pub r: VkComponentSwizzle,
pub g: VkComponentSwizzle,
pub b: VkComponentSwizzle,
pub a: VkComponentSwizzle,
}Fields§
§r: VkComponentSwizzle§g: VkComponentSwizzle§b: VkComponentSwizzle§a: VkComponentSwizzleImplementations§
Source§impl VkComponentMapping
impl VkComponentMapping
pub const IDENTITY: Self
pub const ZERO: Self
pub const ONE: Self
Sourcepub const fn all(s: VkComponentSwizzle) -> Self
pub const fn all(s: VkComponentSwizzle) -> Self
Set same value to all component
Sourcepub const fn set2(a: VkComponentSwizzle, b: VkComponentSwizzle) -> Self
pub const fn set2(a: VkComponentSwizzle, b: VkComponentSwizzle) -> Self
Set 2 values with repeating
Trait Implementations§
Source§impl Clone for VkComponentMapping
impl Clone for VkComponentMapping
Source§fn clone(&self) -> VkComponentMapping
fn clone(&self) -> VkComponentMapping
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 VkComponentMapping
impl Debug for VkComponentMapping
impl Copy for VkComponentMapping
Auto Trait Implementations§
impl Freeze for VkComponentMapping
impl RefUnwindSafe for VkComponentMapping
impl Send for VkComponentMapping
impl Sync for VkComponentMapping
impl Unpin for VkComponentMapping
impl UnwindSafe for VkComponentMapping
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