Loading...
Searching...
No Matches
tokens.h
1//
2// Copyright 2022 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_TOKENS_H
8#define EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_TOKENS_H
9
10#include "pxr/pxr.h"
11#include "hdPrman/api.h"
13
14PXR_NAMESPACE_OPEN_SCOPE
15
16#define HD_PRMAN_TOKENS \
17 (meshLight) \
18 (meshLightSourceMesh) \
19 (meshLightSourcePoints) \
20 (meshLightSourceVolume) \
21 (sourceGeom) \
22 (hdPrimOriginId)
23
24TF_DECLARE_PUBLIC_TOKENS(HdPrmanTokens, HDPRMAN_API, HD_PRMAN_TOKENS);
25
29#define HD_PRMAN_RILEY_PRIM_TYPE_TOKENS \
30 ((camera, "riley:camera")) \
31 ((clippingPlane, "riley:clippingPlane")) \
32 ((coordinateSystem, "riley:coordinateSystem")) \
33 ((displacement, "riley:displacement")) \
34 ((display, "riley:display")) \
35 ((displayFilter, "riley:displayFilter")) \
36 ((energyFilter, "riley:energyFilter")) \
37 ((geometryInstance, "riley:geometryInstance")) \
38 ((geometryPrototype, "riley:geometryPrototype")) \
39 ((globals, "riley:globals")) \
40 ((integrator, "riley:integrator")) \
41 ((lightInstance, "riley:lightInstance")) \
42 ((lightShader, "riley:lightShader")) \
43 ((material, "riley:material")) \
44 ((renderOutput, "riley:renderOutput")) \
45 ((renderTarget, "riley:renderTarget")) \
46 ((renderView, "riley:renderView")) \
47 ((sampleFilter, "riley:sampleFilter"))
48
49TF_DECLARE_PUBLIC_TOKENS(HdPrmanRileyPrimTypeTokens, HDPRMAN_API,
50 HD_PRMAN_RILEY_PRIM_TYPE_TOKENS);
51
52#define HD_PRMAN_RILEY_ADDITIONAL_ROLE_TOKENS \
53 (colorReference) \
54 (floatReference)
55
56TF_DECLARE_PUBLIC_TOKENS(HdPrmanRileyAdditionalRoleTokens, HDPRMAN_API,
57 HD_PRMAN_RILEY_ADDITIONAL_ROLE_TOKENS);
58
59#define HD_PRMAN_RENDER_PARAM_TOKENS \
60 (sceneStateId)
61
62TF_DECLARE_PUBLIC_TOKENS(HdPrmanRenderParamTokens,
63 HD_PRMAN_RENDER_PARAM_TOKENS);
64
65#define HD_PRMAN_PLUGIN_TOKENS \
66 ((idAssigning, "HdPrman_IdSceneIndexPlugin")) \
67 ((motionBlur, "HdPrman_MotionBlurSceneIndexPlugin")) \
68 ((extComp, "HdPrman_ExtComputationPrimvarPruningSceneIndexPlugin")) \
69 ((retesselation, "HdPrman_RetesselationSceneIndexPlugin")) \
70 ((vblurInterpreting, "HdPrman_VblurInterpretingSceneIndexPlugin")) \
71 ((velocityMotion, "HdPrman_VelocityMotionResolvingSceneIndexPlugin")) \
72 ((worldOffset, "HdPrman_WorldOffsetSceneIndexPlugin")) \
73 ((particleFieldConversion, "HdPrman_ParticleFieldConversionSceneIndexPlugin"))
74
75TF_DECLARE_PUBLIC_TOKENS(HdPrmanPluginTokens, HD_PRMAN_PLUGIN_TOKENS);
76
77#define HD_PRMAN_DISPLAY_NAMES \
78 ((RenderManRIS, "RenderMan RIS")) \
79 ((RenderManXPU, "RenderMan XPU")) \
80 ((RenderManXPUCPU, "RenderMan XPU - CPU")) \
81 ((RenderManXPUGPU, "RenderMan XPU - GPU"))
82
83TF_DECLARE_PUBLIC_TOKENS(HdPrmanDisplayNamesTokens, HD_PRMAN_DISPLAY_NAMES);
84
85#define HD_PRMAN_ATTRIBUTE_NAMES \
86 ((riAttributesIdentifierId, \
87 "ri:attributes:identifier:id")) \
88 ((riAttributesIdentifierId2, \
89 "ri:attributes:identifier:id2"))
90
91TF_DECLARE_PUBLIC_TOKENS(HdPrmanAttributeTokens, HD_PRMAN_ATTRIBUTE_NAMES);
92
93
94const std::vector<std::string>& HdPrman_GetPluginDisplayNames();
95const TfTokenVector& HdPrman_GetRenderContexts();
96
97PXR_NAMESPACE_CLOSE_SCOPE
98
99#endif //EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_TOKENS_H
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.
Definition token.h:440