VTK  9.4.20250204
Classes | Namespaces | Macros
XrGraphicsExtensions.h File Reference

Load OpenXR extensions for the defined 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::GraphicsExtensionDispatchTable
 

Namespaces

namespace  xr
 

Macros

#define FOR_EACH_WIN32_EXTENSION_FUNCTION(_)
 
#define FOR_EACH_D3D11_EXTENSION_FUNCTION(_)
 
#define FOR_EACH_OPENGL_EXTENSION_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 for the defined graphics backend.

Provides the GraphicsExtensionDispatchTable struct to load platform-specific extensions at runtime for the current XrInstance. XR_USE_GRAPHICS_API_D3D11 and/or XR_USE_GRAPHICS_API_OPENGL must be defined prior to including this header to enable the expected graphics backend.

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

See also
vtkOpenXrPlatform.h XrExtensions.h XrConnectionExtensions.h

Definition in file XrGraphicsExtensions.h.

Macro Definition Documentation

◆ FOR_EACH_WIN32_EXTENSION_FUNCTION

#define FOR_EACH_WIN32_EXTENSION_FUNCTION (   _)

Definition at line 27 of file XrGraphicsExtensions.h.

◆ FOR_EACH_D3D11_EXTENSION_FUNCTION

#define FOR_EACH_D3D11_EXTENSION_FUNCTION (   _)

Definition at line 33 of file XrGraphicsExtensions.h.

◆ FOR_EACH_OPENGL_EXTENSION_FUNCTION

#define FOR_EACH_OPENGL_EXTENSION_FUNCTION (   _)

Definition at line 39 of file XrGraphicsExtensions.h.

◆ FOR_EACH_EXTENSION_FUNCTION

#define FOR_EACH_EXTENSION_FUNCTION (   _)
Value:
FOR_EACH_OPENGL_EXTENSION_FUNCTION(_) \
FOR_EACH_D3D11_EXTENSION_FUNCTION(_)
#define FOR_EACH_WIN32_EXTENSION_FUNCTION(_)

Definition at line 42 of file XrGraphicsExtensions.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 XrGraphicsExtensions.h.

◆ DEFINE_PROC_MEMBER

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

Definition at line 50 of file XrGraphicsExtensions.h.