24 #ifndef PXR_USD_USD_SHADE_OUTPUT_H
25 #define PXR_USD_USD_SHADE_OUTPUT_H
98 return attr.Set(value,
time);
318 std::vector<UsdShadeConnectionSourceInfo>
const &sourceInfos)
const;
410 bool shaderOutputsOnly =
false)
const;
416 explicit operator bool()
const {
429 return !(lhs == rhs);
448 #endif // PXR_USD_USD_SHADE_OUTPUT_H
USDSHADE_API SdfValueTypeName GetTypeName() const
USDSHADE_API bool HasSdrMetadataByKey(const TfToken &key) const
USDSHADE_API bool HasConnectedSource() const
USDSHADE_API void SetSdrMetadata(const NdrTokenMap &sdrMetadata) const
static constexpr UsdTimeCode Default()
USDSHADE_API bool Set(const VtValue &value, UsdTimeCode time=UsdTimeCode::Default()) const
GT_API const UT_StringHolder time
GLsizei const GLchar *const * string
UsdShadeConnectionModification
USDSHADE_API bool HasRenderType() const
USDSHADE_API bool ClearSources() const
USDSHADE_API TfToken GetRenderType() const
friend bool operator!=(const UsdShadeOutput &lhs, const UsdShadeOutput &rhs)
USDSHADE_API bool CanConnect(const UsdAttribute &source) const
USDSHADE_API void ClearSdrMetadataByKey(const TfToken &key) const
USDSHADE_API bool SetRenderType(TfToken const &renderType) const
const UsdAttribute & GetAttr() const
Explicit UsdAttribute extractor.
USDSHADE_API std::string GetSdrMetadataByKey(const TfToken &key) const
USDSHADE_API bool ConnectToSource(UsdShadeConnectionSourceInfo const &source, ConnectionModification const mod=ConnectionModification::Replace) const
GLsizei GLsizei GLchar * source
USDSHADE_API UsdShadeAttributeVector GetValueProducingAttributes(bool shaderOutputsOnly=false) const
Find what is connected to this Output recursively.
GLuint const GLchar * name
const TfToken & GetName() const
std::vector< class SdfPath > SdfPathVector
A vector of SdfPaths.
USDSHADE_API bool HasSdrMetadata() const
USDSHADE_API void ClearSdrMetadata() const
USDSHADE_API TfToken GetBaseName() const
USDSHADE_API bool GetRawConnectedSourcePaths(SdfPathVector *sourcePaths) const
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
bool Set(const T &value, UsdTimeCode time=UsdTimeCode::Default()) const
USDSHADE_API bool SetConnectedSources(std::vector< UsdShadeConnectionSourceInfo > const &sourceInfos) const
USDSHADE_API void SetSdrMetadataByKey(const TfToken &key, const std::string &value) const
#define PXR_NAMESPACE_CLOSE_SCOPE
USDSHADE_API SourceInfoVector GetConnectedSources(SdfPathVector *invalidSourcePaths=nullptr) const
UsdPrim GetPrim() const
Get the prim that the output belongs to.
USDSHADE_API NdrTokenMap GetSdrMetadata() const
TfToken const & GetFullName() const
std::unordered_map< TfToken, std::string, TfToken::HashFunctor > NdrTokenMap
USDSHADE_API bool IsSourceConnectionFromBaseMaterial() const
static USDSHADE_API bool IsOutput(const UsdAttribute &attr)
USDSHADE_API bool GetConnectedSource(UsdShadeConnectableAPI *source, TfToken *sourceName, UsdShadeAttributeType *sourceType) const
friend bool operator==(const UsdShadeOutput &lhs, const UsdShadeOutput &rhs)
USDSHADE_API bool DisconnectSource(UsdAttribute const &sourceAttr=UsdAttribute()) const
USDSHADE_API bool ClearSource() const