unsafe fn allocate(
        &mut self,
        allocate_info: vk::MemoryAllocateInfo,
    ) -> Result<Allocation> {
        Ok(Allocation {
            memory: self
                .logical_device
                .allocate_memory(&allocate_info, None)?,
            offset: 0,
            byte_size: allocate_info.allocation_size,
            memory_type_index: allocate_info.memory_type_index,
        })
    }
/// Directly allocate device memory onto the heap indicated by the
/// memory type index of the `allocate_info` struct.
Directly allocate device memory onto the heap indicated by the
memory type index of the `allocate_info` struct.
Directly allocate device memory onto the heap indicated by the memory type index of the ` allocate_info ` struct .
unsafe fn allocate(
        &mut self,
        allocate_info: vk::MemoryAllocateInfo,
    ) -> Result<Allocation> {
        Ok(Allocation {
            memory: self
                .logical_device
                .allocate_memory(&allocate_info, None)?,
            offset: 0,
            byte_size: allocate_info.allocation_size,
            memory_type_index: allocate_info.memory_type_index,
        })
    }
unsafe fn allocate ( & mut self , allocate_info : vk :: MemoryAllocateInfo , ) -> Result < Allocation > { Ok ( Allocation { memory : self . logical_device . allocate_memory ( & allocate_info , None ) ? , offset : 0 , byte_size : allocate_info . allocation_size , memory_type_index : allocate_info . memory_type_index , } ) }
Directly allocate device memory onto the heap indicated by the
memory type index of the `allocate_info` struct.
Directly allocate device memory onto the heap indicated by the memory type index of the ` allocate_info ` struct .
&mut self
allocate_info
vk::MemoryAllocateInfo