2020-04-11 00:28:35 +00:00
|
|
|
{
|
2020-07-07 15:54:16 +00:00
|
|
|
"$schema": "./proto.schema.json",
|
|
|
|
|
2020-04-11 00:28:35 +00:00
|
|
|
"instance_get_shm_fd": {
|
2020-07-07 20:56:29 +00:00
|
|
|
"out_handles": {"type": "xrt_shmem_handle_t"}
|
2020-04-11 00:28:35 +00:00
|
|
|
},
|
|
|
|
|
2020-06-17 06:36:38 +00:00
|
|
|
"system_get_client_info": {
|
|
|
|
"in": [
|
|
|
|
{"name": "id", "type": "uint32_t"}
|
|
|
|
],
|
|
|
|
"out": [
|
|
|
|
{"name": "desc", "type": "struct ipc_app_state"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"system_set_client_info": {
|
|
|
|
"in": [
|
|
|
|
{"name": "desc", "type": "struct ipc_app_state"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"system_get_clients": {
|
|
|
|
"out": [
|
|
|
|
{"name": "clients", "type": "struct ipc_client_list"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"system_set_primary_client": {
|
|
|
|
"in": [
|
|
|
|
{"name": "id", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"system_set_focused_client": {
|
|
|
|
"in": [
|
|
|
|
{"name": "id", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"session_create": {
|
|
|
|
"in": [
|
|
|
|
{"name": "overlay_info", "type": "struct xrt_session_prepare_info"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
2020-04-11 00:28:35 +00:00
|
|
|
"session_begin": {},
|
|
|
|
|
|
|
|
"session_end": {},
|
|
|
|
|
|
|
|
"compositor_get_formats": {
|
|
|
|
"out": [
|
|
|
|
{"name": "info", "type": "struct ipc_formats_info"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"compositor_wait_frame": {
|
2020-06-23 20:30:18 +00:00
|
|
|
"out": [
|
|
|
|
{"name": "frame_id", "type": "int64_t"},
|
|
|
|
{"name": "predicted_display_time", "type": "uint64_t"},
|
|
|
|
{"name": "wake_up_time", "type": "uint64_t"},
|
|
|
|
{"name": "predicted_display_period", "type": "uint64_t"},
|
|
|
|
{"name": "min_display_period", "type": "uint64_t"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"compositor_wait_woke": {
|
|
|
|
"in": [
|
|
|
|
{"name": "frame_id", "type": "int64_t"}
|
|
|
|
]
|
2020-04-11 00:28:35 +00:00
|
|
|
},
|
|
|
|
|
2020-06-23 20:30:18 +00:00
|
|
|
"compositor_begin_frame": {
|
|
|
|
"in": [
|
|
|
|
{"name": "frame_id", "type": "int64_t"}
|
|
|
|
]
|
|
|
|
},
|
2020-04-11 00:28:35 +00:00
|
|
|
|
2020-06-23 20:30:18 +00:00
|
|
|
"compositor_discard_frame": {
|
|
|
|
"in": [
|
|
|
|
{"name": "frame_id", "type": "int64_t"}
|
|
|
|
]
|
|
|
|
},
|
2020-04-11 00:28:35 +00:00
|
|
|
|
|
|
|
"compositor_layer_sync": {
|
|
|
|
"in": [
|
2020-06-23 20:30:18 +00:00
|
|
|
{"name": "frame_id", "type": "int64_t"},
|
2020-04-11 00:28:35 +00:00
|
|
|
{"name": "slot_id", "type": "uint32_t"}
|
|
|
|
],
|
|
|
|
"out": [
|
|
|
|
{"name": "free_slot_id", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
2020-06-17 06:36:38 +00:00
|
|
|
"compositor_poll_events": {
|
|
|
|
"out": [
|
|
|
|
{"name": "event", "type": "union xrt_compositor_event"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
2020-04-11 00:28:35 +00:00
|
|
|
"swapchain_create": {
|
|
|
|
"in": [
|
2020-07-02 20:25:56 +00:00
|
|
|
{"name": "info", "type": "struct xrt_swapchain_create_info"}
|
2020-04-11 00:28:35 +00:00
|
|
|
],
|
|
|
|
"out": [
|
|
|
|
{"name": "id", "type": "uint32_t"},
|
|
|
|
{"name": "num_images", "type": "uint32_t"},
|
|
|
|
{"name": "size", "type": "uint64_t"}
|
|
|
|
],
|
2020-07-07 20:56:29 +00:00
|
|
|
"out_handles": {"type": "xrt_graphics_buffer_handle_t"}
|
2020-04-11 00:28:35 +00:00
|
|
|
},
|
|
|
|
|
2020-07-16 15:52:55 +00:00
|
|
|
"swapchain_import": {
|
|
|
|
"in": [
|
|
|
|
{"name": "info", "type": "struct xrt_swapchain_create_info"},
|
|
|
|
{"name": "args", "type": "struct ipc_arg_swapchain_from_native"}
|
|
|
|
],
|
|
|
|
"out": [
|
|
|
|
{"name": "id", "type": "uint32_t"}
|
|
|
|
],
|
|
|
|
"in_handles": {"type": "xrt_graphics_buffer_handle_t"}
|
|
|
|
},
|
|
|
|
|
2020-04-11 00:28:35 +00:00
|
|
|
"swapchain_wait_image": {
|
|
|
|
"in": [
|
|
|
|
{"name": "id", "type": "uint32_t"},
|
|
|
|
{"name": "timeout", "type": "uint64_t"},
|
|
|
|
{"name": "index", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"swapchain_acquire_image": {
|
|
|
|
"in": [
|
|
|
|
{"name": "id", "type": "uint32_t"}
|
|
|
|
],
|
|
|
|
"out": [
|
|
|
|
{"name": "index", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"swapchain_release_image": {
|
|
|
|
"in": [
|
|
|
|
{"name": "id", "type": "uint32_t"},
|
|
|
|
{"name": "index", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"swapchain_destroy": {
|
|
|
|
"in": [
|
|
|
|
{"name": "id", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"device_update_input": {
|
|
|
|
"in": [
|
|
|
|
{"name": "id", "type": "uint32_t"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"device_get_tracked_pose": {
|
|
|
|
"in": [
|
|
|
|
{"name": "id", "type": "uint32_t"},
|
|
|
|
{"name": "name", "type": "enum xrt_input_name"},
|
|
|
|
{"name": "at_timestamp", "type": "uint64_t"}
|
|
|
|
],
|
|
|
|
"out": [
|
|
|
|
{"name": "timestamp", "type": "uint64_t"},
|
|
|
|
{"name": "relation", "type": "struct xrt_space_relation"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"device_get_view_pose": {
|
|
|
|
"in": [
|
|
|
|
{"name": "id", "type": "uint32_t"},
|
|
|
|
{"name": "eye_relation", "type": "struct xrt_vec3"},
|
|
|
|
{"name": "view_index", "type": "uint32_t"}
|
|
|
|
],
|
|
|
|
"out": [
|
|
|
|
{"name": "pose", "type": "struct xrt_pose"}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"device_set_output": {
|
|
|
|
"in": [
|
|
|
|
{"name": "id", "type": "uint32_t"},
|
|
|
|
{"name": "name", "type": "enum xrt_output_name"},
|
|
|
|
{"name": "value", "type": "union xrt_output_value"}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|