LZ4 compress embedded diagnostic log

This commit is contained in:
baldurk
2020-08-27 16:02:18 +01:00
parent 680857cb0f
commit 684290c475
+1
View File
@@ -1693,6 +1693,7 @@ void RenderDoc::FinishCaptureWriting(RDCFile *rdc, uint32_t frameNumber)
SectionProperties props = {};
props.type = SectionType::EmbeddedLogfile;
props.version = 1;
props.flags = SectionFlags::LZ4Compressed;
StreamWriter *w = rdc->WriteSection(props);
w->Write(logcontents.data(), logcontents.size());