|
Blender V4.5
|
Inherits blender::fn::lazy_function::LazyFunction.
Public Member Functions | |
| LazyFunctionForSimulationOutputNode (const bNode &node, GeometryNodesLazyFunctionGraphInfo &own_lf_graph_info) | |
| void | execute_impl (lf::Params ¶ms, const lf::Context &context) const final |
| void | set_default_outputs (lf::Params ¶ms) const |
| void | output_cached_state (lf::Params ¶ms, GeoNodesUserData &user_data, bke::bake::BakeDataBlockMap *data_block_map, const bke::bake::BakeStateRef &state) const |
| void | output_mixed_cached_state (lf::Params ¶ms, bke::bake::BakeDataBlockMap *data_block_map, const Object &self_object, const ComputeContext &compute_context, const bke::bake::BakeStateRef &prev_state, const bke::bake::BakeStateRef &next_state, const float mix_factor) const |
| void | pass_through (lf::Params ¶ms, GeoNodesUserData &user_data, bke::bake::BakeDataBlockMap *data_block_map) const |
| void | store_new_state (lf::Params ¶ms, GeoNodesUserData &user_data, bke::bake::BakeDataBlockMap *data_block_map, const sim_output::StoreNewState &info) const |
| std::optional< bke::bake::BakeState > | get_bake_state_from_inputs (lf::Params ¶ms, bke::bake::BakeDataBlockMap *data_block_map, const bool skip) const |
| Public Member Functions inherited from blender::fn::lazy_function::LazyFunction | |
| virtual | ~LazyFunction ()=default |
| virtual std::string | name () const |
| virtual std::string | input_name (int index) const |
| virtual std::string | output_name (int index) const |
| virtual void * | init_storage (LinearAllocator<> &allocator) const |
| virtual void | destruct_storage (void *storage) const |
| virtual void | possible_output_dependencies (int output_index, FunctionRef< void(Span< int >)> fn) const |
| bool | always_used_inputs_available (const Params ¶ms) const |
| bool | allow_missing_requested_inputs () const |
| Span< Input > | inputs () const |
| Span< Output > | outputs () const |
| void | execute (Params ¶ms, const Context &context) const |
Additional Inherited Members | |
| Protected Attributes inherited from blender::fn::lazy_function::LazyFunction | |
| const char * | debug_name_ = "unknown" |
| Vector< Input > | inputs_ |
| Vector< Output > | outputs_ |
| bool | allow_missing_requested_inputs_ = false |
Definition at line 506 of file node_geo_simulation.cc.
|
inline |
Definition at line 523 of file node_geo_simulation.cc.
References blender::fn::lazy_function::LazyFunction::debug_name_, blender::nodes::node_geo_simulation_cc::get_simulation_item_cpp_type(), i, blender::fn::lazy_function::LazyFunction::inputs_, NodeGeometrySimulationOutput::items, NodeGeometrySimulationOutput::items_num, blender::nodes::GeometryNodeLazyFunctionGraphMapping::lf_index_by_bsocket, blender::nodes::GeometryNodesLazyFunctionGraphInfo::mapping, blender::fn::lazy_function::Maybe, NodeSimulationItem::name, blender::fn::lazy_function::LazyFunction::outputs_, and bNodeSocket::typeinfo.
|
inlinefinalvirtual |
Needs to be implemented by subclasses. This is separate from execute so that additional debugging logic can be implemented in execute.
Implements blender::fn::lazy_function::LazyFunction.
Definition at line 564 of file node_geo_simulation.cc.
References blender::nodes::GeoNodesUserData::call_data, params, blender::nodes::GeoNodesCallData::self_object(), set_default_outputs(), blender::nodes::GeoNodesCallData::simulation_params, and blender::nodes::GeoNodesLocalUserData::try_get_tree_logger().
|
inline |
Definition at line 764 of file node_geo_simulation.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), i, blender::nodes::node_geo_simulation_cc::move_values_to_simulation_state(), and params.
Referenced by pass_through(), and store_new_state().
|
inline |
Definition at line 639 of file node_geo_simulation.cc.
References blender::nodes::GeoNodesUserData::call_data, blender::nodes::GeoNodesUserData::compute_context, blender::nodes::node_geo_simulation_cc::copy_simulation_state_to_values(), i, params, blender::nodes::GeoNodesCallData::self_object(), and state.
Referenced by store_new_state().
|
inline |
Definition at line 660 of file node_geo_simulation.cc.
References blender::LinearAllocator< Allocator >::allocate(), blender::nodes::node_geo_simulation_cc::copy_simulation_state_to_values(), blender::CPPType::destruct(), i, blender::nodes::mix_baked_data_item(), next_state(), blender::fn::lazy_function::LazyFunction::outputs_, and params.
|
inline |
Definition at line 711 of file node_geo_simulation.cc.
References blender::nodes::GeoNodesUserData::call_data, blender::nodes::GeoNodesUserData::compute_context, get_bake_state_from_inputs(), i, blender::nodes::node_geo_simulation_cc::move_simulation_state_to_values(), params, and blender::nodes::GeoNodesCallData::self_object().
|
inline |
Definition at line 634 of file node_geo_simulation.cc.
References params, and blender::nodes::set_default_remaining_node_outputs().
Referenced by execute_impl().
|
inline |
Definition at line 738 of file node_geo_simulation.cc.
References blender::bke::SocketValueVariant::get(), get_bake_state_from_inputs(), output_cached_state(), params, and blender::nodes::sim_output::StoreNewState::store_fn.