diff options
Diffstat (limited to 'video/out/vulkan/ra_vk.h')
-rw-r--r-- | video/out/vulkan/ra_vk.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/video/out/vulkan/ra_vk.h b/video/out/vulkan/ra_vk.h index d15b6380f0..8939bc7ce0 100644 --- a/video/out/vulkan/ra_vk.h +++ b/video/out/vulkan/ra_vk.h @@ -16,14 +16,11 @@ VkDevice ra_vk_get_dev(struct ra *ra); struct ra_tex *ra_vk_wrap_swapchain_img(struct ra *ra, VkImage vkimg, VkSwapchainCreateInfoKHR info); -// This function flushes the command buffers, transitions `tex` (which must be -// a wrapped swapchain image) into a format suitable for presentation, and -// submits the current rendering commands. `acquired` must fire before the -// command can run, and `done` will fire after it completes. If `inflight` -// is non-NULL, it will be incremented when the command starts and decremented -// when it completes. -bool ra_vk_submit(struct ra *ra, struct ra_tex *tex, VkSemaphore acquired, - VkSemaphore done, int *inflight); +// This function finalizes rendering, transitions `tex` (which must be a +// wrapped swapchain image) into a format suitable for presentation, and returns +// the resulting command buffer (or NULL on error). The caller may add their +// own semaphores to this command buffer, and must submit it afterwards. +struct vk_cmd *ra_vk_submit(struct ra *ra, struct ra_tex *tex); // May be called on a struct ra of any type. Returns NULL if the ra is not // a vulkan ra. |