MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Profiles / AndroidPrintf

Function AndroidPrintf

layer/profiles_settings.cpp:72–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70#include <android/log.h>
71
72void AndroidPrintf(DebugReportBits level, const std::string &message) {
73 switch (level) {
74 default:
75 case DEBUG_REPORT_DEBUG_BIT:
76 case DEBUG_REPORT_NOTIFICATION_BIT:
77 __android_log_print(ANDROID_LOG_INFO, "Profiles", "%s", message.c_str());
78 break;
79 case DEBUG_REPORT_WARNING_BIT:
80 __android_log_print(ANDROID_LOG_DEBUG, "Profiles", "%s", message.c_str());
81 break;
82 case DEBUG_REPORT_ERROR_BIT:
83 __android_log_print(ANDROID_LOG_ERROR, "Profiles", "%s", message.c_str());
84 break;
85 }
86}
87#endif
88
89const char *GetLogPrefix(DebugReportBits report) {

Callers 1

LogMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected