The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

xrt: Add XRT_GRAPHICS_BUFFER_HANDLE_CONSUMED_BY_VULKAN_IMPORT and friends

+31
+31
src/xrt/include/xrt/xrt_handles.h
··· 206 206 #define XRT_GRAPHICS_BUFFER_HANDLE_IS_AHARDWAREBUFFER 1 207 207 208 208 /*! 209 + * Defined to indicate that the graphics buffer has a reference added by the import into Vulkan, 210 + * and is not consumed nor does it need to be kept alive until destruction of the imported image. 211 + * 212 + * @relates xrt_graphics_buffer_handle_t 213 + * @see XRT_GRAPHICS_BUFFER_HANDLE_CONSUMED_BY_VULKAN_IMPORT 214 + */ 215 + #define XRT_GRAPHICS_BUFFER_HANDLE_REFERENCE_ADDED_BY_VULKAN_IMPORT 1 216 + 217 + /*! 209 218 * Check whether a graphics buffer handle is valid. 210 219 * 211 220 * @public @memberof xrt_graphics_buffer_handle_t ··· 244 253 #define XRT_GRAPHICS_BUFFER_HANDLE_IS_FD 1 245 254 246 255 /*! 256 + * Defined to indicate that the graphics buffer is consumed by the import into Vulkan 257 + * 258 + * @relates xrt_graphics_buffer_handle_t 259 + * @see XRT_GRAPHICS_BUFFER_HANDLE_REFERENCE_ADDED_BY_VULKAN_IMPORT 260 + */ 261 + #define XRT_GRAPHICS_BUFFER_HANDLE_CONSUMED_BY_VULKAN_IMPORT 1 262 + 263 + /*! 247 264 * Check whether a graphics buffer handle is valid. 248 265 * 249 266 * @public @memberof xrt_graphics_buffer_handle_t ··· 280 297 * @relates xrt_graphics_buffer_handle_t 281 298 */ 282 299 #define XRT_GRAPHICS_BUFFER_HANDLE_IS_WIN32_HANDLE 1 300 + 301 + /*! 302 + * Defined to indicate that the graphics buffer is consumed by the import into Vulkan 303 + * 304 + * @relates xrt_graphics_buffer_handle_t 305 + * @see XRT_GRAPHICS_BUFFER_HANDLE_REFERENCE_ADDED_BY_VULKAN_IMPORT 306 + */ 307 + #define XRT_GRAPHICS_BUFFER_HANDLE_CONSUMED_BY_VULKAN_IMPORT 1 283 308 284 309 /*! 285 310 * Check whether a graphics buffer handle is valid. ··· 388 413 */ 389 414 #define XRT_GRAPHICS_SYNC_HANDLE_INVALID (NULL) 390 415 416 + #endif 417 + 418 + #if (!defined(XRT_GRAPHICS_BUFFER_HANDLE_REFERENCE_ADDED_BY_VULKAN_IMPORT)) && \ 419 + (!defined(XRT_GRAPHICS_BUFFER_HANDLE_CONSUMED_BY_VULKAN_IMPORT)) 420 + // Exactly one of these must be defined in each platform. 421 + #error "Needs port: Must define a macro indicating the Vulkan image import buffer behavior" 391 422 #endif 392 423 393 424 #ifdef __cplusplus