Compositor: Export operation results as debug option

When fixing issues, seeing operation results can be helpful for
detecting which operation went wrong.

This commit adds an option for exporting all operations results to
image files.
Exceptions are:
- Output operations: They are already exported or can be seen in UI.
- Constant operations: There are too many and is rarely useful.

They are exported to "<temp session folder>/COM_operations/"
with filenames "<operation class name>_<operation id>.png".
Only works on full frame execution mode.

Reviewed By: jbakker

Differential Revision: https://developer.blender.org/D11722
This commit is contained in:
2021-07-19 19:55:15 +02:00
parent 9aa88a6604
commit 468765d29e
3 changed files with 62 additions and 1 deletions

View File

@@ -104,6 +104,7 @@ void FullFrameExecutionModel::render_operation(NodeOperation *op)
op->render(op_buf, areas, input_bufs);
active_buffers_.set_rendered_buffer(op, std::unique_ptr<MemoryBuffer>(op_buf));
DebugInfo::operation_rendered(op, op_buf);
operation_finished(op);
}