mirror of
https://github.com/johan0A/VulkanMemoryAllocator.git
synced 2026-11-17 01:50:36 +00:00
VulkanMemoryAllocator packaged for the Zig build system
- Zig 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| LICENSE.txt | ||
| README.md | ||
VulkanMemoryAllocator
This is VulkanMemoryAllocator, packaged for the Zig build system.
how to use
- 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"