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: Allow GDExtensions to provide multiple, ordered composition layers #89460

Merged

Conversation

dsnopek
Copy link
Contributor

@dsnopek dsnopek commented Mar 13, 2024

In PR #87630, we added an API that allows GDExtensions to provide an OpenXR composition layer, so that we could move passthrough support to GDExtension. This API will be new for Godot 4.3.

I've started looking at advancing the work on OpenXR composition layers that @BastiaanOlij started in PR #76877, and this has made me realize that the API we added is too limited: namely, it only allows us to provide a single composition layer, and we can't control the order of the layers. (Godot itself is less limited, because a single extension wrapper can make multiple OpenXRCompositionLayerProviders, but we didn't expose this to GDExtension in a way that would allow it.)

So, even if we don't finish the other work on OpenXR composition layers for Godot 4.3, since the API is new in Godot 4.3, I'd like to fix this before we have to worry about backwards compatibility.

That's why I've split this out into it's own PR!

I've tested that this works with passthrough, together with PR GodotVR/godot_openxr_vendors#109

Please let me know what you think :-)

Copy link
Contributor

@BastiaanOlij BastiaanOlij left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, indeed a good idea to get this in early so we don't back ourselves into a corner.

@akien-mga akien-mga merged commit 36b33d9 into godotengine:master Mar 14, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@dsnopek dsnopek deleted the openxr-composition-layers-multiple branch July 22, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants