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

@@ -61,6 +61,8 @@ public:
void createRenderPasses();
KRRenderPass& getForwardOpaquePass();
void endFrame();
#ifdef WIN32
HWND m_hWnd;
#endif
@@ -81,6 +83,9 @@ public:
std::unique_ptr<KRRenderPass> m_forwardOpaquePass;
// TODO - This needs to be advanced per swap chain
uint64_t m_frameIndex;
private:
void destroySwapChain();
KrResult createSwapChain();