// ================================================================================
//  Storage Creation Methods
// ================================================================================
/// Creates a [Vulkan Memory Allocator](https://github.com/gwihlidal/vk-mem-rs)
Storage Creation Methods
Creates a [Vulkan Memory Allocator]
Storage Creation Methods Creates a [ Vulkan Memory Allocator ]
fn create_memory_allocator(
    instance: Instance, physical_device: vk::PhysicalDevice, logical_device: Device,
  ) -> SarektResult<Arc<vk_mem::Allocator>> {
    // TODO(issue#1) MULTITHREADING configure for multithreading.
    let allocator_create_info = vk_mem::AllocatorCreateInfo {
      physical_device,
      device: logical_device,
      instance,
      flags: vk_mem::AllocatorCreateFlags::default(),
      preferred_large_heap_block_size: 0,
      frame_in_use_count: (MAX_FRAMES_IN_FLIGHT - 1) as u32,
      heap_size_limits: None,
    };
    Ok(vk_mem::Allocator::new(&allocator_create_info).map(Arc::new)?)
  }
fn create_memory_allocator ( instance : Instance , physical_device : vk :: PhysicalDevice , logical_device : Device , ) -> SarektResult < Arc < vk_mem :: Allocator > > { // TODO(issue#1) MULTITHREADING configure for multithreading. let allocator_create_info = vk_mem :: AllocatorCreateInfo { physical_device , device : logical_device , instance , flags : vk_mem :: AllocatorCreateFlags :: default ( ) , preferred_large_heap_block_size : 0 , frame_in_use_count : ( MAX_FRAMES_IN_FLIGHT - 1 ) as u32 , heap_size_limits : None , } ; Ok ( vk_mem :: Allocator :: new ( & allocator_create_info ) . map ( Arc :: new ) ? ) }
Storage Creation Methods
Creates a [Vulkan Memory Allocator](https://github.com/gwihlidal/vk-mem-rs)
Storage Creation Methods Creates a [ Vulkan Memory Allocator ] ( https : // github . com / gwihlidal / vk - mem - rs )
instance
Instance
physical_device
vk::PhysicalDevice
logical_device
Device