HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
ClosureLayerNodeMdl.h
Go to the documentation of this file.
1
//
2
// TM & (c) 2021 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.
3
// All rights reserved. See LICENSE.txt for license.
4
//
5
6
#ifndef MATERIALX_CLOSURELAYERNODEMDL_H
7
#define MATERIALX_CLOSURELAYERNODEMDL_H
8
9
#include <
MaterialXGenMdl/Export.h
>
10
#include <
MaterialXGenMdl/Nodes/SourceCodeNodeMdl.h
>
11
12
#include <
MaterialXGenShader/ShaderGenerator.h
>
13
#include <
MaterialXGenShader/GenContext.h
>
14
15
MATERIALX_NAMESPACE_BEGIN
16
17
/// Closure layer node implementation for MDL.
18
class
MX_GENMDL_API
ClosureLayerNodeMdl
:
public
ShaderNodeImpl
19
{
20
public
:
21
static
ShaderNodeImplPtr
create();
22
23
void
emitFunctionCall
(
const
ShaderNode
& node,
GenContext
& context,
ShaderStage
& stage)
const override
;
24
25
/// String constants
26
static
const
string
TOP
;
27
static
const
string
BASE
;
28
};
29
30
31
/// Layerable BSDF node.
32
class
MX_GENMDL_API
LayerableNodeMdl
:
public
SourceCodeNodeMdl
33
{
34
public
:
35
static
ShaderNodeImplPtr
create
();
36
37
void
addInputs
(
ShaderNode
& node,
GenContext
&)
const override
;
38
};
39
40
MATERIALX_NAMESPACE_END
41
42
#endif
ShaderNodeImplPtr
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
Definition:
Library.h:40
MATERIALX_NAMESPACE_BEGIN
#define MATERIALX_NAMESPACE_BEGIN
Definition:
Generated.h:23
MX_GENMDL_API
#define MX_GENMDL_API
Definition:
Export.h:18
Export.h
LayerableNodeMdl
Layerable BSDF node.
Definition:
ClosureLayerNodeMdl.h:32
SourceCodeNodeMdl.h
SourceCodeNodeMdl::create
static ShaderNodeImplPtr create()
GenContext.h
ShaderNodeImpl::addInputs
virtual void addInputs(ShaderNode &node, GenContext &context) const
Add additional inputs on the node.
ShaderNodeImpl
Definition:
ShaderNodeImpl.h:30
ClosureLayerNodeMdl::BASE
static const string BASE
Definition:
ClosureLayerNodeMdl.h:27
SourceCodeNodeMdl
Definition:
SourceCodeNodeMdl.h:18
ShaderNode
Definition:
ShaderNode.h:323
ClosureLayerNodeMdl::TOP
static const string TOP
String constants.
Definition:
ClosureLayerNodeMdl.h:26
ClosureLayerNodeMdl
Closure layer node implementation for MDL.
Definition:
ClosureLayerNodeMdl.h:18
GenContext
Definition:
GenContext.h:27
ShaderStage
Definition:
ShaderStage.h:122
MATERIALX_NAMESPACE_END
#define MATERIALX_NAMESPACE_END
Definition:
Generated.h:24
ShaderGenerator.h
ShaderNodeImpl::emitFunctionCall
virtual void emitFunctionCall(const ShaderNode &node, GenContext &context, ShaderStage &stage) const
Emit the function call or inline source code for given node instance in the given context...
MaterialXGenMdl
Nodes
ClosureLayerNodeMdl.h
Generated on Thu Mar 23 2023 02:46:29 for HDK by
1.8.6