Struct pilka_lib::ash::vk::NativeBufferANDROIDBuilder [−]
#[repr(transparent)]pub struct NativeBufferANDROIDBuilder<'a> { /* fields omitted */ }
Implementations
impl<'a> NativeBufferANDROIDBuilder<'a>
impl<'a> NativeBufferANDROIDBuilder<'a>
pub fn handle(self, handle: *const c_void) -> NativeBufferANDROIDBuilder<'a>
pub fn stride(self, stride: i32) -> NativeBufferANDROIDBuilder<'a>
pub fn format(self, format: i32) -> NativeBufferANDROIDBuilder<'a>
pub fn usage(self, usage: i32) -> NativeBufferANDROIDBuilder<'a>
pub fn usage2(
self,
usage2: NativeBufferUsage2ANDROID
) -> NativeBufferANDROIDBuilder<'a>
pub 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.
Methods from Deref<Target = NativeBufferANDROID>
Trait Implementations
impl<'a> Deref for NativeBufferANDROIDBuilder<'a>
impl<'a> Deref for NativeBufferANDROIDBuilder<'a>
type Target = NativeBufferANDROID
type Target = NativeBufferANDROID
The resulting type after dereferencing.
pub fn deref(&self) -> &<NativeBufferANDROIDBuilder<'a> as Deref>::Target
pub fn deref(&self) -> &<NativeBufferANDROIDBuilder<'a> as Deref>::Target
Dereferences the value.
impl<'a> DerefMut for NativeBufferANDROIDBuilder<'a>
impl<'a> DerefMut for NativeBufferANDROIDBuilder<'a>
pub fn deref_mut(
&mut self
) -> &mut <NativeBufferANDROIDBuilder<'a> as Deref>::Target
pub fn deref_mut(
&mut self
) -> &mut <NativeBufferANDROIDBuilder<'a> as Deref>::Target
Mutably dereferences the value.