#pragma once #include "vk_device.h" class VulkanSwapChain { public: VulkanSwapChain(VulkanDevice *device, int width, int height, bool vsync); ~VulkanSwapChain(); bool vsync; VkSwapchainKHR swapChain; VkSurfaceFormatKHR swapChainFormat; std::vector swapChainImages; std::vector swapChainImageViews; VkExtent2D actualExtent; private: VulkanDevice *device = nullptr; VulkanSwapChain(const VulkanSwapChain &) = delete; VulkanSwapChain &operator=(const VulkanSwapChain &) = delete; };