This is VulkanMemoryAllocator, packaged for the Zig build system.
- Add
VulkanMemoryAllocatorto the dependency list inbuild.zig.zon:
zig fetch --save git+https://github.com/johan0A/VulkanMemoryAllocator- Config
build.zig:
const vma_dep = b.dependency("VulkanMemoryAllocator", .{
.target = target,
.optimize = optimize,
.VMA_DYNAMIC_VULKAN_FUNCTIONS = true,
.VMA_STATIC_VULKAN_FUNCTIONS = false,
});
root_module.linkLibrary(vma_dep.artifact("VulkanMemoryAllocator"));
// Installed headers along the VulkanMemoryAllocator artifact:
// "vk_mem_alloc_config.h" generated configuration header that reflects the provided options, should be included before vk_mem_alloc.h
// "vk_mem_alloc.h"