MaterialX 1.39.3
Loading...
Searching...
No Matches
HwBlurNode.h
1//
2// Copyright Contributors to the MaterialX Project
3// SPDX-License-Identifier: Apache-2.0
4//
5
6#ifndef MATERIALX_HWBLURNODE_H
7#define MATERIALX_HWBLURNODE_H
8
10
11#include <MaterialXGenShader/Nodes/BlurNode.h>
12
13MATERIALX_NAMESPACE_BEGIN
14
16class MX_GENSHADER_API HwBlurNode : public BlurNode
17{
18 public:
19 HwBlurNode(const string& samplingIncludeFilename) : _samplingIncludeFilename(samplingIncludeFilename) {}
20 virtual ~HwBlurNode() {}
21
22 static ShaderNodeImplPtr create(const string& samplingIncludeFilename);
23
24 void emitSamplingFunctionDefinition(const ShaderNode& node, GenContext& context, ShaderStage& stage) const override;
25 private:
26 string _samplingIncludeFilename;
27};
28
29MATERIALX_NAMESPACE_END
30
31#endif
Hardware shader generator base class.
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
Definition Library.h:39
BlurNode()
Constructor.
A context class for shader generation.
Definition GenContext.h:30
void emitSamplingFunctionDefinition(const ShaderNode &node, GenContext &context, ShaderStage &stage) const override
Emit function definitions for sampling functions used by this node.
Class representing a node in the shader generation DAG.
Definition ShaderNode.h:320
A shader stage, containing the state and resulting source code for the stage.
Definition ShaderStage.h:139