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"
32PXR_NAMESPACE_OPEN_SCOPE
45 (centripetalCatmullRom) \
65 (elementsVisibility) \
85 (nonlinearSampleCount) \
110 (topologyVisibility) \
126 ((bSpline, "bspline"))
128#define HD_INSTANCER_TOKENS \
129 (culledInstanceIndices) \
131 (instancerTransform) \
132 (instancerTransformInverse) \
134 (instanceIndexBase) \
135 (instanceTransform) \
140#define HD_REPR_TOKENS \
147 (refinedWireOnSurf) \
151#define HD_CULLSTYLE_TOKENS \
156 (backUnlessDoubleSided) \
157 (frontUnlessDoubleSided)
159#define HD_MODEL_DRAWMODE_TOKENS \
164 ((default_, "default")) \
169#define HD_PERF_TOKENS \
171 (basisCurvesTopology) \
172 (bufferSourcesResolved) \
173 (bufferArrayRangeMigrated) \
174 (bufferArrayRangeContainerResized) \
175 (computationsCommited) \
179 (dirtyListsRebuilt) \
181 (garbageCollectedSsbo) \
182 (garbageCollectedUbo) \
183 (garbageCollectedVbo) \
185 (instBasisCurvesTopology) \
186 (instBasisCurvesTopologyRange) \
187 (instExtComputationDataRange) \
189 (instMeshTopologyRange) \
191 (instVertexAdjacency) \
194 (numCompletedSamples) \
197 (quadrangulateFaceVarying) \
198 (quadrangulatedVerts) \
202 (skipInvisibleRprimSync) \
203 (subdivisionRefineCPU) \
204 (subdivisionRefineGPU) \
206 (triangulateFaceVarying) \
210#define HD_SHADER_TOKENS \
213 (commonShaderSource) \
218 (displacementShader) \
221 (imageToWorldMatrix) \
222 (imageToHorizontallyNormalizedFilmback) \
224 (lightingBlendAmount) \
230 (pointSelectedSize) \
232 (tessControlShader) \
234 (postTessControlShader) \
235 (postTessVertexShader) \
240 (worldToViewMatrix) \
241 (worldToViewInverseMatrix) \
246#define HD_MATERIALTAG_TOKENS \
251#define HD_MATERIAL_TERMINAL_TOKENS \
258#define HD_RENDERTAG_TOKENS \
266#define HD_RENDER_CONTEXT_TOKENS \
269#define HD_OPTION_TOKENS \
272#define HD_RPRIMTYPE_TOKENS \
287#define HD_SPRIMTYPE_TOKENS \
313#define HD_BPRIMTYPE_TOKENS \
318#define HD_PRIMTYPE_TOKENS \
319 HD_RPRIMTYPE_TOKENS \
320 HD_SPRIMTYPE_TOKENS \
321 HD_BPRIMTYPE_TOKENS \
324bool HdPrimTypeIsGprim(
TfToken const& primType);
327bool HdPrimTypeIsLight(
TfToken const& primType);
332#define HD_PRIMVAR_ROLE_TOKENS \
344#define HD_AOV_TOKENS \
390 ((primvars, "primvars:")) \
408 ((shader, "shader:"))
420#define HD_RENDER_SETTINGS_TOKENS \
423 (enableSceneMaterials) \
424 (enableSceneLights) \
425 (domeLightCameraVisibility) \
427 (convergedVariance) \
428 (convergedSamplesPerPixel) \
434#define HD_RENDER_SETTINGS_PRIM_TOKENS \
436 (namespacedSettings) \
439 (materialBindingPurposes) \
440 (renderingColorSpace) \
443#define HD_RESOURCE_TYPE_TOKENS \
447#define HD_SCENE_INDEX_EMULATION_TOKENS \
455 HD_MODEL_DRAWMODE_TOKENS);
460 HD_MATERIAL_TERMINAL_TOKENS);
472 HD_RENDER_SETTINGS_PRIM_TOKENS);
475 HD_SCENE_INDEX_EMULATION_TOKENS);
477PXR_NAMESPACE_CLOSE_SCOPE
Token for efficient comparison, assignment, and hashing of known strings.
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.