diff options
author | Niklas Haas <git@haasn.xyz> | 2017-09-29 14:15:13 +0200 |
---|---|---|
committer | Martin Herkt <652892+lachs0r@users.noreply.github.com> | 2017-12-25 00:47:53 +0100 |
commit | 80540be211adbc9e19c6cb95a1ddfddd890847a9 (patch) | |
tree | 4aad87acb2d6a9ca43918de1bfe20cf48fa316c9 /video/out/vulkan/ra_vk.h | |
parent | b138bdc01c666c1b33dc23e276228aa56a2bf7f8 (diff) |
vo_gpu: vulkan: properly depend on the swapchain acquire semaphore
This is now associated with the ra_tex directly and used in the correct
way, rather than hackily done from submit_frame.
Diffstat (limited to 'video/out/vulkan/ra_vk.h')
-rw-r--r-- | video/out/vulkan/ra_vk.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/vulkan/ra_vk.h b/video/out/vulkan/ra_vk.h index 8939bc7ce0..da613c7f5b 100644 --- a/video/out/vulkan/ra_vk.h +++ b/video/out/vulkan/ra_vk.h @@ -16,6 +16,10 @@ VkDevice ra_vk_get_dev(struct ra *ra); struct ra_tex *ra_vk_wrap_swapchain_img(struct ra *ra, VkImage vkimg, VkSwapchainCreateInfoKHR info); +// Associates an external semaphore (dependency) with a ra_tex, such that this +// ra_tex will not be used by the ra_vk until the external semaphore fires. +void ra_tex_vk_external_dep(struct ra *ra, struct ra_tex *tex, VkSemaphore dep); + // 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 |