37 explicit operator VkSwapchainKHR()
const {
43 bool getNextImage(uint32_t *imageIndex, VkSemaphore semaphore = VK_NULL_HANDLE);
44 bool present(
const Queue* presentQueue, uint32_t imageIndex, VkSemaphore semaphore = VK_NULL_HANDLE)
const;
46 const std::vector<Image>& getImages()
const;
47 const std::vector<ImageView>& getImagesViews()
const;
49 const VkSurfaceFormatKHR& getFormat()
const;
50 const VkExtent2D& getExtent()
const;
52 void setOutOfDate(
bool outOfDate);
53 bool isOutOfDate()
const;
56 explicit Swapchain(VkSwapchainKHR swapchain,
const Device* device,
const VkSurfaceFormatKHR& swapchainFormat,
const VkExtent2D& extent);
61 VkSwapchainKHR _swapchain{VK_NULL_HANDLE};
70 bool _outOfDate{
false};
VkSurfaceFormatKHR _format
std::vector< ImageView > _imagesViews
std::vector< Image > _images