Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2021-04-02 16:24:34 +0300
committerJeroen Bakker <jeroen@blender.org>2021-04-02 16:24:34 +0300
commita0f705f18c49d98bdad55eeb8d52ba48c86f4fc9 (patch)
tree3cfbc964fc06165bca0e214be6521f3dd1d02ed3 /source/blender/compositor/intern/COM_ExecutionGroup.h
parentfa9b05149c2ca3915a4fb2670c87a648d927336c (diff)
Compositor: Debug stream operator.
Stream operators for NodeOperator and ExecutionGroup to help during debugging.
Diffstat (limited to 'source/blender/compositor/intern/COM_ExecutionGroup.h')
-rw-r--r--source/blender/compositor/intern/COM_ExecutionGroup.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/source/blender/compositor/intern/COM_ExecutionGroup.h b/source/blender/compositor/intern/COM_ExecutionGroup.h
index 0d8fb47b5be..ebe942402f9 100644
--- a/source/blender/compositor/intern/COM_ExecutionGroup.h
+++ b/source/blender/compositor/intern/COM_ExecutionGroup.h
@@ -73,6 +73,8 @@ struct ExecutionGroupFlags {
}
};
+std::ostream &operator<<(std::ostream &os, const ExecutionGroupFlags &flags);
+
/**
* \brief Class ExecutionGroup is a group of Operations that are executed as one.
* This grouping is used to combine Operations that can be executed as one whole when
@@ -82,6 +84,10 @@ struct ExecutionGroupFlags {
class ExecutionGroup {
private:
// fields
+ /**
+ * Id of the execution group. For debugging purposes.
+ */
+ int m_id;
/**
* \brief list of operations in this ExecutionGroup
@@ -232,7 +238,12 @@ class ExecutionGroup {
public:
// constructors
- ExecutionGroup();
+ ExecutionGroup(int id);
+
+ int get_id() const
+ {
+ return m_id;
+ }
const ExecutionGroupFlags get_flags() const
{
@@ -396,4 +407,6 @@ class ExecutionGroup {
#endif
};
+std::ostream &operator<<(std::ostream &os, const ExecutionGroup &execution_group);
+
} // namespace blender::compositor