Monado OpenXR Runtime
xrt_limits.h
Go to the documentation of this file.
1// Copyright 2019-2022, Collabora, Ltd.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Header for limits of the XRT interfaces.
6 * @author Jakob Bornecrantz <jakob@collabora.com>
7 * @ingroup xrt_iface
8 */
9
10#pragma once
11
12#include "xrt/xrt_compiler.h"
13
14
15/*!
16 * @addtogroup xrt_iface
17 * @{
18 */
19/*
20 * Max number of views supported by a compositor, artificial limit.
21 */
22#define XRT_MAX_VIEWS 2
23
24/*!
25 * Maximum number of handles sent in one call.
26 */
27#define XRT_MAX_IPC_HANDLES 16
28
29/*!
30 * Max swapchain images, artificial limit.
31 *
32 * Must be smaller or the same as XRT_MAX_IPC_HANDLES.
33 */
34#define XRT_MAX_SWAPCHAIN_IMAGES 8
35
36/*!
37 * Max formats supported by a compositor, artificial limit.
38 */
39#define XRT_MAX_SWAPCHAIN_FORMATS 16
40
41/*!
42 * Max formats in the swapchain creation info formats list, artificial limit.
43 */
44#define XRT_MAX_SWAPCHAIN_CREATE_INFO_FORMAT_LIST_COUNT 8
45
46/*!
47 * Max number of supported display refresh rates, artificial limit.
48 */
49#define XRT_MAX_SUPPORTED_REFRESH_RATES 16
50
51/*!
52 * Max number of layers which can be handled at once.
53 */
54#define XRT_MAX_LAYERS 128
55
56/*!
57 * @}
58 */
Header holding common defines.