forked from tgfrerer/island
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[swapchain] delay destruction until present complete
we must wait before destroying a khr_window swapchain for the current present operation to complete on-device before we can teardown the semaphores and images that are associated with this swapchain. we can do that using VK_EXT_swapchain_maintenance1 which allows us to signal a fence on completion of swapchain present. once all these fences are signalled we know that there are no more pending device operations and that it is safe to continue destroying the swapchain object.
- Loading branch information
Showing
1 changed file
with
52 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters