forked from AuroraMiddleware/gtk
gdk: Tone down Vulkan validation
Don't show informational messages by default, only warnings and errors. This makes it much easier to see what is going on.
This commit is contained in:
parent
08e37532b9
commit
d812fc8a94
@ -681,26 +681,16 @@ gdk_vulkan_debug_report (VkDebugReportFlagsEXT flags,
|
||||
void* pUserData)
|
||||
{
|
||||
if (flags & VK_DEBUG_REPORT_ERROR_BIT_EXT)
|
||||
{
|
||||
g_critical ("Vulkan: %s: %s", pLayerPrefix, pMessage);
|
||||
}
|
||||
g_critical ("Vulkan: %s: %s", pLayerPrefix, pMessage);
|
||||
else if (flags & VK_DEBUG_REPORT_WARNING_BIT_EXT)
|
||||
{
|
||||
g_critical ("Vulkan: %s: %s", pLayerPrefix, pMessage);
|
||||
}
|
||||
g_critical ("Vulkan: %s: %s", pLayerPrefix, pMessage);
|
||||
else if (flags & VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT)
|
||||
{
|
||||
g_warning ("Vulkan: %s: %s", pLayerPrefix, pMessage);
|
||||
}
|
||||
g_warning ("Vulkan: %s: %s", pLayerPrefix, pMessage);
|
||||
else if (flags & VK_DEBUG_REPORT_DEBUG_BIT_EXT)
|
||||
{
|
||||
g_debug ("Vulkan: %s: %s", pLayerPrefix, pMessage);
|
||||
}
|
||||
g_debug ("Vulkan: %s: %s", pLayerPrefix, pMessage);
|
||||
else
|
||||
{
|
||||
g_message ("Vulkan: %s: %s", pLayerPrefix, pMessage);
|
||||
}
|
||||
|
||||
g_info ("Vulkan: %s: %s", pLayerPrefix, pMessage);
|
||||
|
||||
return VK_FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user