24#ifndef PXR_IMAGING_HIO_GLSLFX_CONFIG_H
25#define PXR_IMAGING_HIO_GLSLFX_CONFIG_H
30#include "pxr/imaging/hio/api.h"
36PXR_NAMESPACE_OPEN_SCOPE
69 std::string
const & docString =
"",
70 Role const & role = RoleNone) :
72 defaultValue(defaultValue),
78 std::string docString;
82 typedef std::vector<Parameter> Parameters;
90 Texture(std::string
const & name,
92 std::string
const & docString =
"") :
94 defaultValue(defaultValue),
95 docString(docString) { }
99 std::string docString;
102 typedef std::vector<Texture> Textures;
112 std::string
const & docString =
"") :
114 defaultValue(defaultValue),
115 docString(docString) { }
119 std::string docString;
122 typedef std::vector<Attribute> Attributes;
130 std::string
const & input,
131 std::string
const & filename,
132 std::string *errorStr);
134 typedef std::vector<std::string> SourceKeys;
162 std::string *errorStr);
164 void _Init(
VtDictionary const & dict, std::string *errorStr);
167 std::string *errorStr)
const;
169 std::string *errorStr)
const;
172 std::string *errorStr)
const;
175 std::string *errorStr)
const;
177 typedef std::map<std::string, SourceKeys> _SourceKeyMap;
178 _SourceKeyMap _GetSourceKeyMap(
VtDictionary const & dict,
179 std::string *errorStr)
const;
184 Attributes _attributes;
186 _SourceKeyMap _sourceKeyMap;
190PXR_NAMESPACE_CLOSE_SCOPE
A class representing an attribute.
A class representing a parameter.
A class representing a texture.
A class representing the configuration of a glslfx file.
HIO_API Textures GetTextures() const
Return the textures specified in the configuration.
HIO_API MetadataDictionary GetMetadata() const
Returns the metadata specified in the configuration.
static HIO_API HioGlslfxConfig * Read(TfToken const &technique, std::string const &input, std::string const &filename, std::string *errorStr)
Create a new HioGlslfxConfig from an input string.
Role
Enumerates Roles that parameters can have.
HIO_API Parameters GetParameters() const
Return the parameters specified in the configuration.
HIO_API SourceKeys GetSourceKeys(TfToken const &shaderStageKey) const
Return the set of source keys for a particular shader stage.
HIO_API Attributes GetAttributes() const
Returns the attributes specified in the configuration.
Token for efficient comparison, assignment, and hashing of known strings.
A map with string keys and VtValue values.
Provides a container which may hold any type, and provides introspection and iteration over array typ...
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...