6 #ifndef MATERIALX_CONVOLUTIONNODE_H
7 #define MATERIALX_CONVOLUTIONNODE_H
31 virtual bool acceptsInputType(
const TypeDesc*
type)
const = 0;
35 virtual void computeSampleOffsetStrings(
const string& sampleSizeName,
const string& offsetTypeString,
36 unsigned int filterWidth,
StringVec& offsetStrings)
const = 0;
44 void emitInputSamplesUV(
const ShaderNode& node,
46 float filterSize,
float filterOffset,
47 const string& sampleSizeFunctionUV,
MX_GENSHADER_API const std::array< float, 7 > GAUSSIAN_KERNEL_7
MX_GENSHADER_API const std::array< float, 5 > GAUSSIAN_KERNEL_5
#define MATERIALX_NAMESPACE_BEGIN
vector< string > StringVec
A vector of strings.
int & sampleCount(char *base, int xStride, int yStride, int x, int y)
MATERIALX_NAMESPACE_BEGIN MX_GENSHADER_API const std::array< float, 3 > GAUSSIAN_KERNEL_3
#define MATERIALX_NAMESPACE_END
virtual void createVariables(const ShaderNode &node, GenContext &context, Shader &shader) const