Skip to content

openxr-sys layer api relies on xrEnumerateApiLayerProperties which is not available in all runtimes #185

@TobiSchluter

Description

@TobiSchluter

For background, please check here https://fredemmott.com/blog/2024/11/25/best-practices-for-openxr-api-layers.html

Loading an API layer built with openxrs fails when using the SteamVR OpenXR runtimes as well as the runtime on HTC Android headsets. This is because these runtimes don't provide xrEnumerateApiLayerProperties (the link has some info on that). The function is not actually used by openxr-sys, just stored, so this seems overly restrictive.

We work around this by hooking into GetInstanceProcAddr and providing a dummy implementation of xrEnumerateApiLayerProperties if the runtime doesn't provide it, but it would be nice to not have to do that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions