Awesome
Unmaintained
There is an up-to-date rewrite of these bindings at https://github.com/YaaZ/VulkanMemoryAllocator-Hpp. They should be compatible with this version, although I have not tested that myself.
VulkanMemoryAllocator-Hpp
These bindings use all the handy stuff from Vulkan-Hpp
: wrapper classes, type safe enums, std::vector
s, Optional
etc. They are generated by the generator used by Vulkan-Hpp
, that's why they look so similar.
Current VMA version: 3.0.0-development (e5c03604c9740ff337cd0c5b4a19c9a04a0b3a52)
Warning: The bindings are not thoroughly tested yet. If you encounter any errors, please open an issue: https://github.com/malte-v/VulkanMemoryAllocator-Hpp/issues/new
Setup
Just copy vk_mem_alloc.h and vk_mem_alloc.hpp to your project.
Usage
// In *one* source file:
#define VMA_IMPLEMENTATION
// If you don't like the `vma::` prefix:
#define VMA_HPP_NAMESPACE <prefix>
#include "vk_mem_alloc.hpp"