From 8bd119468cee05cc5bb413133a80e69c093f3730 Mon Sep 17 00:00:00 2001 From: light7734 Date: Thu, 9 Oct 2025 14:44:24 +0330 Subject: [PATCH] wip --- modules/renderer/private/backend/vk/context/swapchain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/renderer/private/backend/vk/context/swapchain.cpp b/modules/renderer/private/backend/vk/context/swapchain.cpp index c684af1..53e1027 100644 --- a/modules/renderer/private/backend/vk/context/swapchain.cpp +++ b/modules/renderer/private/backend/vk/context/swapchain.cpp @@ -24,7 +24,6 @@ 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, @@ -45,6 +44,7 @@ Swapchain::Swapchain(ISurface *surface, IGpu *gpu, IDevice *device) .oldSwapchain = nullptr, } ); + log_dbg("CREATED SWAPCHAIN @ {:x}", std::bit_cast(m_swapchain)); m_resolution = capabilities.currentExtent; m_device->name(m_swapchain, "swapchain {}", idx++); m_device->wait_idle(); @@ -89,8 +89,8 @@ Swapchain::~Swapchain() try { m_device->wait_idle(); - // m_device->destroy_image_views(m_image_views); std::cout << "DESTROYING SWAPCHAIN" << std::endl; + log_dbg("DESTROY SWAPCHAIN @ {:x}", std::bit_cast(m_swapchain)); m_device->destroy_swapchain(m_swapchain); m_device->wait_idle(); }