summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexandre Bouvier <contact@amb.tf>2023-06-27 22:54:33 +0200
committerAlexandre Bouvier <contact@amb.tf>2023-07-12 04:51:45 +0200
commitc3050c1b48040ee1c66f7e84efa8e49fbe35a3e3 (patch)
treee69757e6255f68e5e18f1c8d483323e9a9cdbd4e /src
parentMerge pull request #10985 from liamwhite/handle-translate (diff)
downloadyuzu-c3050c1b48040ee1c66f7e84efa8e49fbe35a3e3.tar
yuzu-c3050c1b48040ee1c66f7e84efa8e49fbe35a3e3.tar.gz
yuzu-c3050c1b48040ee1c66f7e84efa8e49fbe35a3e3.tar.bz2
yuzu-c3050c1b48040ee1c66f7e84efa8e49fbe35a3e3.tar.lz
yuzu-c3050c1b48040ee1c66f7e84efa8e49fbe35a3e3.tar.xz
yuzu-c3050c1b48040ee1c66f7e84efa8e49fbe35a3e3.tar.zst
yuzu-c3050c1b48040ee1c66f7e84efa8e49fbe35a3e3.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/CMakeLists.txt6
-rw-r--r--src/video_core/vulkan_common/vma.cpp8
2 files changed, 13 insertions, 1 deletions
diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt
index 3b2fe01da..7f79111e0 100644
--- a/src/video_core/CMakeLists.txt
+++ b/src/video_core/CMakeLists.txt
@@ -274,6 +274,7 @@ add_library(video_core STATIC
vulkan_common/vulkan_wrapper.h
vulkan_common/nsight_aftermath_tracker.cpp
vulkan_common/nsight_aftermath_tracker.h
+ vulkan_common/vma.cpp
)
create_target_directory_groups(video_core)
@@ -291,7 +292,7 @@ target_link_options(video_core PRIVATE ${FFmpeg_LDFLAGS})
add_dependencies(video_core host_shaders)
target_include_directories(video_core PRIVATE ${HOST_SHADERS_INCLUDE})
-target_link_libraries(video_core PRIVATE sirit Vulkan::Headers vma)
+target_link_libraries(video_core PRIVATE sirit Vulkan::Headers GPUOpen::VulkanMemoryAllocator)
if (ENABLE_NSIGHT_AFTERMATH)
if (NOT DEFINED ENV{NSIGHT_AFTERMATH_SDK})
@@ -324,6 +325,9 @@ else()
# xbyak
set_source_files_properties(macro/macro_jit_x64.cpp PROPERTIES COMPILE_OPTIONS "-Wno-conversion;-Wno-shadow")
+
+ # VMA
+ set_source_files_properties(vulkan_common/vma.cpp PROPERTIES COMPILE_OPTIONS "-Wno-conversion;-Wno-unused-variable;-Wno-unused-parameter;-Wno-missing-field-initializers")
endif()
if (ARCHITECTURE_x86_64)
diff --git a/src/video_core/vulkan_common/vma.cpp b/src/video_core/vulkan_common/vma.cpp
new file mode 100644
index 000000000..1fe2cf52b
--- /dev/null
+++ b/src/video_core/vulkan_common/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