diff options
Diffstat (limited to 'src/plugins/renderers/rhi/managers/rhiresourcemanagers_p.h')
-rw-r--r-- | src/plugins/renderers/rhi/managers/rhiresourcemanagers_p.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/renderers/rhi/managers/rhiresourcemanagers_p.h b/src/plugins/renderers/rhi/managers/rhiresourcemanagers_p.h index 34758530d..3d78c5d07 100644 --- a/src/plugins/renderers/rhi/managers/rhiresourcemanagers_p.h +++ b/src/plugins/renderers/rhi/managers/rhiresourcemanagers_p.h @@ -132,6 +132,13 @@ inline uint qHash(const GraphicsPipelineIdentifier &key, uint seed) return qHash(p, seed) + qHash(key.renderViewIndex, seed); } +inline uint qHash(const GraphicsPipelineIdentifier &key) +{ + const QPair<HGeometry, Qt3DCore::QNodeId> p = { key.geometry, key.shader }; + using QT_PREPEND_NAMESPACE(qHash); + return qHash(p) + qHash(key.renderViewIndex); +} + inline bool operator==(const GraphicsPipelineIdentifier &a, const GraphicsPipelineIdentifier &b) { return a.geometry == b.geometry && a.shader == b.shader |