xrCreateInstanceconst
xrCreateInstanceconst is not a distinct OpenXR function. In practice, there is a single official entry point named xrCreateInstance, and the const qualifier appears in its parameter type rather than in a separate function name. Some documentation or informal references may appear as xrCreateInstanceconst when describing the const-qualified XrInstanceCreateInfo* argument passed to xrCreateInstance. The correct API signature is: XrResult xrCreateInstance(const XrInstanceCreateInfo* createInfo, XrInstance* instance).
xrCreateInstance creates a new OpenXR instance, which serves as the top-level handle for interacting with a
Parameters and data structures
The first argument is a pointer to a const XrInstanceCreateInfo, which describes the creation request and must
- type and next fields to identify the structure and its extensions
- applicationInfo, which carries applicationName, applicationVersion, engineName, engineVersion, and apiVersion
- enabledExtensionNames and enabledExtensionCount to request runtime-supported extensions
- enabledApiLayerNames and enabledApiLayerCount to enable validation layers or other API layers
The runtime version and API compatibility influence success; if the requested apiVersion is not supported, creation
xrDestroyInstance, XrInstanceCreateInfo, XrApplicationInfo, OpenXR specification.