Skip to content

Commit

Permalink
[thirdparty] updated vulkan memory allocator to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
PanosK92 committed Jan 15, 2025
1 parent 2de5f8c commit 34ff519
Show file tree
Hide file tree
Showing 2 changed files with 492 additions and 76 deletions.
19 changes: 2 additions & 17 deletions runtime/RHI/Vulkan/Vulkan_Device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -710,23 +710,8 @@ namespace spartan
SP_ASSERT_VK(vmaCreateAllocator(&allocator_info, &vulkan_memory_allocator::allocator_external));
}

// register version
{
auto version_to_string = [](uint32_t version) -> std::string
{
uint32_t major = version / 1000000;
uint32_t minor = (version / 1000) % 1000;
uint32_t patch = version % 1000;

// for some reason the version in the code is different that the version
// reported in the github releases, everything is reversed
ostringstream oss;
oss << minor << "." << patch << "." << major;
return oss.str();
};

Settings::RegisterThirdPartyLib("AMD Vulkan Memory Allocator", version_to_string(VMA_VULKAN_VERSION), "https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator");
}
// register version (I don't think VMA provides version defines)
Settings::RegisterThirdPartyLib("AMD Vulkan Memory Allocator", "3.2.0", "https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator");
}

void destroy()
Expand Down
Loading

0 comments on commit 34ff519

Please sign in to comment.