Axmol 3.0.0-89d6d9a
Loading...
Searching...
No Matches
OpenXRDriver Class Reference

Long-lived OpenXR backend context for VRSceneCompositor. More...

#include <OpenXRDriver.h>

Public Member Functions

bool registerVulkanInterop ()
 Registers a VulkanInterop for this context before the Vulkan driver initializes.
void pollEvents ()
 Polls OpenXR session events, waits the next frame, and syncs frame-bound input.

Detailed Description

Long-lived OpenXR backend context for VRSceneCompositor.

OpenXRDriver owns OpenXR instance/session/space/swapchain/action state and wraps swapchain images for the active RHI backend. It is not a per-frame data object and is intentionally separate from axmol's RHI GraphicsContext types. pollEvents() is the single pre-update entry point; it handles OpenXR events, waits frame timing, and syncs frame-bound input. _inFrame tracks only the xrBeginFrame/xrEndFrame pairing state.

Member Function Documentation

◆ registerVulkanInterop()

bool registerVulkanInterop ( )

Registers a VulkanInterop for this context before the Vulkan driver initializes.

Creates the OpenXR instance and system (Phase 1), then registers an OpenXRVulkanInterop via GraphicsCore::setVulkanInterop() so that the Vulkan driver can query required extensions and physical device selection from the OpenXR runtime.

Must be called before GraphicsCore::initialize().


The documentation for this class was generated from the following file:
  • OpenXRDriver.h