VTK  9.4.20241016
Classes | Namespaces | Macros
XrConnectionExtensions.h File Reference

Load OpenXR extensions required for remote connection. More...

Go to the source code of this file.

Classes

struct  xr::ConnectionExtensionDispatchTable
 

Namespaces

namespace  xr
 

Macros

#define FOR_EACH_HAR_EXPERIMENTAL_EXTENSION_FUNCTION(_)
 
#define FOR_EACH_EXTENSION_FUNCTION(_)   FOR_EACH_HAR_EXPERIMENTAL_EXTENSION_FUNCTION(_)
 
#define GET_INSTANCE_PROC_ADDRESS(name)
 
#define DEFINE_PROC_MEMBER(name)   PFN_##name name{ nullptr };
 

Detailed Description

Load OpenXR extensions required for remote connection.

Provides the ConnectionExtensionDispatchTable struct to load remoting extensions at runtime for the current XrInstance. The OpenXR header corresponding to the expected connection strategy must be included prior to including this header to provide the required definitions. For instance, including <openxr_msft_holographic_remoting.h> defines XR_MSFT_holographic_remoting, which enables the OpenXR Remoting extension in this file.

File adapted from: https://github.com/microsoft/MixedReality-HolographicRemoting-Samples/blob/f6b55479646bda3bffea58bb3e9c9d9c5e0ab177/remote_openxr/desktop/XrUtility/XrExtensions.h

See also
vtkOpenXRManagerRemoteConnection XrExtensions.h XrGraphicsExtensions.h

Definition in file XrConnectionExtensions.h.

Macro Definition Documentation

◆ FOR_EACH_HAR_EXPERIMENTAL_EXTENSION_FUNCTION

#define FOR_EACH_HAR_EXPERIMENTAL_EXTENSION_FUNCTION (   _)

Definition at line 42 of file XrConnectionExtensions.h.

◆ FOR_EACH_EXTENSION_FUNCTION

#define FOR_EACH_EXTENSION_FUNCTION (   _)    FOR_EACH_HAR_EXPERIMENTAL_EXTENSION_FUNCTION(_)

Definition at line 45 of file XrConnectionExtensions.h.

◆ GET_INSTANCE_PROC_ADDRESS

#define GET_INSTANCE_PROC_ADDRESS (   name)
Value:
(void)xrGetInstanceProcAddr( \
instance, #name, reinterpret_cast<PFN_xrVoidFunction*>(const_cast<PFN_##name*>(&name)));

Definition at line 47 of file XrConnectionExtensions.h.

◆ DEFINE_PROC_MEMBER

#define DEFINE_PROC_MEMBER (   name)    PFN_##name name{ nullptr };

Definition at line 50 of file XrConnectionExtensions.h.