All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
shaderMetadataHelpers.h File Reference
+ Include dependency graph for shaderMetadataHelpers.h:

Go to the source code of this file.

Namespaces

 

Functions

SDR_API bool IsTruthy (const TfToken &propName, const NdrTokenMap &metadata)
 Determines if the given property in the metadata dictionary has a truthy value. More...
 
SDR_API const std::string & StringVal (const TfToken &propName, const NdrTokenMap &metadata)
 Extracts the string value from the given property. More...
 
SDR_API const std::string & StringVal (const TfToken &propName, const NdrTokenMap &metadata, const std::string &defaultValue)
 Extracts the string value from the given property if it exists, otherwise returns defaultValue. More...
 
SDR_API TfToken TokenVal (const TfToken &propName, const NdrTokenMap &metadata, const TfToken &defaultValue=TfToken())
 Extracts the tokenized value from the given property. More...
 
SDR_API NdrStringVec StringVecVal (const TfToken &propName, const NdrTokenMap &metadata)
 Extracts a vector of strings from the given property. More...
 
SDR_API NdrTokenVec TokenVecVal (const TfToken &propName, const NdrTokenMap &metadata)
 Extracts a vector of tokenized values from the given property. More...
 
SDR_API NdrOptionVec OptionVecVal (const std::string &optionStr)
 Extracts an "options" vector from the given string. More...
 
SDR_API std::string CreateStringFromStringVec (const NdrStringVec &stringVec)
 Serializes a vector of strings into a string using the pipe character as the delimiter. More...
 
SDR_API bool IsPropertyAnAssetIdentifier (const NdrTokenMap &metadata)
 Determines if the specified property metadata has a widget that indicates the property is an asset identifier. More...
 
SDR_API bool IsPropertyATerminal (const NdrTokenMap &metadata)
 Determines if the specified property metadata has a 'renderType' that indicates the property should be a SdrPropertyTypes->Terminal. More...
 
SDR_API TfToken GetRoleFromMetadata (const NdrTokenMap &metadata)
 Gets the "role" from metadata if one is provided. Only returns a value. More...