XRTraits C++ OpenXR Utilities
|
Header providing wrappers for returning a variable-length collection by repeatedly calling a "two-call idiom" OpenXR function for you. Lets you pretend it's only a single call, possibly returning a std::vector<> (for some variants). More...
Go to the source code of this file.
Namespaces | |
xrtraits | |
Main namespace for these C++ OpenXR utilities. | |
Functions | |
template<typename T , typename F , typename... Args> | |
std::vector< T > | xrtraits::doTwoCall (F &&wrappedCall, Args &&... a) |
template<typename T , typename F , typename... Args> | |
std::vector< T > | xrtraits::doTwoCallWithSizeHint (uint32_t sizeHint, F &&wrappedCall, Args &&... a) |
template<typename T , typename F , typename... Args> | |
XrResult | xrtraits::doTwoCallInPlace (std::vector< T > &container, F &&wrappedCall, Args &&... a) |
Header providing wrappers for returning a variable-length collection by repeatedly calling a "two-call idiom" OpenXR function for you. Lets you pretend it's only a single call, possibly returning a std::vector<> (for some variants).