6 #ifndef MATERIALX_BLURNODE_H
7 #define MATERIALX_BLURNODE_H
32 unsigned int filterWidth,
StringVec& offsetStrings)
const override;
36 const string& sampleName,
const StringVec& sampleStrings)
const;
static const string GAUSSIAN_WEIGHTS_VARIABLE
Gaussian filter weights variable name.
static const float _filterOffset
#define MATERIALX_NAMESPACE_BEGIN
vector< string > StringVec
A vector of strings.
static const string GAUSSIAN_FILTER
Gaussian filter option on blur.
static const string IN_STRING
String constants.
virtual void emitFunctionDefinition(const ShaderNode &node, GenContext &context, ShaderStage &stage) const
Emit function definition for the given node instance.
virtual void computeSampleOffsetStrings(const string &sampleSizeName, const string &offsetTypeString, unsigned int filterWidth, StringVec &offsetStrings) const =0
static const string _sampleSizeFunctionUV
static const string FILTER_SIZE_STRING
static const string FILTER_TYPE_STRING
virtual bool acceptsInputType(const TypeDesc *type) const =0
Derived classes are responsible for returning if a given type is an acceptable input.
static const string BOX_WEIGHTS_VARIABLE
Box filter weights variable name.
static const string BOX_FILTER
Box filter option on blur.
Blur node implementation.
static const float _filterSize
#define MATERIALX_NAMESPACE_END
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...
static const string FILTER_LIST
List of filters.