diff options
author | Jacques Lucke <jacques@blender.org> | 2021-09-24 17:02:59 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-09-24 17:03:07 +0300 |
commit | 95ec6e4dd373f58eebf3119e470ead4156c724b4 (patch) | |
tree | f036e0d85b20397b8089aea8129d0c277015c8f6 /source/blender/functions/FN_field.hh | |
parent | 1a1c54612472fd28e4c23b695aa73bd7f81ffeaf (diff) |
Geometry Nodes: make index field more reusable
Some inputs will be the index field implicitly, so we want this
class to be available outside of `node_geo_input_index.cc`.
Diffstat (limited to 'source/blender/functions/FN_field.hh')
-rw-r--r-- | source/blender/functions/FN_field.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/functions/FN_field.hh b/source/blender/functions/FN_field.hh index d4375b625ce..3ce0993da59 100644 --- a/source/blender/functions/FN_field.hh +++ b/source/blender/functions/FN_field.hh @@ -484,4 +484,13 @@ template<typename T> Field<T> make_constant_field(T value) GField make_field_constant_if_possible(GField field); +class IndexFieldInput final : public FieldInput { + public: + IndexFieldInput(); + + const GVArray *get_varray_for_context(const FieldContext &context, + IndexMask mask, + ResourceScope &scope) const final; +}; + } // namespace blender::fn |