Monado OpenXR Runtime
Loading...
Searching...
No Matches
oxr_handle_cast.h File Reference

Macros for casting between OpenXR handles and internal pointers. More...

#include <stdint.h>
Include dependency graph for oxr_handle_cast.h:

Go to the source code of this file.

Macros

#define XRT_CAST_PTR_TO_OXR_HANDLE(HANDLE_TYPE, PTR)   ((HANDLE_TYPE)(uint64_t)(uintptr_t)(PTR))
 Cast a pointer to an OpenXR handle in such a way as to avoid warnings.
 
#define XRT_CAST_OXR_HANDLE_TO_PTR(PTR_TYPE, HANDLE)   ((PTR_TYPE)(uintptr_t)(uint64_t)(HANDLE))
 Cast an OpenXR handle to a pointer in such a way as to avoid warnings.
 

Detailed Description

Macros for casting between OpenXR handles and internal pointers.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m