Blender V4.3
CCL_NAMESPACE_BEGIN::ShaderGraphBuilder Class Reference

Public Member Functions

 ShaderGraphBuilder (ShaderGraph *graph)
 
ShaderNodefind_node (const string &name)
 
template<typename T >
ShaderGraphBuilderadd_node (const T &node)
 
ShaderGraphBuilderadd_connection (const string &from, const string &to)
 
ShaderGraphBuilderadd_attribute (const string &name)
 
ShaderGraphBuilderoutput_closure (const string &from)
 
ShaderGraphBuilderoutput_color (const string &from)
 
ShaderGraphBuilderoutput_value (const string &from)
 
ShaderGraphgraph ()
 

Protected Attributes

ShaderGraphgraph_
 
map< string, ShaderNode * > node_map_
 

Detailed Description

Definition at line 69 of file render_graph_finalize_test.cpp.

Constructor & Destructor Documentation

◆ ShaderGraphBuilder()

CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::ShaderGraphBuilder ( ShaderGraph * graph)
inline

Definition at line 71 of file render_graph_finalize_test.cpp.

Member Function Documentation

◆ add_attribute()

ShaderGraphBuilder & CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::add_attribute ( const string & name)
inline

◆ add_connection()

ShaderGraphBuilder & CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::add_connection ( const string & from,
const string & to )
inline

◆ add_node()

template<typename T >
ShaderGraphBuilder & CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::add_node ( const T & node)
inline

Definition at line 85 of file render_graph_finalize_test.cpp.

References EXPECT_EQ(), and NULL.

Referenced by add_attribute(), output_color(), and output_value().

◆ find_node()

ShaderNode * CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::find_node ( const string & name)
inline

Definition at line 76 of file render_graph_finalize_test.cpp.

References NULL.

◆ graph()

ShaderGraph & CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::graph ( )
inline

Definition at line 140 of file render_graph_finalize_test.cpp.

◆ output_closure()

ShaderGraphBuilder & CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::output_closure ( const string & from)
inline

Definition at line 119 of file render_graph_finalize_test.cpp.

References add_connection().

Referenced by output_color(), and output_value().

◆ output_color()

ShaderGraphBuilder & CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::output_color ( const string & from)
inline

Definition at line 124 of file render_graph_finalize_test.cpp.

References add_connection(), add_node(), and output_closure().

◆ output_value()

ShaderGraphBuilder & CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::output_value ( const string & from)
inline

Definition at line 132 of file render_graph_finalize_test.cpp.

References add_connection(), add_node(), and output_closure().

Member Data Documentation

◆ graph_

ShaderGraph* CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::graph_
protected

Definition at line 146 of file render_graph_finalize_test.cpp.

◆ node_map_

map<string, ShaderNode *> CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::node_map_
protected

Definition at line 147 of file render_graph_finalize_test.cpp.


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