57 VkDevice xac_device = VK_NULL_HANDLE;
58 xrt_result_t xret = xrt_allocation_collection_get_vk_device(xac, &xac_device);
63 if (xac_device != device) {
static xrt_result_t xrt_allocation_collection_get_vk_device(struct xrt_allocation_collection *xac, VkDevice *out_device)
Typed helper to get the XRT_ALLOCATION_PROPERTY_VK_DEVICE property.
Definition xrt_allocation_collection_vk.h:35
enum xrt_result xrt_result_t
Result type used across Monado.
static xrt_result_t xrt_allocation_collection_get_vk_images(struct xrt_allocation_collection *xac, VkDevice device, VkImage *out_images)
Typed helper to get all the VkImages from an allocation collection, see XRT_ALLOCATION_TYPE_VULKAN_IM...
Definition xrt_allocation_collection_vk.h:55
@ XRT_ALLOCATION_PROPERTY_VK_DEVICE
Get with xrt_allocation_collection_get_vk_device.
Definition xrt_allocation_collection.h:80
@ XRT_ERROR_INVALID_CONTEXT_FOR_TYPE
The context passed in, such as a VkDevice, is not the one the allocations were created with,...
Definition xrt_results.h:307
@ XRT_SUCCESS
The operation succeeded.
Definition xrt_results.h:27
@ XRT_ALLOCATION_TYPE_VULKAN_IMAGE
Get with xrt_allocation_collection_get_vk_images.
Definition xrt_allocation_collection.h:138
A collection of allocations, these can be images, buffers or general memory.
Definition xrt_allocation_collection.h:224
xrt_result_t(* get_property_raw)(struct xrt_allocation_collection *xac, enum xrt_allocation_property prop, void *ptr)
Get a property from the allocation collection.
Definition xrt_allocation_collection.h:279
xrt_result_t(* get_all_raw)(struct xrt_allocation_collection *xac, enum xrt_allocation_type type, void *ptr)
Get all images of a given type.
Definition xrt_allocation_collection.h:293
Include all of the Vulkan headers in one place, and cope with any "messy" includes implied by it.