Move m_current_buffer_idx to GEVulkanDriver

This commit is contained in:
Benau
2022-11-30 10:41:39 +08:00
parent 90a22a691a
commit 392bdbf78b
5 changed files with 21 additions and 20 deletions

View File

@@ -365,6 +365,7 @@ namespace GE
void addDrawCallToCache(std::unique_ptr<GEVulkanDrawCall>& dc);
std::unique_ptr<GEVulkanDrawCall> getDrawCallFromCache();
GESPM* getBillboardQuad() const { return m_billboard_quad; }
int getCurrentBufferIdx() const { return m_current_buffer_idx; }
private:
struct SwapChainSupportDetails
{
@@ -509,6 +510,7 @@ namespace GE
std::vector<std::unique_ptr<GEVulkanDrawCall> > m_draw_calls_cache;
GESPM* m_billboard_quad;
int m_current_buffer_idx;
void createInstance(SDL_Window* window);
void findPhysicalDevice();