All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HioGlslfxConfig Class Reference

A class representing the configuration of a glslfx file. More...

Classes

class  Attribute
 A class representing an attribute. More...
 
class  Parameter
 A class representing a parameter. More...
 
class  Texture
 A class representing a texture. More...
 

Public Types

enum  Role { RoleNone = 0, RoleColor = 1 }
 Enumerates Roles that parameters can have. More...
 
typedef std::vector< ParameterParameters
 
typedef std::vector< TextureTextures
 
typedef std::vector< AttributeAttributes
 
typedef std::vector< std::string > SourceKeys
 
typedef VtDictionary MetadataDictionary
 

Public Member Functions

HIO_API SourceKeys GetSourceKeys (TfToken const &shaderStageKey) const
 Return the set of source keys for a particular shader stage. More...
 
HIO_API Parameters GetParameters () const
 Return the parameters specified in the configuration. More...
 
HIO_API Textures GetTextures () const
 Return the textures specified in the configuration. More...
 
HIO_API Attributes GetAttributes () const
 Returns the attributes specified in the configuration. More...
 
HIO_API MetadataDictionary GetMetadata () const
 Returns the metadata specified in the configuration. More...
 

Static Public Member Functions

static HIO_API HioGlslfxConfigRead (TfToken const &technique, std::string const &input, std::string const &filename, std::string *errorStr)
 Create a new HioGlslfxConfig from an input string. More...
 

Detailed Description

A class representing the configuration of a glslfx file.

HioGlslfxConfig provides an API for querying the configuration of a glslfx file

Definition at line 45 of file glslfxConfig.h.

Member Enumeration Documentation

enum Role

Enumerates Roles that parameters can have.

enum Role:

  • RoleNone = 0 None: the default role
  • RoleColor = 1 Color: the role of a color

Definition at line 56 of file glslfxConfig.h.

Member Function Documentation

HIO_API Attributes GetAttributes ( ) const

Returns the attributes specified in the configuration.

HIO_API MetadataDictionary GetMetadata ( ) const

Returns the metadata specified in the configuration.

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 Textures GetTextures ( ) const

Return the textures specified in the configuration.

static HIO_API HioGlslfxConfig* Read ( TfToken const &  technique,
std::string const &  input,
std::string const &  filename,
std::string *  errorStr 
)
static

Create a new HioGlslfxConfig from an input string.

The filename parameter is only used for error reporting.


The documentation for this class was generated from the following file: