Loading...
Searching...
No Matches
shaderNodeDiscoveryResult.h
Go to the documentation of this file.
1//
2// Copyright 2025 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7
8#ifndef PXR_USD_SDR_NODE_DISCOVERY_RESULT_H
9#define PXR_USD_SDR_NODE_DISCOVERY_RESULT_H
10
12
13#include "pxr/usd/sdr/declare.h"
14
15PXR_NAMESPACE_OPEN_SCOPE
16
23 const SdrVersion& version,
24 const std::string& name,
25 const TfToken& family,
27 const TfToken& sourceType,
28 const std::string& uri,
29 const std::string& resolvedUri,
30 const std::string &sourceCode=std::string(),
31 const SdrTokenMap &metadata=SdrTokenMap(),
32 const std::string& blindData=std::string(),
36 name(name),
40 uri(uri),
46 { }
47
55
60
67 std::string name;
68
75
83
90
95 std::string uri;
96
103 std::string resolvedUri;
104
109 std::string sourceCode;
110
117 SdrTokenMap metadata;
118
122 std::string blindData;
123
132};
133
134typedef std::vector<SdrShaderNodeDiscoveryResult> SdrShaderNodeDiscoveryResultVec;
135
136PXR_NAMESPACE_CLOSE_SCOPE
137
138#endif // PXR_USD_SDR_NODE_DISCOVERY_RESULT_H
SdrVersion.
Definition: declare.h:67
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
Represents the raw data of a node, and some other bits of metadata, that were determined via a SdrDis...
std::string uri
The node's origin.
TfToken subIdentifier
The subIdentifier is associated with a particular asset and refers to a specific definition within th...
SdrShaderNodeDiscoveryResult(const SdrIdentifier &identifier, const SdrVersion &version, const std::string &name, const TfToken &family, const TfToken &discoveryType, const TfToken &sourceType, const std::string &uri, const std::string &resolvedUri, const std::string &sourceCode=std::string(), const SdrTokenMap &metadata=SdrTokenMap(), const std::string &blindData=std::string(), const TfToken &subIdentifier=TfToken())
Constructor.
std::string sourceCode
The node's entire source code.
TfToken family
The node's family.
TfToken discoveryType
The node's discovery type.
SdrTokenMap metadata
The node's metadata collected during the discovery process.
TfToken sourceType
The node's source type.
std::string name
The node's name.
std::string resolvedUri
The node's fully-resolved URI.
std::string blindData
An optional detail for the parser plugin.
SdrIdentifier identifier
The node's identifier.
SdrVersion version
The node's version.