Moved frame rendering from KRCamera to KRRenderGraph

This commit is contained in:
2025-04-10 01:09:36 -07:00
parent 5f286e185e
commit 8d8cfd2532
10 changed files with 22 additions and 221 deletions

View File

@@ -249,22 +249,11 @@ VkFormat KRSurface::getDepthFormat() const
return m_swapChain->m_depthFormat;
}
KRRenderPass* KRSurface::getRenderPass(RenderPassType type)
{
return m_renderGraphForward->getRenderPass(type);
}
void KRSurface::endFrame()
{
m_frameIndex++;
}
void KRSurface::renderBlackFrame(VkCommandBuffer &commandBuffer)
{
m_renderGraphBlackFrame->render(commandBuffer, *this, nullptr);
}
VkFormat KRSurface::getSurfaceFormat() const
{
return m_surfaceFormat.format;