#define VK_USE_PLATFORM_XLIB_KHR
#include <vulkan/vulkan.h>
#include <msp/core/application.h>
+#include <msp/debug/debugapi.h>
#include <msp/io/print.h>
#include "display_private.h"
#include "vulkancontext.h"
debug_report_callback(0)
{ }
-VkBool32 VulkanContext::Private::debug_report_func(VkDebugReportFlagsEXT, VkDebugReportObjectTypeEXT, uint64_t, size_t, int32_t, const char *, const char *message, void *)
+VkBool32 VulkanContext::Private::debug_report_func(VkDebugReportFlagsEXT flags, VkDebugReportObjectTypeEXT, uint64_t, size_t, int32_t, const char *, const char *message, void *)
{
IO::print(IO::cerr, "%s\n", message);
+ if((flags&VK_DEBUG_REPORT_ERROR_BIT_EXT) && Debug::check_debugger()==Debug::GDB)
+ Debug::debug_break();
return VK_FALSE;
}