HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
tokens.h
Go to the documentation of this file.
1 //
2 // Copyright 2016 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 #ifndef USDSHADE_TOKENS_H
8 #define USDSHADE_TOKENS_H
9 
10 /// \file usdShade/tokens.h
11 
12 // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
13 //
14 // This is an automatically generated file (by usdGenSchema.py).
15 // Do not hand-edit!
16 //
17 // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
18 
19 #include "pxr/pxr.h"
20 #include "pxr/usd/usdShade/api.h"
21 #include "pxr/base/tf/staticData.h"
22 #include "pxr/base/tf/token.h"
23 #include <vector>
24 
26 
27 
28 /// \class UsdShadeTokensType
29 ///
30 /// \link UsdShadeTokens \endlink provides static, efficient
31 /// \link TfToken TfTokens\endlink for use in all public USD API.
32 ///
33 /// These tokens are auto-generated from the module's schema, representing
34 /// property names, for when you need to fetch an attribute or relationship
35 /// directly by name, e.g. UsdPrim::GetAttribute(), in the most efficient
36 /// manner, and allow the compiler to verify that you spelled the name
37 /// correctly.
38 ///
39 /// UsdShadeTokens also contains all of the \em allowedTokens values
40 /// declared for schema builtin attributes of 'token' scene description type.
41 /// Use UsdShadeTokens like so:
42 ///
43 /// \code
44 /// gprim.GetMyTokenValuedAttr().Set(UsdShadeTokens->allPurpose);
45 /// \endcode
48  /// \brief ""
49  ///
50  /// Possible value for the 'materialPurpose' parameter in the various methods available in UsdShadeMaterialBindingAPI. Its value is empty and its purpose is to represent a general purpose material-binding that applies in the absence of a specific-purpose binding.
52  /// \brief "bindMaterialAs"
53  ///
54  /// Token valued metadata key authored on a material binding relationship to indicate the strength of the binding relative to bindings authored on descendants.
56  /// \brief "coordSys"
57  ///
58  /// Property namespace prefix for the UsdShadeCoordSysAPI schema.
60  /// \brief "coordSys:__INSTANCE_NAME__:binding"
61  ///
62  /// UsdShadeCoordSysAPI
64  /// \brief "displacement"
65  ///
66  /// Describes the <i>displacement</i> output terminal on a UsdShadeMaterial. It is used to define the terminal UsdShadeShader describing the displacement of a UsdShadeMaterial.
68  /// \brief "fallbackStrength"
69  ///
70  /// Sentinal value to be used for 'bindMaterialAs' metadata's default value. Clients should pass this in for the 'bindingStrength' argument to UsdShadeMaterialBindingAPI::Bind(), if they want to author the default value (weakerThanDescendants) sparsely. The value "fallbackStrength" never gets authored into scene description.
72  /// \brief "full"
73  ///
74  /// Possible value for the 'materialPurpose' parameter in UsdShadeMaterialBindingAPI, to be used when the purpose of the render is entirely about visualizing the truest representation of a scene, considering all lighting and material information, at highest fidelity. , Possible value for 'connectability' metadata on a UsdShadeInput. When connectability of an input is set to "full", it implies that it can be connected to any input or output.
75  const TfToken full;
76  /// \brief "id"
77  ///
78  /// Fallback value for UsdShadeNodeDefAPI::GetImplementationSourceAttr()
79  const TfToken id;
80  /// \brief "info:id"
81  ///
82  /// UsdShadeNodeDefAPI
83  const TfToken infoId;
84  /// \brief "info:implementationSource"
85  ///
86  /// UsdShadeNodeDefAPI
88  /// \brief "inputs:"
89  ///
90  /// The prefix on shading attributes denoting an input.
91  const TfToken inputs;
92  /// \brief "interfaceOnly"
93  ///
94  /// Possible value for 'connectability' metadata on a UsdShadeInput. It implies that the input can only connect to a NodeGraph Input (which represents an interface override, not a render-time dataflow connection), or another Input whose connectability is also 'interfaceOnly'.
96  /// \brief "materialBind"
97  ///
98  /// The name of the GeomSubset family used to identify face subsets defined for the purpose of binding materials to facesets.
100  /// \brief "material:binding"
101  ///
102  /// The relationship name on non-shading prims to denote a binding to a UsdShadeMaterial.
104  /// \brief "material:binding:collection"
105  ///
106  /// The relationship name on non-shading prims to denote a collection-based binding to a UsdShadeMaterial.
108  /// \brief "materialVariant"
109  ///
110  /// The variant name of material variation described on a UsdShadeMaterial.
112  /// \brief "outputs:"
113  ///
114  /// The prefix on shading attributes denoting an output.
116  /// \brief "outputs:displacement"
117  ///
118  /// UsdShadeMaterial
120  /// \brief "outputs:surface"
121  ///
122  /// UsdShadeMaterial
124  /// \brief "outputs:volume"
125  ///
126  /// UsdShadeMaterial
128  /// \brief "preview"
129  ///
130  /// Possible value for the 'materialPurpose' parameter in UsdShadeMaterialBindingAPI, to be used when the render is in service of a goal other than a high fidelity "full" render (such as scene manipulation, modeling, or realtime playback). Latency and speed are generally of greater concern for preview renders, therefore preview materials are generally designed to be "lighterweight" compared to full materials.
132  /// \brief "sdrMetadata"
133  ///
134  /// Dictionary valued metadata key authored on Shader prims with implementationSource value of sourceAsset or sourceCode to pass along metadata to the shader parser or compiler. It is also used to author metadata on shader properties in a UsdShade-based shader definition file.
136  /// \brief "sourceAsset"
137  ///
138  /// Possible value for UsdShadeNodeDefAPI::GetImplementationSourceAttr()
140  /// \brief "sourceCode"
141  ///
142  /// Possible value for UsdShadeNodeDefAPI::GetImplementationSourceAttr()
144  /// \brief "strongerThanDescendants"
145  ///
146  /// Possible value for 'bindMaterialAs' metadata on the collection-based material binding relationship. Indicates that the binding represented by the relationship is stronger than any bindings authored on the descendants.
148  /// \brief "subIdentifier"
149  ///
150  /// This identifier is used in conjunction with a specific source asset to indicate a particular definition within the source asset, if the source asset specifies more than one shader node definition.
152  /// \brief "surface"
153  ///
154  /// Describes the <i>surface</i> output terminal on a UsdShadeMaterial. It is used to define the terminal UsdShadeShader describing the surface of a UsdShadeMaterial.
156  /// \brief ""
157  ///
158  /// Possible value for the "renderContext" parameter in \ref UsdShadeMaterial_Outputs API. Represents the universal renderContext. An output with a universal renderContext is applicable to all possible rendering contexts.
160  /// \brief ""
161  ///
162  /// Possible value for the "sourceType" parameter in \ref UsdShadeNodeDefAPI_ImplementationSource API. Represents the universal or fallback source type.
164  /// \brief "volume"
165  ///
166  /// Describes the <i>volume</i> output terminal on a UsdShadeMaterial. It is used to define the terminal UsdShadeShader describing the volume of a UsdShadeMaterial.
168  /// \brief "weakerThanDescendants"
169  ///
170  /// Possible value for 'bindMaterialAs' metadata on the collection-based material binding relationship. Indicates that the binding represented by the relationship is weaker than any bindings authored on the descendants.
172  /// \brief "ConnectableAPI"
173  ///
174  /// Schema identifer and family for UsdShadeConnectableAPI
176  /// \brief "CoordSysAPI"
177  ///
178  /// Schema identifer and family for UsdShadeCoordSysAPI
180  /// \brief "Material"
181  ///
182  /// Schema identifer and family for UsdShadeMaterial
184  /// \brief "MaterialBindingAPI"
185  ///
186  /// Schema identifer and family for UsdShadeMaterialBindingAPI
188  /// \brief "NodeDefAPI"
189  ///
190  /// Schema identifer and family for UsdShadeNodeDefAPI
192  /// \brief "NodeGraph"
193  ///
194  /// Schema identifer and family for UsdShadeNodeGraph
196  /// \brief "Shader"
197  ///
198  /// Schema identifer and family for UsdShadeShader
200  /// A vector of all of the tokens listed above.
201  const std::vector<TfToken> allTokens;
202 };
203 
204 /// \var UsdShadeTokens
205 ///
206 /// A global variable with static, efficient \link TfToken TfTokens\endlink
207 /// for use in all public USD API. \sa UsdShadeTokensType
209 
211 
212 #endif
const TfToken materialBindingCollection
"material:binding:collection"
Definition: tokens.h:107
const TfToken preview
"preview"
Definition: tokens.h:131
const TfToken CoordSysAPI
"CoordSysAPI"
Definition: tokens.h:179
#define USDSHADE_API
Definition: api.h:23
const TfToken ConnectableAPI
"ConnectableAPI"
Definition: tokens.h:175
USDSHADE_API TfStaticData< UsdShadeTokensType > UsdShadeTokens
const TfToken bindMaterialAs
"bindMaterialAs"
Definition: tokens.h:55
const TfToken fallbackStrength
"fallbackStrength"
Definition: tokens.h:71
const TfToken infoId
"info:id"
Definition: tokens.h:83
const TfToken materialBinding
"material:binding"
Definition: tokens.h:103
const std::vector< TfToken > allTokens
A vector of all of the tokens listed above.
Definition: tokens.h:201
const TfToken MaterialBindingAPI
"MaterialBindingAPI"
Definition: tokens.h:187
const TfToken weakerThanDescendants
"weakerThanDescendants"
Definition: tokens.h:171
const TfToken volume
"volume"
Definition: tokens.h:167
const TfToken Material
"Material"
Definition: tokens.h:183
const TfToken outputs
"outputs:"
Definition: tokens.h:115
const TfToken materialVariant
"materialVariant"
Definition: tokens.h:111
const TfToken coordSys
"coordSys"
Definition: tokens.h:59
const TfToken Shader
"Shader"
Definition: tokens.h:199
const TfToken universalRenderContext
""
Definition: tokens.h:159
Definition: token.h:70
const TfToken interfaceOnly
"interfaceOnly"
Definition: tokens.h:95
const TfToken outputsDisplacement
"outputs:displacement"
Definition: tokens.h:119
const TfToken subIdentifier
"subIdentifier"
Definition: tokens.h:151
const TfToken displacement
"displacement"
Definition: tokens.h:67
const TfToken NodeDefAPI
"NodeDefAPI"
Definition: tokens.h:191
const TfToken sdrMetadata
"sdrMetadata"
Definition: tokens.h:135
const TfToken universalSourceType
""
Definition: tokens.h:163
const TfToken surface
"surface"
Definition: tokens.h:155
const TfToken materialBind
"materialBind"
Definition: tokens.h:99
const TfToken sourceAsset
"sourceAsset"
Definition: tokens.h:139
const TfToken outputsSurface
"outputs:surface"
Definition: tokens.h:123
const TfToken id
"id"
Definition: tokens.h:79
const TfToken infoImplementationSource
"info:implementationSource"
Definition: tokens.h:87
const TfToken full
"full"
Definition: tokens.h:75
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
const TfToken NodeGraph
"NodeGraph"
Definition: tokens.h:195
const TfToken allPurpose
""
Definition: tokens.h:51
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
USDSHADE_API UsdShadeTokensType()
const TfToken sourceCode
"sourceCode"
Definition: tokens.h:143
const TfToken strongerThanDescendants
"strongerThanDescendants"
Definition: tokens.h:147
const TfToken outputsVolume
"outputs:volume"
Definition: tokens.h:127
const TfToken coordSys_MultipleApplyTemplate_Binding
"coordSys:__INSTANCE_NAME__:binding"
Definition: tokens.h:63
const TfToken inputs
"inputs:"
Definition: tokens.h:91