51using lf::LazyFunction;
52using mf::MultiFunction;
72using Behavior = std::variant<PassThrough, UseCache>;
117using Behavior = std::variant<PassThrough, StoreNewState, ReadSingle, ReadInterpolated, ReadError>;
304 mutable std::optional<eval_log::NodeTreeLogger *> tree_logger_;
315 if (!tree_logger_.has_value()) {
316 this->ensure_tree_logger(user_data);
318 return *tree_logger_;
440 std::shared_ptr<const bNodeTree>
tree;
510const std::shared_ptr<const GeometryNodesLazyFunctionGraphInfo> &
524 lf::Context &context_;
530 start_ = eval_log::Clock::now();
538 const std::chrono::duration duration = end - start_;
541 tree_logger->execution_time += duration;
552 const lf::Context &context_;
559 start_ = eval_log::Clock::now();
567 const std::chrono::duration duration = end - start_;
570 tree_logger->node_execution_times.append(*tree_logger->allocator,
571 {node_.identifier, start_, end});
588 void execute_impl(lf::Params ¶ms,
const lf::Context &context)
const override;
641 std::shared_ptr<GeometryNodesLazyFunctionGraphInfo> &lf_graph_info);
666 bool expose_all_reference_sets,
673 const int lf_socket_i);
678 const int lf_socket_i);
688 std::string message);
virtual BakeNodeBehavior * get(const int id) const =0
virtual SimulationZoneBehavior * get(const int zone_id) const =0
LazyFunctionForLogicalOr(const int inputs_num)
void execute_impl(lf::Params ¶ms, const lf::Context &context) const override
~ScopedComputeContextTimer()
ScopedComputeContextTimer(lf::Context &entered_context)
ScopedNodeTimer(const lf::Context &context, const bNode &node)
QuaternionBase< float > Quaternion
Clock::time_point TimePoint
std::variant< PassThrough, StoreNewState, ReadSingle, ReadInterpolated, ReadError > Behavior
void initialize_zone_wrapper(const bNodeTreeZone &zone, ZoneBuildInfo &zone_info, const ZoneBodyFunction &body_fn, const bool expose_all_reference_sets, Vector< lf::Input > &r_inputs, Vector< lf::Output > &r_outputs)
std::unique_ptr< LazyFunction > get_simulation_output_lazy_function(const bNode &node, GeometryNodesLazyFunctionGraphInfo &own_lf_graph_info)
std::unique_ptr< LazyFunction > get_index_switch_node_lazy_function(const bNode &node, GeometryNodesLazyFunctionGraphInfo &lf_graph_info)
LazyFunction & build_closure_zone_lazy_function(ResourceScope &scope, const bNodeTree &btree, const bke::bNodeTreeZone &zone, ZoneBuildInfo &zone_info, const ZoneBodyFunction &body_fn, std::shared_ptr< GeometryNodesLazyFunctionGraphInfo > &lf_graph_info)
std::unique_ptr< LazyFunction > get_warning_node_lazy_function(const bNode &node)
void construct_socket_default_value(const bke::bNodeSocketType &stype, void *r_value)
std::unique_ptr< LazyFunction > get_menu_switch_node_socket_usage_lazy_function(const bNode &node)
std::unique_ptr< LazyFunction > get_simulation_input_lazy_function(const bNodeTree &node_tree, const bNode &node, GeometryNodesLazyFunctionGraphInfo &own_lf_graph_info)
bool should_log_verbose_in_context(const GeoNodesUserData &user_data, const ComputeContextHash hash)
LazyFunction & build_repeat_zone_lazy_function(ResourceScope &scope, const bNodeTree &btree, const bke::bNodeTreeZone &zone, ZoneBuildInfo &zone_info, const ZoneBodyFunction &body_fn)
std::unique_ptr< LazyFunction > get_switch_node_lazy_function(const bNode &node)
std::string make_anonymous_attribute_socket_inspection_string(const bNodeSocket &socket)
std::unique_ptr< LazyFunction > get_bake_lazy_function(const bNode &node, GeometryNodesLazyFunctionGraphInfo &lf_graph_info)
const std::shared_ptr< const GeometryNodesLazyFunctionGraphInfo > & ensure_geometry_nodes_lazy_function_graph(const bNodeTree &btree)
std::optional< FoundNestedNodeID > find_nested_node_id(const GeoNodesUserData &user_data, const int node_id)
void set_default_remaining_node_outputs(lf::Params ¶ms, const bNode &node)
constexpr auto node_timer_log_threshold
void report_from_multi_function(const mf::Context &context, NodeWarningType type, std::string message)
std::unique_ptr< LazyFunction > get_menu_switch_node_boolean_outputs_lazy_function(const bNode &node, GeometryNodesLazyFunctionGraphInfo &lf_graph_info)
std::unique_ptr< LazyFunction > get_enable_output_node_lazy_function(const bNode &node, GeometryNodesLazyFunctionGraphInfo &own_lf_graph_info)
void set_default_value_for_output_socket(lf::Params ¶ms, const int lf_index, const bNodeSocket &bsocket)
std::string zone_wrapper_output_name(const ZoneBuildInfo &zone_info, const bNodeTreeZone &zone, const Span< lf::Output > outputs, const int lf_socket_i)
std::unique_ptr< LazyFunction > get_menu_switch_node_lazy_function(const bNode &node, GeometryNodesLazyFunctionGraphInfo &lf_graph_info)
LazyFunction & build_foreach_geometry_element_zone_lazy_function(ResourceScope &scope, const bNodeTree &btree, const bke::bNodeTreeZone &zone, ZoneBuildInfo &zone_info, const ZoneBodyFunction &body_fn)
std::string zone_wrapper_input_name(const ZoneBuildInfo &zone_info, const bNodeTreeZone &zone, const Span< lf::Input > inputs, const int lf_socket_i)
EvaluateClosureFunction build_evaluate_closure_node_lazy_function(ResourceScope &scope, const bNode &bnode)
std::unique_ptr< T, DestructValueAtAddress< T > > destruct_ptr
MatBase< float, 4, 4 > float4x4
VecBase< int32_t, 2 > int2
VecBase< float, 3 > float3
bke::bake::BakeDataBlockMap * data_block_map
sim_output::Behavior behavior
Vector< int > input_usages
struct blender::nodes::EvaluateClosureFunctionIndices::@324113343356111377314152204355127102171256127351 inputs
struct blender::nodes::EvaluateClosureFunctionIndices::@302221204315171014370121113344001210164341345265 outputs
const LazyFunction * lazy_function
EvaluateClosureFunctionIndices indices
const Set< ComputeContextHash > * verbose_log_contexts
GeoNodesSimulationParams * simulation_params
GeoNodesModifierData * modifier_data
const bNodeTree * root_ntree
const Object * self_object() const
GeoNodesOperatorData * operator_data
GeoNodesBakeParams * bake_params
eval_log::NodesEvalLog * eval_log
const GeoNodesSideEffectNodes * side_effect_nodes
eval_log::NodeTreeLogger * try_get_tree_logger(const GeoNodesUserData &user_data) const
GeoNodesLocalUserData(GeoNodesUserData &)
const Object * self_object
math::Quaternion cursor_rotation
float4x4 viewport_viewmat
const Map< std::string, ID * > * input_ids
const GeoNodesOperatorDepsgraphs * depsgraphs
const Object * self_object_orig
bool viewport_is_perspective
const ID * get_evaluated_id(const ID &id_orig) const
MultiValueMap< std::pair< ComputeContextHash, int32_t >, int > iterations_by_iteration_zone
MultiValueMap< ComputeContextHash, const lf::FunctionNode * > nodes_by_context
const ComputeContext * compute_context
destruct_ptr< fn::LocalUserData > get_local(LinearAllocator<> &allocator) override
bool is_stack_limit_reached() const
const GeoNodesCallData * call_data
Vector< InputUsageHint > group_input_usage_hints
Array< int > lf_index_by_bsocket
Map< int, const lf::FunctionNode * > possible_side_effect_node_map
Array< int > lf_input_index_for_output_bsocket_usage
Array< int > lf_input_index_for_reference_set_for_output
Map< int, const lf::FunctionNode * > zone_node_map
MultiValueMap< const lf::Socket *, const bNodeSocket * > bsockets_by_lf_socket_map
Map< int, const lf::FunctionNode * > group_node_map
struct blender::nodes::GeometryNodesGroupFunction::@172250372114350111302221310316304130074374314150 inputs
struct blender::nodes::GeometryNodesGroupFunction::@275230106163054033107343230045175116316373002223 outputs
const LazyFunction * function
int num_inline_nodes_approximate
uint32_t original_tree_session_uid
GeometryNodeLazyFunctionGraphMapping mapping
Map< int, const lf::Graph * > debug_zone_body_graphs
std::shared_ptr< const bNodeTree > tree
GeometryNodesGroupFunction function
GeometryNodesLazyFunctionGraphInfo(const char *debug_name)
sim_output::Behavior output
bke::bake::BakeDataBlockMap * data_block_map
sim_input::Behavior input
ZoneFunctionIndices indices
const LazyFunction * function
ZoneFunctionIndices indices
const LazyFunction * lazy_function
Vector< int > border_link_usages
Vector< int > input_usages
struct blender::nodes::ZoneFunctionIndices::@132143137367244025376024316142102322341106322023 outputs
struct blender::nodes::ZoneFunctionIndices::@342054057300321050315260123310012173322070035365 inputs
bke::bake::BakeValues next_values
bke::bake::BakeValues prev_values
bke::bake::BakeValues values
std::function< void(bke::bake::BakeValues values)> store_fn