24 #ifndef USDSHADE_GENERATED_NODEGRAPH_H
25 #define USDSHADE_GENERATED_NODEGRAPH_H
166 static const TfType &_GetStaticTfType();
168 static bool _IsTypedSchema();
172 const TfType &_GetTfType()
const override;
232 std::vector<UsdShadeOutput>
GetOutputs(
bool onlyAuthored=
true)
const;
313 std::vector<UsdShadeInput>
GetInputs(
bool onlyAuthored=
true)
const;
354 typedef std::unordered_map<UsdShadeInput, std::vector<UsdShadeInput>,
381 bool computeTransitiveConsumers=
false)
const;
virtual USDSHADE_API ~UsdShadeNodeGraph()
Destructor.
std::unordered_map< UsdShadeInput, std::vector< UsdShadeInput >, UsdShadeInput::Hash > InterfaceInputConsumersMap
USDSHADE_API UsdShadeShader ComputeOutputSource(const TfToken &outputName, TfToken *sourceName, UsdShadeAttributeType *sourceType) const
std::unordered_map< UsdShadeNodeGraph, InterfaceInputConsumersMap, NodeGraphHasher, NodeGraphEqualFn > NodeGraphInputConsumersMap
Map of node-graphs to their associated input-consumers map.
bool operator()(UsdShadeNodeGraph const &s1, UsdShadeNodeGraph const &s2) const
GLsizei const GLchar *const * path
USDSHADE_API std::vector< UsdShadeInput > GetInputs(bool onlyAuthored=true) const
USDSHADE_API UsdShadeConnectableAPI ConnectableAPI() const
UsdShadeNodeGraph(const UsdPrim &prim=UsdPrim())
static USDSHADE_API UsdShadeNodeGraph Get(const UsdStagePtr &stage, const SdfPath &path)
Represents a concrete typed schema.
USDSHADE_API std::vector< UsdShadeInput > GetInterfaceInputs() const
UsdShadeNodeGraph(const UsdSchemaBase &schemaObj)
USDSHADE_API std::vector< UsdShadeOutput > GetOutputs(bool onlyAuthored=true) const
static USDSHADE_API const TfTokenVector & GetSchemaAttributeNames(bool includeInherited=true)
static const UsdSchemaKind schemaKind
std::vector< TfToken > TfTokenVector
Convenience types.
GLuint const GLchar * name
USDSHADE_API UsdShadeOutput GetOutput(const TfToken &name) const
size_t operator()(const UsdShadeNodeGraph &nodeGraph) const
Hash functor for UsdShadeNodeGraph objects.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
USDSHADE_API UsdShadeOutput CreateOutput(const TfToken &name, const SdfValueTypeName &typeName) const
static USDSHADE_API UsdShadeNodeGraph Define(const UsdStagePtr &stage, const SdfPath &path)
USDSHADE_API UsdShadeInput CreateInput(const TfToken &name, const SdfValueTypeName &typeName) const
USDSHADE_API UsdShadeInput GetInput(const TfToken &name) const
size_t hash_value(const CH_ChannelRef &ref)
USDSHADE_API InterfaceInputConsumersMap ComputeInterfaceInputConsumersMap(bool computeTransitiveConsumers=false) const
Equality comparator for UsdShadeNodeGraph objects.
UsdPrim GetPrim() const
Return this schema object's held prim.
USDSHADE_API UsdSchemaKind _GetSchemaKind() const override