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

Data Fields | |
| uint64_t | val |
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.