333 if (old_dst == src) {
344 if (xrt_reference_dec_and_is_zero(&old_dst->
reference)) {
#define XRT_MAX_ALLOCATION_TYPE_COUNT
Max number of allocation types that an allocation collection can support.
Definition xrt_limits.h:84
xrt_allocation_property
Allocation collection property, the properties that can be queried with the xrt_allocation_collection...
Definition xrt_allocation_collection.h:40
static void xrt_allocation_collection_reference(struct xrt_allocation_collection **dst, struct xrt_allocation_collection *src)
Update the reference counts on allocation collection(s).
Definition xrt_allocation_collection.h:329
enum xrt_result xrt_result_t
Result type used across Monado.
static xrt_result_t xrt_allocation_collection_get_swapchain_info(struct xrt_allocation_collection *xac, struct xrt_swapchain_create_info *out_info)
Typed helper to get the XRT_ALLOCATION_PROPERTY_SWAPCHAIN_INFO property.
Definition xrt_allocation_collection.h:311
#define XRT_MAX_ALLOCATION_PROPERTY_COUNT
Max number of allocation properties that can be reported by the allocation collection in xrt_allocati...
Definition xrt_limits.h:79
xrt_allocation_type
Allocation type, the types that the allocation collection can return from the xrt_allocation_collecti...
Definition xrt_allocation_collection.h:121
@ XRT_ALLOCATION_PROPERTY_VK_DEVICE
Get with xrt_allocation_collection_get_vk_device.
Definition xrt_allocation_collection.h:80
@ XRT_ALLOCATION_PROPERTY_METAL_DEVICE
Returns the MTLDevice pointer.
Definition xrt_allocation_collection.h:108
@ XRT_ALLOCATION_PROPERTY_SWAPCHAIN_INFO
Get with xrt_allocation_collection_get_swapchain_info.
Definition xrt_allocation_collection.h:57
@ XRT_ALLOCATION_TYPE_NATIVE_IMAGE
Get with xrt_allocation_collection_get_native_images.
Definition xrt_allocation_collection.h:200
@ XRT_ALLOCATION_TYPE_METAL_TEXTURE
MTLTexture handle (as void pointer).
Definition xrt_allocation_collection.h:157
@ XRT_ALLOCATION_TYPE_IOSURFACE
IOSurfaceRef handle.
Definition xrt_allocation_collection.h:175
@ 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
void(* destroy)(struct xrt_allocation_collection *xac)
Destroy the allocation collection, called when the reference count reaches zero.
Definition xrt_allocation_collection.h:299
uint32_t image_count
Number of images in the collection, this is the total number of images in the collection,...
Definition xrt_allocation_collection.h:236
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
uint32_t supported_types_count
Number of supported allocation types.
Definition xrt_allocation_collection.h:267
struct xrt_allocation_collection::@241 supported_types[XRT_MAX_ALLOCATION_TYPE_COUNT]
Supported allocation types that can be queried from the get_all function.
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
uint32_t supported_properties_count
Number of supported properties.
Definition xrt_allocation_collection.h:251
struct xrt_reference reference
Reference helper.
Definition xrt_allocation_collection.h:228
struct xrt_allocation_collection::@240 supported_properties[XRT_MAX_ALLOCATION_PROPERTY_COUNT]
Supported properties that can be queried from the get_property function.
A base class for reference counted objects.
Definition xrt_defines.h:99
Swapchain creation info.
Definition xrt_compositor.h:883
Header holding common defines.
Common defines and enums for XRT.
Header for limits of the XRT interfaces.