aboutsummaryrefslogtreecommitdiff
path: root/layers/layers_config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layers/layers_config.cpp')
-rw-r--r--layers/layers_config.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/layers/layers_config.cpp b/layers/layers_config.cpp
index 5f726640..845389c8 100644
--- a/layers/layers_config.cpp
+++ b/layers/layers_config.cpp
@@ -191,3 +191,33 @@ void ConfigFile::parseFile(const char *filename)
}
}
+void print_msg_flags(VkFlags msgFlags, char *msg_flags)
+{
+ bool separator = false;
+
+ msg_flags[0] = 0;
+ if (msgFlags & VK_DBG_REPORT_DEBUG_BIT) {
+ strcat(msg_flags, "DEBUG");
+ separator = true;
+ }
+ if (msgFlags & VK_DBG_REPORT_INFO_BIT) {
+ if (separator) strcat(msg_flags, ",");
+ strcat(msg_flags, "INFO");
+ separator = true;
+ }
+ if (msgFlags & VK_DBG_REPORT_WARN_BIT) {
+ if (separator) strcat(msg_flags, ",");
+ strcat(msg_flags, "WARN");
+ separator = true;
+ }
+ if (msgFlags & VK_DBG_REPORT_PERF_WARN_BIT) {
+ if (separator) strcat(msg_flags, ",");
+ strcat(msg_flags, "PERF");
+ separator = true;
+ }
+ if (msgFlags & VK_DBG_REPORT_ERROR_BIT) {
+ if (separator) strcat(msg_flags, ",");
+ strcat(msg_flags, "ERROR");
+ }
+}
+