Log validation errors normally as well as using OutputDebugString.

This commit is contained in:
Henrik Rydgård 2020-08-27 21:07:54 +02:00
parent 95a4cd37fc
commit 3607f0ab32

View File

@ -75,14 +75,13 @@ VKAPI_ATTR VkBool32 VKAPI_CALL VulkanDebugUtilsCallback(
DebugBreak(); DebugBreak();
} }
} }
#else #endif
// TODO: Improve.
if (messageSeverity & VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT) { if (messageSeverity & VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT) {
ERROR_LOG(G3D, "VKDEBUG: %s", msg.c_str()); ERROR_LOG(G3D, "VKDEBUG: %s", msg.c_str());
} else { } else {
WARN_LOG(G3D, "VKDEBUG: %s", msg.c_str()); WARN_LOG(G3D, "VKDEBUG: %s", msg.c_str());
} }
#endif
// false indicates that layer should not bail-out of an // false indicates that layer should not bail-out of an
// API call that had validation failures. This may mean that the // API call that had validation failures. This may mean that the