Monado OpenXR Runtime
vk_image_allocator.h File Reference

Vulkan image allocator helper. More...

Include dependency graph for vk_image_allocator.h:

Go to the source code of this file.

Data Structures

struct  vk_image
 
struct  vk_image_collection
 

Functions

VkResult vk_ic_allocate (struct vk_bundle *vk, const struct xrt_swapchain_create_info *xscci, uint32_t image_count, struct vk_image_collection *out_vkic)
 Allocates image(s) using the information specified in the swapchain create info. More...
 
VkResult vk_ic_from_natives (struct vk_bundle *vk, const struct xrt_swapchain_create_info *xscci, struct xrt_image_native *native_images, uint32_t image_count, struct vk_image_collection *out_vkic)
 Imports and set images from the given FDs. More...
 
void vk_ic_destroy (struct vk_bundle *vk, struct vk_image_collection *vkic)
 Free all images created on this image collection, doesn't free the struct itself so the caller needs to ensure that. More...
 
VkResult vk_ic_get_handles (struct vk_bundle *vk, struct vk_image_collection *vkic, uint32_t max_handles, xrt_graphics_buffer_handle_t *out_handles)
 Get the native handles (FDs on desktop Linux) for the images, this is a all or nothing function. More...
 

Detailed Description

Vulkan image allocator helper.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m