wip
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
light7734 2025-10-09 14:29:38 +03:30
parent e6d8798296
commit 643fc49b18
Signed by: light7734
GPG key ID: 8C30176798F1A6BA

View file

@ -24,6 +24,7 @@ Swapchain::Swapchain(ISurface *surface, IGpu *gpu, IDevice *device)
const auto queue_indices = m_device->get_family_indices();
m_format = surface_format.format;
std::cout << "CREATING SWAPCHAIN" << std::endl;
m_swapchain = m_device->create_swapchain(
VkSwapchainCreateInfoKHR {
.sType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR,
@ -89,6 +90,7 @@ Swapchain::~Swapchain()
{
m_device->wait_idle();
// m_device->destroy_image_views(m_image_views);
std::cout << "DESTROYING SWAPCHAIN" << std::endl;
m_device->destroy_swapchain(m_swapchain);
}
catch (const std::exception &exp)