Moved frameIndex to KRSurface

This commit is contained in:
2022-03-27 22:14:41 -07:00
parent 36f804e176
commit 5e8c9223ac
6 changed files with 18 additions and 9 deletions

View File

@@ -52,6 +52,7 @@ KRSurface::KRSurface(KRContext& context)
, m_depthImageView(VK_NULL_HANDLE)
, m_imageAvailableSemaphore(VK_NULL_HANDLE)
, m_renderFinishedSemaphore(VK_NULL_HANDLE)
, m_frameIndex(0)
{
m_forwardOpaquePass = std::make_unique<KRRenderPass>(context);
}
@@ -416,3 +417,8 @@ KRRenderPass& KRSurface::getForwardOpaquePass()
{
return *m_forwardOpaquePass;
}
void KRSurface::endFrame()
{
m_frameIndex++;;
}