From b62d871498bbf087362facd4b09dee9423faf741 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Wed, 4 May 2022 13:31:14 +0100 Subject: [PATCH] xrt: Add xrt_luid_t --- src/xrt/include/xrt/xrt_defines.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/xrt/include/xrt/xrt_defines.h b/src/xrt/include/xrt/xrt_defines.h index c22a4e20c..689ab9c3d 100644 --- a/src/xrt/include/xrt/xrt_defines.h +++ b/src/xrt/include/xrt/xrt_defines.h @@ -44,6 +44,30 @@ struct xrt_uuid */ typedef struct xrt_uuid xrt_uuid_t; +/*! + * Internal define for VK_LUID_SIZE. + * + * @ingroup xrt_iface + */ +#define XRT_LUID_SIZE 8 + +/*! + * To transport LUIDs between different APIs. + * + * @ingroup xrt_iface + */ +struct xrt_luid +{ + uint8_t data[XRT_LUID_SIZE]; +}; + +/*! + * Typedef for @ref xrt_luid. + * + * @ingroup xrt_iface + */ +typedef struct xrt_luid xrt_luid_t; + /*! * A base class for reference counted objects. *