Struct ash::vk::NativeBufferANDROIDBuilder
source · pub struct NativeBufferANDROIDBuilder<'a> { /* private fields */ }
Implementations§
source§impl<'a> NativeBufferANDROIDBuilder<'a>
impl<'a> NativeBufferANDROIDBuilder<'a>
pub fn handle(self, handle: *const c_void) -> Self
pub fn stride(self, stride: c_int) -> Self
pub fn format(self, format: c_int) -> Self
pub fn usage(self, usage: c_int) -> Self
pub fn usage2(self, usage2: NativeBufferUsage2ANDROID) -> Self
sourcepub fn build(self) -> NativeBufferANDROID
pub fn build(self) -> NativeBufferANDROID
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 NativeBufferANDROIDBuilder<'a>
impl<'a> Deref for NativeBufferANDROIDBuilder<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for NativeBufferANDROIDBuilder<'a>
impl<'a> !Send for NativeBufferANDROIDBuilder<'a>
impl<'a> !Sync for NativeBufferANDROIDBuilder<'a>
impl<'a> Unpin for NativeBufferANDROIDBuilder<'a>
impl<'a> UnwindSafe for NativeBufferANDROIDBuilder<'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