sdlCreateGpuxrSession function openxr
int
sdlCreateGpuxrSession(
- Pointer<
SdlGpuDevice> device, - Pointer<
XrSessionCreateInfo> createinfo, - Pointer<
Uint64> session
Creates an OpenXR session.
The OpenXR system ID is pulled from the passed GPU context.
\param device a GPU context. \param createinfo the create info for the OpenXR session, sans the system ID. \param session a pointer filled in with an OpenXR session created for the given device. \returns the result of the call.
\since This function is available since SDL 3.6.0.
\sa SDL_CreateGPUDeviceWithProperties
extern SDL_DECLSPEC XrResult SDLCALL SDL_CreateGPUXRSession(SDL_GPUDevice *device, const XrSessionCreateInfo *createinfo, XrSession *session)
Implementation
int sdlCreateGpuxrSession(
Pointer<SdlGpuDevice> device,
Pointer<XrSessionCreateInfo> createinfo,
Pointer<Uint64> session,
) {
final sdlCreateGpuxrSessionLookupFunction = _libSdl
.lookupFunction<
Int32 Function(
Pointer<SdlGpuDevice> device,
Pointer<XrSessionCreateInfo> createinfo,
Pointer<Uint64> session,
),
int Function(
Pointer<SdlGpuDevice> device,
Pointer<XrSessionCreateInfo> createinfo,
Pointer<Uint64> session,
)
>('SDL_CreateGPUXRSession');
return sdlCreateGpuxrSessionLookupFunction(device, createinfo, session);
}