From 9544347f4e1a1d2c15856dd4cc559bfee9f0ecff Mon Sep 17 00:00:00 2001 From: Fred Emmott Date: Tue, 23 Jul 2024 11:26:25 -0500 Subject: [PATCH] Clarify xrEnumerateInstanceExtensionProperties Per https://registry.khronos.org/OpenXR/specs/1.1/html/xrspec.html#api-initialization , this function *can* be called before calling `xrCreateInstance`. --- specification/sources/chapters/instance.adoc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/specification/sources/chapters/instance.adoc b/specification/sources/chapters/instance.adoc index 55409701..13b0263c 100644 --- a/specification/sources/chapters/instance.adoc +++ b/specification/sources/chapters/instance.adoc @@ -181,7 +181,15 @@ different results if a pname: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. +calls, or if an `XrInstance` is created or destroyed between those calls. + +This function may: be called before an instance has been created; +implementations must: not assume an instance exists. + +When applications invoke this function, the OpenXR loader's implementation +is used, which enumerates the registered runtime and API layer manifests; +this function must: still be implemented by API layers and runtimes, as it may +be invoked by API layers. include::{generated}/validity/protos/xrEnumerateInstanceExtensionProperties.adoc[] --