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) \
140#define HD_CULLSTYLE_TOKENS \
145 (backUnlessDoubleSided) \
146 (frontUnlessDoubleSided)
148#define HD_MODEL_DRAWMODE_TOKENS \
153 ((default_, "default")) \
158#define HD_PERF_TOKENS \
160 (basisCurvesTopology) \
161 (bufferSourcesResolved) \
162 (bufferArrayRangeMigrated) \
163 (bufferArrayRangeContainerResized) \
164 (computationsCommited) \
168 (dirtyListsRebuilt) \
170 (garbageCollectedSsbo) \
171 (garbageCollectedUbo) \
172 (garbageCollectedVbo) \
174 (instBasisCurvesTopology) \
175 (instBasisCurvesTopologyRange) \
176 (instExtComputationDataRange) \
178 (instMeshTopologyRange) \
180 (instVertexAdjacency) \
183 (numCompletedSamples) \
186 (quadrangulateFaceVarying) \
187 (quadrangulatedVerts) \
191 (skipInvisibleRprimSync) \
192 (subdivisionRefineCPU) \
193 (subdivisionRefineGPU) \
195 (triangulateFaceVarying) \
200#define HD_SHADER_TOKENS \
203 (commonShaderSource) \
208 (displacementShader) \
211 (imageToWorldMatrix) \
212 (imageToHorizontallyNormalizedFilmback) \
214 (lightingBlendAmount) \
220 (pointSelectedSize) \
223 (tessControlShader) \
225 (postTessControlShader) \
226 (postTessVertexShader) \
231 (worldToViewMatrix) \
232 (worldToViewInverseMatrix) \
237#define HD_MATERIALTAG_TOKENS \
242#define HD_MATERIAL_TERMINAL_TOKENS \
250#define HD_RENDERTAG_TOKENS \
258#define HD_RENDER_CONTEXT_TOKENS \
261#define HD_OPTION_TOKENS \
264#define HD_RPRIMTYPE_TOKENS \
286#define HD_LIGHT_TYPE_TOKENS \
298#define HD_LIGHT_FILTER_TYPE_TOKENS \
301#define HD_SPRIMTYPE_TOKENS \
314 HD_LIGHT_TYPE_TOKENS \
315 HD_LIGHT_FILTER_TYPE_TOKENS \
320#define HD_BPRIMTYPE_TOKENS \
325#define HD_PRIMTYPE_TOKENS \
326 HD_RPRIMTYPE_TOKENS \
327 HD_SPRIMTYPE_TOKENS \
328 HD_BPRIMTYPE_TOKENS \
333bool HdPrimTypeIsGprim(
TfToken const& primType);
336bool HdPrimTypeIsLight(
TfToken const& primType);
339bool HdPrimTypeSupportsGeomSubsets(
const TfToken& primType);
344#define HD_PRIMVAR_ROLE_TOKENS \
356#define HD_AOV_TOKENS \
402 ((primvars, "primvars:")) \
420 ((shader, "shader:"))
432#define HD_RENDER_SETTINGS_TOKENS \
435 (enableSceneMaterials) \
436 (enableSceneLights) \
437 (domeLightCameraVisibility) \
439 (convergedVariance) \
440 (convergedSamplesPerPixel) \
446#define HD_RENDER_SETTINGS_PRIM_TOKENS \
448 (namespacedSettings) \
451 (materialBindingPurposes) \
452 (renderingColorSpace) \
457#define HD_ASPECT_RATIO_CONFORM_POLICY \
458 (adjustApertureWidth) \
459 (adjustApertureHeight) \
462 (adjustPixelAspectRatio) \
464#define HD_RESOURCE_TYPE_TOKENS \
468#define HD_SCENE_INDEX_EMULATION_TOKENS \
475#define HD_COLLECTION_EMULATION_TOKENS \
476 ((lightLinkCollection, "lightLink")) \
477 ((shadowLinkCollection, "shadowLink")) \
478 ((filterLinkCollection, "filterLink")) \
479 (lightLinkCollectionMembershipExpression) \
480 (shadowLinkCollectionMembershipExpression) \
481 (filterLinkCollectionMembershipExpression)
488 HD_MODEL_DRAWMODE_TOKENS);
493 HD_MATERIAL_TERMINAL_TOKENS);
499 HD_LIGHT_FILTER_TYPE_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.