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) \
137 (refinedSolidWireOnSurf) \
142#define HD_CULLSTYLE_TOKENS \
147 (backUnlessDoubleSided) \
148 (frontUnlessDoubleSided)
150#define HD_MODEL_DRAWMODE_TOKENS \
155 ((default_, "default")) \
160#define HD_PERF_TOKENS \
162 (basisCurvesTopology) \
163 (bufferSourcesResolved) \
164 (bufferArrayRangeMigrated) \
165 (bufferArrayRangeContainerResized) \
167 (computationsCommitted) \
171 (dirtyListsRebuilt) \
173 (garbageCollectedSsbo) \
174 (garbageCollectedUbo) \
175 (garbageCollectedVbo) \
177 (instBasisCurvesTopology) \
178 (instBasisCurvesTopologyRange) \
179 (instExtComputationDataRange) \
181 (instMeshTopologyRange) \
183 (instVertexAdjacency) \
186 (numCompletedSamples) \
189 (quadrangulateFaceVarying) \
190 (quadrangulatedVerts) \
194 (skipInvisibleRprimSync) \
196 (subdivisionRefineCPU) \
197 (subdivisionRefineGPU) \
199 (triangulateFaceVarying) \
204#define HD_SHADER_TOKENS \
207 (commonShaderSource) \
213 (displacementShader) \
216 (imageToWorldMatrix) \
217 (imageToHorizontallyNormalizedFilmback) \
219 (lightingBlendAmount) \
225 (pointSelectedSize) \
228 (tessControlShader) \
230 (postTessControlShader) \
231 (postTessVertexShader) \
236 (worldToViewMatrix) \
237 (worldToViewInverseMatrix) \
243#define HD_MATERIALTAG_TOKENS \
248#define HD_MATERIAL_TERMINAL_TOKENS \
256#define HD_RENDERTAG_TOKENS \
263#define HD_RENDER_CONTEXT_TOKENS \
266#define HD_OPTION_TOKENS \
269#define HD_RPRIMTYPE_TOKENS \
290#define HD_LIGHT_TYPE_TOKENS \
302#define HD_LIGHT_FILTER_TYPE_TOKENS \
305#define HD_SPRIMTYPE_TOKENS \
318 HD_LIGHT_TYPE_TOKENS \
319 HD_LIGHT_FILTER_TYPE_TOKENS \
324#define HD_BPRIMTYPE_TOKENS \
329#define HD_PRIMTYPE_TOKENS \
330 HD_RPRIMTYPE_TOKENS \
331 HD_SPRIMTYPE_TOKENS \
332 HD_BPRIMTYPE_TOKENS \
338bool HdPrimTypeIsGprim(
TfToken const& primType);
341bool HdPrimTypeIsLight(
TfToken const& primType);
344bool HdPrimTypeSupportsGeomSubsets(
const TfToken& primType);
349#define HD_PRIMVAR_ROLE_TOKENS \
361#define HD_AOV_TOKENS \
407 ((primvars, "primvars:")) \
425 ((shader, "shader:"))
437#define HD_RENDER_SETTINGS_TOKENS \
440 (enableSceneMaterials) \
441 (enableSceneLights) \
442 (enableExposureCompensation) \
443 (domeLightCameraVisibility) \
445 (convergedVariance) \
446 (convergedSamplesPerPixel) \
450 (enableInteractive) \
454#define HD_RENDER_SETTINGS_PRIM_TOKENS \
456 (namespacedSettings) \
459 (materialBindingPurposes) \
460 (renderingColorSpace) \
465#define HD_ASPECT_RATIO_CONFORM_POLICY \
466 (adjustApertureWidth) \
467 (adjustApertureHeight) \
470 (adjustPixelAspectRatio) \
472#define HD_RESOURCE_TYPE_TOKENS \
476#define HD_SCENE_INDEX_EMULATION_TOKENS \
483#define HD_COLLECTION_EMULATION_TOKENS \
484 ((lightLinkCollection, "lightLink")) \
485 ((shadowLinkCollection, "shadowLink")) \
486 ((filterLinkCollection, "filterLink")) \
487 (lightLinkCollectionMembershipExpression) \
488 (shadowLinkCollectionMembershipExpression) \
489 (filterLinkCollectionMembershipExpression)
492#define HD_SKINNING_INPUT_TOKENS \
493 ((skinningXforms, "hydra:skinningXforms")) \
494 ((skinningDualQuats, "hydra:skinningDualQuats")) \
495 ((skinningScaleXforms, "hydra:skinningScaleXforms")) \
496 ((blendShapeWeights, "hydra:blendShapeWeights")) \
497 ((skelLocalToCommonSpace, "hydra:skelLocalToWorld")) \
498 ((commonSpaceToPrimLocal, "hydra:primWorldToLocal")) \
499 ((blendShapeOffsets, "hydra:blendShapeOffsets")) \
500 ((blendShapeOffsetRanges, "hydra:blendShapeOffsetRanges")) \
501 ((numBlendShapeOffsetRanges, "hydra:numBlendShapeOffsetRanges")) \
503 ((hasConstantInfluences, "hydra:hasConstantInfluences")) \
504 ((numInfluencesPerComponent, "hydra:numInfluencesPerComponent")) \
505 ((influences, "hydra:influences")) \
509 ((numSkinningMethod, "hydra:numSkinningMethod")) \
513 ((numJoints, "hydra:numJoints")) \
514 ((numBlendShapeWeights, "hydra:numBlendShapeWeights"))
517#define HD_SKINNING_SKEL_INPUT_TOKENS \
529 ((geomBindTransform, "skel:geomBindTransform"))
537 HD_MODEL_DRAWMODE_TOKENS);
542 HD_MATERIAL_TERMINAL_TOKENS);
548 HD_LIGHT_FILTER_TYPE_TOKENS);
557 HD_RENDER_SETTINGS_PRIM_TOKENS);
559 HD_ASPECT_RATIO_CONFORM_POLICY);
562 HD_SCENE_INDEX_EMULATION_TOKENS);
564 HD_COLLECTION_EMULATION_TOKENS);
566 HD_SKINNING_INPUT_TOKENS);
568 HD_SKINNING_SKEL_INPUT_TOKENS);
570PXR_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.