xrt: Add XRT_TIMEOUT to xrt_result_t

This commit is contained in:
Jakob Bornecrantz 2022-03-01 20:59:14 +00:00
parent e13cfd2fec
commit 7e8f4f46c6

View file

@ -12,6 +12,14 @@
typedef enum xrt_result typedef enum xrt_result
{ {
XRT_SUCCESS = 0, XRT_SUCCESS = 0,
/*!
* The operation was given a timeout and timed out.
*
* The value 2 picked so it matches VK_TIMEOUT.
*/
XRT_TIMEOUT = 2,
XRT_ERROR_IPC_FAILURE = -1, XRT_ERROR_IPC_FAILURE = -1,
XRT_ERROR_NO_IMAGE_AVAILABLE = -2, XRT_ERROR_NO_IMAGE_AVAILABLE = -2,
XRT_ERROR_VULKAN = -3, XRT_ERROR_VULKAN = -3,