6#ifndef MATERIALX_SHADERTRANSLATOR_H
7#define MATERIALX_SHADERTRANSLATOR_H
14MATERIALX_NAMESPACE_BEGIN
17using ShaderTranslatorPtr = shared_ptr<class ShaderTranslator>;
24 static ShaderTranslatorPtr create()
43 void connectTranslationOutputs(
NodePtr shader);
50MATERIALX_NAMESPACE_END
shared_ptr< NodeDef > NodeDefPtr
A shared pointer to a NodeDef.
Definition: Definition.h:32
shared_ptr< Document > DocumentPtr
A shared pointer to a Document.
Definition: Document.h:22
Macros for declaring imported and exported symbols.
Shader generation utility methods.
shared_ptr< NodeGraph > NodeGraphPtr
A shared pointer to a NodeGraph.
Definition: Node.h:34
shared_ptr< Node > NodePtr
A shared pointer to a Node.
Definition: Node.h:24
Shader instance class created during shader generation.
A helper class for translating content between shading models.
Definition: ShaderTranslator.h:22
void translateShader(NodePtr shader, const string &destCategory)
Translate a shader node to the destination shading model.
void translateAllMaterials(DocumentPtr doc, const string &destShader)
Translate each material in the input document to the destination shading model.