Forked from https://github.com/Macdu/VulkanMemoryAllocator-Hpp
These bindings are generated by custom generator conforming to the structure of Vulkan-Hpp.
Warning: The bindings are not thoroughly tested yet. If you encounter any errors, please open an issue.
in CMake:
add_subdirectory(vma-hpp)
target_link_libraries(${YOUR-PROJECT_NAME} PRIVATE Vulkan::MemoryAllocatorHpp)
in C++:
// In *one* translation unit:
#define VMA_IMPLEMENTATION
// If you would like to change the `vma::` namespace:
#define VMA_HPP_NAMESPACE <ns>
// If you want dynamic dispatch (no static linking to Vulkan libraries)
#define VMA_STATIC_VULKAN_FUNCTIONS 0
// If you want to provide the function pointers yourself,
// use in conjunction with above define
#define VMA_DYNAMIC_VULKAN_FUNCTIONS 0
#include "vulkan_mem_alloc/alloc.hpp"