mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 04:08:32 +09:00
[Chore] (MG_Backend/DirectVulkan): unwrap frame context initialization
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user