From 33ec2f26cc629aa91ee8602907708977086ddea6 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Fri, 25 Aug 2023 09:52:33 -0400 Subject: Recreate swapchain and use MAX_FRAMES_IN_FLIGHT Several changes here - use MAX_FRAMES_IN_FLIGHT - recreate swapchain at appropriate points or events - don't need sampler in shader for present because we don't have any other viewports to render yet. (scaling not implemented, etc) - nothing to bind because nothing exists yet - should be ready to implement imgui --- src/window.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/window.hpp') diff --git a/src/window.hpp b/src/window.hpp index b7a4e05..27f809c 100644 --- a/src/window.hpp +++ b/src/window.hpp @@ -7,7 +7,7 @@ #include #include -const unsigned int MAX_FRAMES_IN_FLIGHT = 3; +const unsigned int MAX_FRAMES_IN_FLIGHT = 2; extern GLFWwindow *window; extern VkInstance vkInstance; -- cgit v1.2.3