diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-06-27 17:21:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-27 17:21:36 +0200 |
commit | c6959449d1e28f16d6eaf3a215f2bce5fab5ed0f (patch) | |
tree | 1ceac7222976e40bb12c3919cd3412d36b7ec93b /externals | |
parent | Merge pull request #10495 from bm01/master (diff) | |
parent | externals: Use cmake subdirectory (diff) | |
download | yuzu-c6959449d1e28f16d6eaf3a215f2bce5fab5ed0f.tar yuzu-c6959449d1e28f16d6eaf3a215f2bce5fab5ed0f.tar.gz yuzu-c6959449d1e28f16d6eaf3a215f2bce5fab5ed0f.tar.bz2 yuzu-c6959449d1e28f16d6eaf3a215f2bce5fab5ed0f.tar.lz yuzu-c6959449d1e28f16d6eaf3a215f2bce5fab5ed0f.tar.xz yuzu-c6959449d1e28f16d6eaf3a215f2bce5fab5ed0f.tar.zst yuzu-c6959449d1e28f16d6eaf3a215f2bce5fab5ed0f.zip |
Diffstat (limited to 'externals')
-rw-r--r-- | externals/CMakeLists.txt | 5 | ||||
m--------- | externals/vma/VulkanMemoryAllocator | 0 | ||||
-rw-r--r-- | externals/vma/vma.cpp | 8 |
3 files changed, 13 insertions, 0 deletions
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index 7cce27d51..0184289eb 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -143,6 +143,11 @@ endif() # TZDB (Time Zone Database) add_subdirectory(nx_tzdb) +# VMA +add_library(vma vma/vma.cpp) +target_include_directories(vma PUBLIC ./vma/VulkanMemoryAllocator/include) +target_link_libraries(vma PRIVATE Vulkan::Headers) + if (NOT TARGET LLVM::Demangle) add_library(demangle demangle/ItaniumDemangle.cpp) target_include_directories(demangle PUBLIC ./demangle) diff --git a/externals/vma/VulkanMemoryAllocator b/externals/vma/VulkanMemoryAllocator new file mode 160000 +Subproject 0aa3989b8f382f185fdf646cc83a1d16fa31d6a diff --git a/externals/vma/vma.cpp b/externals/vma/vma.cpp new file mode 100644 index 000000000..1fe2cf52b --- /dev/null +++ b/externals/vma/vma.cpp @@ -0,0 +1,8 @@ +// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#define VMA_IMPLEMENTATION +#define VMA_STATIC_VULKAN_FUNCTIONS 0 +#define VMA_DYNAMIC_VULKAN_FUNCTIONS 1 + +#include <vk_mem_alloc.h>
\ No newline at end of file |