pub struct AndroidNativeBufferFn {
pub get_swapchain_gralloc_usage_android: unsafe extern "system" fn(Device, Format, ImageUsageFlags, *mut i32) -> Result,
pub acquire_image_android: unsafe extern "system" fn(Device, Image, i32, Semaphore, Fence) -> Result,
pub queue_signal_release_image_android: unsafe extern "system" fn(Queue, u32, *const Semaphore, Image, *mut i32) -> Result,
pub get_swapchain_gralloc_usage2_android: unsafe extern "system" fn(Device, Format, ImageUsageFlags, SwapchainImageUsageFlagsANDROID, *mut u64, *mut u64) -> Result,
}Fields
get_swapchain_gralloc_usage_android: unsafe extern "system" fn(Device, Format, ImageUsageFlags, *mut i32) -> Resultacquire_image_android: unsafe extern "system" fn(Device, Image, i32, Semaphore, Fence) -> Resultqueue_signal_release_image_android: unsafe extern "system" fn(Queue, u32, *const Semaphore, Image, *mut i32) -> Resultget_swapchain_gralloc_usage2_android: unsafe extern "system" fn(Device, Format, ImageUsageFlags, SwapchainImageUsageFlagsANDROID, *mut u64, *mut u64) -> ResultImplementations
sourceimpl AndroidNativeBufferFn
impl AndroidNativeBufferFn
pub fn load<F>(_f: F) -> AndroidNativeBufferFn where
F: FnMut(&CStr) -> *const c_void,
sourcepub unsafe fn get_swapchain_gralloc_usage_android(
&self,
device: Device,
format: Format,
image_usage: ImageUsageFlags,
gralloc_usage: *mut i32
) -> Result
pub unsafe fn get_swapchain_gralloc_usage_android(
&self,
device: Device,
format: Format,
image_usage: ImageUsageFlags,
gralloc_usage: *mut i32
) -> Result
sourcepub unsafe fn acquire_image_android(
&self,
device: Device,
image: Image,
native_fence_fd: i32,
semaphore: Semaphore,
fence: Fence
) -> Result
pub unsafe fn acquire_image_android(
&self,
device: Device,
image: Image,
native_fence_fd: i32,
semaphore: Semaphore,
fence: Fence
) -> Result
sourcepub unsafe fn queue_signal_release_image_android(
&self,
queue: Queue,
wait_semaphore_count: u32,
p_wait_semaphores: *const Semaphore,
image: Image,
p_native_fence_fd: *mut i32
) -> Result
pub unsafe fn queue_signal_release_image_android(
&self,
queue: Queue,
wait_semaphore_count: u32,
p_wait_semaphores: *const Semaphore,
image: Image,
p_native_fence_fd: *mut i32
) -> Result
sourcepub unsafe fn get_swapchain_gralloc_usage2_android(
&self,
device: Device,
format: Format,
image_usage: ImageUsageFlags,
swapchain_image_usage: SwapchainImageUsageFlagsANDROID,
gralloc_consumer_usage: *mut u64,
gralloc_producer_usage: *mut u64
) -> Result
pub unsafe fn get_swapchain_gralloc_usage2_android(
&self,
device: Device,
format: Format,
image_usage: ImageUsageFlags,
swapchain_image_usage: SwapchainImageUsageFlagsANDROID,
gralloc_consumer_usage: *mut u64,
gralloc_producer_usage: *mut u64
) -> Result
Trait Implementations
sourceimpl Clone for AndroidNativeBufferFn
impl Clone for AndroidNativeBufferFn
sourcepub fn clone(&self) -> AndroidNativeBufferFn
pub fn clone(&self) -> AndroidNativeBufferFn
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
impl Send for AndroidNativeBufferFn
impl Sync for AndroidNativeBufferFn
Auto Trait Implementations
impl RefUnwindSafe for AndroidNativeBufferFn
impl Unpin for AndroidNativeBufferFn
impl UnwindSafe for AndroidNativeBufferFn
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more