24#ifndef PXR_IMAGING_HD_TOKENS_H
25#define PXR_IMAGING_HD_TOKENS_H
28#include "pxr/imaging/hd/api.h"
29#include "pxr/imaging/hd/version.h"
33PXR_NAMESPACE_OPEN_SCOPE
47 (centripetalCatmullRom) \
67 (elementsVisibility) \
87 (nonlinearSampleCount) \
113 (topologyVisibility) \
129 ((bSpline, "bspline"))
131#define HD_INSTANCER_TOKENS \
132 (culledInstanceIndices) \
134 (instancerTransform) \
135 (instancerTransformInverse) \
137 (instanceIndexBase) \
140 ((instanceTransforms, "hydra:instanceTransforms")) \
141 ((instanceRotations, "hydra:instanceRotations")) \
142 ((instanceScales, "hydra:instanceScales")) \
143 ((instanceTranslations, "hydra:instanceTranslations"))
145#define HD_REPR_TOKENS \
152 (refinedWireOnSurf) \
156#define HD_CULLSTYLE_TOKENS \
161 (backUnlessDoubleSided) \
162 (frontUnlessDoubleSided)
164#define HD_MODEL_DRAWMODE_TOKENS \
169 ((default_, "default")) \
174#define HD_PERF_TOKENS \
176 (basisCurvesTopology) \
177 (bufferSourcesResolved) \
178 (bufferArrayRangeMigrated) \
179 (bufferArrayRangeContainerResized) \
180 (computationsCommited) \
184 (dirtyListsRebuilt) \
186 (garbageCollectedSsbo) \
187 (garbageCollectedUbo) \
188 (garbageCollectedVbo) \
190 (instBasisCurvesTopology) \
191 (instBasisCurvesTopologyRange) \
192 (instExtComputationDataRange) \
194 (instMeshTopologyRange) \
196 (instVertexAdjacency) \
199 (numCompletedSamples) \
202 (quadrangulateFaceVarying) \
203 (quadrangulatedVerts) \
207 (skipInvisibleRprimSync) \
208 (subdivisionRefineCPU) \
209 (subdivisionRefineGPU) \
211 (triangulateFaceVarying) \
216#define HD_SHADER_TOKENS \
219 (commonShaderSource) \
224 (displacementShader) \
227 (imageToWorldMatrix) \
228 (imageToHorizontallyNormalizedFilmback) \
230 (lightingBlendAmount) \
236 (pointSelectedSize) \
239 (tessControlShader) \
241 (postTessControlShader) \
242 (postTessVertexShader) \
247 (worldToViewMatrix) \
248 (worldToViewInverseMatrix) \
253#define HD_MATERIALTAG_TOKENS \
258#define HD_MATERIAL_TERMINAL_TOKENS \
266#define HD_RENDERTAG_TOKENS \
274#define HD_RENDER_CONTEXT_TOKENS \
277#define HD_OPTION_TOKENS \
280#define HD_RPRIMTYPE_TOKENS \
299#define HD_SPRIMTYPE_TOKENS \
326#define HD_BPRIMTYPE_TOKENS \
331#define HD_PRIMTYPE_TOKENS \
332 HD_RPRIMTYPE_TOKENS \
333 HD_SPRIMTYPE_TOKENS \
334 HD_BPRIMTYPE_TOKENS \
339bool HdPrimTypeIsGprim(
TfToken const& primType);
342bool HdPrimTypeIsLight(
TfToken const& primType);
347#define HD_PRIMVAR_ROLE_TOKENS \
359#define HD_AOV_TOKENS \
405 ((primvars, "primvars:")) \
423 ((shader, "shader:"))
435#define HD_RENDER_SETTINGS_TOKENS \
438 (enableSceneMaterials) \
439 (enableSceneLights) \
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);
508 HD_RENDER_SETTINGS_PRIM_TOKENS);
510 HD_ASPECT_RATIO_CONFORM_POLICY);
513 HD_SCENE_INDEX_EMULATION_TOKENS);
515 HD_COLLECTION_EMULATION_TOKENS);
517PXR_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.