XRTraits C++ OpenXR Utilities
Namespaces | Functions
TwoCall.h File Reference

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...

#include "InitXrType.h"
#include "exceptions/BaseExceptions.h"
Include dependency graph for TwoCall.h:

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)
 

Detailed Description

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).

Author
Ryan Pavlik ryan..nosp@m.pavl.nosp@m.ik@co.nosp@m.llab.nosp@m.ora.c.nosp@m.om