| 84 | } |
| 85 | |
| 86 | void ExtDebugReportOnCreate(VkInstance instance) |
| 87 | { |
| 88 | if (g_vkCreateDebugReportCallbackEXT) |
| 89 | { |
| 90 | VkDebugReportCallbackCreateInfoEXT debugReportCallbackInfo = { VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT }; |
| 91 | debugReportCallbackInfo.flags = VK_DEBUG_REPORT_ERROR_BIT_EXT | VK_DEBUG_REPORT_WARNING_BIT_EXT | VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT; |
| 92 | debugReportCallbackInfo.pfnCallback = MyDebugReportCallback; |
| 93 | VkResult res = g_vkCreateDebugReportCallbackEXT(instance, &debugReportCallbackInfo, nullptr, &g_DebugReportCallback); |
| 94 | assert(res == VK_SUCCESS); |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | void ExtDebugReportOnDestroy(VkInstance instance) |
| 99 | { |