aboutsummaryrefslogtreecommitdiffhomepage
path: root/externals
diff options
context:
space:
mode:
authorlat9nq <[email protected]>2023-06-18 04:59:12 -0400
committerGPUCode <[email protected]>2023-06-18 12:45:12 +0300
commit6448eade2ef126a88068cde66b77e7788c3fab08 (patch)
treeac7ff6d8d31defedca403be72068dcdfb07e48ff /externals
parent6e293be20bf958a5a8ee940ff1a0e01d81d44ef4 (diff)
downloadyuzu-android-6448eade2ef126a88068cde66b77e7788c3fab08.tar.gz
yuzu-android-6448eade2ef126a88068cde66b77e7788c3fab08.zip
externals: Add vma and initialize it
video_core: Move vma implementation to library
Diffstat (limited to 'externals')
-rw-r--r--externals/CMakeLists.txt5
m---------externals/vma/vma0
-rw-r--r--externals/vma/vma.cpp5
3 files changed, 10 insertions, 0 deletions
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt
index 7cce27d51..ca4ebe4b9 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/vma/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/vma b/externals/vma/vma
new file mode 160000
+Subproject 0aa3989b8f382f185fdf646cc83a1d16fa31d6a
diff --git a/externals/vma/vma.cpp b/externals/vma/vma.cpp
new file mode 100644
index 000000000..7f7df9cff
--- /dev/null
+++ b/externals/vma/vma.cpp
@@ -0,0 +1,5 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#define VMA_IMPLEMENTATION
+#include <vk_mem_alloc.h> \ No newline at end of file