summaryrefslogtreecommitdiffstats
path: root/src/render/materialsystem/technique_p.h
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2016-09-07 08:36:41 +0200
committerPaul Lemire <paul.lemire@kdab.com>2016-11-25 16:29:28 +0000
commitd9615a73455069f77e1dcdee7cbc39413703f69f (patch)
tree56a92255beca70040ddaf15d5f48362f076e6144 /src/render/materialsystem/technique_p.h
parentd07496129a108a54345174b7651d1989cb9f157f (diff)
Technique: add a flag to check for compatibility
Will allow to avoid doing the expensive GraphicsApiFilterData comparison every frame but only when the Technique has actually changed. Change-Id: Ife4b6a03b7da5d157df33c7fc2770fea2d7b76fc Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/materialsystem/technique_p.h')
-rw-r--r--src/render/materialsystem/technique_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render/materialsystem/technique_p.h b/src/render/materialsystem/technique_p.h
index 9686495b9..61e27550a 100644
--- a/src/render/materialsystem/technique_p.h
+++ b/src/render/materialsystem/technique_p.h
@@ -93,6 +93,9 @@ public:
QVector<Qt3DCore::QNodeId> renderPasses() const;
const GraphicsApiFilterData *graphicsApiFilter() const;
+ bool isCompatibleWithRenderer() const;
+ void setCompatibleWithRenderer(bool compatible);
+
private:
void initializeFromPeer(const Qt3DCore::QNodeCreatedChangeBasePtr &change) Q_DECL_FINAL;
@@ -100,6 +103,7 @@ private:
ParameterPack m_parameterPack;
QVector<Qt3DCore::QNodeId> m_filterKeyList;
QVector<Qt3DCore::QNodeId> m_renderPasses;
+ bool m_isCompatibleWithRenderer;
};
} // namespace Render