Skip to content

Commit bfa4049

Browse files
committed
[Chore] (MG_Backend/DirectVulkan): unwrap frame context initialization
1 parent 87c56ce commit bfa4049

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,6 @@ namespace MobileGL::MG_Backend::DirectVulkan {
276276
return flags;
277277
}
278278

279-
void VulkanRenderer::CreateFrameContexts() {
280-
VK_VERIFY(m_frameContext.Initialize(m_device, m_commandPool, m_config.MaxFramesInFlight),
281-
"CreateFrameContexts");
282-
MGLOG_I("CreateFrameContexts completed");
283-
}
284-
285279
void VulkanRenderer::Initialize() {
286280
CreateInstance();
287281
CreateSurface();
@@ -290,7 +284,9 @@ namespace MobileGL::MG_Backend::DirectVulkan {
290284
CreateAllocator();
291285

292286
CreateCommandPool();
293-
CreateFrameContexts();
287+
VK_VERIFY(m_frameContext.Initialize(m_device, m_commandPool, m_config.MaxFramesInFlight),
288+
"CreateFrameContexts");
289+
MGLOG_I("CreateFrameContexts completed");
294290
auto succeeded = false;
295291
succeeded = m_bufferManager.Initialize({
296292
.allocator = m_allocator,

MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ namespace MobileGL::MG_Backend::DirectVulkan {
197197
void DestroyAllocator();
198198
void CreateSwapchain();
199199
void CreateCommandPool();
200-
void CreateFrameContexts();
201200

202201
VkPipeline GetOrCreatePipeline(
203202
GLenum mode,

0 commit comments

Comments
 (0)