Blender V4.5
blender::nodes::socket_usage_inference::SocketUsageInferencer Struct Reference

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)

Detailed Description

Utility class to simplify passing global state into all the functions during inferencing.

Definition at line 32 of file socket_usage_inference.cc.

Constructor & Destructor Documentation

◆ SocketUsageInferencer()

blender::nodes::socket_usage_inference::SocketUsageInferencer::SocketUsageInferencer ( const bNodeTree & tree,
const std::optional< Span< GPointer > > tree_input_values,
const std::optional< Span< bool > > top_level_ignored_inputs = std::nullopt )
inline

Definition at line 72 of file socket_usage_inference.cc.

References i, and tree.

Member Function Documentation

◆ get_socket_value()

const void * blender::nodes::socket_usage_inference::SocketUsageInferencer::get_socket_value ( const SocketInContext & socket)
inline

Definition at line 157 of file socket_usage_inference.cc.

References BLI_assert.

◆ is_group_input_used()

bool blender::nodes::socket_usage_inference::SocketUsageInferencer::is_group_input_used ( const int input_i)
inline

◆ is_socket_used()

bool blender::nodes::socket_usage_inference::SocketUsageInferencer::is_socket_used ( const SocketInContext & socket)
inline

◆ mark_top_level_node_outputs_as_used()

void blender::nodes::socket_usage_inference::SocketUsageInferencer::mark_top_level_node_outputs_as_used ( )
inline

The documentation for this struct was generated from the following file: