Monado OpenXR Runtime
Loading...
Searching...
No Matches
xrt_device_id Struct Reference

A unique identifier for an xrt_device instance. More...

#include <xrt/xrt_device.h>

Collaboration diagram for xrt_device_id:

Data Fields

uint64_t val
 

Detailed Description

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.


The documentation for this struct was generated from the following file: