Blender V4.5
CCL_NAMESPACE_BEGIN::ShaderGraphBuilder Class Reference

Public Member Functions

 ShaderGraphBuilder (ShaderGraph *graph)
 
ShaderNode * find_node (const string &name)
 
template<typename T >
ShaderGraphBuilder & add_node (const T &node)
 
ShaderGraphBuilder & add_connection (const string &from, const string &to)
 
ShaderGraphBuilder & add_attribute (const string &name)
 
ShaderGraphBuilder & output_closure (const string &from)
 
ShaderGraphBuilder & output_color (const string &from)
 
ShaderGraphBuilder & output_value (const string &from)
 
ShaderGraph & graph ()
 

Protected Attributes

ShaderGraph * graph_
 
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.

References graph.

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 node.

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 name.

◆ graph()

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

Definition at line 141 of file render_graph_finalize_test.cpp.

◆ output_closure()

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

Definition at line 120 of file render_graph_finalize_test.cpp.

References add_connection(), and from.

Referenced by output_color(), and output_value().

◆ output_color()

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

Definition at line 125 of file render_graph_finalize_test.cpp.

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

◆ output_value()

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

Definition at line 133 of file render_graph_finalize_test.cpp.

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

Member Data Documentation

◆ graph_

ShaderGraph* CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::graph_
protected

Definition at line 147 of file render_graph_finalize_test.cpp.

◆ node_map_

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

Definition at line 148 of file render_graph_finalize_test.cpp.


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