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
35extern HD_API TfEnvSetting<bool> HD_USE_DEPRECATED_INSTANCER_PRIMVAR_NAMES;
48 (centripetalCatmullRom) \
68 (elementsVisibility) \
88 (nonlinearSampleCount) \
114 (topologyVisibility) \
130 ((bSpline, "bspline"))
132#define HD_INSTANCER_TOKENS \
133 (culledInstanceIndices) \
135 (instancerTransform) \
136 (instancerTransformInverse) \
138 (instanceIndexBase) \
141 ((instanceTransforms, "hydra:instanceTransforms")) \
142 ((instanceRotations, "hydra:instanceRotations")) \
143 ((instanceScales, "hydra:instanceScales")) \
144 ((instanceTranslations, "hydra:instanceTranslations")) \
149 (instanceTransform) \
154#define HD_REPR_TOKENS \
161 (refinedWireOnSurf) \
165#define HD_CULLSTYLE_TOKENS \
170 (backUnlessDoubleSided) \
171 (frontUnlessDoubleSided)
173#define HD_MODEL_DRAWMODE_TOKENS \
178 ((default_, "default")) \
183#define HD_PERF_TOKENS \
185 (basisCurvesTopology) \
186 (bufferSourcesResolved) \
187 (bufferArrayRangeMigrated) \
188 (bufferArrayRangeContainerResized) \
189 (computationsCommited) \
193 (dirtyListsRebuilt) \
195 (garbageCollectedSsbo) \
196 (garbageCollectedUbo) \
197 (garbageCollectedVbo) \
199 (instBasisCurvesTopology) \
200 (instBasisCurvesTopologyRange) \
201 (instExtComputationDataRange) \
203 (instMeshTopologyRange) \
205 (instVertexAdjacency) \
208 (numCompletedSamples) \
211 (quadrangulateFaceVarying) \
212 (quadrangulatedVerts) \
216 (skipInvisibleRprimSync) \
217 (subdivisionRefineCPU) \
218 (subdivisionRefineGPU) \
220 (triangulateFaceVarying) \
225#define HD_SHADER_TOKENS \
228 (commonShaderSource) \
233 (displacementShader) \
236 (imageToWorldMatrix) \
237 (imageToHorizontallyNormalizedFilmback) \
239 (lightingBlendAmount) \
245 (pointSelectedSize) \
248 (tessControlShader) \
250 (postTessControlShader) \
251 (postTessVertexShader) \
256 (worldToViewMatrix) \
257 (worldToViewInverseMatrix) \
262#define HD_MATERIALTAG_TOKENS \
267#define HD_MATERIAL_TERMINAL_TOKENS \
274#define HD_RENDERTAG_TOKENS \
282#define HD_RENDER_CONTEXT_TOKENS \
285#define HD_OPTION_TOKENS \
288#define HD_RPRIMTYPE_TOKENS \
305#define HD_SPRIMTYPE_TOKENS \
332#define HD_BPRIMTYPE_TOKENS \
337#define HD_PRIMTYPE_TOKENS \
338 HD_RPRIMTYPE_TOKENS \
339 HD_SPRIMTYPE_TOKENS \
340 HD_BPRIMTYPE_TOKENS \
343bool HdPrimTypeIsGprim(
TfToken const& primType);
346bool HdPrimTypeIsLight(
TfToken const& primType);
351#define HD_PRIMVAR_ROLE_TOKENS \
363#define HD_AOV_TOKENS \
409 ((primvars, "primvars:")) \
427 ((shader, "shader:"))
439#define HD_RENDER_SETTINGS_TOKENS \
442 (enableSceneMaterials) \
443 (enableSceneLights) \
444 (domeLightCameraVisibility) \
446 (convergedVariance) \
447 (convergedSamplesPerPixel) \
453#define HD_RENDER_SETTINGS_PRIM_TOKENS \
455 (namespacedSettings) \
458 (materialBindingPurposes) \
459 (renderingColorSpace) \
464#define HD_ASPECT_RATIO_CONFORM_POLICY \
465 (adjustApertureWidth) \
466 (adjustApertureHeight) \
469 (adjustPixelAspectRatio) \
471#define HD_RESOURCE_TYPE_TOKENS \
475#define HD_SCENE_INDEX_EMULATION_TOKENS \
483 HD_MODEL_DRAWMODE_TOKENS);
488 HD_MATERIAL_TERMINAL_TOKENS);
500 HD_RENDER_SETTINGS_PRIM_TOKENS);
502 HD_ASPECT_RATIO_CONFORM_POLICY);
505 HD_SCENE_INDEX_EMULATION_TOKENS);
507PXR_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.