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 (instImplicitPrimsTopologyRange) \
180 (instExtComputationDataRange) \
183 (instMeshTopologyRange) \
185 (instVertexAdjacency) \
188 (numCompletedSamples) \
191 (quadrangulateFaceVarying) \
192 (quadrangulatedVerts) \
196 (skipInvisibleRprimSync) \
198 (subdivisionRefineCPU) \
199 (subdivisionRefineGPU) \
201 (textureAllocations) \
203 (triangulateFaceVarying) \
208#define HD_SHADER_TOKENS \
211 (commonShaderSource) \
217 (displacementShader) \
220 (imageToWorldMatrix) \
221 (imageToHorizontallyNormalizedFilmback) \
223 (lightingBlendAmount) \
227 (projectionInverseMatrix) \
230 (pointSelectedSize) \
233 (tessControlShader) \
235 (postTessControlShader) \
236 (postTessVertexShader) \
241 (worldToViewMatrix) \
242 (worldToViewInverseMatrix) \
248#define HD_MATERIALTAG_TOKENS \
253#define HD_MATERIAL_TERMINAL_TOKENS \
262#define HD_RENDERTAG_TOKENS \
269#define HD_RENDER_CONTEXT_TOKENS \
272#define HD_OPTION_TOKENS \
275#define HD_RPRIMTYPE_TOKENS \
296#define HD_LIGHT_TYPE_TOKENS \
308#define HD_LIGHT_FILTER_TYPE_TOKENS \
311#define HD_SPRIMTYPE_TOKENS \
325 HD_LIGHT_TYPE_TOKENS \
326 HD_LIGHT_FILTER_TYPE_TOKENS \
331#define HD_BPRIMTYPE_TOKENS \
336#define HD_PRIMTYPE_TOKENS \
337 HD_RPRIMTYPE_TOKENS \
338 HD_SPRIMTYPE_TOKENS \
339 HD_BPRIMTYPE_TOKENS \
345bool HdPrimTypeIsGprim(
TfToken const& primType);
348bool HdPrimTypeIsLight(
TfToken const& primType);
351bool HdPrimTypeSupportsGeomSubsets(
const TfToken& primType);
356#define HD_PRIMVAR_ROLE_TOKENS \
368#define HD_AOV_TOKENS \
414 ((primvars, "primvars:")) \
432 ((shader, "shader:"))
444#define HD_RENDER_SETTINGS_TOKENS \
447 (enableSceneMaterials) \
448 (enableSceneLights) \
449 (enableExposureCompensation) \
450 (domeLightCameraVisibility) \
452 (convergedVariance) \
453 (convergedSamplesPerPixel) \
457 (enableInteractive) \
459#define HD_RENDER_SETTINGS_PRIM_TOKENS \
461 (namespacedSettings) \
464 (materialBindingPurposes) \
465 (renderingColorSpace) \
466 (unionedSamplingInterval) \
468 (disableDepthOfField) \
473#define HD_ASPECT_RATIO_CONFORM_POLICY \
474 (adjustApertureWidth) \
475 (adjustApertureHeight) \
478 (adjustPixelAspectRatio) \
480#define HD_RESOURCE_TYPE_TOKENS \
484#define HD_SCENE_INDEX_EMULATION_TOKENS \
491#define HD_COLLECTION_EMULATION_TOKENS \
492 ((lightLinkCollection, "lightLink")) \
493 ((shadowLinkCollection, "shadowLink")) \
494 ((filterLinkCollection, "filterLink")) \
495 (lightLinkCollectionMembershipExpression) \
496 (shadowLinkCollectionMembershipExpression) \
497 (filterLinkCollectionMembershipExpression)
500#define HD_SKINNING_INPUT_TOKENS \
501 ((skinningXforms, "hydra:skinningXforms")) \
502 ((skinningDualQuats, "hydra:skinningDualQuats")) \
503 ((skinningScaleXforms, "hydra:skinningScaleXforms")) \
504 ((blendShapeWeights, "hydra:blendShapeWeights")) \
505 ((skelLocalToCommonSpace, "hydra:skelLocalToWorld")) \
506 ((commonSpaceToPrimLocal, "hydra:primWorldToLocal")) \
507 ((blendShapeOffsets, "hydra:blendShapeOffsets")) \
508 ((blendShapeOffsetRanges, "hydra:blendShapeOffsetRanges")) \
509 ((numBlendShapeOffsetRanges, "hydra:numBlendShapeOffsetRanges")) \
511 ((hasConstantInfluences, "hydra:hasConstantInfluences")) \
512 ((numInfluencesPerComponent, "hydra:numInfluencesPerComponent")) \
513 ((influences, "hydra:influences")) \
517 ((numSkinningMethod, "hydra:numSkinningMethod")) \
521 ((numJoints, "hydra:numJoints")) \
522 ((numBlendShapeWeights, "hydra:numBlendShapeWeights"))
525#define HD_SKINNING_SKEL_INPUT_TOKENS \
537 ((geomBindTransform, "skel:geomBindTransform"))
545 HD_MODEL_DRAWMODE_TOKENS);
550 HD_MATERIAL_TERMINAL_TOKENS);
556 HD_LIGHT_FILTER_TYPE_TOKENS);
565 HD_RENDER_SETTINGS_PRIM_TOKENS);
567 HD_ASPECT_RATIO_CONFORM_POLICY);
570 HD_SCENE_INDEX_EMULATION_TOKENS);
572 HD_COLLECTION_EMULATION_TOKENS);
574 HD_SKINNING_INPUT_TOKENS);
576 HD_SKINNING_SKEL_INPUT_TOKENS);
578PXR_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.