Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[openxr] Handle input/output structures automatically in codegen #1715

Open
MarkY-LunarG opened this issue Sep 5, 2024 · 0 comments
Open
Assignees
Labels
openxr-experimental Related to OpenXR experimental support

Comments

@MarkY-LunarG
Copy link
Contributor

In OpenXR, there are several structures that are filled in by various API calls that require some initialization before being passed in. The initialization includes, setting values appropriately (beyond type and next) such as counts and array memory allocations. These should be handled automatically in code gen.

Currently there are two locations that need to be code generated appropriately:

  1. The API call itself which handles such a structure
  • This includes at least the following APIs that are hand generated right now in openxr_replay_consumer_base.cpp (prepended with Process_):
    • xrLocateSpaces
    • xrLocateHandJointsEXT
    • xrGetMeshFB
    • xrLocateBodyJointsEXT
  1. next chain structures that are handled in such a wa:
  • This includes at least the following structures that are hand generated right now in openxr_replay_consumer_base.cpp (prepended with OverrideOutputStructNext_):
    • XrSpaceVelocities
    • XrHandJointVelocitiesEXT
@MarkY-LunarG MarkY-LunarG added the openxr-experimental Related to OpenXR experimental support label Sep 5, 2024
@MarkY-LunarG MarkY-LunarG self-assigned this Sep 5, 2024
@MarkY-LunarG MarkY-LunarG changed the title Handle input/output structures automatically in codegen [openxr] Handle input/output structures automatically in codegen Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openxr-experimental Related to OpenXR experimental support
Projects
None yet
Development

No branches or pull requests

1 participant