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 \
285#define HD_LIGHT_TYPE_TOKENS \
297#define HD_LIGHT_FILTER_TYPE_TOKENS \
300#define HD_SPRIMTYPE_TOKENS \
313 HD_LIGHT_TYPE_TOKENS \
314 HD_LIGHT_FILTER_TYPE_TOKENS \
319#define HD_BPRIMTYPE_TOKENS \
324#define HD_PRIMTYPE_TOKENS \
325 HD_RPRIMTYPE_TOKENS \
326 HD_SPRIMTYPE_TOKENS \
327 HD_BPRIMTYPE_TOKENS \
332bool HdPrimTypeIsGprim(
TfToken const& primType);
335bool HdPrimTypeIsLight(
TfToken const& primType);
338bool HdPrimTypeSupportsGeomSubsets(
const TfToken& primType);
343#define HD_PRIMVAR_ROLE_TOKENS \
355#define HD_AOV_TOKENS \
401 ((primvars, "primvars:")) \
419 ((shader, "shader:"))
431#define HD_RENDER_SETTINGS_TOKENS \
434 (enableSceneMaterials) \
435 (enableSceneLights) \
436 (domeLightCameraVisibility) \
438 (convergedVariance) \
439 (convergedSamplesPerPixel) \
445#define HD_RENDER_SETTINGS_PRIM_TOKENS \
447 (namespacedSettings) \
450 (materialBindingPurposes) \
451 (renderingColorSpace) \
456#define HD_ASPECT_RATIO_CONFORM_POLICY \
457 (adjustApertureWidth) \
458 (adjustApertureHeight) \
461 (adjustPixelAspectRatio) \
463#define HD_RESOURCE_TYPE_TOKENS \
467#define HD_SCENE_INDEX_EMULATION_TOKENS \
474#define HD_COLLECTION_EMULATION_TOKENS \
475 ((lightLinkCollection, "lightLink")) \
476 ((shadowLinkCollection, "shadowLink")) \
477 ((filterLinkCollection, "filterLink")) \
478 (lightLinkCollectionMembershipExpression) \
479 (shadowLinkCollectionMembershipExpression) \
480 (filterLinkCollectionMembershipExpression)
487 HD_MODEL_DRAWMODE_TOKENS);
492 HD_MATERIAL_TERMINAL_TOKENS);
498 HD_LIGHT_FILTER_TYPE_TOKENS);
507 HD_RENDER_SETTINGS_PRIM_TOKENS);
509 HD_ASPECT_RATIO_CONFORM_POLICY);
512 HD_SCENE_INDEX_EMULATION_TOKENS);
514 HD_COLLECTION_EMULATION_TOKENS);
516PXR_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.