MCPcopy Create free account
hub / github.com/KomputeProject/kompute / debugMessageCallback

Function debugMessageCallback

src/Manager.cpp:15–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14#ifndef KOMPUTE_DISABLE_VK_DEBUG_LAYERS
15static VKAPI_ATTR VkBool32 VKAPI_CALL
16debugMessageCallback(VkDebugReportFlagsEXT /*flags*/,
17 VkDebugReportObjectTypeEXT /*objectType*/,
18 uint64_t /*object*/,
19 size_t /*location*/,
20 int32_t /*messageCode*/,
21#if KOMPUTE_OPT_ACTIVE_LOG_LEVEL <= KOMPUTE_LOG_LEVEL_DEBUG
22 const char* pLayerPrefix,
23 const char* pMessage,
24#else
25 const char* /*pLayerPrefix*/,
26 const char* /*pMessage*/,
27#endif
28 void* /*pUserData*/)
29{
30 KP_LOG_DEBUG("[VALIDATION]: {} - {}", pLayerPrefix, pMessage);
31 return VK_FALSE;
32}
33#endif
34
35Manager::Manager()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected