1 #ifndef MSP_GL_WINDOWVIEW_BACKEND_H_
2 #define MSP_GL_WINDOWVIEW_BACKEND_H_
5 #include "framebuffer.h"
13 class VulkanWindowView: public View
16 SwapChain *swap_chain = 0;
17 std::vector<Framebuffer> framebuffers;
18 Framebuffer *current_target = 0;
19 Semaphore semaphores[MAX_FRAMES_IN_FLIGHT*2];
20 unsigned frame_index = 0;
22 VulkanWindowView() = default;
25 virtual void render();
26 virtual const Framebuffer &get_target() const { return *current_target; }
28 void resize_framebuffer(unsigned, unsigned);
31 using WindowViewBackend = VulkanWindowView;