xrt: Add new error and types for Vulkan command buffers

This commit is contained in:
Jakob Bornecrantz 2020-06-15 14:00:20 +01:00 committed by Jakob Bornecrantz
parent f81f568931
commit 04c150a50d
2 changed files with 7 additions and 1 deletions

View file

@ -748,6 +748,7 @@ xrt_compositor_gl(struct xrt_compositor *xc)
*
*/
typedef struct VkCommandBuffer_T *VkCommandBuffer;
#ifdef XRT_64_BIT
typedef struct VkImage_T *VkImage;
typedef struct VkDeviceMemory_T *VkDeviceMemory;
@ -769,6 +770,10 @@ struct xrt_swapchain_vk
VkImage images[XRT_MAX_SWAPCHAIN_IMAGES];
VkDeviceMemory mems[XRT_MAX_SWAPCHAIN_IMAGES];
// Prerecorded swapchain image ownership/layout transition barriers
VkCommandBuffer acquire[XRT_MAX_SWAPCHAIN_IMAGES];
VkCommandBuffer release[XRT_MAX_SWAPCHAIN_IMAGES];
};
/*!

View file

@ -13,5 +13,6 @@ typedef enum xrt_result
{
XRT_SUCCESS = 0,
XRT_ERROR_IPC_FAILURE = -1,
XRT_ERROR_NO_IMAGE_AVAILABLE = -2
XRT_ERROR_NO_IMAGE_AVAILABLE = -2,
XRT_ERROR_FAILED_TO_SUBMIT_VULKAN_COMMANDS = -3,
} xrt_result_t;