Page MenuHome

Vulkan: Add VK memory allocator 3.0.1 to extern.
ClosedPublic

Authored by Jeroen Bakker (jbakker) on Nov 21 2022, 2:42 PM.

Details

Summary

Vulkan doesn't have a memory allocator builtin. The application should
provide the memory allocator at runtime. Vulkan Memory Allocator is a
widely used implementation.

Vulkan Memory Allocator is a header only implementation, but the using
application should compile a part in a CPP compile unit. The file
vk_mem_alloc_impl.cc and extern_vulkan_memory_allocator library
is therefore introduced.

Diff Detail

Repository
rB Blender
Branch
temp-vulkan-memory-allocator (branched from master)
Build Status
Buildable 24761
Build 24761: arc lint + arc unit

Event Timeline

  • Fix compilation vk_mem_alloc on Apple.
  • Merge branch 'master' into temp-vulkan-memory-allocator
  • GPU: add vulkan memory allocator to VKContext.
Jeroen Bakker (jbakker) edited the summary of this revision. (Show Details)
  • Change license header.
  • Change vulkan version to 1.2
  • Don't use curly brackets to group code.
extern/vulkan_memory_allocator/CMakeLists.txt
11

I don't like this we should use a similar approach as done in windows where it just uses the libs folder and collect everything that is needed. This would be a change in master first.

  • Merge branch 'master' into temp-vulkan-memory-allocator
  • Some tweaks in make file to reduce branching.
Jeroen Bakker (jbakker) requested review of this revision.Nov 22 2022, 2:12 PM
  • Add destructor and accessor for VKContext::mem_allocator_.
This revision is now accepted and ready to land.Nov 23 2022, 1:05 PM