Reputation: 779
I am following the instructions on the Vulkan-LoaderAndValidationLayers github: https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/blob/master/layers/README.md
I've built the layers, copied the DLLs next to my executable (for test purposes, will setup the path later), created a vk_layer_settings.txt (also alongside my executable), and set the layer names in my VK_INSTANCE_LAYERS env. var.
But no matter what I do the array returned by vkEnumerateInstanceLayerProperties does not contain any validation layers.
What magic step have I missed? This is Windows 8.1 running on a Nvidia 970M
Upvotes: 0
Views: 3382
Reputation: 5798
Aside from the DLLs, the loader also needs to find the appropriate layer manifest json files.
Easiest way is to just set the VK_LAYER_PATH
environment variable to the release build output folder of the validation layer project you cloned from github like this:
VK_LAYER_PATH=X:\YOUR-PATH-HERE\build\layers\Release
The loader will then load the validation layers form that folder, and you'll always be using the most recent layer version.
Upvotes: 5