MaterialX 1.39.1
Loading...
Searching...
No Matches
MaterialNode.h
1//
2// Copyright Contributors to the MaterialX Project
3// SPDX-License-Identifier: Apache-2.0
4//
5
6#ifndef MATERIALX_MATERIALNODE_H
7#define MATERIALX_MATERIALNODE_H
8
10
12
13MATERIALX_NAMESPACE_BEGIN
14
16class MX_GENSHADER_API MaterialNode : public ShaderNodeImpl
17{
18 public:
19 static ShaderNodeImplPtr create();
20
21 void addClassification(ShaderNode& node) const override;
22 void emitFunctionCall(const ShaderNode& node, GenContext& context, ShaderStage& stage) const override;
23};
24
25MATERIALX_NAMESPACE_END
26
27#endif
Macros for declaring imported and exported symbols.
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
Definition: Library.h:40
Base class for shader node implementations.
A context class for shader generation.
Definition: GenContext.h:31
Material node implementation.
Definition: MaterialNode.h:17
void addClassification(ShaderNode &node) const override
Add additional classifications on a node.
void emitFunctionCall(const ShaderNode &node, GenContext &context, ShaderStage &stage) const override
Emit the function call or inline source code for given node instance in the given context.
Class representing a node in the shader generation DAG.
Definition: ShaderNode.h:320
Class handling the shader generation implementation for a node.
Definition: ShaderNodeImpl.h:32
A shader stage, containing the state and resulting source code for the stage.
Definition: ShaderStage.h:139