Struct ash::vk::SurfaceFormatKHRBuilder
source · pub struct SurfaceFormatKHRBuilder<'a> { /* private fields */ }
Implementations§
source§impl<'a> SurfaceFormatKHRBuilder<'a>
impl<'a> SurfaceFormatKHRBuilder<'a>
pub fn format(self, format: Format) -> Self
pub fn color_space(self, color_space: ColorSpaceKHR) -> Self
sourcepub fn build(self) -> SurfaceFormatKHR
pub fn build(self) -> SurfaceFormatKHR
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 SurfaceFormatKHRBuilder<'a>
impl<'a> Deref for SurfaceFormatKHRBuilder<'a>
Auto Trait Implementations§
impl<'a> Freeze for SurfaceFormatKHRBuilder<'a>
impl<'a> RefUnwindSafe for SurfaceFormatKHRBuilder<'a>
impl<'a> Send for SurfaceFormatKHRBuilder<'a>
impl<'a> Sync for SurfaceFormatKHRBuilder<'a>
impl<'a> Unpin for SurfaceFormatKHRBuilder<'a>
impl<'a> UnwindSafe for SurfaceFormatKHRBuilder<'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