Download debug levels in VS 2015 (VK_ERROR_LAYER_NOT_PRESENT)

I'm currently trying to get Visual Studio to use the debug layer DLL for Vulkan, but somehow it cannot load libraries. My steps were like this:

When I launch my application, it starts until it tries to create an instance where it returns VK_ERROR_LAYER_NOT_PRESENT, and I can see in the Visual Studio output window that the dll didn’t really load 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 .json files. This problem also occurs if I try to use the Release-DLL from the LoaderAndValidationLayers folder.

What am I doing wrong? Does anyone know how to do this?

EDIT: I found out that the problem VK_LAYER_LUNARG_threadingseems to be the problem. If I use VK_LAYER_LUNARG_standard_validation, it does not load anything. If I just specify all layers manually enabled (described here: https://vulkan.lunarg.com/app/docs/v1.0.3.1/layers ) without a layer VK_LAYER_LUNARG_threading, it works fine. Any idea why this could be?

+4
source share
2 answers

Ok, I think I found the problem. But I'm still not 100% sure why this is happening. I compared the two VkLayer_threading.json files and noticed that the names are different (I suspect the name change from version 1.0.3 to 1.0.5).

  • 1.0.3 ("name": "VK_LAYER_LUNARG_threading") → 1.0.5 ("name": "VK_LAYER_GOOGLE_threading")

- debug vulkan-1.lib Vulkan-LoaderAndValidationLayers (https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers) - .

, , SDK Windows - 1.0.3.1, - - (VK_LAYER_LUNARG_threading) , , . .json , .

EDIT: . 1.0.5 SDK Windows , . LoaderAndValidationLayers, , SDK.

+1

, .

, :

const char* enabledLayerNames[] = {
    "VK_LAYER_GOOGLE_threading",
    "VK_LAYER_GOOGLE_unique_objects",
    "VK_LAYER_LUNARG_api_dump",
    "VK_LAYER_LUNARG_device_limits",
    "VK_LAYER_LUNARG_draw_state",
    "VK_LAYER_LUNARG_image",
    "VK_LAYER_LUNARG_mem_tracker",
    "VK_LAYER_LUNARG_object_tracker",
    "VK_LAYER_LUNARG_param_checker",
    "VK_LAYER_LUNARG_screenshot",
    "VK_LAYER_LUNARG_swapchain",
//     "VK_LAYER_LUNARG_vktrace",
};

( "name" "C:\VulkanSDK\1.0.5.0\Bin\VkLayer_*.json" .)

"VK_LAYER_LUNARG_vktrace" , VK_ERROR_INITIALIZATION_FAILED ( " " ) .

, HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ExplicitLayers *.json

:

  • GPU Nvidia GeForce GT 730M (Kepler)
  • : Windows 10 x64
  • Nvidia v 364.51 ( " " )
  • LunarG VulkanSDK 1.0.3 ( Revo Uninstaller)
  • LunarG VulkanSDK 1.0.5

P.S. , . VS VS 2015. -.

P.P.S. API 1.0.4.

+1

All Articles