aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Northrop <cnorthrop@google.com>2015-11-23 13:52:26 -0700
committerMark Lobodzinski <mark@lunarg.com>2015-11-23 15:46:41 -0700
commit03e4cea06b7f9ed4cdcf4f689d35ccc57831454c (patch)
tree83a0a2e1556acf8f63ca5f76f17ae7c07e1f0b26
parent0c1264607139bbc6a2037ee250e0b7d35f5235e7 (diff)
downloadusermoji-03e4cea06b7f9ed4cdcf4f689d35ccc57831454c.tar.xz
layers: Add link to example vk_layer_settings.txt
-rw-r--r--layers/README.md11
1 files changed, 7 insertions, 4 deletions
diff --git a/layers/README.md b/layers/README.md
index 8ee47b9f..760443b2 100644
--- a/layers/README.md
+++ b/layers/README.md
@@ -24,7 +24,7 @@ application can also register callback functions via the DEBUG_REPORT extension
when the requested validation events happen. Application callbacks happen regardless of the
settings in vk_layer_settings.txt
-##Layer library example code
+### Layer library example code
Note that some layers are code-generated and will therefore exist in the directory (build_dir)/layers
@@ -83,7 +83,11 @@ layers/device_limits.cpp (name=DeviceLimits) - This layer is intended to capture
This is required for the Loader to be able to scan and enumerate your library.
Alternatively, use the VK\_LAYER\_PATH environment variable to specify where the layer libraries reside.
-3. Specify which Layers to activate by using
+3. Create a vk_layer_settings.txt file in the same directory to specify how your layers should behave.
+
+ Model it after the following example: [*vk_layer_settings.txt*](layers/vk_layer_settings.txt)
+
+4. Specify which Layers to activate by using
vkCreateDevice and/or vkCreateInstance or environment variables.
export VK\_INSTANCE\_LAYERS=Basic:Generic
@@ -113,5 +117,4 @@ vkCreateDevice and/or vkCreateInstance or environment variables.
- Layers with multiple layers per library the manifest file parsing in Loader doesn't yet handle this;
- multi.cpp Layer needs rewrite to allow manifest file to specify multiple layers
-- multi1 and multi2 layers from multi.cpp: only multi1 layer working
-
+- multi1 and multi2 layers from multi.cpp: only multi1 layer working \ No newline at end of file