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`.
This commit is contained in:
2021-09-24 16:02:59 +02:00
parent 1a1c546124
commit 95ec6e4dd3
3 changed files with 25 additions and 19 deletions

View File

@@ -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