xrt_result_t a_allocator_import_from_native_images(struct vk_bundle *vk, const struct xrt_swapchain_create_info *xscci, struct xrt_image_native *native_images, uint32_t image_count, struct xrt_allocation_collection **out_xac)
Imports native images into a new allocation collection.
Definition a_allocator.c:46
xrt_result_t a_allocator_allocate(struct vk_bundle *vk, const struct xrt_swapchain_create_info *xscci, uint32_t image_count, struct xrt_allocation_collection **out_xac)
Allocates a new allocation collection for the given swapchain create info.
Definition a_allocator.c:28
xrt_result_t a_allocator_ensure_vk_images(struct vk_bundle *vk, struct xrt_allocation_collection *xac, struct xrt_allocation_collection **out_xac)
Ensures the allocation collection supports retrieving VkImages.
Definition a_allocator.c:65
enum xrt_result xrt_result_t
Result type used across Monado.
A bundle of Vulkan functions and objects, used by both Compositor and Compositor client code.
Definition vk_helpers.h:82
A collection of allocations, these can be images, buffers or general memory.
Definition xrt_allocation_collection.h:224
A single image of a swapchain based on native buffer handles.
Definition xrt_compositor.h:2103
Swapchain creation info.
Definition xrt_compositor.h:883
Header declaring XRT graphics interfaces.