VulkanMemoryAllocator-Hpp
VulkanMemoryAllocator-Hpp copied to clipboard
C++ bindings for VulkanMemoryAllocator
After trying to compile: ``` /usr/include/vulkan/vulkan.hpp: In instantiation of ‘constexpr vk::Flags vk::Flags::operator~() const [with BitType = vma::AllocationCreateFlagBits]’: /home/ashley/Programming/zombie-hunter/lib/vma/vk_mem_alloc.hpp:108:45: required from here /usr/include/vulkan/vulkan.hpp:719:60: error: ‘allFlags’ is not a member of ‘vk::FlagTraits’...
 os: Linux compilator: gcc
When trying to compile this with apple clang 11 I get compilation errors: explicit specialization of 'vk::FlagTraits' after instantiation explicit specialization of 'vk::FlagTraits' after instantiation explicit specialization of 'vk::FlagTraits' after...
The support is enabled similarly to `Vulkan-HPP`. Their `VULKAN_HPP_NO_STRUCT_CONSTRUCTORS` macro was substituted with `VMA_HPP_NO_STRUCT_CONSTRUCTORS`.
vulkan-hpp provides destroy function overloads. I'm not sure this makes the API better, but to be on par with the vulkan-hpp API I think they should be there.