I am currently trying to force Visual Studio to use the debug layer dlls for Vulkan, but somehow it is unable to load the libraries. My steps were those:
- Clone https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/blob/master/BUILD.md
- Build for Visual Studio 2015 (Release and Debug)
- In my Vulkan Application i put this into the Environment variable (for x64 - Debug) (Project Settings -> Debugging):
VK_LAYER_PATH=F:\Projects\Vulkan-LoaderAndValidationLayers\build\layers\Debug
When i start my application it runs until it tries to create the Instance, where it returns VK_ERROR_LAYER_NOT_PRESENT
and i can see in the output window of Visual Studio that the dlls were indeed not loaded at all. If i just put the "normal" path to the Vulkan binaries in the path above it works fine again. I already checked that there are also the .json files present. This problem is also present if i try to use the Release-DLLs from the LoaderAndValidationLayers folder.
What am i doing wrong? Does anyone have any idea how to make this work?
EDIT: I found out that VK_LAYER_LUNARG_threading
seems to be the problem. If i use VK_LAYER_LUNARG_standard_validation
it does not load anything. If i just specify all layers included manually (described here: https://vulkan.lunarg.com/app/docs/v1.0.3.1/layers) without the VK_LAYER_LUNARG_threading
layer it does work fine. Any idea why this might be?