Monado OpenXR Runtime
d3d_d3d11_allocator.h
Go to the documentation of this file.
1// Copyright 2020-2022, Collabora, Ltd.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Header for D3D11-backed image buffer allocator factory function.
6 * @author Rylie Pavlik <rylie.pavlik@collabora.com>
7 * @ingroup aux_d3d
8 */
9
10#pragma once
11
12#include "xrt/xrt_compositor.h"
13
14#include <d3d11.h>
15
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21/**
22 * @brief Create a XINA that allocates D3D11 textures.
23 *
24 * @param device A device to allocate the textures with. Be sure it will not be used from other threads while this
25 * allocator allocates.
26 *
27 * @return struct xrt_image_native_allocator*
28 */
30d3d11_allocator_create(ID3D11Device *device);
31
32#ifdef __cplusplus
33}
34#endif
struct xrt_image_native_allocator * d3d11_allocator_create(ID3D11Device *device)
Create a XINA that allocates D3D11 textures.
Definition: d3d_d3d11_allocator.cpp:185
Allocator for system native images, in general you do not need to free the images as they will be con...
Definition: xrt_compositor.h:2626
Header declaring XRT graphics interfaces.