26#include "xrt/xrt_config_build.h"
32#define IPC_CRED_SIZE 1
33#define IPC_BUF_SIZE 512
34#define IPC_MAX_VIEWS 8
35#define IPC_MAX_FORMATS 32
36#define IPC_MAX_DEVICES 8
37#define IPC_MAX_LAYERS XRT_MAX_LAYERS
38#define IPC_MAX_SLOTS 128
39#define IPC_MAX_CLIENTS 8
40#define IPC_MAX_RAW_VIEWS 32
41#define IPC_EVENT_QUEUE_SIZE 32
43#define IPC_SHARED_MAX_INPUTS 1024
44#define IPC_SHARED_MAX_OUTPUTS 128
45#define IPC_SHARED_MAX_BINDINGS 64
48#define IPC_VERSION_NAME_LEN 64
50#if defined(XRT_OS_WINDOWS) && !defined(XRT_ENV_MINGW)
68 char name[XRT_TRACKING_NAME_LEN];
78 "invalid structure size, maybe different 32/64 bits sizes or padding");
101 "invalid structure size, maybe different 32/64 bits sizes or padding");
118 char str[XRT_DEVICE_NAME_LEN];
143 "invalid structure size, maybe different 32/64 bits sizes or padding");
172 "invalid structure size, maybe different 32/64 bits sizes or padding");
182 uint32_t layer_count;
187 "invalid structure size, maybe different 32/64 bits sizes or padding");
277 uint32_t blend_mode_count;
280 struct xrt_input inputs[IPC_SHARED_MAX_INPUTS];
282 struct xrt_output outputs[IPC_SHARED_MAX_OUTPUTS];
290 uint64_t startup_timestamp;
295 "invalid structure size, maybe different 32/64 bits sizes or padding");
307 "invalid structure size, maybe different 32/64 bits sizes or padding");
311 uint32_t ids[IPC_MAX_CLIENTS];
316 "invalid structure size, maybe different 32/64 bits sizes or padding");
328 bool primary_application;
330 bool session_visible;
331 bool session_focused;
332 bool session_overlay;
340 "invalid structure size, maybe different 32/64 bits sizes or padding");
352 "invalid structure size, maybe different 32/64 bits sizes or padding");
359 struct xrt_fov fovs[XRT_MAX_VIEWS];
360 struct xrt_pose poses[XRT_MAX_VIEWS];
365 "invalid structure size, maybe different 32/64 bits sizes or padding");
369 uint32_t num_samples;
xrt_blend_mode
Blend mode that the device supports, exact mirror of XrEnvironmentBlendMode.
Definition: xrt_defines.h:109
#define XRT_SYSTEM_MAX_DEVICES
Maximum number of devices simultaneously usable by an implementation of xrt_system_devices.
Definition: xrt_system.h:142
#define XRT_MAX_SWAPCHAIN_IMAGES
Max swapchain images, artificial limit.
Definition: xrt_limits.h:34
xrt_tracking_type
What kind of tracking system is this.
Definition: xrt_tracking.h:45
xrt_device_type
How an xrt_device can be used.
Definition: xrt_defines.h:788
State for a connected application.
Definition: ipc_protocol.h:324
Arguments for creating swapchains from native images.
Definition: ipc_protocol.h:347
Initial info from a client when it connects.
Definition: ipc_protocol.h:301
Definition: ipc_protocol.h:310
Arguments for xrt_device::get_view_poses with two views.
Definition: ipc_protocol.h:358
Data for a single composition layer.
Definition: ipc_protocol.h:153
struct xrt_layer_data data
All basic (trivially-serializable) data associated with a layer, aside from which swapchain(s) are us...
Definition: ipc_protocol.h:168
uint32_t swapchain_ids[XRT_MAX_VIEWS *2]
Up to two indices of swapchains to use.
Definition: ipc_protocol.h:162
uint32_t xdev_id
Definition: ipc_protocol.h:155
Render state for a single client, including all layers.
Definition: ipc_protocol.h:180
Definition: ipc_protocol.h:368
A binding in the shared memory area.
Definition: ipc_protocol.h:86
uint32_t output_count
Number of outputs.
Definition: ipc_protocol.h:95
uint32_t input_count
Number of inputs.
Definition: ipc_protocol.h:90
uint32_t first_input_index
Offset into the array of pairs where this input bindings starts.
Definition: ipc_protocol.h:92
uint32_t first_output_index
Offset into the array of pairs where this output bindings starts.
Definition: ipc_protocol.h:97
A device in the shared memory area.
Definition: ipc_protocol.h:109
uint32_t first_input_index
'Offset' into the array of inputs where the inputs starts.
Definition: ipc_protocol.h:131
uint32_t binding_profile_count
Number of bindings.
Definition: ipc_protocol.h:124
uint32_t first_binding_profile_index
'Offset' into the array of bindings where the bindings starts.
Definition: ipc_protocol.h:126
uint32_t input_count
Number of inputs.
Definition: ipc_protocol.h:129
uint32_t output_count
Number of outputs.
Definition: ipc_protocol.h:134
uint32_t first_output_index
'Offset' into the array of outputs where the outputs starts.
Definition: ipc_protocol.h:136
char str[XRT_DEVICE_NAME_LEN]
A string describing the device.
Definition: ipc_protocol.h:118
struct xrt_device_supported supported
The supported fields.
Definition: ipc_protocol.h:139
uint32_t tracking_origin_index
Which tracking system origin is this device attached to.
Definition: ipc_protocol.h:115
char serial[XRT_DEVICE_NAME_LEN]
A unique identifier. Persistent across configurations, if possible.
Definition: ipc_protocol.h:121
enum xrt_device_name name
Enum identifier of the device.
Definition: ipc_protocol.h:111
A big struct that contains all data that is shared to a client, no pointers allowed in this.
Definition: ipc_protocol.h:205
struct ipc_shared_memory::@245::@247::@248 display
Pixel properties of this display, not in absolute screen coordinates that the compositor sees.
uint32_t itrack_count
Number of elements in itracks that are populated/valid.
Definition: ipc_protocol.h:214
char u_git_tag[64]
The git revision of the service, used by clients to detect version mismatches.
Definition: ipc_protocol.h:209
struct ipc_shared_memory::@244 roles
Various roles for the devices.
struct ipc_shared_tracking_origin itracks[XRT_SYSTEM_MAX_DEVICES]
Array of shared tracking origin data.
Definition: ipc_protocol.h:221
struct ipc_shared_device isdevs[XRT_SYSTEM_MAX_DEVICES]
Array of shared data per device.
Definition: ipc_protocol.h:233
uint32_t isdev_count
Number of elements in isdevs that are populated/valid.
Definition: ipc_protocol.h:226
A tracking in the shared memory area.
Definition: ipc_protocol.h:66
char name[XRT_TRACKING_NAME_LEN]
For debugging.
Definition: ipc_protocol.h:68
enum xrt_tracking_type type
What can the state tracker expect from this tracking system.
Definition: ipc_protocol.h:71
struct xrt_pose offset
Initial offset of the tracking origin.
Definition: ipc_protocol.h:74
Non-process-specific information provided by the application at instance create time.
Definition: xrt_instance.h:72
A binding pair, going from a binding point to a device output.
Definition: xrt_device.h:205
Static data of supported features of the xrt_device this struct sits on.
Definition: xrt_device.h:256
Describes a projection matrix fov.
Definition: xrt_defines.h:488
All the pure data values associated with a composition layer.
Definition: xrt_compositor.h:396
Per frame data for the layer submission calls, used in xrt_compositor::layer_begin.
Definition: xrt_compositor.h:482
A single named output, that sits on a xrt_device.
Definition: xrt_device.h:183
A query for a plane.
Definition: xrt_plane_detector.h:97
A pose composed of a position and orientation.
Definition: xrt_defines.h:467
A relation with two spaces, includes velocity and acceleration.
Definition: xrt_defines.h:659
Header holding common defines.
Header declaring XRT graphics interfaces.
Common defines and enums for XRT.
xrt_device_name
A enum that is used to name devices so that the state trackers can reason about the devices easier.
Definition: xrt_defines.h:714
Header defining an xrt display or controller device.
Header for xrt_instance object.
Header for limits of the XRT interfaces.
Internal result type for XRT.
Header for session object.
Header defining xrt space and space overseer.
Header for system objects.
Header defining the tracking system integration in Monado.