Monado OpenXR Runtime
comp_d3d12_client.h
Go to the documentation of this file.
1// Copyright 2021-2022, Collabora, Ltd.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Interface for D3D12 client-side code.
6 * @author Rylie Pavlik <rylie.pavlik@collabora.com>
7 * @ingroup comp_client
8 */
9
10#pragma once
11
12#include "xrt/xrt_compositor.h"
13#include "xrt/xrt_gfx_d3d12.h"
14
15#include <d3d12.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21
22/*
23 *
24 * Structs
25 *
26 */
27
29
30/*!
31 * Create a new client_d3d12_compositor.
32 *
33 * Takes ownership of provided xcn.
34 *
35 * @public @memberof client_d3d12_compositor
36 * @see xrt_compositor_native
37 */
39client_d3d12_compositor_create(struct xrt_compositor_native *xcn, ID3D12Device *device, ID3D12CommandQueue *queue);
40
41
42#ifdef __cplusplus
43}
44#endif
Wraps the real compositor providing a D3D12 based interface.
Definition: comp_d3d12_client.cpp:110
struct xrt_compositor_d3d12 * client_d3d12_compositor_create(struct xrt_compositor_native *xcn, ID3D12Device *device, ID3D12CommandQueue *queue)
Create a new client_d3d12_compositor.
Definition: comp_d3d12_client.cpp:1096
Base class for a D3D12 client compositor.
Definition: xrt_compositor.h:2128
Main compositor server interface.
Definition: xrt_compositor.h:2224
Header declaring XRT graphics interfaces.
Header defining a D3D12 graphics interface.