Monado OpenXR Runtime
xrt_gfx_d3d11.h
Go to the documentation of this file.
1 // Copyright 2021, Collabora, Ltd.
2 // SPDX-License-Identifier: BSL-1.0
3 /*!
4  * @file
5  * @brief Header defining a D3D11 graphics interface
6  * @author Rylie Pavlik <rylie.pavlik@collabora.com>
7  * @ingroup xrt_iface
8  */
9 
10 #pragma once
11 
12 #include "xrt/xrt_device.h"
13 #include "xrt/xrt_compositor.h"
14 #include "xrt/xrt_config_os.h"
15 #include "xrt/xrt_windows.h"
16 
17 #if defined(XRT_OS_WINDOWS)
18 #include "d3d11.h"
19 #elif defined(XRT_DOXYGEN)
20 struct ID3D11Device;
21 #endif
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #if defined(XRT_OS_WINDOWS) || defined(XRT_DOXYGEN)
28 
29 /*!
30  * Create a D3D11 compositor client.
31  *
32  * @ingroup xrt_iface
33  * @public @memberof xrt_compositor_native
34  */
35 struct xrt_compositor_d3d11 *
36 xrt_gfx_d3d11_provider_create(struct xrt_compositor_native *xcn, ID3D11Device *device);
37 
38 #endif // XRT_OS_WINDOWS || XRT_DOXYGEN
39 
40 #ifdef __cplusplus
41 }
42 #endif
struct xrt_compositor_d3d11 * xrt_gfx_d3d11_provider_create(struct xrt_compositor_native *xcn, ID3D11Device *device)
Create a D3D11 compositor client.
Definition: comp_d3d11_glue.c:16
Base class for a D3D11 client compositor.
Definition: xrt_compositor.h:2058
Main compositor server interface.
Definition: xrt_compositor.h:2196
Header declaring XRT graphics interfaces.
Auto detect OS and certain features.
Header defining an xrt display or controller device.
A minimal way to include Windows.h.