summaryrefslogtreecommitdiff
path: root/loader
diff options
context:
space:
mode:
authorMark Young <marky@lunarg.com>2017-02-13 15:39:22 -0700
committerMark Young <marky@lunarg.com>2017-02-13 15:39:22 -0700
commit26ae79c092c01e812816adbe2ab38dd51c05ef67 (patch)
tree37f1ca00de795d6556e4bc74642b4b655d92aafc /loader
parentb502f14620de42454ef8906b6d76e9a176c52067 (diff)
docs: Update LoaderAndLayerInterface
Added section detailing the loader's instance extension name filtering behavior and the environment varaible that can be used to disable the behavior. Change-Id: Iadbde47e2933a163906a7cfa1c4b340da0d73789
Diffstat (limited to 'loader')
-rw-r--r--loader/LoaderAndLayerInterface.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/loader/LoaderAndLayerInterface.md b/loader/LoaderAndLayerInterface.md
index 32de7710..6b71d600 100644
--- a/loader/LoaderAndLayerInterface.md
+++ b/loader/LoaderAndLayerInterface.md
@@ -699,6 +699,19 @@ No! Most extension functionality only affects either a physical or logical
device and not an instance. Thus, the overwhelming majority of extensions
should be supported with direct loader support.
+##### Filtering Out Unknown Instance Extension Names
+In some cases, an ICD may support instance extensions that the loader does not.
+For the above reasons, the loader will filter out the names of these unknown instance
+extensions when an application calls `vkEnumerateInstanceExtensionProperties`.
+Additionally, this behavior will cause the loader to throw an error during
+`vkCreateInstance` if you still attempt to use one of these extensions. The intent is
+to protect applications so that they don't inadvertantly use functionality
+which could lead to a crash.
+
+On the other-hand, if you know you can safely use the extension, you may disable
+the filtering by defining the environment variable `VK_LOADER_DISABLE_INST_EXT_FILTER`
+and setting the value to a non-zero number. This will effectively disable the
+loader's filtering out of instance extension names.
<br/>
<br/>