Monado OpenXR Runtime
vk_sync_objects.c File Reference

Vulkan sync primitives code. More...

#include <xrt/xrt_handles.h>
#include "util/u_misc.h"
#include "util/u_debug.h"
#include "vk/vk_helpers.h"
Include dependency graph for vk_sync_objects.c:

Functions

static VkExternalSemaphoreHandleTypeFlagBits vk_get_semaphore_handle_type (struct vk_bundle *vk)
 
XRT_CHECK_RESULT bool vk_can_import_and_export_timeline_semaphore (struct vk_bundle *vk)
 Is there a good likelihood that the import/export of a timeline semaphore will succeed, in other words will the below functions work. More...
 
XRT_CHECK_RESULT VkResult vk_create_and_submit_fence_native (struct vk_bundle *vk, xrt_graphics_sync_handle_t *out_native)
 Creates a Vulkan fence, submits it to the default VkQueue and return its native graphics sync handle. More...
 
static XRT_CHECK_RESULT VkResult create_semaphore_and_native (struct vk_bundle *vk, VkExternalSemaphoreHandleTypeFlagBits handle_type, const void *next, VkSemaphore *out_sem, xrt_graphics_sync_handle_t *out_native)
 
XRT_CHECK_RESULT VkResult vk_create_semaphore_and_native (struct vk_bundle *vk, VkSemaphore *out_sem, xrt_graphics_sync_handle_t *out_native)
 Creates a Vulkan semaphore and a native graphics sync handle. More...
 
XRT_CHECK_RESULT VkResult vk_create_fence_sync_from_native (struct vk_bundle *vk, xrt_graphics_sync_handle_t native, VkFence *out_fence)
 Creates a Vulkan fence from a native graphics sync handle. More...
 
static XRT_CHECK_RESULT VkResult create_semaphore_from_native (struct vk_bundle *vk, VkExternalSemaphoreHandleTypeFlagBits handle_type, const void *next, xrt_graphics_sync_handle_t native, VkSemaphore *out_sem)
 
XRT_CHECK_RESULT VkResult vk_create_semaphore_from_native (struct vk_bundle *vk, xrt_graphics_sync_handle_t native, VkSemaphore *out_sem)
 Creates a Vulkan semaphore from a native graphics sync handle. More...
 

Detailed Description