|
HDK
|
#include <ShaderGraphRefactor.h>
Inheritance diagram for ShaderGraphRefactor:Public Member Functions | |
| virtual | ~ShaderGraphRefactor () |
| virtual const string & | getName () const =0 |
| Return the name of this refactoring pass. More... | |
| virtual size_t | execute (ShaderGraph &graph, GenContext &context)=0 |
Base class for shader graph refactoring passes. Each pass identifies a structural pattern in the shader graph and rewrites it into a mathematically equivalent form better suited to the target backend.
Definition at line 27 of file ShaderGraphRefactor.h.
|
inlinevirtual |
Definition at line 30 of file ShaderGraphRefactor.h.
|
pure virtual |
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.
Implemented in DistributeLayerOverMixRefactor, PremultipliedBsdfAddRefactor, and NodeElisionRefactor.
|
pure virtual |
Return the name of this refactoring pass.
Implemented in DistributeLayerOverMixRefactor, PremultipliedBsdfAddRefactor, and NodeElisionRefactor.