|
Monado OpenXR Runtime
|
A unique identifier for an xrt_device instance. More...
#include <xrt/xrt_device.h>

Data Fields | |
| uint64_t | val |
Related Symbols | |
(Note that these are not member symbols.) | |
| #define | XRT_DEVICE_ID_INVALID XRT_C11_COMPOUND(struct xrt_device_id){0} |
| Value of an xrt_device_id that has not been assigned. | |
A unique identifier for an xrt_device instance.
Each device is assigned a 64-bit ID when it is created in the Monado service process, or in the application process for in-process setups. For out-of-process clients the ID is synchronized over the IPC layer, so every client connected to the same service refers to a given device by the same value.
The ID is intended for hash maps, caches, and similar lookups. Unlike a memory pointer it is never reused after the device is destroyed.
A value of zero is invalid and means the device ID has not been assigned, matching the zero-initialized state of the struct.
|
related |
Value of an xrt_device_id that has not been assigned.