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
46 (centripetalCatmullRom) \
66 (elementsVisibility) \
86 (nonlinearSampleCount) \
112 (topologyVisibility) \
128 ((bSpline, "bspline"))
130#define HD_INSTANCER_TOKENS \
131 (culledInstanceIndices) \
133 (instancerTransform) \
134 (instancerTransformInverse) \
136 (instanceIndexBase) \
139 ((instanceTransforms, "hydra:instanceTransforms")) \
140 ((instanceRotations, "hydra:instanceRotations")) \
141 ((instanceScales, "hydra:instanceScales")) \
142 ((instanceTranslations, "hydra:instanceTranslations"))
144#define HD_REPR_TOKENS \
151 (refinedWireOnSurf) \
155#define HD_CULLSTYLE_TOKENS \
160 (backUnlessDoubleSided) \
161 (frontUnlessDoubleSided)
163#define HD_MODEL_DRAWMODE_TOKENS \
168 ((default_, "default")) \
173#define HD_PERF_TOKENS \
175 (basisCurvesTopology) \
176 (bufferSourcesResolved) \
177 (bufferArrayRangeMigrated) \
178 (bufferArrayRangeContainerResized) \
179 (computationsCommited) \
183 (dirtyListsRebuilt) \
185 (garbageCollectedSsbo) \
186 (garbageCollectedUbo) \
187 (garbageCollectedVbo) \
189 (instBasisCurvesTopology) \
190 (instBasisCurvesTopologyRange) \
191 (instExtComputationDataRange) \
193 (instMeshTopologyRange) \
195 (instVertexAdjacency) \
198 (numCompletedSamples) \
201 (quadrangulateFaceVarying) \
202 (quadrangulatedVerts) \
206 (skipInvisibleRprimSync) \
207 (subdivisionRefineCPU) \
208 (subdivisionRefineGPU) \
210 (triangulateFaceVarying) \
215#define HD_SHADER_TOKENS \
218 (commonShaderSource) \
223 (displacementShader) \
226 (imageToWorldMatrix) \
227 (imageToHorizontallyNormalizedFilmback) \
229 (lightingBlendAmount) \
235 (pointSelectedSize) \
238 (tessControlShader) \
240 (postTessControlShader) \
241 (postTessVertexShader) \
246 (worldToViewMatrix) \
247 (worldToViewInverseMatrix) \
252#define HD_MATERIALTAG_TOKENS \
257#define HD_MATERIAL_TERMINAL_TOKENS \
265#define HD_RENDERTAG_TOKENS \
273#define HD_RENDER_CONTEXT_TOKENS \
276#define HD_OPTION_TOKENS \
279#define HD_RPRIMTYPE_TOKENS \
298#define HD_SPRIMTYPE_TOKENS \
325#define HD_BPRIMTYPE_TOKENS \
330#define HD_PRIMTYPE_TOKENS \
331 HD_RPRIMTYPE_TOKENS \
332 HD_SPRIMTYPE_TOKENS \
333 HD_BPRIMTYPE_TOKENS \
336bool HdPrimTypeIsGprim(
TfToken const& primType);
339bool HdPrimTypeIsLight(
TfToken const& 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 \
476 HD_MODEL_DRAWMODE_TOKENS);
481 HD_MATERIAL_TERMINAL_TOKENS);
493 HD_RENDER_SETTINGS_PRIM_TOKENS);
495 HD_ASPECT_RATIO_CONFORM_POLICY);
498 HD_SCENE_INDEX_EMULATION_TOKENS);
500PXR_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.