mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-15 02:11:22 +00:00
Expose full logging to UI layer, pipe Qt messages etc into main logs
This commit is contained in:
1 parent
ccfa1ceaed
commit
bfac4adfb8
9 files changed
+59
-13
No files matched your search
@@ -281,7 +281,16 @@ extern "C" RENDERDOC_API void RENDERDOC_CC RENDERDOC_FreeEnvironmentModification
|
||||
|
||||
extern "C" RENDERDOC_API void RENDERDOC_CC RENDERDOC_LogText(const char *text)
|
||||
{
|
||||
RDCLOG("%s", text);
|
||||
rdclog_int(RDCLog_Comment, "EXT", "external", 0, "%s", text);
|
||||
}
|
||||
|
||||
extern "C" RENDERDOC_API void RENDERDOC_CC RENDERDOC_LogMessage(LogMessageType type,
|
||||
const char *project, const char *file,
|
||||
unsigned int line, const char *text)
|
||||
{
|
||||
RDCCOMPILE_ASSERT(eLogType_First == RDCLog_First && eLogType_NumTypes == eLogType_NumTypes,
|
||||
"Log type enum is out of sync");
|
||||
rdclog_int((LogType)type, project, file, line, "%s", text);
|
||||
}
|
||||
|
||||
extern "C" RENDERDOC_API const char *RENDERDOC_CC RENDERDOC_GetLogFile()
|
||||
|
||||
Reference in new issue
Block a user