Registry /
utility / vulkan-memory-allocator-hpp
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
vk_mem_alloc.h
✓ #include <vk_mem_alloc.h>
Create and destroy a VMA allocator
#include <vk_mem_alloc.h>
#include <vulkan/vulkan.hpp>
int main() {
vk::Instance instance;
vk::PhysicalDevice physicalDevice;
vk::Device device;
VmaAllocator allocator;
VmaAllocatorCreateInfo allocatorInfo = {};
allocatorInfo.instance = instance;
allocatorInfo.physicalDevice = physicalDevice;
allocatorInfo.device = device;
vmaCreateAllocator(&allocatorInfo, &allocator);
vmaDestroyAllocator(allocator);
return 0;
}
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.