emrsmsrli / vma-hpp

C++ bindings for VulkanMemoryAllocator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vma-hpp 1.0

Forked from https://github.com/Macdu/VulkanMemoryAllocator-Hpp

Supports Vulkan 1.3

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.

Usage

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"

About

C++ bindings for VulkanMemoryAllocator

License:Creative Commons Zero v1.0 Universal


Languages

Language:C 71.8%Language:C++ 23.4%Language:Java 4.8%Language:CMake 0.1%