Monado OpenXR Runtime
Loading...
Searching...
No Matches
oxr_instance_action_context Struct Reference

Holds all action-related state that lives at the instance level (shared across sessions). More...

#include <oxr/actions/oxr_instance_action_context.h>

Collaboration diagram for oxr_instance_action_context:

Public Member Functions

XRT_CHECK_RESULT XrResult oxr_instance_action_context_init (struct oxr_logger *log, struct oxr_instance_action_context *context)
 Initialize the action context for an instance.
 
void oxr_instance_action_context_fini (struct oxr_instance_action_context *context)
 Finalize and cleanup the action context for an instance.
 

Data Fields

struct { 
 
   struct u_hashset *   name_store 
 
   struct u_hashset *   loc_store 
 
action_sets 
 Action set name and localized name stores.
 
struct oxr_interaction_profile_array suggested_profiles
 Interaction profile bindings that have been suggested by the client.
 

Detailed Description

Holds all action-related state that lives at the instance level (shared across sessions).

Used for duplicate checking and storage of client-suggested that are later applied when action sets are attached to a session.

  • action_sets: Registry of action set name and localized name pairs. Used to enforce uniqueness in xrCreateActionSet and to remove entries when an action set is destroyed.
  • suggested_profiles: Interaction profile bindings suggested by the app via xrSuggestInteractionProfileBindings. When the app calls xrAttachSessionActionSets, this array is cloned into the session’s action context so the runtime can apply those suggestions for that session.

In a future extension, this context is intended to support namespaced action sets and to allow plugins (e.g. in a game) to suggest their own bindings without affecting the main application’s bindings.

Field Documentation

◆ [struct]

struct { ... } oxr_instance_action_context::action_sets

Action set name and localized name stores.

Referenced by oxr_xrCreateActionSet().

◆ suggested_profiles

struct oxr_interaction_profile_array oxr_instance_action_context::suggested_profiles

Interaction profile bindings that have been suggested by the client.

Referenced by oxr_session::oxr_session_attach_action_sets().


The documentation for this struct was generated from the following file: