72 error_customdata.
wm = wm;
76 const GHOST_TXrGraphicsBinding gpu_bindings_candidates[] = {
77 GHOST_kXrGraphicsOpenGL,
79 GHOST_kXrGraphicsD3D11,
82 GHOST_XrContextCreateInfo create_info = {
83 .gpu_binding_candidates = gpu_bindings_candidates,
84 .gpu_binding_candidates_count =
ARRAY_SIZE(gpu_bindings_candidates),
89 create_info.context_flag |= GHOST_kXrContextDebug;
92 create_info.context_flag |= GHOST_kXrContextDebugTime;
100 GHOST_XrGraphicsContextBindFuncs(
context,
157 if ((*runtime)->context !=
NULL) {
158 GHOST_XrContextHandle
context = (*runtime)->context;
161 (*runtime)->context =
NULL;
void IDP_FreeProperty(struct IDProperty *prop)
void BKE_reports_clear(ReportList *reports)
GHOST C-API function and type declarations.
GHOST_TSuccess GHOST_XrEventsHandle(GHOST_XrContextHandle xr_contexthandle)
GHOST_XrContextHandle GHOST_XrContextCreate(const GHOST_XrContextCreateInfo *create_info)
void GHOST_XrContextDestroy(GHOST_XrContextHandle xr_contexthandle)
void GHOST_XrErrorHandler(GHOST_XrErrorHandlerFn handler_fn, void *customdata)
Read Guarded memory(de)allocation.
void *(* MEM_callocN)(size_t len, const char *str)
static void error(const char *str)
struct SELECTID_Context context
struct View3DShading shading
struct ReportList reports
XrSessionSettings session_settings
struct wmXrRuntimeData * runtime
GHOST_XrContextHandle context
void WM_report_banner_show(void)
void WM_report(ReportType type, const char *message)
bool wm_xr_init(wmWindowManager *wm)
static void wm_xr_error_handler(const GHOST_XrError *error)
void wm_xr_runtime_data_free(wmXrRuntimeData **runtime)
wmXrRuntimeData * wm_xr_runtime_data_create(void)
bool wm_xr_events_handle(wmWindowManager *wm)
void wm_xr_exit(wmWindowManager *wm)
void wm_xr_draw_view(const GHOST_XrDrawViewInfo *draw_view, void *customdata)
Draw a viewport for a single eye.
void wm_xr_session_gpu_binding_context_destroy(GHOST_ContextHandle context)
void * wm_xr_session_gpu_binding_context_create(void)