Multiple swapchains in Vulkan app with ImGui I am integrating imgui into my app using glfw + vulkan example.

The function vkCreateSwapchainKHR() is also called by imgui setup logic in addition to my app on the same device and it fails with "internal drawable creation failed".

Under what circumstances, if any, would this be a valid approach?

Should my app and imgui share the same swapchain?
The Vulkan specification is very clear on this:


  A native window cannot be associated with more than one non-retired swapchain at a time.


You can create a new swapchain for a surface, but only by passing the old swapchain as the oldSwapchain parameter, which will cause the old swapchain to enter the retired state.

So yes, both you and imGUI should get on the same page about who owns the swapchain.