mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 22:28: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;
|
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() {
|
void VulkanRenderer::Initialize() {
|
||||||
CreateInstance();
|
CreateInstance();
|
||||||
CreateSurface();
|
CreateSurface();
|
||||||
@@ -290,7 +284,9 @@ namespace MobileGL::MG_Backend::DirectVulkan {
|
|||||||
CreateAllocator();
|
CreateAllocator();
|
||||||
|
|
||||||
CreateCommandPool();
|
CreateCommandPool();
|
||||||
CreateFrameContexts();
|
VK_VERIFY(m_frameContext.Initialize(m_device, m_commandPool, m_config.MaxFramesInFlight),
|
||||||
|
"CreateFrameContexts");
|
||||||
|
MGLOG_I("CreateFrameContexts completed");
|
||||||
auto succeeded = false;
|
auto succeeded = false;
|
||||||
succeeded = m_bufferManager.Initialize({
|
succeeded = m_bufferManager.Initialize({
|
||||||
.allocator = m_allocator,
|
.allocator = m_allocator,
|
||||||
|
|||||||
@@ -197,7 +197,6 @@ namespace MobileGL::MG_Backend::DirectVulkan {
|
|||||||
void DestroyAllocator();
|
void DestroyAllocator();
|
||||||
void CreateSwapchain();
|
void CreateSwapchain();
|
||||||
void CreateCommandPool();
|
void CreateCommandPool();
|
||||||
void CreateFrameContexts();
|
|
||||||
|
|
||||||
VkPipeline GetOrCreatePipeline(
|
VkPipeline GetOrCreatePipeline(
|
||||||
GLenum mode,
|
GLenum mode,
|
||||||
|
|||||||
Reference in New Issue
Block a user