HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
tokens.h
Go to the documentation of this file.
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 PXR_IMAGING_HDX_TOKENS_H
25 #define PXR_IMAGING_HDX_TOKENS_H
26 
27 #include "pxr/pxr.h"
28 #include "pxr/imaging/hdx/api.h"
31 
33 
34 
35 #define HDX_TOKENS \
36  (hdxOitCounterBuffer) \
37  (hdxOitDataBuffer) \
38  (hdxOitDepthBuffer) \
39  (hdxOitIndexBuffer) \
40  (hdxSelectionBuffer) \
41  (imagerVersion) \
42  (lightingContext) \
43  (lightingShader) \
44  (occludedSelectionOpacity) \
45  (oitCounter) \
46  (oitData) \
47  (oitDepth) \
48  (oitIndices) \
49  (oitUniforms) \
50  (oitCounterBufferBar) \
51  (oitDataBufferBar) \
52  (oitDepthBufferBar) \
53  (oitIndexBufferBar) \
54  (oitUniformBar) \
55  (oitRenderPassState) \
56  (oitScreenSize) \
57  (oitRequestFlag) \
58  (oitClearedFlag) \
59  (renderPassState) \
60  (renderIndexVersion) \
61  (selection) \
62  (selectionState) \
63  (selectionOffsets) \
64  (selectionUniforms) \
65  (selColor) \
66  (selLocateColor) \
67  (selectionPointColors) \
68  (drawTargetRenderPasses)
69 
71 
72 #define HDX_PRIMITIVE_TOKENS \
73  (lightTypePositional) \
74  (lightTypeDirectional) \
75  (lightTypeSpot) \
76  \
77  (aovInputTask) \
78  (boundingBoxTask) \
79  (colorCorrectionTask) \
80  (colorizeSelectionTask) \
81  (drawTargetTask) \
82  (drawTargetResolveTask) \
83  (oitRenderTask) \
84  (oitResolveTask) \
85  (oitVolumeRenderTask) \
86  (pickTask) \
87  (pickFromRenderBufferTask) \
88  (presentTask) \
89  (renderTask) \
90  (renderSetupTask) \
91  (simpleLightTask) \
92  (shadowTask)
93 
95 
96 // inCameraGuide is for guides for a camera that only show up when looking
97 // through that camera.
98 
99 #define HDX_RENDERTAG_TOKENS \
100  (renderingGuide) \
101  (label) \
102  (cameraGuide) \
103  (inCameraGuide) \
104  (streamline) \
105  (interactiveOnlyGeom) \
106  (path) \
107  (widget)
108 
110 
111 #define HDX_COLOR_CORRECTION_TOKENS \
112  (disabled) \
113  (sRGB) \
114  (openColorIO)
115 
116 TF_DECLARE_PUBLIC_TOKENS(HdxColorCorrectionTokens, HDX_API,
118 
119 // Color channels
120 #define HDX_COLOR_CHANNEL_TOKENS \
121  (color) \
122  (red) \
123  (green) \
124  (blue) \
125  (alpha) \
126  (luminance)
127 
128 TF_DECLARE_PUBLIC_TOKENS(HdxColorChannelTokens, HDX_API,
130 
131 // Color channels
132 #define HDX_AOV_TOKENS \
133  /* colorIntermediate->colorIntermediate is used to ping-pong
134  * between two color targets when a task wishes to
135  * read from the color target and also write into it.
136  */ \
137  (colorIntermediate) \
138  /* depthIntermediate functions analogously for depth targets.
139  */ \
140  (depthIntermediate)
141 
142 TF_DECLARE_PUBLIC_TOKENS(HdxAovTokens, HDX_API,
144 
145 // Simple lighting
146 #define HDX_SIMPLELIGHTTASK_TOKENS \
147  (lighting) \
148  (lightingContext) \
149  (useLighting) \
150  (useColorMaterialDiffuse) \
151  (lightSource) \
152  (position) \
153  (ambient) \
154  (diffuse) \
155  (specular) \
156  (spotDirection) \
157  (spotCutoff) \
158  (spotFalloff) \
159  (attenuation) \
160  (worldToLightTransform) \
161  (shadowIndexStart) \
162  (shadowIndexEnd) \
163  (hasShadow) \
164  (isIndirectLight) \
165  (shadow) \
166  (worldToShadowMatrix) \
167  (shadowToWorldMatrix) \
168  (blur) \
169  (bias) \
170  (material) \
171  (emission) \
172  (sceneColor) \
173  (shininess)
174 
175 TF_DECLARE_PUBLIC_TOKENS(HdxSimpleLightTaskTokens, HDX_API,
177 
179 
180 #endif //PXR_IMAGING_HDX_TOKENS_H
#define HDX_PRIMITIVE_TOKENS
Definition: tokens.h:72
#define HDX_API
Definition: api.h:40
#define HDX_TOKENS
Definition: tokens.h:35
#define HDX_COLOR_CHANNEL_TOKENS
Definition: tokens.h:120
#define HDX_RENDERTAG_TOKENS
Definition: tokens.h:99
TF_DECLARE_PUBLIC_TOKENS(GusdTokens, GUSD_TOKENS)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1441
#define HDX_AOV_TOKENS
Definition: tokens.h:132
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:91
#define HDX_SIMPLELIGHTTASK_TOKENS
Definition: tokens.h:146
#define HDX_COLOR_CORRECTION_TOKENS
Definition: tokens.h:111