Vulkan: Log when a swap chain resize is occurring

This may help us debug performance problems in the future.
This commit is contained in:
Stenzek 2020-01-31 19:11:43 +10:00
parent 4f01dad469
commit ead65b0d8c
1 changed files with 1 additions and 0 deletions

View File

@ -305,6 +305,7 @@ void Renderer::BindBackbuffer(const ClearColor& clear_color)
}
else if (res == VK_SUBOPTIMAL_KHR || res == VK_ERROR_OUT_OF_DATE_KHR)
{
INFO_LOG(VIDEO, "Resizing swap chain due to suboptimal/out-of-date");
m_swap_chain->ResizeSwapChain();
}
else