pub struct ComponentMappingBuilder<'a> { /* private fields */ }
Implementations§
Source§impl<'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§
Source§impl<'a> Deref for ComponentMappingBuilder<'a>
impl<'a> Deref for ComponentMappingBuilder<'a>
Auto Trait Implementations§
impl<'a> Freeze for ComponentMappingBuilder<'a>
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§
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