All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
tokens.h
1 //
2 // Copyright 2016 Pixar
3 //
4 // Licensed under the Apache License, Version 2.0 (the "Apache License")
5 // with the following modification; you may not use this file except in
6 // compliance with the Apache License and the following modification to it:
7 // Section 6. Trademarks. is deleted and replaced with:
8 //
9 // 6. Trademarks. This License does not grant permission to use the trade
10 // names, trademarks, service marks, or product names of the Licensor
11 // and its affiliates, except as required to comply with Section 4(c) of
12 // the License and to reproduce the content of the NOTICE file.
13 //
14 // You may obtain a copy of the Apache License at
15 //
16 // http://www.apache.org/licenses/LICENSE-2.0
17 //
18 // Unless required by applicable law or agreed to in writing, software
19 // distributed under the Apache License with the above modification is
20 // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21 // KIND, either express or implied. See the Apache License for the specific
22 // language governing permissions and limitations under the Apache License.
23 //
24 #ifndef HDX_TOKENS_H
25 #define HDX_TOKENS_H
26 
27 #include "pxr/pxr.h"
28 #include "pxr/imaging/hdx/api.h"
29 #include "pxr/imaging/hdx/version.h"
30 #include "pxr/base/tf/staticTokens.h"
31 
32 PXR_NAMESPACE_OPEN_SCOPE
33 
34 
35 #define HDX_TOKENS \
36  (hdxOitCounterBuffer) \
37  (hdxOitDataBuffer) \
38  (hdxOitDepthBuffer) \
39  (hdxOitIndexBuffer) \
40  (hdxSelectionBuffer) \
41  (imagerVersion) \
42  (lightingContext) \
43  (lightingShader) \
44  (oitCounter) \
45  (oitData) \
46  (oitDepth) \
47  (oitIndices) \
48  (oitUniforms) \
49  (oitCounterBufferBar) \
50  (oitDataBufferBar) \
51  (oitDepthBufferBar) \
52  (oitIndexBufferBar) \
53  (oitUniformBar) \
54  (oitRenderPassState) \
55  (oitScreenSize) \
56  (oitRequestFlag) \
57  (oitClearedFlag) \
58  (renderPassState) \
59  (renderIndexVersion) \
60  (selection) \
61  (selectionState) \
62  (selectionOffsets) \
63  (selectionUniforms) \
64  (selColor) \
65  (selLocateColor) \
66  (selectionPointColors) \
67  (drawTargetRenderPasses) \
68  (aovBindings)
69 
70 TF_DECLARE_PUBLIC_TOKENS(HdxTokens, HDX_API, HDX_TOKENS);
71 
72 #define HDX_PRIMITIVE_TOKENS \
73  (lightTypePositional) \
74  (lightTypeDirectional) \
75  (lightTypeSpot) \
76  \
77  (oitRenderTask) \
78  (oitResolveTask) \
79  (renderTask) \
80  (renderSetupTask) \
81  (simpleLightTask) \
82  (shadowTask) \
83  (drawTargetTask) \
84  (drawTargetResolveTask) \
85  (pickTask) \
86  (pickFromRenderBufferTask) \
87  (colorizeTask) \
88  (colorizeSelectionTask)
89 
90 TF_DECLARE_PUBLIC_TOKENS(HdxPrimitiveTokens, HDX_API, HDX_PRIMITIVE_TOKENS);
91 
92 #define HDX_OPTION_TOKENS \
93  (taskSetAlphaToCoverage)
94 
95 TF_DECLARE_PUBLIC_TOKENS(HdxOptionTokens, HDX_API, HDX_OPTION_TOKENS);
96 
97 #define HDX_RENDERTAG_TOKENS \
98  (renderingGuide) \
99  (label) \
100  (cameraGuide) \
101  (streamline) \
102  (interactiveOnlyGeom) \
103  (path)
104 
105 TF_DECLARE_PUBLIC_TOKENS(HdxRenderTagTokens, HDX_API, HDX_RENDERTAG_TOKENS);
106 
107 // XXX Deprecated Use: HdStMaterialTagTokens
108 #define HDX_MATERIALTAG_TOKENS \
109  (additive) \
110  (translucent)
111 
112 TF_DECLARE_PUBLIC_TOKENS(HdxMaterialTagTokens, HDX_API, HDX_MATERIALTAG_TOKENS);
113 
114 #define HDX_COLOR_CORRECTION_TOKENS \
115  (disabled) \
116  (sRGB) \
117  (openColorIO)
118 
119 TF_DECLARE_PUBLIC_TOKENS(HdxColorCorrectionTokens, HDX_API,
120  HDX_COLOR_CORRECTION_TOKENS);
121 
122 PXR_NAMESPACE_CLOSE_SCOPE
123 
124 #endif //HDX_TOKENS_H
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:118