7#ifndef PXR_IMAGING_HIO_GLSLFX_CONFIG_H
8#define PXR_IMAGING_HIO_GLSLFX_CONFIG_H
13#include "pxr/imaging/hio/api.h"
19PXR_NAMESPACE_OPEN_SCOPE
52 std::string
const & docString =
"",
53 Role const & role = RoleNone) :
55 defaultValue(defaultValue),
61 std::string docString;
65 typedef std::vector<Parameter> Parameters;
73 Texture(std::string
const & name,
75 std::string
const & docString =
"") :
77 defaultValue(defaultValue),
78 docString(docString) { }
82 std::string docString;
85 typedef std::vector<Texture> Textures;
95 std::string
const & docString =
"") :
97 defaultValue(defaultValue),
98 docString(docString) { }
102 std::string docString;
105 typedef std::vector<Attribute> Attributes;
113 std::string
const & input,
114 std::string
const & filename,
115 std::string *errorStr);
117 typedef std::vector<std::string> SourceKeys;
145 std::string *errorStr);
147 void _Init(
VtDictionary const & dict, std::string *errorStr);
150 std::string *errorStr)
const;
152 std::string *errorStr)
const;
155 std::string *errorStr)
const;
158 std::string *errorStr)
const;
160 typedef std::map<std::string, SourceKeys> _SourceKeyMap;
161 _SourceKeyMap _GetSourceKeyMap(
VtDictionary const & dict,
162 std::string *errorStr)
const;
167 Attributes _attributes;
169 _SourceKeyMap _sourceKeyMap;
173PXR_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...