Added Begin in SwapchainModule::Use()

This commit is contained in:
hyzboy 2025-01-19 23:22:26 +08:00
parent 10fbcfef14
commit 0a2862a051
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@
VK_NAMESPACE_BEGIN
class RenderTargetManager;
class RenderPassManager;
GRAPH_MODULE_CLASS(SwapchainModule)
{
@ -47,6 +48,6 @@ public:
RenderCmdBuffer *Use();
};//class SwapchainModule:public RenderModule
};//class SwapchainModule:public GraphModule
VK_NAMESPACE_END

View File

@ -290,6 +290,7 @@ RenderCmdBuffer *SwapchainModule::Use()
RenderCmdBuffer *rcb=cmd_buf[index];
rcb->Begin();
rcb->BindFramebuffer(swapchain_rp,swapchain_rt->GetFramebuffer());
return rcb;