Issue
Though the latest graphics driver is installed, vkEnumerateInstanceLayerProperties does not return "VK_LAYER_KHRONOS_validation", and the layer is not available.
Instead, "VK_LAYER_LUNARG_standard_validation" is available, but it should be already deprecated in Vulkan 1.2.
My environment
- Legion Y520-15IKBN Laptop (Lenovo)
- GeForce GTX 1050 Ti
- Windows 10 Home 1909
- GLFW 3.3.2 WIN64
- VulkanSDK 1.2.141.2 for Win64
- Installed at "E:/Lib"
Solution
1. Start "(VulkanSDK Path)/VulkanSDK/1.2.141.2/Tools/vkconfig.exe"
2. Open "Layer Manager" tab. This pane shows the available layers. It would look like this:
3. Tick "Use custom layer paths" in "Layer Locations" (It enables the custom setting of layers by a json file, probably.)
4. Click "Add" in "Layer Locaations".
5. Select "(VulkanSDK Path)/VulkanSDK/1.2.141.2/Bin" by the dialog. (This makes Vulkan recognize "VkLayer_khronos_validation.json" in the directory.) Layers are added and it would look like this:
6. Move "Khronos: validation" from "Unset Explicit Layers" to "Application Side".
7. Click "Save"
8. Done. You can check that the layer became available by "Vulkan Info" (in the start menu):
Layers: count = 10 ================== VK_LAYER_KHRONOS_validation (Khronos Validation Layer) Vulkan version 1.2.141, layer version 1: Layer Extensions: count = 3 VK_EXT_debug_report : extension revision 9 VK_EXT_debug_utils : extension revision 1 VK_EXT_validation_features : extension revision 2 Devices: count = 2 GPU id = 0 (GeForce GTX 1050 Ti) Layer-Device Extensions: count = 3 VK_EXT_debug_marker : extension revision 4 VK_EXT_tooling_info : extension revision 1 VK_EXT_validation_cache : extension revision 1 GPU id = 1 (Intel(R) HD Graphics 630) Layer-Device Extensions: count = 3 VK_EXT_debug_marker : extension revision 4 VK_EXT_tooling_info : extension revision 1 VK_EXT_validation_cache : extension revision 1 VK_LAYER_LUNARG_api_dump (LunarG API dump layer) Vulkan version 1.2.141, layer version 2: Layer Extensions: count = 0 Devices: count = 2 GPU id = 0 (GeForce GTX 1050 Ti) Layer-Device Extensions: count = 1 VK_EXT_tooling_info : extension revision 1 GPU id = 1 (Intel(R) HD Graphics 630) Layer-Device Extensions: count = 1 VK_EXT_tooling_info : extension revision 1