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) \
182 (instMeshTopologyRange) \
184 (instVertexAdjacency) \
187 (numCompletedSamples) \
190 (quadrangulateFaceVarying) \
191 (quadrangulatedVerts) \
195 (skipInvisibleRprimSync) \
197 (subdivisionRefineCPU) \
198 (subdivisionRefineGPU) \
200 (triangulateFaceVarying) \
205#define HD_SHADER_TOKENS \
208 (commonShaderSource) \
214 (displacementShader) \
217 (imageToWorldMatrix) \
218 (imageToHorizontallyNormalizedFilmback) \
220 (lightingBlendAmount) \
226 (pointSelectedSize) \
229 (tessControlShader) \
231 (postTessControlShader) \
232 (postTessVertexShader) \
237 (worldToViewMatrix) \
238 (worldToViewInverseMatrix) \
244#define HD_MATERIALTAG_TOKENS \
249#define HD_MATERIAL_TERMINAL_TOKENS \
258#define HD_RENDERTAG_TOKENS \
265#define HD_RENDER_CONTEXT_TOKENS \
268#define HD_OPTION_TOKENS \
271#define HD_RPRIMTYPE_TOKENS \
292#define HD_LIGHT_TYPE_TOKENS \
304#define HD_LIGHT_FILTER_TYPE_TOKENS \
307#define HD_SPRIMTYPE_TOKENS \
321 HD_LIGHT_TYPE_TOKENS \
322 HD_LIGHT_FILTER_TYPE_TOKENS \
327#define HD_BPRIMTYPE_TOKENS \
332#define HD_PRIMTYPE_TOKENS \
333 HD_RPRIMTYPE_TOKENS \
334 HD_SPRIMTYPE_TOKENS \
335 HD_BPRIMTYPE_TOKENS \
341bool HdPrimTypeIsGprim(
TfToken const& primType);
344bool HdPrimTypeIsLight(
TfToken const& primType);
347bool HdPrimTypeSupportsGeomSubsets(
const TfToken& primType);
352#define HD_PRIMVAR_ROLE_TOKENS \
364#define HD_AOV_TOKENS \
410 ((primvars, "primvars:")) \
428 ((shader, "shader:"))
440#define HD_RENDER_SETTINGS_TOKENS \
443 (enableSceneMaterials) \
444 (enableSceneLights) \
445 (enableExposureCompensation) \
446 (domeLightCameraVisibility) \
448 (convergedVariance) \
449 (convergedSamplesPerPixel) \
453 (enableInteractive) \
457#define HD_RENDER_SETTINGS_PRIM_TOKENS \
459 (namespacedSettings) \
462 (materialBindingPurposes) \
463 (renderingColorSpace) \
464 (unionedSamplingInterval) \
466 (disableDepthOfField) \
471#define HD_ASPECT_RATIO_CONFORM_POLICY \
472 (adjustApertureWidth) \
473 (adjustApertureHeight) \
476 (adjustPixelAspectRatio) \
478#define HD_RESOURCE_TYPE_TOKENS \
482#define HD_SCENE_INDEX_EMULATION_TOKENS \
489#define HD_COLLECTION_EMULATION_TOKENS \
490 ((lightLinkCollection, "lightLink")) \
491 ((shadowLinkCollection, "shadowLink")) \
492 ((filterLinkCollection, "filterLink")) \
493 (lightLinkCollectionMembershipExpression) \
494 (shadowLinkCollectionMembershipExpression) \
495 (filterLinkCollectionMembershipExpression)
498#define HD_SKINNING_INPUT_TOKENS \
499 ((skinningXforms, "hydra:skinningXforms")) \
500 ((skinningDualQuats, "hydra:skinningDualQuats")) \
501 ((skinningScaleXforms, "hydra:skinningScaleXforms")) \
502 ((blendShapeWeights, "hydra:blendShapeWeights")) \
503 ((skelLocalToCommonSpace, "hydra:skelLocalToWorld")) \
504 ((commonSpaceToPrimLocal, "hydra:primWorldToLocal")) \
505 ((blendShapeOffsets, "hydra:blendShapeOffsets")) \
506 ((blendShapeOffsetRanges, "hydra:blendShapeOffsetRanges")) \
507 ((numBlendShapeOffsetRanges, "hydra:numBlendShapeOffsetRanges")) \
509 ((hasConstantInfluences, "hydra:hasConstantInfluences")) \
510 ((numInfluencesPerComponent, "hydra:numInfluencesPerComponent")) \
511 ((influences, "hydra:influences")) \
515 ((numSkinningMethod, "hydra:numSkinningMethod")) \
519 ((numJoints, "hydra:numJoints")) \
520 ((numBlendShapeWeights, "hydra:numBlendShapeWeights"))
523#define HD_SKINNING_SKEL_INPUT_TOKENS \
535 ((geomBindTransform, "skel:geomBindTransform"))
543 HD_MODEL_DRAWMODE_TOKENS);
548 HD_MATERIAL_TERMINAL_TOKENS);
554 HD_LIGHT_FILTER_TYPE_TOKENS);
563 HD_RENDER_SETTINGS_PRIM_TOKENS);
565 HD_ASPECT_RATIO_CONFORM_POLICY);
568 HD_SCENE_INDEX_EMULATION_TOKENS);
570 HD_COLLECTION_EMULATION_TOKENS);
572 HD_SKINNING_INPUT_TOKENS);
574 HD_SKINNING_SKEL_INPUT_TOKENS);
576PXR_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.