HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ShaderGraphRefactor Class Referenceabstract

#include <ShaderGraphRefactor.h>

+ Inheritance diagram for ShaderGraphRefactor:

Public Member Functions

virtual ~ShaderGraphRefactor ()
 
virtual const stringgetName () const =0
 Return the name of this refactoring pass. More...
 
virtual size_t execute (ShaderGraph &graph, GenContext &context)=0
 

Detailed Description

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.

Constructor & Destructor Documentation

virtual ShaderGraphRefactor::~ShaderGraphRefactor ( )
inlinevirtual

Definition at line 30 of file ShaderGraphRefactor.h.

Member Function Documentation

virtual size_t ShaderGraphRefactor::execute ( ShaderGraph graph,
GenContext context 
)
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.

virtual const string& ShaderGraphRefactor::getName ( ) const
pure virtual

Return the name of this refactoring pass.

Implemented in DistributeLayerOverMixRefactor, PremultipliedBsdfAddRefactor, and NodeElisionRefactor.


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