Add VulkanMemoryAllocator v2.3.0 submodule

This commit is contained in:
Megamouse 2025-03-26 18:42:38 +01:00
parent 9c99e75939
commit 217b18de4b
7 changed files with 8 additions and 18137 deletions

4
.gitmodules vendored
View file

@ -104,3 +104,7 @@
path = 3rdparty/discord-rpc/discord-rpc
url = ../../Vestrel/discord-rpc
ignore = dirty
[submodule "3rdparty/GPUOpen/VulkanMemoryAllocator"]
path = 3rdparty/GPUOpen/VulkanMemoryAllocator
url = ../../Megamouse/VulkanMemoryAllocator.git
ignore = dirty

@ -0,0 +1 @@
Subproject commit 3951bb11de459d8019ce8b28e276170860c079c0

File diff suppressed because it is too large Load diff

View file

@ -53,7 +53,7 @@ private:
#pragma GCC diagnostic ignored "-Wsuggest-attribute=noreturn"
#endif
#endif
#include "3rdparty/GPUOpen/include/vk_mem_alloc.h"
#include "3rdparty/GPUOpen/VulkanMemoryAllocator/src/vk_mem_alloc.h"
#ifdef _MSC_VER
#pragma warning(pop)
#else

View file

@ -1,14 +0,0 @@
#pragma once
#include "../VulkanAPI.h"
#include "../../rsx_utils.h"
#include "shared.h"
#include "3rdparty/GPUOpen/include/vk_mem_alloc.h"
namespace vk
{
// Memory Allocator - base class
}

View file

@ -4,7 +4,7 @@
#include "../../rsx_utils.h"
#include "shared.h"
#include "3rdparty/GPUOpen/include/vk_mem_alloc.h"
#include "3rdparty/GPUOpen/VulkanMemoryAllocator/src/vk_mem_alloc.h"
namespace vk
{

View file

@ -22,7 +22,7 @@ namespace vk
}
border_color_t::border_color_t(const color4f& color, VkFormat fmt, VkImageAspectFlags aspect)
: format(fmt), aspect(aspect), color_value(color)
: storage_key(0), format(fmt), aspect(aspect), color_value(color)
{
const auto encoded_color = rsx::encode_color_to_storage_key(color);
value = vk::get_border_color(encoded_color);