externals: Add vma and initialize it

video_core: Move vma implementation to library
This commit is contained in:
lat9nq 2023-06-18 04:59:12 -04:00 committed by GPUCode
parent 6d055a21e3
commit 0a4650cd2b
7 changed files with 40 additions and 2 deletions

View file

@ -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)

1
externals/vma/vma vendored Submodule

@ -0,0 +1 @@
Subproject commit 0aa3989b8f382f185fdf646cc83a1d16fa31d6ab

5
externals/vma/vma.cpp vendored Normal file
View file

@ -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>