The application can determine the available instance extensions by calling xrEnumerateInstanceExtensionProperties:
XrResult xrEnumerateInstanceExtensionProperties( const char* layerName, uint32_t propertyCapacityInput, uint32_t* propertyCountOutput, XrExtensionProperties* properties);
NULL, then the number of extensions properties
available is returned in
propertyCountInput must point to a variable set by the user
to the number of elements in the
propertyCountInput is less than the number of extension properties
available, the contents of
properties will be undefined.
propertyCountInput is smaller than the number of extensions
available, the runtime must return the failure code
XR_ERROR_SIZE_INSUFFICIENT and the contents of
Because the list of available layers may change externally between calls to
xrEnumerateInstanceExtensionProperties, two calls may retrieve
different results if a
layerName is available in one call but not in
The extensions supported by a layer may also change between two calls, e.g.
if the layer implementation is replaced by a different version between those
For more information, see the OpenXR Specification
This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.
Copyright (c) 2014-2021, The Khronos Group Inc.
This work is licensed under a Creative Commons Attribution 4.0 International License.