···206206#define XRT_GRAPHICS_BUFFER_HANDLE_IS_AHARDWAREBUFFER 1
207207208208/*!
209209+ * Defined to indicate that the graphics buffer has a reference added by the import into Vulkan,
210210+ * and is not consumed nor does it need to be kept alive until destruction of the imported image.
211211+ *
212212+ * @relates xrt_graphics_buffer_handle_t
213213+ * @see XRT_GRAPHICS_BUFFER_HANDLE_CONSUMED_BY_VULKAN_IMPORT
214214+ */
215215+#define XRT_GRAPHICS_BUFFER_HANDLE_REFERENCE_ADDED_BY_VULKAN_IMPORT 1
216216+217217+/*!
209218 * Check whether a graphics buffer handle is valid.
210219 *
211220 * @public @memberof xrt_graphics_buffer_handle_t
···244253#define XRT_GRAPHICS_BUFFER_HANDLE_IS_FD 1
245254246255/*!
256256+ * Defined to indicate that the graphics buffer is consumed by the import into Vulkan
257257+ *
258258+ * @relates xrt_graphics_buffer_handle_t
259259+ * @see XRT_GRAPHICS_BUFFER_HANDLE_REFERENCE_ADDED_BY_VULKAN_IMPORT
260260+ */
261261+#define XRT_GRAPHICS_BUFFER_HANDLE_CONSUMED_BY_VULKAN_IMPORT 1
262262+263263+/*!
247264 * Check whether a graphics buffer handle is valid.
248265 *
249266 * @public @memberof xrt_graphics_buffer_handle_t
···280297 * @relates xrt_graphics_buffer_handle_t
281298 */
282299#define XRT_GRAPHICS_BUFFER_HANDLE_IS_WIN32_HANDLE 1
300300+301301+/*!
302302+ * Defined to indicate that the graphics buffer is consumed by the import into Vulkan
303303+ *
304304+ * @relates xrt_graphics_buffer_handle_t
305305+ * @see XRT_GRAPHICS_BUFFER_HANDLE_REFERENCE_ADDED_BY_VULKAN_IMPORT
306306+ */
307307+#define XRT_GRAPHICS_BUFFER_HANDLE_CONSUMED_BY_VULKAN_IMPORT 1
283308284309/*!
285310 * Check whether a graphics buffer handle is valid.
···388413 */
389414#define XRT_GRAPHICS_SYNC_HANDLE_INVALID (NULL)
390415416416+#endif
417417+418418+#if (!defined(XRT_GRAPHICS_BUFFER_HANDLE_REFERENCE_ADDED_BY_VULKAN_IMPORT)) && \
419419+ (!defined(XRT_GRAPHICS_BUFFER_HANDLE_CONSUMED_BY_VULKAN_IMPORT))
420420+// Exactly one of these must be defined in each platform.
421421+#error "Needs port: Must define a macro indicating the Vulkan image import buffer behavior"
391422#endif
392423393424#ifdef __cplusplus