|
XRTraits C++ OpenXR Utilities
|
This example shows a mostly-equivalent scenario to twocall-size-hint-and-initialized.cpp, but instead uses the doTwoCallInPlace() function which avoids exceptions and returns the XrResult from the final wrapped call. See that other example for more detail, including explanations of the xrtraits::Initialized usage.
Because views is not empty, that will be used as a size hint, so if (as expected) xrLocateViews output fits in that size, only a single call to the wrapped function is needed.
1.8.13