diff options
Diffstat (limited to 'src/vk/swapchain.hpp')
-rw-r--r-- | src/vk/swapchain.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vk/swapchain.hpp b/src/vk/swapchain.hpp index 64df208..a5ade81 100644 --- a/src/vk/swapchain.hpp +++ b/src/vk/swapchain.hpp @@ -32,6 +32,12 @@ struct Swapchain VkImage *images; VkImageView *image_views; + static const int max_frames_in_flight{2}; + size_t current_frame; + std::vector<VkSemaphore> image_available_semaphores; + std::vector<VkSemaphore> render_finished_semaphores; + std::vector<VkFence> in_flight_fences; + Swapchain(); ~Swapchain(); }; |