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 USDHYDRA_TOKENS_H
8 #define USDHYDRA_TOKENS_H
9 
10 /// \file usdHydra/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/usdHydra/api.h"
21 #include "pxr/base/tf/staticData.h"
22 #include "pxr/base/tf/token.h"
23 #include <vector>
24 
26 
27 
28 /// \class UsdHydraTokensType
29 ///
30 /// \link UsdHydraTokens \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 /// UsdHydraTokens also contains all of the \em allowedTokens values
40 /// declared for schema builtin attributes of 'token' scene description type.
41 /// Use UsdHydraTokens like so:
42 ///
43 /// \code
44 /// gprim.GetMyTokenValuedAttr().Set(UsdHydraTokens->black);
45 /// \endcode
48  /// \brief "black"
49  ///
50  /// Possible value for "wrapT" and "wrapS" inputs on a "UvTexture" shader prim. Causes black to be returned when sampling outside the bounds of the texture.
51  const TfToken black;
52  /// \brief "clamp"
53  ///
54  /// Possible value for "wrapT" and "wrapS" inputs on a "UvTexture" shader prim. Causes the the texture coordinate to be clamped to [0,1].
55  const TfToken clamp;
56  /// \brief "displayLook:bxdf"
57  ///
58  /// deprecated This has been deprecated in favor of the glslfx:surface output. Relationship on a material that targets the "bxdf" or the surface shader prim.
60  /// \brief "faceIndex"
61  ///
62  /// The "faceIndex" shader input on a hydra "PtexTexture" shader.
64  /// \brief "faceOffset"
65  ///
66  /// The "faceOffset" shader input on a hydra "PtexTexture" shader.
68  /// \brief "frame"
69  ///
70  /// A shader input on a "Texture" shader.
71  const TfToken frame;
72  /// \brief "HwPrimvar_1"
73  ///
74  /// The id value of a Primvar shader.
76  /// \brief "HwPtexTexture_1"
77  ///
78  /// The id value of a PtexTexture shader.
80  /// \brief "HwUvTexture_1"
81  ///
82  /// The id value of a UvTexture shader.
84  /// \brief "hydraGenerativeProcedural"
85  ///
86  /// Fallback value for UsdHydraGenerativeProceduralAPI::GetProceduralSystemAttr()
88  /// \brief "inputs:file"
89  ///
90  /// The special "info:filename" property of a hydra Texture shader, which points to a resolvable texture asset.
92  /// \brief "inputs:varname"
93  ///
94  ///
96  /// \brief "linear"
97  ///
98  /// A weighted linear blend of nearest adjacent samples. Possible value for "minFilter" and "magFilter" inputs on a UvTextureshader.
99  const TfToken linear;
100  /// \brief "linearMipmapLinear"
101  ///
102  /// See https://www.opengl.org/wiki/Sampler_Object , Possible value for the "minFilter" input on a UvTexture shader.
104  /// \brief "linearMipmapNearest"
105  ///
106  /// See https://www.opengl.org/wiki/Sampler_Object Possible value for the "minFilter" input on a UvTexture shader.
108  /// \brief "magFilter"
109  ///
110  /// An input on a UvTexture shader.
112  /// \brief "minFilter"
113  ///
114  /// An input on a UvTexture shader.
116  /// \brief "mirror"
117  ///
118  /// Possible value for "wrapT" and "wrapS" inputs on a "UvTexture" shader prim. Causes the texture coordinate to wrap around like a mirror. -0.2 becomes 0.2, -1.2 becomes 0.8, etc. ,
120  /// \brief "nearest"
121  ///
122  /// Selects the nearest sample for the given coordinate Possible value for "minFilter" and "magFilter" inputs on a UvTexture shader.
124  /// \brief "nearestMipmapLinear"
125  ///
126  /// See https://www.opengl.org/wiki/Sampler_Object Possible value for "minFilter" and "magFilter" inputs on a UvTexture shader.
128  /// \brief "nearestMipmapNearest"
129  ///
130  /// See https://www.opengl.org/wiki/Sampler_Object Possible value for the "minFilter" input on a UvTexture shader.
132  /// \brief "primvars:hdGp:proceduralType"
133  ///
134  /// UsdHydraGenerativeProceduralAPI
136  /// \brief "proceduralSystem"
137  ///
138  /// UsdHydraGenerativeProceduralAPI
140  /// \brief "repeat"
141  ///
142  /// Possible value for "wrapT" and "wrapS" inputs on a "UvTexture" shader prim. Causes the texture coordinate to wrap around the texture. So a texture coordinate of -0.2 becomes the equivalent of 0.8.
144  /// \brief "textureMemory"
145  ///
146  /// A shader input on a hydra Texture shader.
148  /// \brief "useMetadata"
149  ///
150  /// Possible value for "wrapT" and "wrapS" inputs on a "UvTexture" shader prim. Causes the wrap value to be loaded from the texture file instead of being specified in the prim. If the texture file doesn't support metadata or the metadata doesn't contain a wrap mode, the "black" wrap mode is used.
152  /// \brief "uv"
153  ///
154  /// A shader input on a hydra UvTexture shader.
155  const TfToken uv;
156  /// \brief "wrapS"
157  ///
158  /// A shader input on a hydra UvTexture shader which defines the behavior of texture coordinates that are outside the bounds of the texture.
159  const TfToken wrapS;
160  /// \brief "wrapT"
161  ///
162  /// A shader input on a hydra UvTexture shader which defines the behavior of texture coordinates that are outside the bounds of the texture.
163  const TfToken wrapT;
164  /// \brief "HydraGenerativeProceduralAPI"
165  ///
166  /// Schema identifer and family for UsdHydraGenerativeProceduralAPI
168  /// A vector of all of the tokens listed above.
169  const std::vector<TfToken> allTokens;
170 };
171 
172 /// \var UsdHydraTokens
173 ///
174 /// A global variable with static, efficient \link TfToken TfTokens\endlink
175 /// for use in all public USD API. \sa UsdHydraTokensType
177 
179 
180 #endif
const TfToken faceIndex
"faceIndex"
Definition: tokens.h:63
const TfToken repeat
"repeat"
Definition: tokens.h:143
const TfToken HwPrimvar_1
"HwPrimvar_1"
Definition: tokens.h:75
const TfToken frame
"frame"
Definition: tokens.h:71
const TfToken infoFilename
"inputs:file"
Definition: tokens.h:91
#define USDHYDRA_API
Definition: api.h:23
const std::vector< TfToken > allTokens
A vector of all of the tokens listed above.
Definition: tokens.h:169
const TfToken mirror
"mirror"
Definition: tokens.h:119
const TfToken proceduralSystem
"proceduralSystem"
Definition: tokens.h:139
Definition: token.h:70
const TfToken wrapS
"wrapS"
Definition: tokens.h:159
const TfToken linearMipmapNearest
"linearMipmapNearest"
Definition: tokens.h:107
const TfToken hydraGenerativeProcedural
"hydraGenerativeProcedural"
Definition: tokens.h:87
USDHYDRA_API UsdHydraTokensType()
const TfToken textureMemory
"textureMemory"
Definition: tokens.h:147
const TfToken black
"black"
Definition: tokens.h:51
const TfToken uv
"uv"
Definition: tokens.h:155
USDHYDRA_API TfStaticData< UsdHydraTokensType > UsdHydraTokens
const TfToken nearestMipmapLinear
"nearestMipmapLinear"
Definition: tokens.h:127
const TfToken displayLookBxdf
"displayLook:bxdf"
Definition: tokens.h:59
const TfToken linear
"linear"
Definition: tokens.h:99
const TfToken wrapT
"wrapT"
Definition: tokens.h:163
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
const TfToken HydraGenerativeProceduralAPI
"HydraGenerativeProceduralAPI"
Definition: tokens.h:167
const TfToken nearestMipmapNearest
"nearestMipmapNearest"
Definition: tokens.h:131
const TfToken clamp
"clamp"
Definition: tokens.h:55
const TfToken primvarsHdGpProceduralType
"primvars:hdGp:proceduralType"
Definition: tokens.h:135
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
const TfToken magFilter
"magFilter"
Definition: tokens.h:111
const TfToken HwPtexTexture_1
"HwPtexTexture_1"
Definition: tokens.h:79
const TfToken faceOffset
"faceOffset"
Definition: tokens.h:67
const TfToken nearest
"nearest"
Definition: tokens.h:123
const TfToken HwUvTexture_1
"HwUvTexture_1"
Definition: tokens.h:83
const TfToken linearMipmapLinear
"linearMipmapLinear"
Definition: tokens.h:103
const TfToken useMetadata
"useMetadata"
Definition: tokens.h:151
const TfToken minFilter
"minFilter"
Definition: tokens.h:115
const TfToken infoVarname
"inputs:varname"
Definition: tokens.h:95