6 #ifndef MATERIALX_HWHEIGHTTONORMALNODE_H
7 #define MATERIALX_HWHEIGHTTONORMALNODE_H
19 HwHeightToNormalNode(
const string& samplingIncludeFilename) : _samplingIncludeFilename(samplingIncludeFilename) {}
35 unsigned int filterWidth,
StringVec& offsetStrings)
const override;
38 const string _samplingIncludeFilename;
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
#define MATERIALX_NAMESPACE_BEGIN
vector< string > StringVec
A vector of strings.
virtual bool acceptsInputType(TypeDesc type) const =0
Derived classes are responsible for returning if a given type is an acceptable input.
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
GLint GLint GLsizei GLint GLenum GLenum type
virtual ~HwHeightToNormalNode()
HeightToNormal node implementation for Hw shader languages.
HwHeightToNormalNode(const string &samplingIncludeFilename)
#define MATERIALX_NAMESPACE_END
void createVariables(const ShaderNode &node, GenContext &context, Shader &shader) const override
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...