Debian Codegraph @

src/xrt/auxiliary/ogl/ogl_helpers.h

raw symbols SCIP
1 // Copyright 2020-2023, Collabora, Ltd.cxx . . $ `<file>/src/xrt/auxiliary/ogl/ogl_helpers.h`/
2 // SPDX-License-Identifier: BSL-1.0
3 /*!
4 * @file
5 * @brief Common OpenGL code header.
6 * @author Rylie Pavlik <[email protected]>
7 * @author Jakob Bornecrantz <[email protected]>
8 * @ingroup aux_ogl
9 */
10
11 #pragma once
12
13 #include "xrt/xrt_compositor.h"cxx . . $ `<file>/src/xrt/include/xrt/xrt_compositor.h`/
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19
20 /*!
21 * Results from a import, nicer then having to pass in multiple arrays.
22 *
23 * @ingroup aux_ogl
24 */
25 struct ogl_import_resultscxx . . $ ogl_import_results#
26 {
27 //! Imported textures.
28 uint32_tcxx . . $ uint32_t# texturescxx . . $ ogl_import_results#textures.[XRT_MAX_SWAPCHAIN_IMAGEScxx . . $ `src/xrt/include/xrt/xrt_limits.h:34:9`!];
29
30 //! Memory objects for imported textures.
31 uint32_tcxx . . $ uint32_t# memoriescxx . . $ ogl_import_results#memories.[XRT_MAX_SWAPCHAIN_IMAGEScxx . . $ `src/xrt/include/xrt/xrt_limits.h:34:9`!];
32
33 //! The count of textures and memories.
34 uint32_tcxx . . $ uint32_t# image_countcxx . . $ ogl_import_results#image_count.;
35
36 //! Dimensions.
37 uint32_tcxx . . $ uint32_t# widthcxx . . $ ogl_import_results#width., heightcxx . . $ ogl_import_results#height.;
38 };
39
40 /*!
41 * Determine the texture target and the texture binding parameter to
42 * save/restore for creation/use of an OpenGL texture from the given info.
43 *
44 * @ingroup aux_ogl
45 */
46 void
47 ogl_texture_target_for_swapchain_infocxx . . $ ogl_texture_target_for_swapchain_info(6354a6e77358cd45).(const struct xrt_swapchain_create_infocxx . . $ xrt_swapchain_create_info# *info,
48 uint32_tcxx . . $ uint32_t# *out_tex_target,
49 uint32_tcxx . . $ uint32_t# *out_tex_param_name);
50
51 /*!
52 * Converts a Vulkan format to corresponding OpenGL format,
53 * will return 0 if no mapping exist for the given format.
54 *
55 * @ingroup aux_ogl
56 */
57 XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! uint32_tcxx . . $ uint32_t#
58 ogl_vk_format_to_glcxx . . $ ogl_vk_format_to_gl(bd267e0bd5a0c68b).(int64_tcxx . . $ int64_t# vk_format);
59
60 /*!
61 * Import native images, a context needs to be current when called.
62 *
63 * @ingroup aux_ogl
64 */
65 XRT_CHECK_RESULTcxx . . $ `src/xrt/include/xrt/xrt_compiler.h:65:9`! boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`!
66 ogl_import_from_nativecxx . . $ ogl_import_from_native(9a867de72a44bd17).(struct xrt_image_nativecxx . . $ xrt_image_native# *natives,
67 uint32_tcxx . . $ uint32_t# native_count,
68 const struct xrt_swapchain_create_infocxx . . $ xrt_swapchain_create_info# *info,
69 struct ogl_import_resultscxx . . $ ogl_import_results# *results);
70
71
72 #ifdef __cplusplus
73 }
74 #endif