|
Blender V4.5
|
Public Member Functions | |
| SocketUsageInferencer (const bNodeTree &tree, const std::optional< Span< GPointer > > tree_input_values, const std::optional< Span< bool > > top_level_ignored_inputs=std::nullopt) | |
| void | mark_top_level_node_outputs_as_used () |
| bool | is_group_input_used (const int input_i) |
| bool | is_socket_used (const SocketInContext &socket) |
| const void * | get_socket_value (const SocketInContext &socket) |
Utility class to simplify passing global state into all the functions during inferencing.
Definition at line 32 of file socket_usage_inference.cc.
|
inline |
Definition at line 157 of file socket_usage_inference.cc.
References BLI_assert, blender::Stack< T, InlineBufferCapacity, Allocator >::is_empty(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_try(), blender::Stack< T, InlineBufferCapacity, Allocator >::peek(), blender::Stack< T, InlineBufferCapacity, Allocator >::pop(), blender::Stack< T, InlineBufferCapacity, Allocator >::push(), and value.
|
inline |
Definition at line 117 of file socket_usage_inference.cc.
References is_socket_used(), and node.
|
inline |
Definition at line 128 of file socket_usage_inference.cc.
References BLI_assert, blender::Stack< T, InlineBufferCapacity, Allocator >::is_empty(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_try(), blender::Stack< T, InlineBufferCapacity, Allocator >::peek(), blender::Stack< T, InlineBufferCapacity, Allocator >::pop(), and blender::Stack< T, InlineBufferCapacity, Allocator >::push().
Referenced by is_group_input_used().
|
inline |
Definition at line 103 of file socket_usage_inference.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), and node.
Referenced by blender::nodes::socket_usage_inference::infer_all_input_sockets_usage().