C Specification
The application can determine the available instance extensions by calling xrEnumerateInstanceExtensionProperties:
XrResult xrEnumerateInstanceExtensionProperties(
const char* layerName,
uint32_t propertyCapacityInput,
uint32_t* propertyCountOutput,
XrExtensionProperties* properties);
Parameters
Description
If properties
is NULL
, then the number of extensions properties
available is returned in propertyCountOutput
.
Otherwise, propertyCountInput
must point
to a variable set by the user to the number of elements in the properties
array.
If propertyCountInput
is less than the number of extension properties
available, the contents of properties
will be undefined.
If propertyCountInput
is smaller than the number of extensions available,
the failure code XR_ERROR_SIZE_INSUFFICIENT
and the contents of
properties
are undefined.
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 another.
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 calls.
See Also
Document Notes
For more information, see the OpenXR Specification at URL
This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.
Copyright
Copyright (c) 2014-2019 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.