Added some logging of swapchain parameters when created.
This commit is contained in:
parent
32efcc09d2
commit
d41e3588fd
@ -3,6 +3,7 @@
|
||||
|
||||
#include <mijin/debug/assert.hpp>
|
||||
#include <SDL_vulkan.h>
|
||||
#include <vulkan/vulkan_to_string.hpp>
|
||||
#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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user