File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 2727
2828// There is known issue that vkDestroyDebugUtilsMessengerEXT crash on exit when vulkan validation layer enabled
2929// upstream fix https://github.com/KhronosGroup/Vulkan-Loader/pull/539
30+ #if NCNN_ENABLE_RENDERDOC_PROFILING
3031#define ENABLE_VALIDATION_LAYER 1
32+ #else
33+ #define ENABLE_VALIDATION_LAYER 0
34+ #endif
3135
3236#if NCNN_ENABLE_RENDERDOC_PROFILING
3337
@@ -2415,8 +2419,8 @@ static int init_instance_extension()
24152419
24162420#if ENABLE_VALIDATION_LAYER
24172421static VKAPI_ATTR VkBool32 VKAPI_CALL debugCallback (
2418- VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity,
2419- VkDebugUtilsMessageTypeFlagsEXT messageType,
2422+ VkDebugUtilsMessageSeverityFlagBitsEXT /* messageSeverity*/ ,
2423+ VkDebugUtilsMessageTypeFlagsEXT /* messageType*/ ,
24202424 const VkDebugUtilsMessengerCallbackDataEXT* pCallbackData,
24212425 void * /* pUserData*/ )
24222426{
You can’t perform that action at this time.
0 commit comments