|
Blender V5.3
|
Inherits LazyFunction.
Public Member Functions | |
| LazyFunctionForRepeatZone (const bNodeTree &btree, const bke::bNodeTreeZone &zone, ZoneBuildInfo &zone_info, const ZoneBodyFunction &body_fn) | |
| void * | init_storage (LinearAllocator<> &allocator) const override |
| void | destruct_storage (void *storage) const override |
| void | execute_impl (lf::Params ¶ms, const lf::Context &context) const override |
| void | initialize_execution_graph (lf::Params ¶ms, RepeatEvalStorage &eval_storage, const NodeGeometryRepeatOutput &node_storage, GeoNodesUserData &user_data, GeoNodesLocalUserData &local_user_data) const |
| std::string | input_name (const int i) const override |
| std::string | output_name (const int i) const override |
Definition at line 113 of file geometry_nodes_repeat_zone.cc.
|
inline |
Definition at line 122 of file geometry_nodes_repeat_zone.cc.
References blender::nodes::ZoneBuildInfo::indices, blender::nodes::initialize_zone_wrapper(), and blender::nodes::ZoneFunctionIndices::inputs.
|
inlineoverride |
Definition at line 144 of file geometry_nodes_repeat_zone.cc.
References blender::nodes::RepeatEvalStorage::graph_executor, blender::nodes::RepeatEvalStorage::graph_executor_storage, and storage.
|
inlineoverride |
Definition at line 153 of file geometry_nodes_repeat_zone.cc.
References blender::nodes::RepeatEvalStorage::graph_executor, blender::nodes::RepeatEvalStorage::graph_executor_storage, initialize_execution_graph(), blender::nodes::RepeatEvalStorage::input_index_map, blender::nodes::RepeatEvalStorage::multi_threading_enabled, and blender::nodes::RepeatEvalStorage::output_index_map.
|
inlineoverride |
Definition at line 139 of file geometry_nodes_repeat_zone.cc.
References blender::LinearAllocator< Allocator >::construct().
|
inline |
Generate a lazy-function graph that contains the loop body (body_fn_) as many times as there are iterations. Since this graph depends on the number of iterations, it can't be reused in general. We could consider caching a version of this graph per number of iterations, but right now that doesn't seem worth it. In practice, it takes much less time to create the graph than to execute it (for intended use cases of this generic implementation, more special case repeat loop evaluations could be implemented separately).
Definition at line 195 of file geometry_nodes_repeat_zone.cc.
References blender::bke::SocketValueVariant::ensure_type(), blender::NodeGeometryRepeatOutput::inspection_index, blender::NodeGeometryRepeatOutput::items_num, blender::lazy_threading::send_hint(), and blender::nodes::GeoNodesLocalUserData::try_get_tree_logger().
Referenced by execute_impl().
|
inlineoverride |
Definition at line 412 of file geometry_nodes_repeat_zone.cc.
References blender::nodes::zone_wrapper_input_name().
|
inlineoverride |
Definition at line 417 of file geometry_nodes_repeat_zone.cc.
References blender::nodes::zone_wrapper_output_name().