Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 853 Bytes

File metadata and controls

27 lines (21 loc) · 853 Bytes

VulkanMemoryAllocator

This is VulkanMemoryAllocator, packaged for the Zig build system.

how to use

  1. Add VulkanMemoryAllocator to the dependency list in build.zig.zon:
zig fetch --save git+https://github.com/johan0A/VulkanMemoryAllocator
  1. 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"