30 VkDeviceMemory memory;
32 bool use_dedicated_allocation;
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.
Definition: vk_image_allocator.c:426
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.
Definition: vk_image_allocator.c:509
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.
Definition: vk_image_allocator.c:378
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 ...
Definition: vk_image_allocator.c:499
#define XRT_MAX_SWAPCHAIN_IMAGES
Max swapchain images, artificial limit.
Definition: xrt_limits.h:34
A bundle of Vulkan functions and objects, used by both Compositor and Compositor client code.
Definition: vk_helpers.h:49
Definition: vk_image_allocator.h:36
struct vk_image images[XRT_MAX_SWAPCHAIN_IMAGES]
Limit set to same as max swapchain images because this struct is mostly used to back swapchains.
Definition: vk_image_allocator.h:43
Definition: vk_image_allocator.h:28
A single image of a swapchain based on native buffer handles.
Definition: xrt_compositor.h:2150
Swapchain creation info.
Definition: xrt_compositor.h:876
Common Vulkan code header.
Auto detect OS and certain features.
int xrt_graphics_buffer_handle_t
The type underlying buffers shared between compositor clients and the main compositor.
Definition: xrt_handles.h:246
Header for limits of the XRT interfaces.
Include all of the Vulkan headers in one place, and cope with any "messy" includes implied by it.