25 #ifndef PXR_USD_SDR_SHADER_PROPERTY_H
26 #define PXR_USD_SDR_SHADER_PROPERTY_H
43 #define SDR_PROPERTY_TYPE_TOKENS \
45 ((String, "string")) \
49 ((Normal, "normal")) \
50 ((Vector, "vector")) \
51 ((Matrix, "matrix")) \
52 ((Struct, "struct")) \
53 ((Terminal, "terminal")) \
54 ((Vstruct, "vstruct")) \
55 ((Unknown, "unknown"))
60 #define SDR_PROPERTY_METADATA_TOKENS \
64 ((RenderType, "renderType")) \
66 ((Widget, "widget")) \
68 ((Options, "options")) \
69 ((IsDynamicArray, "isDynamicArray")) \
70 ((Connectable, "connectable")) \
71 ((ValidConnectionTypes, "validConnectionTypes")) \
72 ((VstructMemberOf, "vstructMemberOf")) \
73 ((VstructMemberName, "vstructMemberName")) \
74 ((VstructConditionalExpr, "vstructConditionalExpr"))\
75 ((IsAssetIdentifier, "__SDR__isAssetIdentifier"))\
76 ((ImplementationName, "__SDR__implementationName"))\
77 ((DefaultInput, "__SDR__defaultinput")) \
78 ((Target, "__SDR__target")) \
79 ((Colorspace, "__SDR__colorspace"))
83 #define SDR_PROPERTY_ROLE_TOKENS \
252 SdrShaderProperty&
operator=(
const SdrShaderProperty&) =
delete;
257 friend void SdrShaderNode::_PostProcessProperties();
276 #endif // PXR_USD_SDR_SHADER_PROPERTY_H
SDR_API const TfToken & GetLabel() const
SDR_API const TfToken & GetPage() const
The page (group), eg "Advanced", this property appears on, if any.
std::vector< TfToken > NdrTokenVec
std::vector< NdrOption > NdrOptionVec
SDR_API bool CanConnectTo(const NdrProperty &other) const override
Determines if this property can be connected to the specified property.
NdrTokenVec _validConnectionTypes
GLuint const GLchar * name
SDR_API SdrShaderProperty(const TfToken &name, const TfToken &type, const VtValue &defaultValue, bool isOutput, size_t arraySize, const NdrTokenMap &metadata, const NdrTokenMap &hints, const NdrOptionVec &options)
SDR_API const NdrTokenVec & GetValidConnectionTypes() const
TfToken _vstructMemberName
#define SDR_PROPERTY_TYPE_TOKENS
SDR_API const TfToken & GetVStructMemberOf() const
If this field is part of a vstruct, this is the name of the struct.
SDR_API const TfToken & GetVStructConditionalExpr() const
If this field is part of a vstruct, this is the conditional expression.
std::pair< SdfValueTypeName, TfToken > NdrSdfTypeIndicator
SDR_API const TfToken & GetWidget() const
GLint GLint GLsizei GLint GLenum GLenum type
SDR_API const TfToken & GetVStructMemberName() const
If this field is part of a vstruct, this is its name in the struct.
GLsizei const GLchar *const * string
#define SDR_PROPERTY_ROLE_TOKENS
SDR_API const NdrTokenMap & GetHints() const
SDR_API std::string GetImplementationName() const
SDR_API const NdrSdfTypeIndicator GetTypeAsSdfType() const override
SDR_API bool IsDefaultInput() const
SDR_API bool IsAssetIdentifier() const
const NdrOptionVec _options
#define SDR_PROPERTY_METADATA_TOKENS
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
SdrShaderProperty & operator=(const SdrShaderProperty &)=delete
SDR_API bool IsConnectable() const override
TF_DECLARE_PUBLIC_TOKENS(SdrPropertyTypes, SDR_API, SDR_PROPERTY_TYPE_TOKENS)
#define PXR_NAMESPACE_CLOSE_SCOPE
SDR_API bool IsVStructMember() const
Returns true if this field is part of a vstruct.
std::unordered_map< TfToken, std::string, TfToken::HashFunctor > NdrTokenMap
TfToken _vstructConditionalExpr
SDR_API std::string GetHelp() const
The help message assigned to this property, if any.
SDR_API bool IsVStruct() const
Returns true if the field is the head of a vstruct.
SDR_API const NdrOptionVec & GetOptions() const