gpu-allocator-0.2.0 has been yanked.
This crate provides a fully written in Rust memory allocator for Vulkan, and will provide one for DirectX 12 in the future.
Setting up the Vulkan memory allocator
use ;
use vk;
let mut allocator = new;
Simple Vulkan allocation example
// Setup vulkan info
let vk_info = builder
.size
.usage;
let buffer = unsafe ?;
let requirements = unsafe ;
let allocation = allocator
.allocate?;
// Bind memory to the buffer
unsafe ;
// Cleanup
allocator.free?;
unsafe ;