pub unsafe fn create_shared_swapchains_khr(&self, create_infos: &[SwapchainCreateInfoKhr],
            allocator: Option<*const vks::VkAllocationCallbacks>)
            -> VdResult<SmallVec<[SwapchainKhrHandle; 4]>> {
        let allocator = allocator.unwrap_or(ptr::null());
        let mut swapchains = SmallVec::<[SwapchainKhrHandle; 4]>::new();
        swapchains.reserve_exact(create_infos.len());
        swapchains.set_len(create_infos.len());
        let result = self.proc_addr_loader().khr_display_swapchain.vkCreateSharedSwapchainsKHR(self.handle().to_raw(),
            create_infos.len() as u32, create_infos as *const _ as *const vks::VkSwapchainCreateInfoKHR,
            allocator, swapchains.as_mut_ptr() as *mut vks::VkSwapchainKHR);
        error::check(result, "vkCreateSharedSwapchainsKHR", swapchains)
    }
/// Creates multiple swapchains that share presentable images.
///
/// https://manned.org/vkCreateSharedSwapchainsKHR.3
//
// *PFN_vkCreateSharedSwapchainsKHR)(VkDevice device, uint32_t
// swapchainCount, const VkSwapchainCreateInfoKHR* pCreateInfos, const
// VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchains);
Creates multiple swapchains that share presentable images.


Creates multiple swapchains that share presentable images .
pub unsafe fn create_shared_swapchains_khr(&self, create_infos: &[SwapchainCreateInfoKhr],
            allocator: Option<*const vks::VkAllocationCallbacks>)
            -> VdResult<SmallVec<[SwapchainKhrHandle; 4]>> {
        let allocator = allocator.unwrap_or(ptr::null());
        let mut swapchains = SmallVec::<[SwapchainKhrHandle; 4]>::new();
        swapchains.reserve_exact(create_infos.len());
        swapchains.set_len(create_infos.len());
        let result = self.proc_addr_loader().khr_display_swapchain.vkCreateSharedSwapchainsKHR(self.handle().to_raw(),
            create_infos.len() as u32, create_infos as *const _ as *const vks::VkSwapchainCreateInfoKHR,
            allocator, swapchains.as_mut_ptr() as *mut vks::VkSwapchainKHR);
        error::check(result, "vkCreateSharedSwapchainsKHR", swapchains)
    }
pub unsafe fn create_shared_swapchains_khr ( & self , create_infos : & [ SwapchainCreateInfoKhr ] , allocator : Option < * const vks :: VkAllocationCallbacks > ) -> VdResult < SmallVec < [ SwapchainKhrHandle ; 4 ] > > { let allocator = allocator . unwrap_or ( ptr :: null ( ) ) ; let mut swapchains = SmallVec :: < [ SwapchainKhrHandle ; 4 ] > :: new ( ) ; swapchains . reserve_exact ( create_infos . len ( ) ) ; swapchains . set_len ( create_infos . len ( ) ) ; let result = self . proc_addr_loader ( ) . khr_display_swapchain . vkCreateSharedSwapchainsKHR ( self . handle ( ) . to_raw ( ) , create_infos . len ( ) as u32 , create_infos as * const _ as * const vks :: VkSwapchainCreateInfoKHR , allocator , swapchains . as_mut_ptr ( ) as * mut vks :: VkSwapchainKHR ) ; error :: check ( result , " " , swapchains ) }
Creates multiple swapchains that share presentable images.
Creates multiple swapchains that share presentable images .
&self
create_infos
&[SwapchainCreateInfoKhr]
allocator
Option<*const vks::VkAllocationCallbacks>
&self
create_infos
&[SwapchainCreateInfoKhr]
allocator
Option<*const vks::VkAllocationCallbacks>