forked from AcademySoftwareFoundation/MaterialX
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOslSyntax.h
More file actions
41 lines (30 loc) · 1.05 KB
/
OslSyntax.h
File metadata and controls
41 lines (30 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// TM & (c) 2017 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.
// All rights reserved. See LICENSE.txt for license.
//
#ifndef MATERIALX_OSLSYNTAX_H
#define MATERIALX_OSLSYNTAX_H
/// @file
/// OSL syntax class
#include <MaterialXGenOsl/Export.h>
#include <MaterialXGenShader/Syntax.h>
MATERIALX_NAMESPACE_BEGIN
/// @class OslSyntax
/// Syntax class for OSL (Open Shading Language)
class MX_GENOSL_API OslSyntax : public Syntax
{
public:
OslSyntax();
static SyntaxPtr create() { return std::make_shared<OslSyntax>(); }
const string& getOutputQualifier() const override;
const string& getConstantQualifier() const override { return EMPTY_STRING; };
const string& getSourceFileExtension() const override { return SOURCE_FILE_EXTENSION; };
static const string OUTPUT_QUALIFIER;
static const string SOURCE_FILE_EXTENSION;
static const StringVec VECTOR_MEMBERS;
static const StringVec VECTOR2_MEMBERS;
static const StringVec VECTOR4_MEMBERS;
static const StringVec COLOR4_MEMBERS;
};
MATERIALX_NAMESPACE_END
#endif