/VulkanMemoryAllocator-Hpp

C++ bindings for VulkanMemoryAllocator

Primary LanguageC++Creative Commons Zero v1.0 UniversalCC0-1.0

VulkanMemoryAllocator-Hpp

These bindings use all the handy stuff from Vulkan-Hpp: wrapper classes, type safe enums, std::vectors, Optional etc. They are generated by the generator used by Vulkan-Hpp, that's why they look so similar.

Current VMA version: 2.2.0

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"