|
Blender V5.3
|
Classes | |
| struct | StructureTypeInferenceResult |
Enumerations | |
| enum class | DataRequirement : int8_t { None , Field , Single , Grid , List , Invalid } |
| enum class | ZoneInOutChange { None = 0 , In = (1 << 1) , Out = (1 << 2) } |
Functions | |
| bool | update_structure_type_interface (bNodeTree &tree) |
| static StructureType | ensure_supported_structure_type (const eNodeSocketDatatype socket_type, const StructureType structure_type) |
| static StructureType | ensure_supported_structure_type (const bNodeSocket &socket, const StructureType structure_type) |
| static StructureType | ensure_supported_structure_type (const bNodeTreeInterfaceSocket &io_socket, const StructureType structure_type) |
| static nodes::StructureTypeInterface | calc_node_interface (const bNode &node) |
| static Array< nodes::StructureTypeInterface > | calc_node_interfaces (const bNodeTree &tree) |
| static DataRequirement | merge (const DataRequirement a, const DataRequirement b) |
| static StructureType | data_requirement_to_auto_structure_type (const DataRequirement requirement) |
| static void | find_auto_structure_type_sockets (const bNodeTree &tree, bits::MutableBoundedBitSpan is_auto_structure_type) |
| static void | init_input_requirements (const bNodeTree &tree, const bits::BoundedBitSpan is_auto_structure_type, MutableSpan< DataRequirement > input_requirements) |
| static DataRequirement | calc_output_socket_requirement (const bNodeSocket &output_socket, const Span< DataRequirement > input_requirements) |
| static void | store_group_input_structure_types (const bNodeTree &tree, const Span< DataRequirement > input_requirements, nodes::StructureTypeInterface &derived_interface) |
| static void | store_auto_output_structure_types (const bNodeTree &tree, const Span< DataRequirement > input_requirements, const bits::BoundedBitSpan is_auto_structure_type, MutableSpan< StructureType > structure_types) |
| ENUM_OPERATORS (ZoneInOutChange) | |
| static ZoneInOutChange | simulation_zone_requirements_propagate (const bNode &input_node, const bNode &output_node, MutableSpan< DataRequirement > input_requirements) |
| static ZoneInOutChange | repeat_zone_requirements_propagate (const bNode &input_node, const bNode &output_node, MutableSpan< DataRequirement > input_requirements) |
| static bool | propagate_zone_data_requirements (const bNodeTree &tree, const bNode &node, MutableSpan< DataRequirement > input_requirements) |
| static void | propagate_right_to_left (const bNodeTree &tree, const Span< nodes::StructureTypeInterface > node_interfaces, MutableSpan< DataRequirement > input_requirements) |
| static StructureType | left_to_right_merge (const StructureType a, const StructureType b) |
| static ZoneInOutChange | simulation_zone_status_propagate (const bNode &input_node, const bNode &output_node, MutableSpan< StructureType > structure_types) |
| static ZoneInOutChange | repeat_zone_status_propagate (const bNode &input_node, const bNode &output_node, MutableSpan< StructureType > structure_types) |
| static bool | propagate_zone_status (const bNodeTree &tree, const bNode &node, MutableSpan< StructureType > structure_types) |
| static StructureType | get_unconnected_input_structure_type (const nodes::SocketDeclaration &declaration) |
| static void | propagate_left_to_right (const bNodeTree &tree, const Span< nodes::StructureTypeInterface > node_interfaces, const Span< StructureType > group_input_structure_types, const bits::BoundedBitSpan is_auto_structure_type, MutableSpan< StructureType > structure_types) |
| static Vector< int > | find_dynamic_output_linked_inputs (const bNodeSocket &group_output, const Span< nodes::StructureTypeInterface > interface_by_node) |
| static void | store_group_output_structure_types (const bNodeTree &tree, const Span< nodes::StructureTypeInterface > interface_by_node, const Span< StructureType > structure_types, nodes::StructureTypeInterface &interface) |
| static StructureTypeInferenceResult | calc_structure_type_interface (const bNodeTree &tree) |
|
strong |
| Enumerator | |
|---|---|
| None | |
| Field | |
| Single | |
| Grid | |
| List | |
| Invalid | |
Definition at line 132 of file node_tree_structure_type_inferencing.cc.
|
strong |
| Enumerator | |
|---|---|
| None | |
| In | |
| Out | |
Definition at line 395 of file node_tree_structure_type_inferencing.cc.
|
static |
Definition at line 59 of file node_tree_structure_type_inferencing.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), BLI_assert_unreachable_static_t, calc_node_interface(), blender::array_utils::fill_index_range(), ID_MISSING, blender::Span< T >::index_range(), blender::nodes::StructureTypeInterface::OutputDependency::linked_inputs, node, output, blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::Span< T >::size(), T, and blender::nodes::StructureTypeInterface::OutputDependency::type.
Referenced by calc_node_interface(), and calc_node_interfaces().
|
static |
Definition at line 122 of file node_tree_structure_type_inferencing.cc.
References calc_node_interface(), and calc_node_interfaces().
Referenced by calc_node_interfaces(), and calc_structure_type_interface().
|
static |
Definition at line 324 of file node_tree_structure_type_inferencing.cc.
References calc_output_socket_requirement(), merge(), and None.
Referenced by calc_output_socket_requirement(), repeat_zone_requirements_propagate(), simulation_zone_requirements_propagate(), store_auto_output_structure_types(), and store_group_input_structure_types().
|
static |
Definition at line 944 of file node_tree_structure_type_inferencing.cc.
References calc_node_interfaces(), calc_structure_type_interface(), find_auto_structure_type_sockets(), init_input_requirements(), propagate_left_to_right(), propagate_right_to_left(), blender::result, store_auto_output_structure_types(), store_group_input_structure_types(), and store_group_output_structure_types().
Referenced by calc_structure_type_interface(), and update_structure_type_interface().
|
static |
Definition at line 154 of file node_tree_structure_type_inferencing.cc.
References BLI_assert_unreachable, data_requirement_to_auto_structure_type(), Field, Grid, Invalid, List, None, and Single.
Referenced by data_requirement_to_auto_structure_type(), store_auto_output_structure_types(), and store_group_input_structure_types().
|
static |
Definition at line 43 of file node_tree_structure_type_inferencing.cc.
References ensure_supported_structure_type(), and blender::bNodeSocket::type.
|
static |
Definition at line 49 of file node_tree_structure_type_inferencing.cc.
References ensure_supported_structure_type(), and blender::bke::bNodeSocketType::type.
|
static |
Definition at line 31 of file node_tree_structure_type_inferencing.cc.
References ensure_supported_structure_type(), blender::nodes::socket_type_supports_fields(), and blender::nodes::socket_type_supports_grids().
Referenced by ensure_supported_structure_type(), ensure_supported_structure_type(), ensure_supported_structure_type(), propagate_left_to_right(), repeat_zone_status_propagate(), simulation_zone_status_propagate(), store_auto_output_structure_types(), store_group_input_structure_types(), and store_group_output_structure_types().
| blender::bke::node_structure_type_inferencing::ENUM_OPERATORS | ( | ZoneInOutChange | ) |
References ENUM_OPERATORS().
Referenced by ENUM_OPERATORS().
|
static |
Definition at line 174 of file node_tree_structure_type_inferencing.cc.
References blender::Auto, find_auto_structure_type_sockets(), blender::bke::bNodeZoneType::get_corresponding_output(), blender::IndexRange::IndexRange(), node, NODE_CLOSURE_OUTPUT, blender::bits::MutableBitSpan::set_all(), blender::bits::MutableBitSpan::slice(), storage, blender::bNodeTreeInterfaceSocket::structure_type, blender::NodeClosureInputItem::structure_type, blender::NodeClosureOutputItem::structure_type, blender::NodeCombineBundleItem::structure_type, blender::NodeEvaluateClosureInputItem::structure_type, blender::NodeEvaluateClosureOutputItem::structure_type, blender::NodeSeparateBundleItem::structure_type, and blender::bke::zone_type_by_node_type().
Referenced by calc_structure_type_interface(), and find_auto_structure_type_sockets().
|
static |
Definition at line 863 of file node_tree_structure_type_inferencing.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Vector< T, InlineBufferCapacity, Allocator >::append_non_duplicates(), find_dynamic_output_linked_inputs(), blender::Stack< T, InlineBufferCapacity, Allocator >::is_empty(), blender::Stack< T, InlineBufferCapacity, Allocator >::pop(), and blender::Stack< T, InlineBufferCapacity, Allocator >::push().
Referenced by find_dynamic_output_linked_inputs(), and store_group_output_structure_types().
|
static |
Definition at line 741 of file node_tree_structure_type_inferencing.cc.
References blender::nodes::SocketDeclaration::default_input_type, blender::nodes::default_input_type_is_field(), and get_unconnected_input_structure_type().
Referenced by get_unconnected_input_structure_type(), and propagate_left_to_right().
|
static |
Definition at line 282 of file node_tree_structure_type_inferencing.cc.
References Field, Grid, init_input_requirements(), List, node, None, Single, and blender::nodes::SocketDeclaration::structure_type.
Referenced by calc_structure_type_interface(), and init_input_requirements().
|
static |
Definition at line 593 of file node_tree_structure_type_inferencing.cc.
References b, and left_to_right_merge().
Referenced by left_to_right_merge(), propagate_left_to_right(), repeat_zone_status_propagate(), and simulation_zone_status_propagate().
|
static |
Definition at line 134 of file node_tree_structure_type_inferencing.cc.
References b, Field, Invalid, merge(), None, and Single.
Referenced by calc_output_socket_requirement(), merge(), propagate_right_to_left(), repeat_zone_requirements_propagate(), simulation_zone_requirements_propagate(), and store_group_input_structure_types().
|
static |
Definition at line 750 of file node_tree_structure_type_inferencing.cc.
References blender::IndexRange::drop_back(), ensure_supported_structure_type(), get_unconnected_input_structure_type(), blender::Span< T >::index_range(), left_to_right_merge(), node, output, propagate_left_to_right(), propagate_zone_status(), and blender::nodes::SocketDeclaration::structure_type.
Referenced by calc_structure_type_interface(), and propagate_left_to_right().
|
static |
Definition at line 512 of file node_tree_structure_type_inferencing.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), Field, blender::Vector< T, InlineBufferCapacity, Allocator >::first(), Grid, Invalid, List, merge(), node, None, output, propagate_right_to_left(), propagate_zone_data_requirements(), Single, and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
Referenced by calc_structure_type_interface(), and propagate_right_to_left().
|
static |
Definition at line 453 of file node_tree_structure_type_inferencing.cc.
References blender::data, GEO_NODE_REPEAT_INPUT, GEO_NODE_REPEAT_OUTPUT, GEO_NODE_SIMULATION_INPUT, GEO_NODE_SIMULATION_OUTPUT, In, node, Out, propagate_zone_data_requirements(), repeat_zone_requirements_propagate(), and simulation_zone_requirements_propagate().
Referenced by propagate_right_to_left(), and propagate_zone_data_requirements().
|
static |
Definition at line 682 of file node_tree_structure_type_inferencing.cc.
References blender::data, GEO_NODE_REPEAT_INPUT, GEO_NODE_REPEAT_OUTPUT, GEO_NODE_SIMULATION_INPUT, GEO_NODE_SIMULATION_OUTPUT, In, node, Out, propagate_zone_status(), repeat_zone_status_propagate(), and simulation_zone_status_propagate().
Referenced by propagate_left_to_right(), and propagate_zone_status().
|
static |
Definition at line 428 of file node_tree_structure_type_inferencing.cc.
References calc_output_socket_requirement(), In, merge(), None, Out, and repeat_zone_requirements_propagate().
Referenced by propagate_zone_data_requirements(), and repeat_zone_requirements_propagate().
|
static |
Definition at line 655 of file node_tree_structure_type_inferencing.cc.
References ensure_supported_structure_type(), In, left_to_right_merge(), None, Out, and repeat_zone_status_propagate().
Referenced by propagate_zone_status(), and repeat_zone_status_propagate().
|
static |
Definition at line 402 of file node_tree_structure_type_inferencing.cc.
References calc_output_socket_requirement(), In, merge(), None, Out, and simulation_zone_requirements_propagate().
Referenced by propagate_zone_data_requirements(), and simulation_zone_requirements_propagate().
|
static |
Definition at line 630 of file node_tree_structure_type_inferencing.cc.
References ensure_supported_structure_type(), In, left_to_right_merge(), None, Out, output, and simulation_zone_status_propagate().
Referenced by propagate_zone_status(), and simulation_zone_status_propagate().
|
static |
Definition at line 371 of file node_tree_structure_type_inferencing.cc.
References calc_output_socket_requirement(), data_requirement_to_auto_structure_type(), ensure_supported_structure_type(), blender::bits::foreach_1_index(), node, and store_auto_output_structure_types().
Referenced by calc_structure_type_interface(), and store_auto_output_structure_types().
|
static |
Definition at line 340 of file node_tree_structure_type_inferencing.cc.
References blender::Auto, calc_output_socket_requirement(), data_requirement_to_auto_structure_type(), blender::IndexRange::drop_back(), ensure_supported_structure_type(), blender::Span< T >::index_range(), blender::nodes::StructureTypeInterface::inputs, merge(), node, None, output, store_group_input_structure_types(), and blender::bNodeTreeInterfaceSocket::structure_type.
Referenced by calc_structure_type_interface(), and store_group_input_structure_types().
|
static |
Definition at line 904 of file node_tree_structure_type_inferencing.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::Auto, ensure_supported_structure_type(), find_dynamic_output_linked_inputs(), blender::Span< T >::index_range(), output, blender::nodes::StructureTypeInterface::outputs, and store_group_output_structure_types().
Referenced by calc_structure_type_interface(), and store_group_output_structure_types().
| bool blender::bke::node_structure_type_inferencing::update_structure_type_interface | ( | bNodeTree & | tree | ) |
Definition at line 983 of file node_tree_structure_type_inferencing.cc.
References calc_structure_type_interface(), blender::bke::bNodeSocketRuntime::inferred_structure_type, blender::result, blender::bNodeSocket::runtime, blender::bNodeTree::runtime, blender::bke::bNodeTreeRuntime::structure_type_interface, and update_structure_type_interface().
Referenced by update_structure_type_interface().