Advertisement

Correct behavior after window minimize

Started by November 20, 2017 08:50 AM
0 comments, last by mark_braga 7 years, 2 months ago

It seems like nobody really knows what is the correct behavior after window minimizes in Vulkan.

I have looked at most of the examples (Sascha Willems, GPUOpen,...) and all of them crash after the window minimize event with the error VK_ERROR_OUT_OF_DATE either with an assertion during acquire image or after calling present. This is because we have to recreate the swap chain.

I tried this but then Vulkan expects you to provide a swap chain with extents { 0, 0, 0, 0 }, but now if you try to set the viewport or create new image views with extents { 0, 0, 0, 0 }, Vulkan expects you to provide non-zero values. So now I am confused.

Should we just do nothing after a window minimize event? No rendering, update, ...?

This topic is closed to new replies.

Advertisement