7#ifndef PXR_IMAGING_HD_TOKENS_H
8#define PXR_IMAGING_HD_TOKENS_H
11#include "pxr/imaging/hd/api.h"
12#include "pxr/imaging/hd/version.h"
16PXR_NAMESPACE_OPEN_SCOPE
30 (centripetalCatmullRom) \
50 (elementsVisibility) \
71 (nonlinearSampleCount) \
97 (topologyVisibility) \
113 ((bSpline, "bspline"))
115#define HD_INSTANCER_TOKENS \
116 (culledInstanceIndices) \
118 (instancerTransform) \
119 (instancerTransformInverse) \
121 (instanceIndexBase) \
124 ((instanceTransforms, "hydra:instanceTransforms")) \
125 ((instanceRotations, "hydra:instanceRotations")) \
126 ((instanceScales, "hydra:instanceScales")) \
127 ((instanceTranslations, "hydra:instanceTranslations"))
129#define HD_REPR_TOKENS \
136 (refinedWireOnSurf) \
140#define HD_CULLSTYLE_TOKENS \
145 (backUnlessDoubleSided) \
146 (frontUnlessDoubleSided)
148#define HD_MODEL_DRAWMODE_TOKENS \
153 ((default_, "default")) \
158#define HD_PERF_TOKENS \
160 (basisCurvesTopology) \
161 (bufferSourcesResolved) \
162 (bufferArrayRangeMigrated) \
163 (bufferArrayRangeContainerResized) \
164 (computationsCommited) \
168 (dirtyListsRebuilt) \
170 (garbageCollectedSsbo) \
171 (garbageCollectedUbo) \
172 (garbageCollectedVbo) \
174 (instBasisCurvesTopology) \
175 (instBasisCurvesTopologyRange) \
176 (instExtComputationDataRange) \
178 (instMeshTopologyRange) \
180 (instVertexAdjacency) \
183 (numCompletedSamples) \
186 (quadrangulateFaceVarying) \
187 (quadrangulatedVerts) \
191 (skipInvisibleRprimSync) \
192 (subdivisionRefineCPU) \
193 (subdivisionRefineGPU) \
195 (triangulateFaceVarying) \
200#define HD_SHADER_TOKENS \
203 (commonShaderSource) \
208 (displacementShader) \
211 (imageToWorldMatrix) \
212 (imageToHorizontallyNormalizedFilmback) \
214 (lightingBlendAmount) \
220 (pointSelectedSize) \
223 (tessControlShader) \
225 (postTessControlShader) \
226 (postTessVertexShader) \
231 (worldToViewMatrix) \
232 (worldToViewInverseMatrix) \
238#define HD_MATERIALTAG_TOKENS \
243#define HD_MATERIAL_TERMINAL_TOKENS \
251#define HD_RENDERTAG_TOKENS \
258#define HD_RENDER_CONTEXT_TOKENS \
261#define HD_OPTION_TOKENS \
264#define HD_RPRIMTYPE_TOKENS \
286#define HD_LIGHT_TYPE_TOKENS \
298#define HD_LIGHT_FILTER_TYPE_TOKENS \
301#define HD_SPRIMTYPE_TOKENS \
314 HD_LIGHT_TYPE_TOKENS \
315 HD_LIGHT_FILTER_TYPE_TOKENS \
320#define HD_BPRIMTYPE_TOKENS \
325#define HD_PRIMTYPE_TOKENS \
326 HD_RPRIMTYPE_TOKENS \
327 HD_SPRIMTYPE_TOKENS \
328 HD_BPRIMTYPE_TOKENS \
334bool HdPrimTypeIsGprim(
TfToken const& primType);
337bool HdPrimTypeIsLight(
TfToken const& primType);
340bool HdPrimTypeSupportsGeomSubsets(
const TfToken& primType);
345#define HD_PRIMVAR_ROLE_TOKENS \
357#define HD_AOV_TOKENS \
403 ((primvars, "primvars:")) \
421 ((shader, "shader:"))
433#define HD_RENDER_SETTINGS_TOKENS \
436 (enableSceneMaterials) \
437 (enableSceneLights) \
438 (domeLightCameraVisibility) \
440 (convergedVariance) \
441 (convergedSamplesPerPixel) \
447#define HD_RENDER_SETTINGS_PRIM_TOKENS \
449 (namespacedSettings) \
452 (materialBindingPurposes) \
453 (renderingColorSpace) \
458#define HD_ASPECT_RATIO_CONFORM_POLICY \
459 (adjustApertureWidth) \
460 (adjustApertureHeight) \
463 (adjustPixelAspectRatio) \
465#define HD_RESOURCE_TYPE_TOKENS \
469#define HD_SCENE_INDEX_EMULATION_TOKENS \
476#define HD_COLLECTION_EMULATION_TOKENS \
477 ((lightLinkCollection, "lightLink")) \
478 ((shadowLinkCollection, "shadowLink")) \
479 ((filterLinkCollection, "filterLink")) \
480 (lightLinkCollectionMembershipExpression) \
481 (shadowLinkCollectionMembershipExpression) \
482 (filterLinkCollectionMembershipExpression)
489 HD_MODEL_DRAWMODE_TOKENS);
494 HD_MATERIAL_TERMINAL_TOKENS);
500 HD_LIGHT_FILTER_TYPE_TOKENS);
509 HD_RENDER_SETTINGS_PRIM_TOKENS);
511 HD_ASPECT_RATIO_CONFORM_POLICY);
514 HD_SCENE_INDEX_EMULATION_TOKENS);
516 HD_COLLECTION_EMULATION_TOKENS);
518PXR_NAMESPACE_CLOSE_SCOPE
Token for efficient comparison, assignment, and hashing of known strings.
Environment setting variable.
This file defines some macros that are useful for declaring and using static TfTokens.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
std::vector< TfToken > TfTokenVector
Convenience types.