Ralith/openxrs

`next` parameter in `SessionCreateInfo`

yshui opened this issue · 4 comments

yshui commented

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 commented

next: ptr::null(),

Ralith commented

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 commented

but create_session is already unsafe API...

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

Ralith commented

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.