diff options
author | Kevin Ottens <kevin.ottens@kdab.com> | 2017-07-18 16:09:11 +0200 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2017-08-02 17:34:48 +0000 |
commit | f3c70ab9f316a28c0c71fe94b90de8e42c45d9a5 (patch) | |
tree | 778e3eee3286dcd72a920d880ec832f1568da5c3 /src/gui/util/qshadergraph_p.h | |
parent | 32281653bf3564afe075fd684365b640082c695f (diff) |
Implement graph layers support in QShaderGraph
When creating the statements, it is now possible to pass a list of
enabled layer names. Every node or edge which is not in the list of
enabled layers will be pruned from the graph prior to traversal. Note
that an empty layer list for a node or an edge means it is on all
layers.
Change-Id: I61a4df7d395b4beb42ee55ce08fef8ebe04263c9
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/gui/util/qshadergraph_p.h')
-rw-r--r-- | src/gui/util/qshadergraph_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/util/qshadergraph_p.h b/src/gui/util/qshadergraph_p.h index ced6b1430b..756e1b2da2 100644 --- a/src/gui/util/qshadergraph_p.h +++ b/src/gui/util/qshadergraph_p.h @@ -89,7 +89,7 @@ public: Q_GUI_EXPORT void removeEdge(const Edge &edge); Q_GUI_EXPORT QVector<Edge> edges() const Q_DECL_NOTHROW; - Q_GUI_EXPORT QVector<Statement> createStatements() const; + Q_GUI_EXPORT QVector<Statement> createStatements(const QStringList &enabledLayers = QStringList()) const; private: QVector<QShaderNode> m_nodes; |