Skip to content
Snippets Groups Projects
Commit f0ff6812 authored by Niklas Haas's avatar Niklas Haas
Browse files

vulkan/swapchain: rewrite/fix swapchain recreation logic

So, from the vulkan spec, swapchains are put into a retired state
whether the call to `vkCreateSwapchainKHR` succeeds or fails, so we
always need to garbage collect them.

In addition, the point about multiple "stale" swapchains being forbidden
is also bogus, the vulkan spec explicitly clarifies that this is
allowed.

Finally, this solves a number of theoretical race conditions that were
present as a result of this struct not being locked with respect to
callbacks, by passing the (wrapped) handle directly.
parent 7c6f29f4
No related branches found
No related tags found
1 merge request!275vulkan: handle wrapping for 32-bit platforms
Pipeline #253265 passed with stages
in 9 minutes and 58 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment