The open source OpenXR runtime
0
fork

Configure Feed

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

xrt: Tidy and improve docs in xrt_defines.h [NFC]

+27 -14
+27 -14
src/xrt/include/xrt/xrt_defines.h
··· 1270 1270 1271 1271 /* 1272 1272 * 1273 - * Inline functions 1273 + * Misc enums. 1274 1274 * 1275 1275 */ 1276 1276 1277 - static inline bool 1278 - xrt_reference_dec(struct xrt_reference *xref) 1279 - { 1280 - int32_t count = xrt_atomic_s32_dec_return(&xref->count); 1281 - return count == 0; 1282 - } 1283 - 1284 - static inline void 1285 - xrt_reference_inc(struct xrt_reference *xref) 1286 - { 1287 - xrt_atomic_s32_inc_return(&xref->count); 1288 - } 1289 - 1277 + /*! 1278 + * What form factor is this device, mostly maps onto OpenXR's @p XrFormFactor. 1279 + * 1280 + * @ingroup xrt_iface 1281 + */ 1290 1282 enum xrt_form_factor 1291 1283 { 1292 1284 XRT_FORM_FACTOR_HMD, //!< Head mounted display. ··· 1304 1296 XRT_VISIBILITY_MASK_TYPE_VISIBLE_TRIANGLE_MESH = 2, 1305 1297 XRT_VISIBILITY_MASK_TYPE_LINE_LOOP = 3, 1306 1298 }; 1299 + 1300 + 1301 + /* 1302 + * 1303 + * Inline functions 1304 + * 1305 + */ 1306 + 1307 + static inline void 1308 + xrt_reference_inc(struct xrt_reference *xref) 1309 + { 1310 + xrt_atomic_s32_inc_return(&xref->count); 1311 + } 1312 + 1313 + static inline bool 1314 + xrt_reference_dec(struct xrt_reference *xref) 1315 + { 1316 + int32_t count = xrt_atomic_s32_dec_return(&xref->count); 1317 + return count == 0; 1318 + } 1319 + 1307 1320 1308 1321 #ifdef __cplusplus 1309 1322 }