Struct ash::vk::ComponentMappingBuilder
source · [−]#[repr(transparent)]pub struct ComponentMappingBuilder<'a> { /* private fields */ }
Implementations
sourceimpl<'a> ComponentMappingBuilder<'a>
impl<'a> ComponentMappingBuilder<'a>
pub fn r(self, r: ComponentSwizzle) -> Self
pub fn g(self, g: ComponentSwizzle) -> Self
pub fn b(self, b: ComponentSwizzle) -> Self
pub fn a(self, a: ComponentSwizzle) -> Self
sourcepub fn build(self) -> ComponentMapping
pub fn build(self) -> ComponentMapping
Calling build will discard all the lifetime information. Only call this if
necessary! Builders implement Deref
targeting their corresponding Vulkan struct,
so references to builders can be passed directly to Vulkan functions.
Trait Implementations
sourceimpl<'a> Deref for ComponentMappingBuilder<'a>
impl<'a> Deref for ComponentMappingBuilder<'a>
type Target = ComponentMapping
type Target = ComponentMapping
The resulting type after dereferencing.
Auto Trait Implementations
impl<'a> RefUnwindSafe for ComponentMappingBuilder<'a>
impl<'a> Send for ComponentMappingBuilder<'a>
impl<'a> Sync for ComponentMappingBuilder<'a>
impl<'a> Unpin for ComponentMappingBuilder<'a>
impl<'a> UnwindSafe for ComponentMappingBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more