6 #ifndef MATERIALX_MDLSYNTAX_H
7 #define MATERIALX_MDLSYNTAX_H
44 static const string CONST_QUALIFIER;
static const string SOURCE_FILE_EXTENSION
MX_GENMDL_API const TypeDesc * MDL_DISTRIBUTIONTYPE
static const StringVec FILTERLOOKUPMODE_MEMBERS
MX_GENMDL_API const TypeDesc * MDL_ADDRESSMODE
MX_GENMDL_API const TypeDesc * MDL_COORDINATESPACE
#define MATERIALX_NAMESPACE_BEGIN
vector< string > StringVec
A vector of strings.
string getArrayVariableSuffix(const TypeDesc *, const Value &) const override
Override to indicate array variables have no array suffix.
virtual string getArrayTypeSuffix(const TypeDesc *, const Value &) const
Return the array suffix to use for declaring an array type.
static const StringVec VECTOR3_MEMBERS
MATERIALX_NAMESPACE_BEGIN MX_CORE_API const string EMPTY_STRING
shared_ptr< Syntax > SyntaxPtr
Shared pointer to a Syntax.
**But if you need a result
const string & getSourceFileExtension() const override
Return the file extension used for source code files in this language.
static const StringVec SCATTER_MODE_MEMBERS
static const StringVec COLOR3_MEMBERS
static SyntaxPtr create()
static const StringVec DISTRIBUTIONTYPE_MEMBERS
static const StringVec FILTERTYPE_MEMBERS
static const string UNIFORM_QUALIFIER
static const StringVec VECTOR4_MEMBERS
A generic, discriminated value, whose type may be queried dynamically.
static const StringVec ADDRESSMODE_MEMBERS
virtual string getSwizzledVariable(const string &srcName, const TypeDesc *srcType, const string &channels, const TypeDesc *dstType) const
Get syntax for a swizzled variable.
GLuint const GLchar * name
virtual bool remapEnumeration(const string &value, const TypeDesc *type, const string &enumNames, std::pair< const TypeDesc *, ValuePtr > &result) const
static const StringVec VECTOR2_MEMBERS
const string & getConstantQualifier() const override
static const StringVec COORDINATESPACE_MEMBERS
shared_ptr< MdlSyntax > MdlSyntaxPtr
Shared pointer to an MdlSyntax.
#define MATERIALX_NAMESPACE_END
static const StringVec COLOR4_MEMBERS
virtual void makeValidName(string &name) const
Modify the given name string to remove any invalid characters or tokens.
const string & getUniformQualifier() const override
ImageBuf OIIO_API channels(const ImageBuf &src, int nchannels, cspan< int > channelorder, cspan< float > channelvalues={}, cspan< std::string > newchannelnames={}, bool shuffle_channel_names=false, int nthreads=0)
MX_GENMDL_API const TypeDesc * MDL_FILTERTYPE
MX_GENMDL_API const TypeDesc * MDL_FILTERLOOKUPMODE