#[repr(C)]pub struct ComponentMapping {
pub r: ComponentSwizzle,
pub g: ComponentSwizzle,
pub b: ComponentSwizzle,
pub a: ComponentSwizzle,
}Expand description
Native structure VkComponentMapping.
Fields§
§r: ComponentSwizzleNative field r.
g: ComponentSwizzleNative field g.
b: ComponentSwizzleNative field b.
a: ComponentSwizzleNative field a.
Implementations§
Source§impl ComponentMapping
impl ComponentMapping
Sourcepub fn set_r(self, value: ComponentSwizzle) -> Self
pub fn set_r(self, value: ComponentSwizzle) -> Self
Set native field r without native effects.
Sourcepub fn set_g(self, value: ComponentSwizzle) -> Self
pub fn set_g(self, value: ComponentSwizzle) -> Self
Set native field g without native effects.
Sourcepub fn set_b(self, value: ComponentSwizzle) -> Self
pub fn set_b(self, value: ComponentSwizzle) -> Self
Set native field b without native effects.
Sourcepub fn set_a(self, value: ComponentSwizzle) -> Self
pub fn set_a(self, value: ComponentSwizzle) -> Self
Set native field a without native effects.
Trait Implementations§
Source§impl Clone for ComponentMapping
impl Clone for ComponentMapping
impl Copy for ComponentMapping
Auto Trait Implementations§
impl Forget for ComponentMapping
impl Freeze for ComponentMapping
impl RefUnwindSafe for ComponentMapping
impl Send for ComponentMapping
impl Sync for ComponentMapping
impl Unpin for ComponentMapping
impl UnsafeUnpin for ComponentMapping
impl UnwindSafe for ComponentMapping
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