48 uint32_t *out_tex_target,
49 uint32_t *out_tex_param_name);
57XRT_CHECK_RESULT uint32_t
67 uint32_t native_count,
XRT_CHECK_RESULT uint32_t ogl_vk_format_to_gl(int64_t vk_format)
Converts a Vulkan format to corresponding OpenGL format, will return 0 if no mapping exist for the gi...
Definition ogl_helpers.c:68
void ogl_texture_target_for_swapchain_info(const struct xrt_swapchain_create_info *info, uint32_t *out_tex_target, uint32_t *out_tex_param_name)
Determine the texture target and the texture binding parameter to save/restore for creation/use of an...
Definition ogl_helpers.c:38
XRT_CHECK_RESULT bool ogl_import_from_native(struct xrt_image_native *natives, uint32_t native_count, const struct xrt_swapchain_create_info *info, struct ogl_import_results *results)
Import native images, a context needs to be current when called.
Definition ogl_helpers.c:96
#define XRT_MAX_SWAPCHAIN_IMAGES
Max swapchain images, artificial limit.
Definition xrt_limits.h:53
Results from a import, nicer then having to pass in multiple arrays.
Definition ogl_helpers.h:26
uint32_t textures[XRT_MAX_SWAPCHAIN_IMAGES]
Imported textures.
Definition ogl_helpers.h:28
uint32_t width
Dimensions.
Definition ogl_helpers.h:37
uint32_t image_count
The count of textures and memories.
Definition ogl_helpers.h:34
uint32_t memories[XRT_MAX_SWAPCHAIN_IMAGES]
Memory objects for imported textures.
Definition ogl_helpers.h:31
A single image of a swapchain based on native buffer handles.
Definition xrt_compositor.h:2162
Swapchain creation info.
Definition xrt_compositor.h:871
Header declaring XRT graphics interfaces.