Clean up debug setup
This commit is contained in:
parent
938e97661c
commit
288503390d
3 changed files with 3 additions and 11 deletions
|
|
@ -66,7 +66,7 @@ namespace vks
|
|||
return VK_FALSE;
|
||||
}
|
||||
|
||||
void setupDebugging(VkInstance instance, VkDebugReportFlagsEXT flags, VkDebugReportCallbackEXT callBack)
|
||||
void setupDebugging(VkInstance instance)
|
||||
{
|
||||
|
||||
vkCreateDebugUtilsMessengerEXT = reinterpret_cast<PFN_vkCreateDebugUtilsMessengerEXT>(vkGetInstanceProcAddr(instance, "vkCreateDebugUtilsMessengerEXT"));
|
||||
|
|
|
|||
|
|
@ -38,11 +38,7 @@ namespace vks
|
|||
void* pUserData);
|
||||
|
||||
// Load debug function pointers and set debug callback
|
||||
// if callBack is NULL, default message callback will be used
|
||||
void setupDebugging(
|
||||
VkInstance instance,
|
||||
VkDebugReportFlagsEXT flags,
|
||||
VkDebugReportCallbackEXT callBack);
|
||||
void setupDebugging(VkInstance instance);
|
||||
// Clear debug callback
|
||||
void freeDebugCallback(VkInstance instance);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -968,11 +968,7 @@ bool VulkanExampleBase::initVulkan()
|
|||
// If requested, we enable the default validation layers for debugging
|
||||
if (settings.validation)
|
||||
{
|
||||
// The report flags determine what type of messages for the layers will be displayed
|
||||
// For validating (debugging) an application the error and warning bits should suffice
|
||||
VkDebugReportFlagsEXT debugReportFlags = VK_DEBUG_REPORT_ERROR_BIT_EXT | VK_DEBUG_REPORT_WARNING_BIT_EXT;
|
||||
// Additional flags include performance info, loader and layer debug messages, etc.
|
||||
vks::debug::setupDebugging(instance, debugReportFlags, VK_NULL_HANDLE);
|
||||
vks::debug::setupDebugging(instance);
|
||||
}
|
||||
|
||||
// Physical device
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue