The open source OpenXR runtime
0
fork

Configure Feed

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

st/oxr: Add view index verify helper

authored by

Simon Zeni and committed by
Jakob Bornecrantz
c1ce722d 5656f86c

+8
+8
src/xrt/state_trackers/oxr/oxr_api_verify.h
··· 196 196 } \ 197 197 } while (false) 198 198 199 + #define OXR_VERIFY_VIEW_INDEX(log, index) \ 200 + do { \ 201 + if (index > 2) { \ 202 + return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, \ 203 + "Invalid view index %d, only 2 views supported", index); \ 204 + } \ 205 + } while (false) 206 + 199 207 #define OXR_VERIFY_SWAPCHAIN_USAGE_FLAGS_NOT_MUTUALLY_EXCLUSIVE(log, flags, mutually_exclusive_a, \ 200 208 mutually_exclusive_b) \ 201 209 do { \