6#ifndef MATERIALX_OSLSYNTAX_H
7#define MATERIALX_OSLSYNTAX_H
16MATERIALX_NAMESPACE_BEGIN
25 static SyntaxPtr create() {
return std::make_shared<OslSyntax>(); }
31 static const string OUTPUT_QUALIFIER;
32 static const string SOURCE_FILE_EXTENSION;
39MATERIALX_NAMESPACE_END
vector< string > StringVec
A vector of strings.
Definition: Library.h:55
Macros for declaring imported and exported symbols.
Base class for syntax handling for shader generators.
shared_ptr< Syntax > SyntaxPtr
Shared pointer to a Syntax.
Definition: Syntax.h:27
Syntax class for OSL (Open Shading Language)
Definition: OslSyntax.h:21
const string & getConstantQualifier() const override
Get the qualifier used when declaring constant variables.
Definition: OslSyntax.h:28
const string & getOutputQualifier() const override
Returns a type qualifier to be used when declaring types for output variables.
const string & getSourceFileExtension() const override
Return the file extension used for source code files in this language.
Definition: OslSyntax.h:29
Base class for syntax objects used by shader generators to emit code with correct syntax for each lan...
Definition: Syntax.h:41