diff options
author | Hans Goudey <h.goudey@me.com> | 2021-10-19 04:13:37 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-10-19 04:13:37 +0300 |
commit | a3457704fb63a59045b093dc4499b43f6676fabb (patch) | |
tree | 73a9dfa113c80c002ba1764b96646ccf953bdbe5 /source/blender/functions/FN_field.hh | |
parent | 482c5f001449f6bbb57c4d01363600879607099e (diff) |
Geometry Nodes: De-duplicate index input nodes during evaluation
We do this in other nodes to reduce overhead of using the same node more
than once. I don't think it will make a difference with index nodes
currently, but at least it's consistent.
Diffstat (limited to 'source/blender/functions/FN_field.hh')
-rw-r--r-- | source/blender/functions/FN_field.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/functions/FN_field.hh b/source/blender/functions/FN_field.hh index 2fca78fa6e7..78a49e342a5 100644 --- a/source/blender/functions/FN_field.hh +++ b/source/blender/functions/FN_field.hh @@ -421,6 +421,9 @@ class IndexFieldInput final : public FieldInput { const GVArray *get_varray_for_context(const FieldContext &context, IndexMask mask, ResourceScope &scope) const final; + + uint64_t hash() const override; + bool is_equal_to(const fn::FieldNode &other) const override; }; /** \} */ |