From e83097d1142daa8dca6c37c1f5458414645e85bd Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Fri, 12 Jul 2024 17:04:23 +0200 Subject: [PATCH] Fix missing memory allocator for Vulkan Memory Allocator --- Source/Engine/GraphicsDevice/Vulkan/IncludeVulkanHeaders.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Engine/GraphicsDevice/Vulkan/IncludeVulkanHeaders.h b/Source/Engine/GraphicsDevice/Vulkan/IncludeVulkanHeaders.h index 887e5f89d..f9f753cb5 100644 --- a/Source/Engine/GraphicsDevice/Vulkan/IncludeVulkanHeaders.h +++ b/Source/Engine/GraphicsDevice/Vulkan/IncludeVulkanHeaders.h @@ -37,6 +37,8 @@ #define VMA_MIN(v1, v2) (Math::Min((v1), (v2))) #define VMA_MAX(v1, v2) (Math::Max((v1), (v2))) #define VMA_SWAP(v1, v2) (::Swap((v1), (v2))) +#define VMA_SYSTEM_ALIGNED_MALLOC(size, alignment) Platform::Allocate(uint64(size), uint64(alignment)) +#define VMA_SYSTEM_ALIGNED_FREE(ptr) Platform::Free(ptr) #define VMA_NULLABLE #define VMA_NOT_NULL #include