Monado OpenXR Runtime
Loading...
Searching...
No Matches
oxr_resolver_for_bindings.h File Reference

Resolve suggested bindings into action cache IO. More...

#include "oxr_extension_support.h"
#include "oxr_forward_declarations.h"
#include "oxr_resolver_for_profiles.h"
Include dependency graph for oxr_resolver_for_bindings.h:

Go to the source code of this file.

Functions

void oxr_resolver_populate_input (struct oxr_logger *log, struct oxr_sink_logger *slog, const struct oxr_profile_resolver_info *info, struct xrt_device *xdev, XrPath subaction_path, struct oxr_action_attachment *act_attached, struct oxr_action_cache *cache)
 Resolve suggested input bindings for one action/subaction path into cache.
 
void oxr_resolver_populate_output (struct oxr_logger *log, struct oxr_sink_logger *slog, const struct oxr_profile_resolver_info *info, struct xrt_device *xdev, XrPath subaction_path, struct oxr_action_attachment *act_attached, struct oxr_action_cache *cache)
 Resolve suggested output bindings for one action/subaction path into cache.
 

Detailed Description

Resolve suggested bindings into action cache IO.

Function Documentation

◆ oxr_resolver_populate_input()

void oxr_resolver_populate_input ( struct oxr_logger *  log,
struct oxr_sink_logger *  slog,
const struct oxr_profile_resolver_info *  info,
struct xrt_device *  xdev,
XrPath  subaction_path,
struct oxr_action_attachment *  act_attached,
struct oxr_action_cache *  cache 
)

Resolve suggested input bindings for one action/subaction path into cache.

This is intentionally lower-level than the existing action binding path: it consumes the attached suggested-profile snapshot and resolves binding points at cache population time.

Assumes xdev is not NULL and cache has already been cleared by the caller.

References oxr_action_attachment::act_ref, oxr_action_ref::action_type, oxr_action_state::active, oxr_suggested_binding::binding_point, oxr_suggested_profile::bindings, oxr_action_ref::name, oxr_binding_point::profile, oxr_profile_resolver_info::profile, oxr_binding_point::templ, U_TYPED_ARRAY_CALLOC, oxr_profile_resolver_info::xbp, and XRT_STRUCT_INIT.

◆ oxr_resolver_populate_output()

void oxr_resolver_populate_output ( struct oxr_logger *  log,
struct oxr_sink_logger *  slog,
const struct oxr_profile_resolver_info *  info,
struct xrt_device *  xdev,
XrPath  subaction_path,
struct oxr_action_attachment *  act_attached,
struct oxr_action_cache *  cache 
)

Resolve suggested output bindings for one action/subaction path into cache.

Assumes xdev is not NULL and cache has already been cleared by the caller.

References oxr_action_attachment::act_ref, oxr_action_ref::action_type, oxr_action_state::active, oxr_suggested_binding::binding_point, oxr_suggested_profile::bindings, oxr_profile_resolver_info::profile, oxr_binding_point::templ, U_TYPED_ARRAY_CALLOC, oxr_profile_resolver_info::xbp, and XRT_STRUCT_INIT.