Files
UnrealEngine/Engine/Source/ThirdParty/MaterialX/MaterialX-1.39.3/source/MaterialXGenShader/Nodes/HwBlurNode.h
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

32 lines
825 B
C++

//
// Copyright Contributors to the MaterialX Project
// SPDX-License-Identifier: Apache-2.0
//
#ifndef MATERIALX_HWBLURNODE_H
#define MATERIALX_HWBLURNODE_H
#include <MaterialXGenShader/HwShaderGenerator.h>
#include <MaterialXGenShader/Nodes/BlurNode.h>
MATERIALX_NAMESPACE_BEGIN
/// Blur node implementation for Hw shader languages
class MX_GENSHADER_API HwBlurNode : public BlurNode
{
public:
HwBlurNode(const string& samplingIncludeFilename) : _samplingIncludeFilename(samplingIncludeFilename) {}
virtual ~HwBlurNode() {}
static ShaderNodeImplPtr create(const string& samplingIncludeFilename);
void emitSamplingFunctionDefinition(const ShaderNode& node, GenContext& context, ShaderStage& stage) const override;
private:
string _samplingIncludeFilename;
};
MATERIALX_NAMESPACE_END
#endif