|
|
|
@ -249,13 +249,13 @@ void Swapchain::create() { |
|
|
|
capabilities.maxImageExtent.height |
|
|
|
); |
|
|
|
} |
|
|
|
logger.debug() << "swapchain extent: " << m_extent.width |
|
|
|
<< ", " << m_extent.height; |
|
|
|
// logger.debug() << "swapchain extent: " << m_extent.width
|
|
|
|
// << ", " << m_extent.height;
|
|
|
|
|
|
|
|
uint32_t image_count = capabilities.minImageCount; |
|
|
|
if(capabilities.maxImageCount != 0) |
|
|
|
image_count = std::min(image_count, capabilities.maxImageCount); |
|
|
|
logger.debug() << "swapchain image count: " << image_count; |
|
|
|
// logger.debug() << "swapchain image count: " << image_count;
|
|
|
|
|
|
|
|
bool share_image = m_queue_families.size() > 1; |
|
|
|
|
|
|
|
@ -389,6 +389,8 @@ void Swapchain::recreate() { |
|
|
|
|
|
|
|
destroy(); |
|
|
|
create(); |
|
|
|
|
|
|
|
m_invalid = false; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|