summaryrefslogtreecommitdiff
path: root/src/window.hpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-08-25 09:52:33 -0400
committerJonathan Bradley <jcb@pikum.xyz>2023-08-25 09:52:33 -0400
commit33ec2f26cc629aa91ee8602907708977086ddea6 (patch)
tree55a4fa34739a8dace6e15ffb82a89b27c518eb94 /src/window.hpp
parent1642e319e241b41246442adc3bc780261dd612c0 (diff)
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
Diffstat (limited to 'src/window.hpp')
-rw-r--r--src/window.hpp2
1 files changed, 1 insertions, 1 deletions
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 <GLFW/glfw3.h>
#include <vulkan/vulkan.h>
-const unsigned int MAX_FRAMES_IN_FLIGHT = 3;
+const unsigned int MAX_FRAMES_IN_FLIGHT = 2;
extern GLFWwindow *window;
extern VkInstance vkInstance;