Class KHRLoaderInit

java.lang.Object
org.lwjgl.openxr.KHRLoaderInit

public class KHRLoaderInit extends Object
The XR_KHR_loader_init extension.

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.