The open source OpenXR runtime
at mr/scanout-values 44 lines 759 B view raw
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 28struct client_d3d12_compositor; 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 */ 38struct xrt_compositor_d3d12 * 39client_d3d12_compositor_create(struct xrt_compositor_native *xcn, ID3D12Device *device, ID3D12CommandQueue *queue); 40 41 42#ifdef __cplusplus 43} 44#endif