Struct screen_13::prelude::vk::ComponentMappingBuilder
source · pub struct ComponentMappingBuilder<'a> { /* private fields */ }
Implementations§
source§impl<'a> ComponentMappingBuilder<'a>
impl<'a> ComponentMappingBuilder<'a>
pub fn r(self, r: ComponentSwizzle) -> ComponentMappingBuilder<'a>
pub fn g(self, g: ComponentSwizzle) -> ComponentMappingBuilder<'a>
pub fn b(self, b: ComponentSwizzle) -> ComponentMappingBuilder<'a>
pub fn a(self, a: ComponentSwizzle) -> ComponentMappingBuilder<'a>
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>
§type Target = ComponentMapping
type Target = ComponentMapping
The resulting type after dereferencing.
source§impl<'a> DerefMut for ComponentMappingBuilder<'a>
impl<'a> DerefMut for ComponentMappingBuilder<'a>
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§
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