Add extended thumbnail handling into XML codec

This commit is contained in:
baldurk
2018-12-17 17:07:25 +00:00
parent 5f96644d08
commit d1f25eea0f
4 changed files with 130 additions and 34 deletions
+4 -1
View File
@@ -1296,11 +1296,14 @@ void RenderDoc::FinishCaptureWriting(RDCFile *rdc, uint32_t frameNumber)
props.version = 1;
StreamWriter *w = rdc->WriteSection(props);
// if this file format ever changes, be sure to update the XML export which has a special
// handling for this case.
ExtThumbnailHeader header;
header.width = thumb.width;
header.height = thumb.height;
header.len = thumb.len;
header.format = (uint32_t)thumb.format;
header.format = thumb.format;
w->Write(header);
w->Write(thumb.pixels, thumb.len);