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 (meshLightSourceVolume) \
20 (sourceGeom) \
21 (hdPrimOriginId)
22
23TF_DECLARE_PUBLIC_TOKENS(HdPrmanTokens, HDPRMAN_API, HD_PRMAN_TOKENS);
24
28#define HD_PRMAN_RILEY_PRIM_TYPE_TOKENS \
29 ((camera, "riley:camera")) \
30 ((clippingPlane, "riley:clippingPlane")) \
31 ((coordinateSystem, "riley:coordinateSystem")) \
32 ((displacement, "riley:displacement")) \
33 ((display, "riley:display")) \
34 ((displayFilter, "riley:displayFilter")) \
35 ((energyFilter, "riley:energyFilter")) \
36 ((geometryInstance, "riley:geometryInstance")) \
37 ((geometryPrototype, "riley:geometryPrototype")) \
38 ((globals, "riley:globals")) \
39 ((integrator, "riley:integrator")) \
40 ((lightInstance, "riley:lightInstance")) \
41 ((lightShader, "riley:lightShader")) \
42 ((material, "riley:material")) \
43 ((renderOutput, "riley:renderOutput")) \
44 ((renderTarget, "riley:renderTarget")) \
45 ((renderView, "riley:renderView")) \
46 ((sampleFilter, "riley:sampleFilter"))
47
48TF_DECLARE_PUBLIC_TOKENS(HdPrmanRileyPrimTypeTokens, HDPRMAN_API,
49 HD_PRMAN_RILEY_PRIM_TYPE_TOKENS);
50
51#define HD_PRMAN_RILEY_ADDITIONAL_ROLE_TOKENS \
52 (colorReference) \
53 (floatReference)
54
55TF_DECLARE_PUBLIC_TOKENS(HdPrmanRileyAdditionalRoleTokens, HDPRMAN_API,
56 HD_PRMAN_RILEY_ADDITIONAL_ROLE_TOKENS);
57
58#define HD_PRMAN_RENDER_PARAM_TOKENS \
59 (sceneStateId)
60
61TF_DECLARE_PUBLIC_TOKENS(HdPrmanRenderParamTokens,
62 HD_PRMAN_RENDER_PARAM_TOKENS);
63
64#define HD_PRMAN_PLUGIN_TOKENS \
65 ((idAssigning, "HdPrman_IdSceneIndexPlugin")) \
66 ((motionBlur, "HdPrman_MotionBlurSceneIndexPlugin")) \
67 ((extComp, "HdPrman_ExtComputationPrimvarPruningSceneIndexPlugin")) \
68 ((retesselation, "HdPrman_RetesselationSceneIndexPlugin")) \
69 ((vblurInterpreting, "HdPrman_VblurInterpretingSceneIndexPlugin")) \
70 ((velocityMotion, "HdPrman_VelocityMotionResolvingSceneIndexPlugin")) \
71 ((worldOffset, "HdPrman_WorldOffsetSceneIndexPlugin")) \
72 ((particleFieldConversion, "HdPrman_ParticleFieldConversionSceneIndexPlugin"))
73
74TF_DECLARE_PUBLIC_TOKENS(HdPrmanPluginTokens, HD_PRMAN_PLUGIN_TOKENS);
75
76#define HD_PRMAN_DISPLAY_NAMES \
77 ((RenderManRIS, "RenderMan RIS")) \
78 ((RenderManXPU, "RenderMan XPU")) \
79 ((RenderManXPUCPU, "RenderMan XPU - CPU")) \
80 ((RenderManXPUGPU, "RenderMan XPU - GPU"))
81
82TF_DECLARE_PUBLIC_TOKENS(HdPrmanDisplayNamesTokens, HD_PRMAN_DISPLAY_NAMES);
83
84#define HD_PRMAN_ATTRIBUTE_NAMES \
85 ((riAttributesIdentifierId, \
86 "ri:attributes:identifier:id")) \
87 ((riAttributesIdentifierId2, \
88 "ri:attributes:identifier:id2"))
89
90TF_DECLARE_PUBLIC_TOKENS(HdPrmanAttributeTokens, HD_PRMAN_ATTRIBUTE_NAMES);
91
92
93const std::vector<std::string>& HdPrman_GetPluginDisplayNames();
94const TfTokenVector& HdPrman_GetRenderContexts();
95
96PXR_NAMESPACE_CLOSE_SCOPE
97
98#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