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"
37PXR_NAMESPACE_OPEN_SCOPE
102 template <
typename T>
104 return _attr.
Set(value, time);
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;
529PXR_NAMESPACE_CLOSE_SCOPE
A path value used to locate objects in layers or scenegraphs.
Represents a value type name, i.e.
This is a small-vector class with local storage optimization, the local storage can be specified via ...
Token for efficient comparison, assignment, and hashing of known strings.
Scenegraph object for authoring and retrieving numeric, string, and array valued data,...
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,...
bool Get(T *value, UsdTimeCode time=UsdTimeCode::Default()) const
Perform value resolution to fetch the value of this attribute at the requested UsdTimeCode time,...
UsdPrim GetPrim() const
Return this object if it is a prim, otherwise return this object's nearest owning prim.
const TfToken & GetName() const
Return the full name of this object, i.e.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
UsdShadeConnectableAPI is an API schema that provides a common interface for creating outputs and mak...
This class encapsulates a shader or node-graph output, which is a connectable attribute representing ...
Represent a time value, which may be either numeric, holding a double value, or a sentinel value UsdT...
static constexpr UsdTimeCode Default()
Produce a UsdTimeCode representing the sentinel value for 'default'.
Provides a container which may hold any type, and provides introspection and iteration over array typ...
A compact struct to represent a bundle of information about an upstream source attribute.
size_t hash_value(const TfToken &x)
Overload hash_value for TfToken.
Common typedefs that are used throughout the NDR library.