mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
xrt: Add new error and types for Vulkan command buffers
This commit is contained in:
parent
f81f568931
commit
04c150a50d
|
@ -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];
|
||||
};
|
||||
|
||||
/*!
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue