The open source OpenXR runtime
0
fork

Configure Feed

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

xrt: Support multiple blend modes in system compositor info

authored by

Ryan Pavlik and committed by
Moses Turner
cd5ac5f1 1789982e

+12 -2
+1
doc/changes/xrt/mr.975.md
··· 1 + Make `xrt_system_compositor_info::supported_blend_modes` an array with an adjacent count field.
+7 -1
src/xrt/include/xrt/xrt_compositor.h
··· 1548 1548 /*! 1549 1549 * Blend modes supported by the system (the combination of the 1550 1550 * compositor and the HMD capabilities), never changes. 1551 + * 1552 + * In preference order. Based on the modes reported by the device, 1553 + * but the compositor has a chance to modify this. 1551 1554 */ 1552 - enum xrt_blend_mode supported_blend_modes; 1555 + enum xrt_blend_mode supported_blend_modes[XRT_BLEND_MODE_MAX_ENUM]; 1556 + 1557 + //! Number of meaningful elements in xrt_system_compositor_info::supported_blend_modes 1558 + uint8_t num_supported_blend_modes; 1553 1559 1554 1560 //! The vk device as used by the compositor, never changes. 1555 1561 uint8_t compositor_vk_deviceUUID[XRT_GPU_UUID_SIZE];
+4 -1
src/xrt/include/xrt/xrt_defines.h
··· 33 33 }; 34 34 35 35 /*! 36 - * Blend mode that the device supports, exact mirror of XrEnvironmentBlendMode 36 + * Blend mode that the device supports, exact mirror of XrEnvironmentBlendMode. 37 + * 38 + * This is not a bitmask because we want to be able to express a preference order 39 + * that may vary by device, etc. 37 40 * 38 41 * @ingroup xrt_iface 39 42 */