MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/Cauldron / ExtDebugReportOnCreate

Function ExtDebugReportOnCreate

src/VK/base/ExtValidation.cpp:86–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

CreateInstanceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected