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) \
451#define HD_RENDER_SETTINGS_PRIM_TOKENS \
453 (namespacedSettings) \
456 (materialBindingPurposes) \
457 (renderingColorSpace) \
462#define HD_ASPECT_RATIO_CONFORM_POLICY \
463 (adjustApertureWidth) \
464 (adjustApertureHeight) \
467 (adjustPixelAspectRatio) \
469#define HD_RESOURCE_TYPE_TOKENS \
473#define HD_SCENE_INDEX_EMULATION_TOKENS \
480#define HD_COLLECTION_EMULATION_TOKENS \
481 ((lightLinkCollection, "lightLink")) \
482 ((shadowLinkCollection, "shadowLink")) \
483 ((filterLinkCollection, "filterLink")) \
484 (lightLinkCollectionMembershipExpression) \
485 (shadowLinkCollectionMembershipExpression) \
486 (filterLinkCollectionMembershipExpression)
493 HD_MODEL_DRAWMODE_TOKENS);
498 HD_MATERIAL_TERMINAL_TOKENS);
504 HD_LIGHT_FILTER_TYPE_TOKENS);
513 HD_RENDER_SETTINGS_PRIM_TOKENS);
515 HD_ASPECT_RATIO_CONFORM_POLICY);
518 HD_SCENE_INDEX_EMULATION_TOKENS);
520 HD_COLLECTION_EMULATION_TOKENS);
522PXR_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.