Monado OpenXR Runtime
Loading...
Searching...
No Matches
xrt_allocation_collection_native.h
Go to the documentation of this file.
1// Copyright 2025-2026, NVIDIA CORPORATION.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Native image typed helpers for the allocation collection.
6 * @author Jakob Bornecrantz <tbornecrantz@nvidia.com>
7 * @ingroup xrt
8 */
9
10#pragma once
11
13#include "xrt/xrt_compositor.h"
14
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20/*!
21 * @addtogroup xrt_iface
22 * @{
23 */
24
25/*!
26 * Typed helper to get all the native images from an allocation collection, see
27 * @ref XRT_ALLOCATION_TYPE_NATIVE_IMAGE for ownership transfer semantics.
28 *
29 * @param xac The allocation collection.
30 * @param[out] out_images Array of at least @ref xrt_allocation_collection::image_count elements.
31 *
32 * @public @memberof xrt_allocation_collection
33 */
34static inline xrt_result_t
39
40/*!
41 * @}
42 */
43
44#ifdef __cplusplus
45}
46#endif
static xrt_result_t xrt_allocation_collection_get_native_images(struct xrt_allocation_collection *xac, struct xrt_image_native *out_images)
Typed helper to get all the native images from an allocation collection, see XRT_ALLOCATION_TYPE_NATI...
Definition xrt_allocation_collection_native.h:35
enum xrt_result xrt_result_t
Result type used across Monado.
@ XRT_ALLOCATION_TYPE_NATIVE_IMAGE
Get with xrt_allocation_collection_get_native_images.
Definition xrt_allocation_collection.h:200
A collection of allocations, these can be images, buffers or general memory.
Definition xrt_allocation_collection.h:224
xrt_result_t(* get_all_raw)(struct xrt_allocation_collection *xac, enum xrt_allocation_type type, void *ptr)
Get all images of a given type.
Definition xrt_allocation_collection.h:293
A single image of a swapchain based on native buffer handles.
Definition xrt_compositor.h:2103
Allocation collection.
Header declaring XRT graphics interfaces.