Skip to content

Commit 9ace79a

Browse files
authored
Switch to upstream plume. (#1645)
1 parent 80e779a commit 9ace79a

22 files changed

+33
-11782
lines changed

.gitmodules

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,9 @@
1616
[submodule "thirdparty/vcpkg"]
1717
path = thirdparty/vcpkg
1818
url = https://github.com/microsoft/vcpkg
19-
[submodule "thirdparty/volk"]
20-
path = thirdparty/volk
21-
url = https://github.com/zeux/volk
2219
[submodule "thirdparty/SDL"]
2320
path = thirdparty/SDL
2421
url = https://github.com/libsdl-org/SDL.git
25-
[submodule "thirdparty/Vulkan-Headers"]
26-
path = thirdparty/Vulkan-Headers
27-
url = https://github.com/KhronosGroup/Vulkan-Headers.git
28-
[submodule "thirdparty/VulkanMemoryAllocator"]
29-
path = thirdparty/VulkanMemoryAllocator
30-
url = https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
31-
[submodule "thirdparty/D3D12MemoryAllocator"]
32-
path = thirdparty/D3D12MemoryAllocator
33-
url = https://github.com/GPUOpen-LibrariesAndSDKs/D3D12MemoryAllocator.git
3422
[submodule "thirdparty/stb"]
3523
path = thirdparty/stb
3624
url = https://github.com/nothings/stb.git
@@ -67,3 +55,6 @@
6755
[submodule "thirdparty/MoltenVK/SPIRV-Cross"]
6856
path = thirdparty/MoltenVK/SPIRV-Cross
6957
url = https://github.com/KhronosGroup/SPIRV-Cross.git
58+
[submodule "thirdparty/plume"]
59+
path = thirdparty/plume
60+
url = https://github.com/renderbag/plume.git

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
1919

2020
project("UnleashedRecomp-ALL")
2121

22+
if (APPLE)
23+
enable_language(OBJC OBJCXX)
24+
endif()
25+
26+
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
27+
set(SDL_VULKAN_ENABLED ON CACHE BOOL "")
28+
endif()
29+
2230
if (CMAKE_OSX_ARCHITECTURES)
2331
set(UNLEASHED_RECOMP_ARCHITECTURE ${CMAKE_OSX_ARCHITECTURES})
2432
elseif(CMAKE_SYSTEM_PROCESSOR)

UnleashedRecomp/CMakeLists.txt

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,8 @@ set(UNLEASHED_RECOMP_GPU_CXX_SOURCES
116116
"gpu/imgui/imgui_common.cpp"
117117
"gpu/imgui/imgui_font_builder.cpp"
118118
"gpu/imgui/imgui_snapshot.cpp"
119-
"gpu/rhi/plume_vulkan.cpp"
120119
)
121120

122-
if (UNLEASHED_RECOMP_D3D12)
123-
list(APPEND UNLEASHED_RECOMP_GPU_CXX_SOURCES
124-
"gpu/rhi/plume_d3d12.cpp"
125-
)
126-
endif()
127-
128121
set(UNLEASHED_RECOMP_APU_CXX_SOURCES
129122
"apu/audio.cpp"
130123
"apu/embedded_player.cpp"
@@ -221,18 +214,10 @@ set(UNLEASHED_RECOMP_THIRDPARTY_INCLUDES
221214
"${UNLEASHED_RECOMP_THIRDPARTY_ROOT}/magic_enum/include"
222215
"${UNLEASHED_RECOMP_THIRDPARTY_ROOT}/stb"
223216
"${UNLEASHED_RECOMP_THIRDPARTY_ROOT}/unordered_dense/include"
224-
"${UNLEASHED_RECOMP_THIRDPARTY_ROOT}/volk"
225-
"${UNLEASHED_RECOMP_THIRDPARTY_ROOT}/Vulkan-Headers/include"
226-
"${UNLEASHED_RECOMP_THIRDPARTY_ROOT}/VulkanMemoryAllocator/include"
227217
"${UNLEASHED_RECOMP_TOOLS_ROOT}/bc_diff"
228218
"${UNLEASHED_RECOMP_TOOLS_ROOT}/XenosRecomp/thirdparty/smol-v/source"
229219
)
230220

231-
if (UNLEASHED_RECOMP_D3D12)
232-
list(APPEND UNLEASHED_RECOMP_THIRDPARTY_INCLUDES "${UNLEASHED_RECOMP_THIRDPARTY_ROOT}/D3D12MemoryAllocator/include")
233-
list(APPEND UNLEASHED_RECOMP_THIRDPARTY_SOURCES "${UNLEASHED_RECOMP_THIRDPARTY_ROOT}/D3D12MemoryAllocator/src/D3D12MemAlloc.cpp")
234-
endif()
235-
236221
set_source_files_properties(${UNLEASHED_RECOMP_THIRDPARTY_SOURCES} PROPERTIES SKIP_PRECOMPILE_HEADERS ON)
237222

238223
set(UNLEASHED_RECOMP_CXX_SOURCES
@@ -377,7 +362,7 @@ if (UNLEASHED_RECOMP_D3D12)
377362
)
378363
endif()
379364

380-
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
365+
if (SDL_VULKAN_ENABLED)
381366
target_compile_definitions(UnleashedRecomp PRIVATE SDL_VULKAN_ENABLED)
382367
endif()
383368

@@ -428,6 +413,7 @@ target_link_libraries(UnleashedRecomp PRIVATE
428413
UnleashedRecompLib
429414
xxHash::xxhash
430415
CURL::libcurl
416+
plume
431417
)
432418

433419
target_include_directories(UnleashedRecomp PRIVATE

UnleashedRecomp/gpu/rhi/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)