Monado OpenXR Runtime
d3d_d3d12_allocator.h
Go to the documentation of this file.
1// Copyright 2020-2023, Collabora, Ltd.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Header for D3D12-backed image buffer allocator factory function.
6 * @author Rylie Pavlik <rylie.pavlik@collabora.com>
7 * @author Fernando Velazquez Innella <finnella@magicleap.com>
8 * @ingroup aux_d3d
9 */
10
11#pragma once
12
13#include "xrt/xrt_compositor.h"
14
15#include <d3d12.h>
16
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22/**
23 * @brief Create a XINA that allocates D3D12 textures.
24 *
25 * @param device A device to allocate the textures with. Be sure it will not be used from other threads while this
26 * allocator allocates.
27 *
28 * @return struct xrt_image_native_allocator*
29 */
31d3d12_allocator_create(ID3D12Device *device);
32
33#ifdef __cplusplus
34}
35#endif
struct xrt_image_native_allocator * d3d12_allocator_create(ID3D12Device *device)
Create a XINA that allocates D3D12 textures.
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.