gzdoom-gles/src/rendering/vulkan/system/vk_swapchain.h

26 lines
520 B
C
Raw Normal View History

#pragma once
#include "vk_device.h"
class VulkanSwapChain
{
public:
VulkanSwapChain(VulkanDevice *device, int width, int height, bool vsync);
~VulkanSwapChain();
2019-02-27 21:20:18 +00:00
bool vsync;
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;
};