[Chore] (MG_Backend/DirectVulkan): unwrap frame context initialization

This commit is contained in:
2026-03-20 09:55:22 +08:00
parent 87c56ce3d5
commit bfa4049ac1
2 changed files with 3 additions and 8 deletions
@@ -276,12 +276,6 @@ namespace MobileGL::MG_Backend::DirectVulkan {
return flags;
}
void VulkanRenderer::CreateFrameContexts() {
VK_VERIFY(m_frameContext.Initialize(m_device, m_commandPool, m_config.MaxFramesInFlight),
"CreateFrameContexts");
MGLOG_I("CreateFrameContexts completed");
}
void VulkanRenderer::Initialize() {
CreateInstance();
CreateSurface();
@@ -290,7 +284,9 @@ namespace MobileGL::MG_Backend::DirectVulkan {
CreateAllocator();
CreateCommandPool();
CreateFrameContexts();
VK_VERIFY(m_frameContext.Initialize(m_device, m_commandPool, m_config.MaxFramesInFlight),
"CreateFrameContexts");
MGLOG_I("CreateFrameContexts completed");
auto succeeded = false;
succeeded = m_bufferManager.Initialize({
.allocator = m_allocator,
@@ -197,7 +197,6 @@ namespace MobileGL::MG_Backend::DirectVulkan {
void DestroyAllocator();
void CreateSwapchain();
void CreateCommandPool();
void CreateFrameContexts();
VkPipeline GetOrCreatePipeline(
GLenum mode,