HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DistributeLayerOverMixRefactor Class Reference

#include <ShaderGraphRefactor.h>

+ Inheritance diagram for DistributeLayerOverMixRefactor:

Public Member Functions

const stringgetName () const override
 Return the name of this refactoring pass. More...
 
size_t execute (ShaderGraph &graph, GenContext &context) override
 
- Public Member Functions inherited from ShaderGraphRefactor
virtual ~ShaderGraphRefactor ()
 

Detailed Description

Distributes layer operations over mix nodes. Transforms layer(mix(A, B, w), C) into mix(layer(A, C), layer(B, C), w) to satisfy backends that cannot handle a mixed BSDF as the top operand of a layer node.

Definition at line 71 of file ShaderGraphRefactor.h.

Member Function Documentation

size_t DistributeLayerOverMixRefactor::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.

const string& DistributeLayerOverMixRefactor::getName ( ) const
overridevirtual

Return the name of this refactoring pass.

Implements ShaderGraphRefactor.


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