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

Header providing xr_get_chained_struct, to extract a struct of a given type from a next chain. More...

#include "../Common.h"
#include "TaggedCastCommon.h"
#include "TaggedRiskyCast.h"
Include dependency graph for GetChained.h:

Go to the source code of this file.

Namespaces

 xrtraits
 Main namespace for these C++ OpenXR utilities.
 
 xrtraits::casts
 Casts for OpenXR tagged types, as well as utilities for traversing a next chain.
 

Functions

template<typename TargetType , typename SourceType >
TargetType xrtraits::casts::xr_get_chained_struct (SourceType *src)
 
template<typename T >
T * xrtraits::casts::xr_get_chained_struct (T *src)
 

Detailed Description

Header providing xr_get_chained_struct, to extract a struct of a given type from a next chain.

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