From d41e3588fdcb65f46e0060dd9f41fdde992182e8 Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Thu, 27 Jun 2024 18:14:51 +0200 Subject: [PATCH] Added some logging of swapchain parameters when created. --- source/swapchain.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/swapchain.cpp b/source/swapchain.cpp index 0689c79..79afe4b 100644 --- a/source/swapchain.cpp +++ b/source/swapchain.cpp @@ -3,6 +3,7 @@ #include #include +#include #include "iwa/device.hpp" #include "iwa/log.hpp" @@ -255,6 +256,13 @@ void Swapchain::recreate() getOwner()->getVkHandle().destroySwapchainKHR(createInfo.oldSwapchain); } + logMsg("Swapchain (re)created:"); + logMsg(" Extent: {}x{}", mExtent.width, mExtent.height); + logMsg(" Image Usage: {}", vk::to_string(createInfo.imageUsage)); + logMsg(" Image count: {}", mImages.size()); + logMsg(" Format: {}", vk::to_string(mFormat)); + logMsg(" Color Space: {}", vk::to_string(createInfo.imageColorSpace)); + // update size // imageSize.width = createInfo.imageExtent.width; // imageSize.height = createInfo.imageExtent.height;