1 #ifndef MSP_GL_VULKAN_SWAPCHAIN_H_
2 #define MSP_GL_VULKAN_SWAPCHAIN_H_
5 #include "swapchaintexture.h"
15 friend class VulkanCommands;
19 VkSwapchain handle = 0;
20 VkSurface surface = 0;
23 std::vector<SwapChainTexture> images;
24 int current_index = -1;
27 SwapChain(unsigned, unsigned, unsigned);
30 unsigned get_n_images() const { return images.size(); }
31 SwapChainTexture &get_image(unsigned i) { return images[i]; }
33 unsigned begin_frame(Semaphore &);
34 void present_frame(Semaphore &);