24 #ifndef PXR_USD_USD_SHADE_INPUT_H 25 #define PXR_USD_USD_SHADE_INPUT_H 28 #include "pxr/usd/usdShade/api.h" 29 #include "pxr/usd/usdShade/types.h" 30 #include "pxr/usd/usdShade/utils.h" 31 #include "pxr/usd/usd/attribute.h" 37 PXR_NAMESPACE_OPEN_SCOPE
102 template <
typename T>
104 return _attr.
Set(value, time);
110 return hash_value(input._attr);
179 const std::string &value)
const;
239 return _attr &&
IsInput(_attr);
272 explicit operator bool()
const {
285 return !(lhs == rhs);
308 using ConnectionModification = UsdShadeConnectionModification;
335 ConnectionModification
const mod =
336 ConnectionModification::Replace)
const;
344 UsdShadeAttributeType
const sourceType=UsdShadeAttributeType::Output,
374 std::vector<UsdShadeConnectionSourceInfo>
const &sourceInfos)
const;
397 SdfPathVector *invalidSourcePaths =
nullptr)
const;
403 UsdShadeAttributeType *sourceType)
const;
507 bool shaderOutputsOnly =
false)
const;
512 UsdShadeAttributeType* attrType)
const;
529 PXR_NAMESPACE_CLOSE_SCOPE
531 #endif // PXR_USD_USD_SHADE_INPUT_H
bool Get(T *value, UsdTimeCode time=UsdTimeCode::Default()) const
Perform value resolution to fetch the value of this attribute at the requested UsdTimeCode time,...
This is a small-vector class with local storage optimization, the local storage can be specified via ...
Represents a value type name, i.e.
Scenegraph object for authoring and retrieving numeric, string, and array valued data,...
Token for efficient comparison, assignment, and hashing of known strings.
Represent a time value, which may be either numeric, holding a double value, or a sentinel value UsdT...
UsdShadeConnectableAPI is an API schema that provides a common interface for creating outputs and mak...
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
A path value used to locate objects in layers or scenegraphs.
bool Set(const T &value, UsdTimeCode time=UsdTimeCode::Default()) const
Set the value of this attribute in the current UsdEditTarget to value at UsdTimeCode time,...
static constexpr UsdTimeCode Default()
Produce a UsdTimeCode representing the sentinel value for 'default'.
const TfToken & GetName() const
Return the full name of this object, i.e.
A compact struct to represent a bundle of information about an upstream source attribute.
This class encapsulates a shader or node-graph output, which is a connectable attribute representing ...
UsdPrim GetPrim() const
Return this object if it is a prim, otherwise return this object's nearest owning prim.
Provides a container which may hold any type, and provides introspection and iteration over array typ...