mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-10 10:51:49 +00:00
Updated to_string_message_type to handle more than one category
This commit is contained in:
parent
e33cc3479b
commit
b183c05f45
@ -52,17 +52,15 @@ const char* to_string_message_severity (VkDebugUtilsMessageSeverityFlagBitsEXT s
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const char* to_string_message_type (VkDebugUtilsMessageTypeFlagsEXT s) {
|
const char* to_string_message_type (VkDebugUtilsMessageTypeFlagsEXT s) {
|
||||||
switch (s) {
|
if (s == 7) return "General | Validation | Performance";
|
||||||
case VkDebugUtilsMessageTypeFlagBitsEXT::VK_DEBUG_UTILS_MESSAGE_TYPE_GENERAL_BIT_EXT:
|
if (s == 6) return "Validation | Performance";
|
||||||
return "General";
|
if (s == 5) return "General | Performance";
|
||||||
case VkDebugUtilsMessageTypeFlagBitsEXT::VK_DEBUG_UTILS_MESSAGE_TYPE_VALIDATION_BIT_EXT:
|
if (s == 4 /*VK_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT*/) return "Performance";
|
||||||
return "Validation";
|
if (s == 3) return "General | Validation";
|
||||||
case VkDebugUtilsMessageTypeFlagBitsEXT::VK_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT:
|
if (s == 2 /*VK_DEBUG_UTILS_MESSAGE_TYPE_VALIDATION_BIT_EXT*/) return "Validation";
|
||||||
return "Performance";
|
if (s == 1 /*VK_DEBUG_UTILS_MESSAGE_TYPE_GENERAL_BIT_EXT*/) return "General";
|
||||||
default:
|
|
||||||
return "Unknown";
|
return "Unknown";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
VkResult create_debug_utils_messenger (VkInstance instance,
|
VkResult create_debug_utils_messenger (VkInstance instance,
|
||||||
PFN_vkDebugUtilsMessengerCallbackEXT debug_callback,
|
PFN_vkDebugUtilsMessengerCallbackEXT debug_callback,
|
||||||
|
Loading…
Reference in New Issue
Block a user