Blender  V3.3
Public Member Functions | Protected Attributes | List of all members
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 67 of file render_graph_finalize_test.cpp.

Constructor & Destructor Documentation

◆ ShaderGraphBuilder()

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

Definition at line 69 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 83 of file render_graph_finalize_test.cpp.

References EXPECT_EQ(), node, 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 74 of file render_graph_finalize_test.cpp.

References NULL.

◆ graph()

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

Definition at line 138 of file render_graph_finalize_test.cpp.

◆ output_closure()

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

Definition at line 117 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 122 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 130 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 144 of file render_graph_finalize_test.cpp.

◆ node_map_

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

Definition at line 145 of file render_graph_finalize_test.cpp.


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