mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Improve workflow for capture import/export
* If the export doesn't need buffers, we export directly from the loaded capture file instead of re-loading it. * Add progress bars for the load step so it shows what's happening instead of looking stalled. * Reduce compression rate on XML+ZIP buffers as it took too long trying to compress when exporting large captures.
This commit is contained in:
@@ -183,6 +183,15 @@ struct CaptureContextInvoker : ICaptureContext
|
||||
InvokeVoidFunction(&ICaptureContext::RecompressCapture);
|
||||
}
|
||||
virtual void CloseCapture() override { InvokeVoidFunction(&ICaptureContext::CloseCapture); }
|
||||
virtual bool ImportCapture(const CaptureFileFormat &fmt, const rdcstr &importfile,
|
||||
const rdcstr &rdcfile) override
|
||||
{
|
||||
return InvokeRetFunction<bool>(&ICaptureContext::ImportCapture, fmt, importfile, rdcfile);
|
||||
}
|
||||
virtual void ExportCapture(const CaptureFileFormat &fmt, const rdcstr &exportfile) override
|
||||
{
|
||||
InvokeVoidFunction(&ICaptureContext::ExportCapture, fmt, exportfile);
|
||||
}
|
||||
virtual void SetEventID(const rdcarray<ICaptureViewer *> &exclude, uint32_t selectedEventID,
|
||||
uint32_t eventId, bool force = false) override
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user