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.
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
Just copy vk_mem_alloc.h and vk_mem_alloc.hpp to your project.
// 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"