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) \
166 (computationsCommited) \
170 (dirtyListsRebuilt) \
172 (garbageCollectedSsbo) \
173 (garbageCollectedUbo) \
174 (garbageCollectedVbo) \
176 (instBasisCurvesTopology) \
177 (instBasisCurvesTopologyRange) \
178 (instExtComputationDataRange) \
180 (instMeshTopologyRange) \
182 (instVertexAdjacency) \
185 (numCompletedSamples) \
188 (quadrangulateFaceVarying) \
189 (quadrangulatedVerts) \
193 (skipInvisibleRprimSync) \
194 (subdivisionRefineCPU) \
195 (subdivisionRefineGPU) \
197 (triangulateFaceVarying) \
202#define HD_SHADER_TOKENS \
205 (commonShaderSource) \
211 (displacementShader) \
214 (imageToWorldMatrix) \
215 (imageToHorizontallyNormalizedFilmback) \
217 (lightingBlendAmount) \
223 (pointSelectedSize) \
226 (tessControlShader) \
228 (postTessControlShader) \
229 (postTessVertexShader) \
234 (worldToViewMatrix) \
235 (worldToViewInverseMatrix) \
241#define HD_MATERIALTAG_TOKENS \
246#define HD_MATERIAL_TERMINAL_TOKENS \
254#define HD_RENDERTAG_TOKENS \
261#define HD_RENDER_CONTEXT_TOKENS \
264#define HD_OPTION_TOKENS \
267#define HD_RPRIMTYPE_TOKENS \
287#define HD_LIGHT_TYPE_TOKENS \
299#define HD_LIGHT_FILTER_TYPE_TOKENS \
302#define HD_SPRIMTYPE_TOKENS \
315 HD_LIGHT_TYPE_TOKENS \
316 HD_LIGHT_FILTER_TYPE_TOKENS \
321#define HD_BPRIMTYPE_TOKENS \
326#define HD_PRIMTYPE_TOKENS \
327 HD_RPRIMTYPE_TOKENS \
328 HD_SPRIMTYPE_TOKENS \
329 HD_BPRIMTYPE_TOKENS \
335bool HdPrimTypeIsGprim(
TfToken const& primType);
338bool HdPrimTypeIsLight(
TfToken const& primType);
341bool HdPrimTypeSupportsGeomSubsets(
const TfToken& primType);
346#define HD_PRIMVAR_ROLE_TOKENS \
358#define HD_AOV_TOKENS \
404 ((primvars, "primvars:")) \
422 ((shader, "shader:"))
434#define HD_RENDER_SETTINGS_TOKENS \
437 (enableSceneMaterials) \
438 (enableSceneLights) \
439 (enableExposureCompensation) \
440 (domeLightCameraVisibility) \
442 (convergedVariance) \
443 (convergedSamplesPerPixel) \
449#define HD_RENDER_SETTINGS_PRIM_TOKENS \
451 (namespacedSettings) \
454 (materialBindingPurposes) \
455 (renderingColorSpace) \
460#define HD_ASPECT_RATIO_CONFORM_POLICY \
461 (adjustApertureWidth) \
462 (adjustApertureHeight) \
465 (adjustPixelAspectRatio) \
467#define HD_RESOURCE_TYPE_TOKENS \
471#define HD_SCENE_INDEX_EMULATION_TOKENS \
478#define HD_COLLECTION_EMULATION_TOKENS \
479 ((lightLinkCollection, "lightLink")) \
480 ((shadowLinkCollection, "shadowLink")) \
481 ((filterLinkCollection, "filterLink")) \
482 (lightLinkCollectionMembershipExpression) \
483 (shadowLinkCollectionMembershipExpression) \
484 (filterLinkCollectionMembershipExpression)
491 HD_MODEL_DRAWMODE_TOKENS);
496 HD_MATERIAL_TERMINAL_TOKENS);
502 HD_LIGHT_FILTER_TYPE_TOKENS);
511 HD_RENDER_SETTINGS_PRIM_TOKENS);
513 HD_ASPECT_RATIO_CONFORM_POLICY);
516 HD_SCENE_INDEX_EMULATION_TOKENS);
518 HD_COLLECTION_EMULATION_TOKENS);
520PXR_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.