Blender  V3.3
Classes
GHOST_XrSession.cpp File Reference
#include <algorithm>
#include <cassert>
#include <chrono>
#include <cstdio>
#include <list>
#include <sstream>
#include "GHOST_C-api.h"
#include "GHOST_IXrGraphicsBinding.h"
#include "GHOST_XrAction.h"
#include "GHOST_XrContext.h"
#include "GHOST_XrControllerModel.h"
#include "GHOST_XrException.h"
#include "GHOST_XrSwapchain.h"
#include "GHOST_Xr_intern.h"
#include "GHOST_XrSession.h"

Go to the source code of this file.

Classes

struct  OpenXRSessionData
 
struct  GHOST_XrDrawInfo
 

Functions

State Management
static void create_reference_spaces (OpenXRSessionData &oxr, const GHOST_XrPose &base_pose, bool isDebugMode)
 
Drawing
static void print_debug_timings (GHOST_XrDrawInfo &draw_info)
 
static void ghost_xr_draw_view_info_from_view (const XrView &view, GHOST_XrDrawViewInfo &r_info)
 
Actions
static GHOST_XrActionSetfind_action_set (OpenXRSessionData *oxr, const char *action_set_name)
 

Function Documentation

◆ create_reference_spaces()

static void create_reference_spaces ( OpenXRSessionData oxr,
const GHOST_XrPose &  base_pose,
bool  isDebugMode 
)
static

◆ find_action_set()

static GHOST_XrActionSet* find_action_set ( OpenXRSessionData oxr,
const char *  action_set_name 
)
static

◆ ghost_xr_draw_view_info_from_view()

static void ghost_xr_draw_view_info_from_view ( const XrView &  view,
GHOST_XrDrawViewInfo &  r_info 
)
static

Definition at line 460 of file GHOST_XrSession.cpp.

References copy_openxr_pose_to_ghost_pose(), and view.

◆ print_debug_timings()

static void print_debug_timings ( GHOST_XrDrawInfo draw_info)
static

Render time of last 8 frames (in ms) to calculate an average.

Definition at line 403 of file GHOST_XrSession.cpp.

References GHOST_XrDrawInfo::frame_begin_time, and GHOST_XrDrawInfo::last_frame_times.