pub unsafe fn create_android_surface_khr(&self, create_info: &AndroidSurfaceCreateInfoKhr,
            allocator: Option<*const vks::VkAllocationCallbacks>)
            -> VdResult<SurfaceKhrHandle> {
        let allocator = allocator.unwrap_or(ptr::null());
        let mut surface = 0;
        let result = self.proc_addr_loader().khr_android_surface.vkCreateAndroidSurfaceKHR(self.handle().to_raw(),
            create_info.as_raw(), allocator, &mut surface);
        error::check(result, "vkCreateAndroidSurfaceKHR", SurfaceKhrHandle(surface))
    }
/// Create a `SurfaceKhrHandle` object for an Android native window.
///
/// https://manned.org/vkCreateAndroidSurfaceKHR.3
//
// *PFN_vkCreateAndroidSurfaceKHR)(VkInstance instance, const
// VkAndroidSurfaceCreateInfoKHR* pCreateInfo, const
// VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
Create a `SurfaceKhrHandle` object for an Android native window.


Create a ` SurfaceKhrHandle ` object for an Android native window .
pub unsafe fn create_android_surface_khr(&self, create_info: &AndroidSurfaceCreateInfoKhr,
            allocator: Option<*const vks::VkAllocationCallbacks>)
            -> VdResult<SurfaceKhrHandle> {
        let allocator = allocator.unwrap_or(ptr::null());
        let mut surface = 0;
        let result = self.proc_addr_loader().khr_android_surface.vkCreateAndroidSurfaceKHR(self.handle().to_raw(),
            create_info.as_raw(), allocator, &mut surface);
        error::check(result, "vkCreateAndroidSurfaceKHR", SurfaceKhrHandle(surface))
    }
pub unsafe fn create_android_surface_khr ( & self , create_info : & AndroidSurfaceCreateInfoKhr , allocator : Option < * const vks :: VkAllocationCallbacks > ) -> VdResult < SurfaceKhrHandle > { let allocator = allocator . unwrap_or ( ptr :: null ( ) ) ; let mut surface = 0 ; let result = self . proc_addr_loader ( ) . khr_android_surface . vkCreateAndroidSurfaceKHR ( self . handle ( ) . to_raw ( ) , create_info . as_raw ( ) , allocator , & mut surface ) ; error :: check ( result , " " , SurfaceKhrHandle ( surface ) ) }
Create a `SurfaceKhrHandle` object for an Android native window.
Create a ` SurfaceKhrHandle ` object for an Android native window .
&self
create_info
&AndroidSurfaceCreateInfoKhr
allocator
Option<*const vks::VkAllocationCallbacks>
&self
create_info
&AndroidSurfaceCreateInfoKhr
allocator
Option<*const vks::VkAllocationCallbacks>