7#ifndef PXR_USD_USD_SHADE_INPUT_H
8#define PXR_USD_USD_SHADE_INPUT_H
11#include "pxr/usd/usdShade/api.h"
12#include "pxr/usd/usdShade/types.h"
13#include "pxr/usd/usdShade/utils.h"
14#include "pxr/usd/usd/attribute.h"
20PXR_NAMESPACE_OPEN_SCOPE
87 return _attr.
Set(value, time);
162 const std::string &value)
const;
222 return _attr &&
IsInput(_attr);
255 explicit operator bool()
const {
268 return !(lhs == rhs);
291 using ConnectionModification = UsdShadeConnectionModification;
318 ConnectionModification
const mod =
319 ConnectionModification::Replace)
const;
327 UsdShadeAttributeType
const sourceType=UsdShadeAttributeType::Output,
357 std::vector<UsdShadeConnectionSourceInfo>
const &sourceInfos)
const;
380 SdfPathVector *invalidSourcePaths =
nullptr)
const;
386 UsdShadeAttributeType *sourceType)
const;
490 bool shaderOutputsOnly =
false)
const;
495 UsdShadeAttributeType* attrType)
const;
512PXR_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.