Monado OpenXR Runtime
xrt_image_native_allocator Struct Reference

Allocator for system native images, in general you do not need to free the images as they will be consumed by importing them to the graphics API. More...

#include <xrt/xrt_compositor.h>

Collaboration diagram for xrt_image_native_allocator:

Static Public Member Functions

static void xrt_images_destroy (struct xrt_image_native_allocator **xina_ptr)
 Destroy the image allocator. More...
 

Data Fields

xrt_result_t(* images_allocate )(struct xrt_image_native_allocator *xina, const struct xrt_swapchain_create_info *xsci, size_t image_count, struct xrt_image_native *out_images)
 Allocate a set of images suitable to be used to back a swapchain with the given create info properties (xsci). More...
 
xrt_result_t(* images_free )(struct xrt_image_native_allocator *xina, size_t image_count, struct xrt_image_native *images)
 Free the given images. More...
 
void(* destroy )(struct xrt_image_native_allocator *xina)
 Destroy the image allocator. More...
 

Detailed Description

Allocator for system native images, in general you do not need to free the images as they will be consumed by importing them to the graphics API.

See also
xrt_image_native

Field Documentation

◆ destroy

void(* xrt_image_native_allocator::destroy) (struct xrt_image_native_allocator *xina)

Destroy the image allocator.

Referenced by xrt_images_destroy().

◆ images_allocate

xrt_result_t(* xrt_image_native_allocator::images_allocate) (struct xrt_image_native_allocator *xina, const struct xrt_swapchain_create_info *xsci, size_t image_count, struct xrt_image_native *out_images)

Allocate a set of images suitable to be used to back a swapchain with the given create info properties (xsci).

◆ images_free

xrt_result_t(* xrt_image_native_allocator::images_free) (struct xrt_image_native_allocator *xina, size_t image_count, struct xrt_image_native *images)

Free the given images.


The documentation for this struct was generated from the following file: