Skip to content

Commit 53f19ef

Browse files
Bump to upstream plume (#216)
* Bump to upstream plume * Fix Plume variable renames * Add missed changes
1 parent f3c984e commit 53f19ef

4 files changed

Lines changed: 15 additions & 8 deletions

File tree

MarathonRecomp/gpu/video.cpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ namespace plume
131131
#ifdef MARATHON_RECOMP_METAL
132132
extern std::unique_ptr<RenderInterface> CreateMetalInterface();
133133
#endif
134-
#ifdef SDL_VULKAN_ENABLED
134+
#ifdef PLUME_SDL_VULKAN_ENABLED
135135
extern std::unique_ptr<RenderInterface> CreateVulkanInterface(RenderWindow sdlWindow);
136136
#else
137137
extern std::unique_ptr<RenderInterface> CreateVulkanInterface();
138138
#endif
139139

140140
static std::unique_ptr<RenderInterface> CreateVulkanInterfaceWrapper() {
141-
#ifdef SDL_VULKAN_ENABLED
141+
#ifdef PLUME_SDL_VULKAN_ENABLED
142142
return CreateVulkanInterface(GameWindow::s_renderWindow);
143143
#else
144144
return CreateVulkanInterface();
@@ -2061,7 +2061,14 @@ bool Video::CreateHostDevice(const char *sdlVideoDriver, bool graphicsApiRetry)
20612061
break;
20622062
}
20632063

2064-
g_swapChain = g_queue->createSwapChain(GameWindow::s_renderWindow, bufferCount, BACKBUFFER_FORMAT, Config::MaxFrameLatency);
2064+
RenderSwapChainDesc swapChainDesc;
2065+
swapChainDesc.renderWindow = GameWindow::s_renderWindow;
2066+
swapChainDesc.textureCount = bufferCount;
2067+
swapChainDesc.format = BACKBUFFER_FORMAT;
2068+
swapChainDesc.maxFrameLatency = Config::MaxFrameLatency;
2069+
swapChainDesc.enablePresentWait = g_capabilities.presentWait;
2070+
2071+
g_swapChain = g_queue->createSwapChain(swapChainDesc);
20652072
g_swapChain->setVsyncEnabled(Config::VSync);
20662073
g_swapChainValid = !g_swapChain->needsResize();
20672074

MarathonRecomp/ui/game_window.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ void GameWindow::Init(const char* sdlVideoDriver)
212212
DWM_WINDOW_CORNER_PREFERENCE wcp = DWMWCP_DONOTROUND;
213213
DwmSetWindowAttribute(s_renderWindow, DWMWA_WINDOW_CORNER_PREFERENCE, &wcp, sizeof(wcp));
214214
}
215-
#elif defined(SDL_VULKAN_ENABLED)
215+
#elif defined(PLUME_SDL_VULKAN_ENABLED)
216216
s_renderWindow = s_pWindow;
217217
#elif defined(__linux__)
218218
s_renderWindow = { info.info.x11.display, info.info.x11.window };
@@ -439,7 +439,7 @@ uint32_t GameWindow::GetWindowFlags()
439439
if (Config::Fullscreen)
440440
flags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
441441

442-
#ifdef SDL_VULKAN_ENABLED
442+
#ifdef PLUME_SDL_VULKAN_ENABLED
443443
flags |= SDL_WINDOW_VULKAN;
444444
#endif
445445

thirdparty/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ set(SDL2MIXER_VORBIS "VORBISFILE")
1616
set(SDL2MIXER_WAVPACK OFF)
1717

1818
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
19-
set(SDL_VULKAN_ENABLED ON CACHE BOOL "")
19+
set(PLUME_SDL_VULKAN_ENABLED ON CACHE BOOL "")
2020
endif()
2121

2222
if (WIN32)
23-
set(D3D12_AGILITY_SDK_ENABLED ON CACHE BOOL "")
23+
set(PLUME_D3D12_AGILITY_SDK_ENABLED ON CACHE BOOL "")
2424
endif()
2525

2626
if (APPLE AND CMAKE_OSX_ARCHITECTURES)

0 commit comments

Comments
 (0)