VTK  9.4.20241121
Classes | Namespaces | Macros
XrExtensions.h File Reference

Load OpenXR extensions common to all platforms and graphics backend. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  xr::ExtensionDispatchTable
 

Namespaces

namespace  xr
 

Macros

#define FOR_EACH_VISIBILITY_MASK_FUNCTION(_)
 
#define FOR_EACH_CONTROLLER_MODEL_EXTENSION_FUNCTION(_)
 
#define FOR_EACH_PERCEPTION_ANCHOR_INTEROP_FUNCTION(_)
 
#define FOR_EACH_SPATIAL_ANCHOR_FUNCTION(_)
 
#define FOR_EACH_HAND_TRACKING_FUNCTION(_)
 
#define FOR_EACH_HAND_TRACKING_MESH_FUNCTION(_)
 
#define FOR_EACH_SPATIAL_GRAPH_BRIDGE_FUNCTION(_)
 
#define FOR_EACH_SCENE_UNDERSTANDING_FUNCTION(_)
 
#define FOR_EACH_SCENE_UNDERSTANDING_SERIALIZATION_FUNCTION(_)
 
#define FOR_EACH_EXTENSION_FUNCTION(_)
 
#define GET_INSTANCE_PROC_ADDRESS(name)
 
#define DEFINE_PROC_MEMBER(name)   PFN_##name name{ nullptr };
 

Detailed Description

Load OpenXR extensions common to all platforms and graphics backend.

Provides the ExtensionDispatchTable struct to load extension function pointers at runtime for the current XrInstance.

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

See also
vtkOpenXr.h XrGraphicsExtensions.h XrConnectionExtensions.h

Definition in file XrExtensions.h.

Macro Definition Documentation

◆ FOR_EACH_VISIBILITY_MASK_FUNCTION

#define FOR_EACH_VISIBILITY_MASK_FUNCTION (   _)

Definition at line 25 of file XrExtensions.h.

◆ FOR_EACH_CONTROLLER_MODEL_EXTENSION_FUNCTION

#define FOR_EACH_CONTROLLER_MODEL_EXTENSION_FUNCTION (   _)

Definition at line 35 of file XrExtensions.h.

◆ FOR_EACH_PERCEPTION_ANCHOR_INTEROP_FUNCTION

#define FOR_EACH_PERCEPTION_ANCHOR_INTEROP_FUNCTION (   _)

Definition at line 43 of file XrExtensions.h.

◆ FOR_EACH_SPATIAL_ANCHOR_FUNCTION

#define FOR_EACH_SPATIAL_ANCHOR_FUNCTION (   _)

Definition at line 52 of file XrExtensions.h.

◆ FOR_EACH_HAND_TRACKING_FUNCTION

#define FOR_EACH_HAND_TRACKING_FUNCTION (   _)

Definition at line 61 of file XrExtensions.h.

◆ FOR_EACH_HAND_TRACKING_MESH_FUNCTION

#define FOR_EACH_HAND_TRACKING_MESH_FUNCTION (   _)

Definition at line 69 of file XrExtensions.h.

◆ FOR_EACH_SPATIAL_GRAPH_BRIDGE_FUNCTION

#define FOR_EACH_SPATIAL_GRAPH_BRIDGE_FUNCTION (   _)

Definition at line 75 of file XrExtensions.h.

◆ FOR_EACH_SCENE_UNDERSTANDING_FUNCTION

#define FOR_EACH_SCENE_UNDERSTANDING_FUNCTION (   _)

Definition at line 90 of file XrExtensions.h.

◆ FOR_EACH_SCENE_UNDERSTANDING_SERIALIZATION_FUNCTION

#define FOR_EACH_SCENE_UNDERSTANDING_SERIALIZATION_FUNCTION (   _)

Definition at line 99 of file XrExtensions.h.

◆ FOR_EACH_EXTENSION_FUNCTION

#define FOR_EACH_EXTENSION_FUNCTION (   _)
Value:
FOR_EACH_HAND_TRACKING_FUNCTION(_) \
FOR_EACH_HAND_TRACKING_MESH_FUNCTION(_) \
FOR_EACH_SPATIAL_GRAPH_BRIDGE_FUNCTION(_) \
FOR_EACH_SPATIAL_ANCHOR_FUNCTION(_) \
FOR_EACH_CONTROLLER_MODEL_EXTENSION_FUNCTION(_) \
FOR_EACH_PERCEPTION_ANCHOR_INTEROP_FUNCTION(_) \
FOR_EACH_SCENE_UNDERSTANDING_FUNCTION(_) \
FOR_EACH_SCENE_UNDERSTANDING_SERIALIZATION_FUNCTION(_)
#define FOR_EACH_VISIBILITY_MASK_FUNCTION(_)

Definition at line 102 of file XrExtensions.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 113 of file XrExtensions.h.

◆ DEFINE_PROC_MEMBER

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

Definition at line 116 of file XrExtensions.h.