/// ============================================= // Aster: swapchain.h // Copyright (c) 2020-2024 Anish Bhobe // ============================================== #pragma once #include "global.h" #include struct PhysicalDevice; struct Window; struct Device; struct Swapchain final { const Device *m_Device; vk::SwapchainKHR m_Swapchain; NameString m_Name; vk::Extent2D m_Extent; vk::Format m_Format; eastl::fixed_vector m_Images; eastl::fixed_vector m_ImageViews; Swapchain(const Window *window, const Device *device, NameString &&name); ~Swapchain(); void Create(const Window *window); private: void Cleanup(); };