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;