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 \
289#define HD_LIGHT_TYPE_TOKENS \
301#define HD_LIGHT_FILTER_TYPE_TOKENS \
304#define HD_SPRIMTYPE_TOKENS \
317 HD_LIGHT_TYPE_TOKENS \
318 HD_LIGHT_FILTER_TYPE_TOKENS \
323#define HD_BPRIMTYPE_TOKENS \
328#define HD_PRIMTYPE_TOKENS \
329 HD_RPRIMTYPE_TOKENS \
330 HD_SPRIMTYPE_TOKENS \
331 HD_BPRIMTYPE_TOKENS \
337bool HdPrimTypeIsGprim(
TfToken const& primType);
340bool HdPrimTypeIsLight(
TfToken const& primType);
343bool HdPrimTypeSupportsGeomSubsets(
const TfToken& primType);
348#define HD_PRIMVAR_ROLE_TOKENS \
360#define HD_AOV_TOKENS \
406 ((primvars, "primvars:")) \
424 ((shader, "shader:"))
436#define HD_RENDER_SETTINGS_TOKENS \
439 (enableSceneMaterials) \
440 (enableSceneLights) \
441 (enableExposureCompensation) \
442 (domeLightCameraVisibility) \
444 (convergedVariance) \
445 (convergedSamplesPerPixel) \
449 (enableInteractive) \
453#define HD_RENDER_SETTINGS_PRIM_TOKENS \
455 (namespacedSettings) \
458 (materialBindingPurposes) \
459 (renderingColorSpace) \
464#define HD_ASPECT_RATIO_CONFORM_POLICY \
465 (adjustApertureWidth) \
466 (adjustApertureHeight) \
469 (adjustPixelAspectRatio) \
471#define HD_RESOURCE_TYPE_TOKENS \
475#define HD_SCENE_INDEX_EMULATION_TOKENS \
482#define HD_COLLECTION_EMULATION_TOKENS \
483 ((lightLinkCollection, "lightLink")) \
484 ((shadowLinkCollection, "shadowLink")) \
485 ((filterLinkCollection, "filterLink")) \
486 (lightLinkCollectionMembershipExpression) \
487 (shadowLinkCollectionMembershipExpression) \
488 (filterLinkCollectionMembershipExpression)
491#define HD_SKINNING_INPUT_TOKENS \
492 ((skinningXforms, "hydra:skinningXforms")) \
493 ((skinningDualQuats, "hydra:skinningDualQuats")) \
494 ((skinningScaleXforms, "hydra:skinningScaleXforms")) \
495 ((blendShapeWeights, "hydra:blendShapeWeights")) \
496 ((skelLocalToCommonSpace, "hydra:skelLocalToWorld")) \
497 ((commonSpaceToPrimLocal, "hydra:primWorldToLocal")) \
498 ((blendShapeOffsets, "hydra:blendShapeOffsets")) \
499 ((blendShapeOffsetRanges, "hydra:blendShapeOffsetRanges")) \
500 ((numBlendShapeOffsetRanges, "hydra:numBlendShapeOffsetRanges")) \
502 ((hasConstantInfluences, "hydra:hasConstantInfluences")) \
503 ((numInfluencesPerComponent, "hydra:numInfluencesPerComponent")) \
504 ((influences, "hydra:influences")) \
508 ((numSkinningMethod, "hydra:numSkinningMethod")) \
512 ((numJoints, "hydra:numJoints")) \
513 ((numBlendShapeWeights, "hydra:numBlendShapeWeights"))
516#define HD_SKINNING_SKEL_INPUT_TOKENS \
528 ((geomBindTransform, "skel:geomBindTransform"))
536 HD_MODEL_DRAWMODE_TOKENS);
541 HD_MATERIAL_TERMINAL_TOKENS);
547 HD_LIGHT_FILTER_TYPE_TOKENS);
556 HD_RENDER_SETTINGS_PRIM_TOKENS);
558 HD_ASPECT_RATIO_CONFORM_POLICY);
561 HD_SCENE_INDEX_EMULATION_TOKENS);
563 HD_COLLECTION_EMULATION_TOKENS);
565 HD_SKINNING_INPUT_TOKENS);
567 HD_SKINNING_SKEL_INPUT_TOKENS);
569PXR_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.