mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-18 13:37:11 +00:00
Add extended thumbnail handling into XML codec
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user