Skip to content

johan0A/VulkanMemoryAllocator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

VulkanMemoryAllocator packaged for the Zig build system

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages