mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-22 15:24:34 +00:00
4a30810a87
The DelayedDeletionQueue is a general utility for queueing up things to delete at a future time. This simplifies swapchain recreation by making the deletion of in-use objects to be done later when they are no longer in use. The SwapchainManager handles all aspects of a swapchain: * Creation - Pass a SwapchainBuilder to specify how the swapchain should be created. * Recreation - Recreates the swapchain without introducing a pipeline stall through the use of an internal DelayedDeletionQueue. * Semaphores - Handles setting up the semaphores for acquiring a swapchain image, submitting work to draw to it, then presenting it. * Fences - Owns the fences associated with the command buffer submissions which write to the swapchain image. Optionally, the SwapchainManager can also provide command buffers in which to record with for ease of use in simple situations. There is a ImagelessFramebufferBuilder to simplify creating imageless framebuffers into a few lines of code. Nothing special, but is a nice thing to have Also in these changes Fixed issue with image usage flags inheriting the wrong flags and causing validation message spam. |
||
---|---|---|
.. | ||
bootstrap_tests.cpp | ||
CMakeLists.txt | ||
common.h | ||
error_code_tests.cpp | ||
main.cpp | ||
unit_tests.cpp |