Added resizing + swap chain recreation
This commit is contained in:
+817
-764
File diff suppressed because it is too large
Load Diff
@@ -109,6 +109,8 @@ private:
|
||||
void recordCommandBuffer(VkCommandBuffer commandBuffer, uint32_t imageIndex);
|
||||
void createSyncObjects();
|
||||
void drawFrame();
|
||||
void cleanupSwapChain();
|
||||
void recreateSwapChain();
|
||||
void initWindow(const char* windowName);
|
||||
void initVulkan();
|
||||
void mainLoop();
|
||||
@@ -121,6 +123,8 @@ public:
|
||||
const bool enableValidationLayers = false;
|
||||
#endif
|
||||
|
||||
bool framebufferResized = false;
|
||||
|
||||
void run(const char* windowName, const uint32_t width = 800, const uint32_t height = 600);
|
||||
};
|
||||
} // vapp
|
||||
|
||||
Reference in New Issue
Block a user