-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for
VK_EXT_frame_boundary
and usage in offscreen swapchain (#…
…1354) * Support for VK_EXT_frame_boundary Add support for the frame boundary extension VK_EXT_frame_boundary. This includes: - `VkFrameBoundaryEXT` structures found in the pNext chains of `vkSubmitInfo` and `vkSubmitInfo2` are now interpreted as frame delimiters at capture time if `flags` member has the `VK_FRAME_BOUNDARY_FRAME_END_BIT_EXT` bit set. - The same structures in the same calls support screenshots at replay time by interpreting `pImages` as the rendered frames. - `VK_EXT_frame_boundary` is now listed as a supported layer device extension (programs that use the layer have access to the extension even if the driver does not support it) Extended support for this extension that is NOT implemented by this commit could include: - Interpretation of `VkFrameBoundaryEXT` structure when found in `VkPresentInfoKHR` and `VkBindSparseInfo` (eg. by considering the *real* render frames to be the ones specified by the structures instead of the one presented) - Support for `VkFrameBoundaryEXT` even when the `VK_FRAME_BOUNDARY_FRAME_END_BIT_EXT` bit is not set (eg. by saving the resources associated in a map/vector to be taken into account when the real frame end is encountered) * Add `--offscreen-swapchain-frame-boundary` option This option inserts a `VkFrameBoundaryEXT` from `VK_EXT_frame_boundary` into a command buffer submission called where `vkQueuePresentKHR` should have been called by an offscreen swapchain. By doing this, it is now possible to capture a trace replayed with the option `--swapchain offscreen` AND to still have frame numbering and the possibility to take screenshots. This is very important for automated pipelines that run on a server without WSI context and still need to take screenshots, or do fast forwarding... --------- Co-authored-by: Charles Giessen <[email protected]>
- Loading branch information
1 parent
93c5a3d
commit 9847057
Showing
15 changed files
with
308 additions
and
22 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
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
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
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
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
Oops, something went wrong.