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

Member Function Documentation

◆ get_socket_value()

◆ is_group_input_used()

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

Definition at line 117 of file socket_usage_inference.cc.

References is_socket_used(), and node.

◆ is_socket_used()

◆ 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: