HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
tokens.h File Reference
+ Include dependency graph for tokens.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HD_TOKENS
 
#define HD_INSTANCER_TOKENS
 
#define HD_REPR_TOKENS
 
#define HD_CULLSTYLE_TOKENS
 
#define HD_MODEL_DRAWMODE_TOKENS
 
#define HD_PERF_TOKENS
 
#define HD_SHADER_TOKENS
 
#define HD_MATERIALTAG_TOKENS   (defaultMaterialTag)
 
#define HD_MATERIAL_TERMINAL_TOKENS
 
#define HD_RENDERTAG_TOKENS
 
#define HD_RENDER_CONTEXT_TOKENS   ((universal, ""))
 
#define HD_OPTION_TOKENS   (parallelRprimSync)
 
#define HD_RPRIMTYPE_TOKENS
 
#define HD_LIGHT_TYPE_TOKENS
 
#define HD_LIGHT_FILTER_TYPE_TOKENS   (lightFilter)
 
#define HD_SPRIMTYPE_TOKENS
 
#define HD_BPRIMTYPE_TOKENS
 
#define HD_PRIMTYPE_TOKENS
 
#define HD_PRIMVAR_ROLE_TOKENS
 
#define HD_AOV_TOKENS
 
#define HD_RENDER_SETTINGS_TOKENS
 
#define HD_RENDER_SETTINGS_PRIM_TOKENS
 
#define HD_ASPECT_RATIO_CONFORM_POLICY
 
#define HD_RESOURCE_TYPE_TOKENS
 
#define HD_SCENE_INDEX_EMULATION_TOKENS   (sceneDelegate) \
 
#define HD_COLLECTION_EMULATION_TOKENS
 
#define HD_SKINNING_INPUT_TOKENS
 
#define HD_SKINNING_SKEL_INPUT_TOKENS
 

Functions

HD_API bool HdPrimTypeIsGprim (TfToken const &primType)
 
HD_API bool HdPrimTypeIsLight (TfToken const &primType)
 
HD_API bool HdPrimTypeSupportsGeomSubsets (const TfToken &primType)
 
HD_API const TfTokenVectorHdLightPrimTypeTokens ()
 
HD_API TfToken HdAovTokensMakePrimvar (TfToken const &primvar)
 
HD_API TfToken HdAovTokensMakeLpe (TfToken const &lpe)
 
HD_API TfToken HdAovTokensMakeShader (TfToken const &shader)
 
 TF_DECLARE_PUBLIC_TOKENS (HdTokens, HD_API, HD_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdInstancerTokens, HD_API, HD_INSTANCER_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdReprTokens, HD_API, HD_REPR_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdCullStyleTokens, HD_API, HD_CULLSTYLE_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdModelDrawModeTokens, HD_API, HD_MODEL_DRAWMODE_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdPerfTokens, HD_API, HD_PERF_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdShaderTokens, HD_API, HD_SHADER_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdMaterialTagTokens, HD_API, HD_MATERIALTAG_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdMaterialTerminalTokens, HD_API, HD_MATERIAL_TERMINAL_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdRenderTagTokens, HD_API, HD_RENDERTAG_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdRenderContextTokens, HD_API, HD_RENDER_CONTEXT_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdOptionTokens, HD_API, HD_OPTION_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdLightTypeTokens, HD_API, HD_LIGHT_TYPE_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdLightFilterTypeTokens, HD_API, HD_LIGHT_FILTER_TYPE_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdRprimTypeTokens, HD_API, HD_RPRIMTYPE_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdSprimTypeTokens, HD_API, HD_SPRIMTYPE_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdBprimTypeTokens, HD_API, HD_BPRIMTYPE_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdPrimTypeTokens, HD_API, HD_PRIMTYPE_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdPrimvarRoleTokens, HD_API, HD_PRIMVAR_ROLE_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdAovTokens, HD_API, HD_AOV_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdRenderSettingsTokens, HD_API, HD_RENDER_SETTINGS_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdRenderSettingsPrimTokens, HD_API, HD_RENDER_SETTINGS_PRIM_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdAspectRatioConformPolicyTokens, HD_API, HD_ASPECT_RATIO_CONFORM_POLICY)
 
 TF_DECLARE_PUBLIC_TOKENS (HdResourceTypeTokens, HD_API, HD_RESOURCE_TYPE_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdSceneIndexEmulationTokens, HD_API, HD_SCENE_INDEX_EMULATION_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdCollectionEmulationTokens, HD_API, HD_COLLECTION_EMULATION_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdSkinningInputTokens, HD_API, HD_SKINNING_INPUT_TOKENS)
 
 TF_DECLARE_PUBLIC_TOKENS (HdSkinningSkelInputTokens, HD_API, HD_SKINNING_SKEL_INPUT_TOKENS)
 

Macro Definition Documentation

#define HD_AOV_TOKENS

Definition at line 362 of file tokens.h.

#define HD_ASPECT_RATIO_CONFORM_POLICY
Value:
(adjustApertureWidth) \
(adjustApertureHeight) \
(expandAperture) \
(cropAperture) \
(adjustPixelAspectRatio) \

Definition at line 469 of file tokens.h.

#define HD_BPRIMTYPE_TOKENS
Value:
/* Bprims */ \
(renderBuffer) \
(renderSettings)

Definition at line 325 of file tokens.h.

#define HD_COLLECTION_EMULATION_TOKENS
Value:
((lightLinkCollection, "lightLink")) \
((shadowLinkCollection, "shadowLink")) \
((filterLinkCollection, "filterLink")) \
(lightLinkCollectionMembershipExpression) \
(shadowLinkCollectionMembershipExpression) \
(filterLinkCollectionMembershipExpression)

Definition at line 487 of file tokens.h.

#define HD_CULLSTYLE_TOKENS
Value:
(dontCare) \
(nothing) \
(back) \
(front) \
(backUnlessDoubleSided) \
(frontUnlessDoubleSided)

Definition at line 142 of file tokens.h.

#define HD_INSTANCER_TOKENS
Value:
(culledInstanceIndices) \
(instancer) \
(instancerTransform) \
(instancerTransformInverse) \
(instanceIndices) \
(instanceIndexBase) \
\
/* New instance xform tokens */ \
((instanceTransforms, "hydra:instanceTransforms")) \
((instanceRotations, "hydra:instanceRotations")) \
((instanceScales, "hydra:instanceScales")) \
((instanceTranslations, "hydra:instanceTranslations"))

Definition at line 115 of file tokens.h.

#define HD_LIGHT_FILTER_TYPE_TOKENS   (lightFilter)

Definition at line 303 of file tokens.h.

#define HD_LIGHT_TYPE_TOKENS
Value:
(cylinderLight) \
(diskLight) \
(distantLight) \
(domeLight) \
(light) \
(meshLight) \
(pluginLight) \
(rectLight) \
(simpleLight) \
(sphereLight)

Definition at line 291 of file tokens.h.

#define HD_MATERIAL_TERMINAL_TOKENS
Value:
(displacement) \
(volume) \
(volumeFilter) \
(light) \
(lightFilter) \
(imageShader)

Definition at line 248 of file tokens.h.

#define HD_MATERIALTAG_TOKENS   (defaultMaterialTag)

Definition at line 243 of file tokens.h.

#define HD_MODEL_DRAWMODE_TOKENS
Value:
(inherited) \
(origin) \
(bounds) \
(cards) \
((default_, "default")) \
(cross) \
(box) \
(fromTexture)
SIM_DerVector3 cross(const SIM_DerVector3 &lhs, const SIM_DerVector3 &rhs)

Definition at line 150 of file tokens.h.

#define HD_OPTION_TOKENS   (parallelRprimSync)

Definition at line 267 of file tokens.h.

#define HD_PERF_TOKENS

Definition at line 160 of file tokens.h.

#define HD_PRIMTYPE_TOKENS
Value:
/* Scene-index-only prim types */ \
(renderPass) \
(task)
#define HD_BPRIMTYPE_TOKENS
Definition: tokens.h:325

Definition at line 330 of file tokens.h.

#define HD_PRIMVAR_ROLE_TOKENS
Value:
((none, "")) \
(color) \
(vector) \
(normal) \
(point) \
(textureCoordinate)
bool none(const vbool4 &v)
Definition: simd.h:3601
GLuint color
Definition: glcorearb.h:1261

Definition at line 350 of file tokens.h.

#define HD_RENDER_CONTEXT_TOKENS   ((universal, ""))

Definition at line 264 of file tokens.h.

#define HD_RENDER_SETTINGS_PRIM_TOKENS
Value:
(active) \
(namespacedSettings) \
(renderProducts) \
(includedPurposes) \
(materialBindingPurposes) \
(renderingColorSpace) \
(unionedSamplingInterval) \
(camera) \
(disableDepthOfField) \
that also have some descendant prim *whose name begins with which in turn has a child named baz where *the predicate active
HUSD_API const char * disableMotionBlur()

Definition at line 455 of file tokens.h.

#define HD_RENDER_SETTINGS_TOKENS
Value:
/* General graphical options */ \
(enableShadows) \
(enableSceneMaterials) \
(enableSceneLights) \
(enableExposureCompensation) \
(domeLightCameraVisibility) \
/* Raytracer sampling settings */ \
(convergedVariance) \
(convergedSamplesPerPixel) \
/* thread limit settings */ \
(threadLimit) \
/* interactive vs offline */ \
(enableInteractive) \
/* To pass HdRendererCreateArgs to HdRendererPlugin::CreateDelegate */ \
(rendererCreateArgs)

Definition at line 438 of file tokens.h.

#define HD_RENDERTAG_TOKENS
Value:
(geometry) \
(guide) \
(hidden) \
(proxy) \
IFDmantra you can see code vm_image_mplay_direction endcode When SOHO starts a render
Definition: HDK_Image.dox:266

Definition at line 257 of file tokens.h.

#define HD_REPR_TOKENS
Value:
(disabled) \
(hull) \
(points) \
(smoothHull) \
(refined) \
(refinedWire) \
(refinedWireOnSurf) \
(refinedSolidWireOnSurf) \
(wire) \
(wireOnSurf) \
(solidWireOnSurf)
GLdouble GLdouble GLint GLint const GLdouble * points
Definition: glad.h:2676

Definition at line 129 of file tokens.h.

#define HD_RESOURCE_TYPE_TOKENS
Value:
(shaderFile)
GLuint texture
Definition: glcorearb.h:415

Definition at line 476 of file tokens.h.

#define HD_RPRIMTYPE_TOKENS
Value:
/* Rprims */ \
(capsule) \
(cone) \
(cube) \
(cylinder) \
(geomSubset) \
(mesh) \
(tetMesh) \
(nurbsPatch) \
(basisCurves) \
(nurbsCurves) \
(particleField) \
(plane) \
(points) \
(sphere) \
(volume) \
(model)
GLdouble GLdouble GLint GLint const GLdouble * points
Definition: glad.h:2676

Definition at line 270 of file tokens.h.

#define HD_SCENE_INDEX_EMULATION_TOKENS   (sceneDelegate) \

Definition at line 480 of file tokens.h.

#define HD_SHADER_TOKENS

Definition at line 204 of file tokens.h.

#define HD_SKINNING_INPUT_TOKENS
Value:
((skinningXforms, "hydra:skinningXforms")) \
((skinningDualQuats, "hydra:skinningDualQuats")) \
((skinningScaleXforms, "hydra:skinningScaleXforms")) \
((blendShapeWeights, "hydra:blendShapeWeights")) \
((skelLocalToCommonSpace, "hydra:skelLocalToWorld")) \
((commonSpaceToPrimLocal, "hydra:primWorldToLocal")) \
((blendShapeOffsets, "hydra:blendShapeOffsets")) \
((blendShapeOffsetRanges, "hydra:blendShapeOffsetRanges")) \
((numBlendShapeOffsetRanges, "hydra:numBlendShapeOffsetRanges")) \
\
((hasConstantInfluences, "hydra:hasConstantInfluences")) \
((numInfluencesPerComponent, "hydra:numInfluencesPerComponent")) \
((influences, "hydra:influences")) \
/* skinningMethod primvar on the skel schema is a token, we provide a
* numeric alternative to pass to storm's vertex shader.
*/ \
((numSkinningMethod, "hydra:numSkinningMethod")) \
/* Extra primvars for computing instance/vertex offsets to index into
* concatenated skinningXForms/blendShapeWeights constant primvars.
*/ \
((numJoints, "hydra:numJoints")) \
((numBlendShapeWeights, "hydra:numBlendShapeWeights"))

Definition at line 496 of file tokens.h.

#define HD_SKINNING_SKEL_INPUT_TOKENS
Value:
/* HYD-3510
* these two already exist and they are the source of influences and
* numInfluencesPerComponent above. but currently hydra doesn't handle
* tensor valued vertex primvar correctly. once that's addressed, we
* can access these two in the vertex shader directly and remove the
* two above. see imaging/hdSt/mesh.cpp _PopulateVertexPrimvars()#1417
* buffer source array size is currently hardcoded to 1.
*
*((jointIndices, "skel:jointIndices"))
*((jointWeights, "skel:jointWeights"))
*/ \
((geomBindTransform, "skel:geomBindTransform"))

Definition at line 521 of file tokens.h.

#define HD_SPRIMTYPE_TOKENS
Value:
/* Sprims */ \
(camera) \
(drawTarget) \
(material) \
(coordSys) \
(instancer) \
(instance) \
(integrator) \
(sampleFilter) \
(displayFilter) \
(imageShader) \
\
\
/* Sprims ExtComputations */ \
(extComputation) \
#define HD_LIGHT_FILTER_TYPE_TOKENS
Definition: tokens.h:303

Definition at line 306 of file tokens.h.

#define HD_TOKENS

Definition at line 18 of file tokens.h.

Function Documentation

HD_API TfToken HdAovTokensMakeLpe ( TfToken const &  lpe)
HD_API TfToken HdAovTokensMakePrimvar ( TfToken const &  primvar)
HD_API TfToken HdAovTokensMakeShader ( TfToken const &  shader)
HD_API const TfTokenVector& HdLightPrimTypeTokens ( )
HD_API bool HdPrimTypeIsGprim ( TfToken const &  primType)
HD_API bool HdPrimTypeIsLight ( TfToken const &  primType)
HD_API bool HdPrimTypeSupportsGeomSubsets ( const TfToken primType)
TF_DECLARE_PUBLIC_TOKENS ( HdTokens  ,
HD_API  ,
HD_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdInstancerTokens  ,
HD_API  ,
HD_INSTANCER_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdReprTokens  ,
HD_API  ,
HD_REPR_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdCullStyleTokens  ,
HD_API  ,
HD_CULLSTYLE_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdModelDrawModeTokens  ,
HD_API  ,
HD_MODEL_DRAWMODE_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdPerfTokens  ,
HD_API  ,
HD_PERF_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdShaderTokens  ,
HD_API  ,
HD_SHADER_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdMaterialTagTokens  ,
HD_API  ,
HD_MATERIALTAG_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdMaterialTerminalTokens  ,
HD_API  ,
HD_MATERIAL_TERMINAL_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdRenderTagTokens  ,
HD_API  ,
HD_RENDERTAG_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdRenderContextTokens  ,
HD_API  ,
HD_RENDER_CONTEXT_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdOptionTokens  ,
HD_API  ,
HD_OPTION_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdLightTypeTokens  ,
HD_API  ,
HD_LIGHT_TYPE_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdLightFilterTypeTokens  ,
HD_API  ,
HD_LIGHT_FILTER_TYPE_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdRprimTypeTokens  ,
HD_API  ,
HD_RPRIMTYPE_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdSprimTypeTokens  ,
HD_API  ,
HD_SPRIMTYPE_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdBprimTypeTokens  ,
HD_API  ,
HD_BPRIMTYPE_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdPrimTypeTokens  ,
HD_API  ,
HD_PRIMTYPE_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdPrimvarRoleTokens  ,
HD_API  ,
HD_PRIMVAR_ROLE_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdAovTokens  ,
HD_API  ,
HD_AOV_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdRenderSettingsTokens  ,
HD_API  ,
HD_RENDER_SETTINGS_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdRenderSettingsPrimTokens  ,
HD_API  ,
HD_RENDER_SETTINGS_PRIM_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdAspectRatioConformPolicyTokens  ,
HD_API  ,
HD_ASPECT_RATIO_CONFORM_POLICY   
)
TF_DECLARE_PUBLIC_TOKENS ( HdResourceTypeTokens  ,
HD_API  ,
HD_RESOURCE_TYPE_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdSceneIndexEmulationTokens  ,
HD_API  ,
HD_SCENE_INDEX_EMULATION_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdCollectionEmulationTokens  ,
HD_API  ,
HD_COLLECTION_EMULATION_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdSkinningInputTokens  ,
HD_API  ,
HD_SKINNING_INPUT_TOKENS   
)
TF_DECLARE_PUBLIC_TOKENS ( HdSkinningSkelInputTokens  ,
HD_API  ,
HD_SKINNING_SKEL_INPUT_TOKENS   
)