|
Blender V5.3
|
#include <FN_field.hh>
Inherits blender::fn::FieldInput.
Public Member Functions | |
| IndexFieldInput () | |
| GVArray | get_varray_for_context (const FieldContext &context, const IndexMask &mask, ResourceScope &scope) const final |
| void | hash_unique (UniqueHashBytes &hash, FieldHashDeep &deep_hash_cache) const override |
| Public Member Functions inherited from blender::fn::FieldInput | |
| FieldInput (const CPPType &type, std::string debug_name="") | |
| ~FieldInput () override | |
| const FieldInputsPtr & | field_inputs () const |
| uint64_t | hash () const |
| virtual void | foreach_recursive_field (FunctionRef< void(const GField &)> fn) const |
| void | delete_self () override |
| StringRefNull | debug_name () const |
| virtual std::string | socket_inspection_name () const |
| const CPPType & | cpp_type () const |
| Public Member Functions inherited from blender::blender::ImplicitSharingInfo | |
| virtual | ~ImplicitSharingInfo () |
| bool | is_mutable () const |
| bool | is_expired () const |
| void | add_user () const |
| void | add_weak_user () const |
| void | tag_ensured_mutable () const |
| int64_t | version () const |
| int | strong_users () const |
| void | remove_user_and_delete_if_last () const |
| void | remove_weak_user_and_delete_if_last () const |
Static Public Member Functions | |
| static GVArray | get_index_varray (const IndexMask &mask) |
| static const Field< int > & | get_field () |
Additional Inherited Members | |
| Protected Attributes inherited from blender::fn::FieldInput | |
| const CPPType * | type_ |
| std::string | debug_name_ |
| CacheMutex | field_inputs_mutex_ |
| FieldInputsPtr | field_inputs_ |
Definition at line 430 of file FN_field.hh.
| blender::fn::IndexFieldInput::IndexFieldInput | ( | ) |
Definition at line 534 of file field.cc.
References blender::fn::FieldInput::FieldInput().
|
static |
Cached index field to avoid allocating a new one every time.
Definition at line 557 of file field.cc.
References blender::fn::Field< T >::from_input(), and blender::fn::Field< T >::from_non_owning_ref().
Referenced by blender::nodes::implicit_field_inputs::index(), blender::nodes::node_geo_input_index_cc::node_geo_exec(), and blender::bke::tests::TEST_F().
Definition at line 536 of file field.cc.
References blender::VArray< T >::from_func().
Referenced by blender::bke::IDAttributeFieldInput::get_varray_for_context(), get_varray_for_context(), blender::nodes::node_geo_cluster_by_distance_cc::ClusterByDistanceFieldInput::get_varray_for_context(), blender::nodes::node_geo_input_cluster_by_connected_cc::ClusterByConnectedFieldInput::get_varray_for_context(), blender::nodes::node_geo_input_shortest_edge_paths_cc::ShortestEdgePathsNextVertFieldInput::get_varray_for_context(), blender::nodes::ListFieldContext::get_varray_for_input(), and blender::nodes::node_geo_points_cc::PointsFieldContext::get_varray_for_input().
|
finalvirtual |
Output a virtual array for the given index mask in the given context.
Implements blender::fn::FieldInput.
Definition at line 542 of file field.cc.
References get_index_varray().
|
overridevirtual |
Reimplemented from blender::fn::FieldInput.
Definition at line 550 of file field.cc.
References blender::fn::FieldInput::hash().