2019-02-20 20:21:57 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "vk_device.h"
|
|
|
|
|
|
|
|
class VulkanSwapChain
|
|
|
|
{
|
|
|
|
public:
|
2019-03-14 22:33:19 +00:00
|
|
|
VulkanSwapChain(VulkanDevice *device);
|
2019-02-20 20:21:57 +00:00
|
|
|
~VulkanSwapChain();
|
|
|
|
|
2019-02-27 21:20:18 +00:00
|
|
|
bool vsync;
|
2019-02-20 20:21:57 +00:00
|
|
|
VkSwapchainKHR swapChain;
|
|
|
|
VkSurfaceFormatKHR swapChainFormat;
|
|
|
|
|
|
|
|
std::vector<VkImage> swapChainImages;
|
|
|
|
std::vector<VkImageView> swapChainImageViews;
|
|
|
|
|
|
|
|
VkExtent2D actualExtent;
|
|
|
|
|
|
|
|
private:
|
|
|
|
VulkanDevice *device = nullptr;
|
|
|
|
|
|
|
|
VulkanSwapChain(const VulkanSwapChain &) = delete;
|
|
|
|
VulkanSwapChain &operator=(const VulkanSwapChain &) = delete;
|
|
|
|
};
|