MaterialX 1.39.5
Loading...
Searching...
No Matches
NodeElisionRefactor Class Reference

Removes constant and dot nodes by bypassing them. More...

#include <ShaderGraphRefactor.h>

Inheritance diagram for NodeElisionRefactor:
ShaderGraphRefactor

Public Member Functions

const string & getName () const override
 Return the name of this refactoring pass.
 
size_t execute (ShaderGraph &graph, GenContext &context) override
 Execute the pass on the given graph.
 

Detailed Description

Removes constant and dot nodes by bypassing them.

Constant nodes have their values moved downstream, and dot nodes with filename-typed inputs are elided to prevent extra samplers.

Member Function Documentation

◆ execute()

size_t execute ( ShaderGraph & graph,
GenContext & context )
overridevirtual

Execute the pass on the given graph.

Return the number of graph edits made, or zero if the pass is not applicable to the current context.

Implements ShaderGraphRefactor.

◆ getName()

const string & getName ( ) const
overridevirtual

Return the name of this refactoring pass.

Implements ShaderGraphRefactor.


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