MaterialX 1.39.1
Loading...
Searching...
No Matches
Library.h
Go to the documentation of this file.
1//
2// Copyright Contributors to the MaterialX Project
3// SPDX-License-Identifier: Apache-2.0
4//
5
6#ifndef MATERIALX_GENSHADERLIBRARY_H
7#define MATERIALX_GENSHADERLIBRARY_H
8
12
14
15MATERIALX_NAMESPACE_BEGIN
16
17class Shader;
18class ShaderStage;
19class ShaderGenerator;
20class ShaderNode;
21class ShaderGraph;
22class ShaderInput;
23class ShaderOutput;
24class ShaderNodeImpl;
25class GenOptions;
26class GenContext;
27class ClosureContext;
28class TypeDesc;
29
31using StringStream = std::stringstream;
32
34using ShaderPtr = shared_ptr<Shader>;
36using ShaderStagePtr = shared_ptr<ShaderStage>;
38using ShaderGeneratorPtr = shared_ptr<ShaderGenerator>;
40using ShaderNodeImplPtr = shared_ptr<ShaderNodeImpl>;
42using GenContextPtr = shared_ptr<GenContext>;
43
44template <class T> using CreatorFunction = shared_ptr<T> (*)();
45
46MATERIALX_NAMESPACE_END
47
48#endif // MATERIALX_GENSHADERLIBRARY_H
Base exception classes.
shared_ptr< ShaderStage > ShaderStagePtr
Shared pointer to a ShaderStage.
Definition: Library.h:36
shared_ptr< GenContext > GenContextPtr
Shared pointer to a GenContext.
Definition: Library.h:42
shared_ptr< Shader > ShaderPtr
Shared pointer to a Shader.
Definition: Library.h:34
std::stringstream StringStream
A string stream.
Definition: Library.h:31
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
Definition: Library.h:40
shared_ptr< ShaderGenerator > ShaderGeneratorPtr
Shared pointer to a ShaderGenerator.
Definition: Library.h:38
Class representing a context for closure evaluation.
Definition: GenContext.h:248
A context class for shader generation.
Definition: GenContext.h:31
Class holding options to configure shader generation.
Definition: GenOptions.h:76
Base class for shader generators All third-party shader generators should derive from this class.
Definition: ShaderGenerator.h:31
Class representing a graph (DAG) for shader generation.
Definition: ShaderGraph.h:44
Class containing all data needed during shader generation.
Definition: Shader.h:33
An input on a ShaderNode.
Definition: ShaderNode.h:264
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
An output on a ShaderNode.
Definition: ShaderNode.h:295
A shader stage, containing the state and resulting source code for the stage.
Definition: ShaderStage.h:139
A type descriptor for MaterialX data types.
Definition: TypeDesc.h:35