HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
shaderMetadataHelpers.h File Reference
#include "pxr/pxr.h"
#include "pxr/usd/sdr/api.h"
#include "pxr/base/tf/token.h"
#include "pxr/usd/sdr/declare.h"
#include <limits>
+ Include dependency graph for shaderMetadataHelpers.h:

Go to the source code of this file.

Namespaces

 

Functions

SDR_API bool ShaderMetadataHelpers::IsTruthy (const TfToken &key, const NdrTokenMap &metadata)
 
SDR_API std::string ShaderMetadataHelpers::StringVal (const TfToken &key, const NdrTokenMap &metadata, const std::string &defaultValue=std::string())
 
SDR_API TfToken ShaderMetadataHelpers::TokenVal (const TfToken &key, const NdrTokenMap &metadata, const TfToken &defaultValue=TfToken())
 
SDR_API int ShaderMetadataHelpers::IntVal (const TfToken &key, const NdrTokenMap &metadata, int defaultValue=std::numeric_limits< int >::max())
 
SDR_API NdrStringVec ShaderMetadataHelpers::StringVecVal (const TfToken &key, const NdrTokenMap &metadata)
 
SDR_API NdrTokenVec ShaderMetadataHelpers::TokenVecVal (const TfToken &key, const NdrTokenMap &metadata)
 
SDR_API NdrOptionVec ShaderMetadataHelpers::OptionVecVal (const std::string &optionStr)
 Extracts an "options" vector from the given string. More...
 
SDR_API std::string ShaderMetadataHelpers::CreateStringFromStringVec (const NdrStringVec &stringVec)
 
SDR_API bool ShaderMetadataHelpers::IsPropertyAnAssetIdentifier (const NdrTokenMap &metadata)
 
SDR_API bool ShaderMetadataHelpers::IsPropertyATerminal (const NdrTokenMap &metadata)
 
SDR_API TfToken ShaderMetadataHelpers::GetRoleFromMetadata (const NdrTokenMap &metadata)
 Gets the "role" from metadata if one is provided. Only returns a value. More...