Moved frameIndex to KRSurface
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user