Allows clients to implement OpenXR extensions with GDExtension.
[OpenXRExtensionWrapperExtension] allows clients to implement OpenXR extensions with GDExtension. The extension should be registered with [method register_extension_wrapper].
Returns a pointer to a [code]XrCompositionLayerBaseHeader[/code] struct to provide a composition layer. This will only be called if the extension previously registered itself with [method OpenXRAPIExtension.register_composition_layer_provider].
Returns a [Dictionary] of OpenXR extensions related to this extension. The [Dictionary] should contain the name of the extension, mapped to a [code]bool *[/code] cast to an integer:
- If the [code]bool *[/code] is a [code]nullptr[/code] this extension is mandatory.
- If the [code]bool *[/code] points to a boolean, the boolean will be updated to [code]true[/code] if the extension is enabled.
Returns a [PackedStringArray] of positional tracker names that are used within the extension wrapper.
Called before the OpenXR instance is created.
Called when there is an OpenXR event to process. When implementing, return [code]true[/code] if the event was handled, return [code]false[/code] otherwise.
Called right after the OpenXR instance is created.
Called right before the OpenXR instance is destroyed.
Called right before the XR viewports begin their rendering step.
Called as part of the OpenXR process handling. This happens right before general and physics processing steps of the main loop. During this step controller data is queried and made available to game logic.
Allows extensions to register additional controller metadata. This function is called even when the OpenXR API is not constructed as the metadata needs to be available to the editor.
Extensions should also provide metadata regardless of whether they are supported on the host system. The controller data is used to setup action maps for users who may have access to the relevant hardware.
Called right after the OpenXR session is created.
Called right before the OpenXR session is destroyed.
Called when the OpenXR session state is changed to exiting.
Called when the OpenXR session state is changed to focused. This state is the active state when the game runs.
Called when the OpenXR session state is changed to idle.
Called when the OpenXR session state is changed to loss pending.
Called when the OpenXR session state is changed to ready. This means OpenXR is ready to set up the session.
Called when the OpenXR session state is changed to stopping.
Called when the OpenXR session state is changed to synchronized. OpenXR also returns to this state when the application loses focus.
Called when the OpenXR session state is changed to visible. This means OpenXR is now ready to receive frames.
Adds additional data structures when each hand tracker is created.
Adds additional data structures when the OpenXR instance is created.
Adds additional data structures when the OpenXR session is created.
Adds additional data structures when creating OpenXR swapchains.
Adds additional data structures when interogating OpenXR system abilities.
Returns the created [OpenXRAPIExtension], which can be used to access the OpenXR API.
Registers the extension. This should happen at core module initialization level.