Blender V5.3
GHOST_XrContext.cc File Reference
#include <algorithm>
#include <cassert>
#include <sstream>
#include <string>
#include <string_view>
#include "BLI_string.hh"
#include "BLI_string_ref.hh"
#include "BLI_vector.hh"
#include "GHOST_Types.hh"
#include "GHOST_XrException.hh"
#include "GHOST_XrSession.hh"
#include "GHOST_Xr_intern.hh"
#include "GHOST_XrContext.hh"

Go to the source code of this file.

Classes

struct  OpenXRInstanceData

Functions

Debug Printing
static XrBool32 debug_messenger_func (XrDebugUtilsMessageSeverityFlagsEXT, XrDebugUtilsMessageTypeFlagsEXT, const XrDebugUtilsMessengerCallbackDataEXT *callbackData, void *)
OpenXR API-Layers and Extensions
static bool openxr_layer_is_available (const std::vector< XrApiLayerProperties > &layers_info, const std::string &layer_name)
static bool openxr_extension_is_available (const std::vector< XrExtensionProperties > &extensions_info, const std::string_view &extension_name)
static blender::Vector< blender::StringRefNull > openxr_ext_names_from_wm_gpu_binding (GHOST_TXrGraphicsBinding binding)
 Return a list of extension names where at least one must be available to use a graphics binding.

Detailed Description

Abstraction for XR (VR, AR, MR, ..) access via OpenXR.

Definition in file GHOST_XrContext.cc.

Function Documentation

◆ debug_messenger_func()

XrBool32 debug_messenger_func ( XrDebugUtilsMessageSeverityFlagsEXT ,
XrDebugUtilsMessageTypeFlagsEXT ,
const XrDebugUtilsMessengerCallbackDataEXT * callbackData,
void *  )
static

Definition at line 196 of file GHOST_XrContext.cc.

References CLOG_INFO, debug_messenger_func(), and LOG_GHOST_XR.

Referenced by debug_messenger_func().

◆ openxr_ext_names_from_wm_gpu_binding()

blender::Vector< blender::StringRefNull > openxr_ext_names_from_wm_gpu_binding ( GHOST_TXrGraphicsBinding binding)
static

Return a list of extension names where at least one must be available to use a graphics binding.

Definition at line 402 of file GHOST_XrContext.cc.

References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), assert, and openxr_ext_names_from_wm_gpu_binding().

Referenced by openxr_ext_names_from_wm_gpu_binding().

◆ openxr_extension_is_available()

bool openxr_extension_is_available ( const std::vector< XrExtensionProperties > & extensions_info,
const std::string_view & extension_name )
static

Definition at line 363 of file GHOST_XrContext.cc.

References openxr_extension_is_available().

Referenced by openxr_extension_is_available().

◆ openxr_layer_is_available()

bool openxr_layer_is_available ( const std::vector< XrApiLayerProperties > & layers_info,
const std::string & layer_name )
static

Definition at line 351 of file GHOST_XrContext.cc.

References openxr_layer_is_available().

Referenced by openxr_layer_is_available().