Class KHRLoaderInit
On some platforms, before loading can occur the loader must be initialized with platform-specific parameters.
Unlike other extensions, the presence of this extension is signaled by a successful call to GetInstanceProcAddr to retrieve the function pointer for InitializeLoaderKHR using NULL_HANDLE as the instance parameter.
If this extension is supported, its use may be required on some platforms and the use of the InitializeLoaderKHR function must precede other OpenXR calls except GetInstanceProcAddr.
This function exists as part of the loader library that the application is using and the loader must pass calls to InitializeLoaderKHR to the active runtime, and all enabled API layers that expose a InitializeLoaderKHR function exposed either through their manifest, or through their implementation of GetInstanceProcAddr.
If the InitializeLoaderKHR function is discovered through the manifest, InitializeLoaderKHR will be called before xrNegotiateLoaderRuntimeInterface or xrNegotiateLoaderApiLayerInterface has been called on the runtime or layer respectively.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnxrInitializeLoaderKHR(long loaderInitInfo) Unsafe version of:InitializeLoaderKHRstatic intxrInitializeLoaderKHR(XrLoaderInitInfoBaseHeaderKHR loaderInitInfo) Initializes loader.
-
Field Details
-
XR_KHR_loader_init_SPEC_VERSION
public static final int XR_KHR_loader_init_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_KHR_LOADER_INIT_EXTENSION_NAME
The extension name.- See Also:
-
-
Method Details
-
nxrInitializeLoaderKHR
public static int nxrInitializeLoaderKHR(long loaderInitInfo) Unsafe version of:InitializeLoaderKHR -
xrInitializeLoaderKHR
Initializes loader.C Specification
To initialize an OpenXR loader with platform or implementation-specific parameters, call:
XrResult xrInitializeLoaderKHR( const XrLoaderInitInfoBaseHeaderKHR* loaderInitInfo);Valid Usage (Implicit)
- The
XR_KHR_loader_initextension must be enabled prior to callingInitializeLoaderKHR loaderInitInfomust be a pointer to a validXrLoaderInitInfoBaseHeaderKHR-based structure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
loaderInitInfo- a pointer to anXrLoaderInitInfoBaseHeaderKHRstructure, which is a polymorphic type defined by other platform- or implementation-specific extensions.
- The
-