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

next parameter in SessionCreateInfo #144

Open
yshui opened this issue Nov 17, 2023 · 4 comments
Open

next parameter in SessionCreateInfo #144

yshui opened this issue Nov 17, 2023 · 4 comments

Comments

@yshui
Copy link

yshui commented Nov 17, 2023

The next is needed for passing, for example, XrSessionCreateInfoOverlayEXTX to create_session for extensions like XR_EXTX_overlay. Right now there is no way of setting it.

@yshui
Copy link
Author

yshui commented Nov 17, 2023

next: ptr::null(),

@Ralith
Copy link
Owner

Ralith commented Nov 18, 2023

The intention is that, if you need something not expressed in the safe API, you invoke the raw function pointers yourself via e.g. Instance::fp. Contributions of safe bindings are welcome, but it might be a bit premature to do that for an EXTX extension.

@yshui
Copy link
Author

yshui commented Nov 19, 2023

but create_session is already unsafe API...

yeah i can do it with the sys crate, it's just inconvenient.

@Ralith
Copy link
Owner

Ralith commented Nov 19, 2023

but create_session is already unsafe API...

True, but I'd rather not make it even less safe.

yeah i can do it with the sys crate, it's just inconvenient.

It shouldn't require much more code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants