MaterialX
1.38.2
source
MaterialXGenShader
Nodes
LayerNode.h
1
//
2
// TM & (c) 2017 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.
3
// All rights reserved. See LICENSE.txt for license.
4
//
5
6
#ifndef MATERIALX_LAYERNODE_H
7
#define MATERIALX_LAYERNODE_H
8
9
#include <
MaterialXGenShader/ShaderNodeImpl.h
>
10
11
namespace
MaterialX
12
{
13
15
class
MX_GENSHADER_API
LayerNode
:
public
ShaderNodeImpl
16
{
17
public
:
18
static
ShaderNodeImplPtr
create();
19
20
void
emitFunctionCall(
const
ShaderNode
& node,
GenContext
& context,
ShaderStage
& stage)
const override
;
21
23
static
void
addLayerSupport(
ShaderNode
& node);
24
26
static
const
string
TOP
;
27
static
const
string
BASE;
28
};
29
30
}
// namespace MaterialX
31
32
#endif
MaterialX::ShaderNodeImplPtr
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
Definition:
Library.h:40
ShaderNodeImpl.h
Base class for shader node implementations.
MaterialX::GenContext
A context class for shader generation.
Definition:
GenContext.h:27
MaterialX::LayerNode
Layer node implementation.
Definition:
LayerNode.h:16
MaterialX::LayerNode::TOP
static const string TOP
String constants.
Definition:
LayerNode.h:26
MaterialX::ShaderNode
Class representing a node in the shader generation DAG.
Definition:
ShaderNode.h:326
MaterialX::ShaderNodeImpl
Class handling the shader generation implementation for a node.
Definition:
ShaderNodeImpl.h:32
MaterialX::ShaderStage
A shader stage, containing the state and resulting source code for the stage.
Definition:
ShaderStage.h:124
Generated by
1.9.3