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 terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 #ifndef PXR_IMAGING_HDX_TOKENS_H
8 #define PXR_IMAGING_HDX_TOKENS_H
9 
10 #include "pxr/pxr.h"
11 #include "pxr/imaging/hdx/api.h"
14 
16 
17 
18 #define HDX_TOKENS \
19  (hdxOitCounterBuffer) \
20  (hdxOitDataBuffer) \
21  (hdxOitDepthBuffer) \
22  (hdxOitIndexBuffer) \
23  (hdxSelectionBuffer) \
24  (imagerVersion) \
25  (lightingContext) \
26  (lightingShader) \
27  (occludedSelectionOpacity) \
28  (oitCounter) \
29  (oitData) \
30  (oitDepth) \
31  (oitIndices) \
32  (oitUniforms) \
33  (oitCounterBufferBar) \
34  (oitDataBufferBar) \
35  (oitDepthBufferBar) \
36  (oitIndexBufferBar) \
37  (oitUniformBar) \
38  (oitRenderPassState) \
39  (oitScreenSize) \
40  (oitRequestFlag) \
41  (oitClearedFlag) \
42  (renderPassState) \
43  (renderIndexVersion) \
44  (selection) \
45  (selectionState) \
46  (selectionOffsets) \
47  (selectionUniforms) \
48  (selColor) \
49  (selLocateColor) \
50  (selectionPointColors) \
51  (drawTargetRenderPasses)
52 
54 
55 #define HDX_PRIMITIVE_TOKENS \
56  (lightTypePositional) \
57  (lightTypeDirectional) \
58  (lightTypeSpot) \
59  \
60  (aovInputTask) \
61  (boundingBoxTask) \
62  (colorCorrectionTask) \
63  (colorizeSelectionTask) \
64  (drawTargetTask) \
65  (drawTargetResolveTask) \
66  (oitRenderTask) \
67  (oitResolveTask) \
68  (oitVolumeRenderTask) \
69  (pickTask) \
70  (pickFromRenderBufferTask) \
71  (presentTask) \
72  (renderTask) \
73  (renderSetupTask) \
74  (simpleLightTask) \
75  (shadowTask)
76 
78 
79 // inCameraGuide is for guides for a camera that only show up when looking
80 // through that camera.
81 
82 #define HDX_RENDERTAG_TOKENS \
83  (renderingGuide) \
84  (label) \
85  (cameraGuide) \
86  (inCameraGuide) \
87  (streamline) \
88  (interactiveOnlyGeom) \
89  (path)
90 
92 
93 #define HDX_COLOR_CORRECTION_TOKENS \
94  (disabled) \
95  (sRGB) \
96  (openColorIO)
97 
98 TF_DECLARE_PUBLIC_TOKENS(HdxColorCorrectionTokens, HDX_API,
100 
101 // Color channels
102 #define HDX_COLOR_CHANNEL_TOKENS \
103  (color) \
104  (red) \
105  (green) \
106  (blue) \
107  (alpha) \
108  (luminance)
109 
110 TF_DECLARE_PUBLIC_TOKENS(HdxColorChannelTokens, HDX_API,
112 
113 // Color channels
114 #define HDX_AOV_TOKENS \
115  /* colorIntermediate->colorIntermediate is used to ping-pong
116  * between two color targets when a task wishes to
117  * read from the color target and also write into it.
118  */ \
119  (colorIntermediate) \
120  /* depthIntermediate functions analogously for depth targets.
121  */ \
122  (depthIntermediate)
123 
124 TF_DECLARE_PUBLIC_TOKENS(HdxAovTokens, HDX_API,
126 
127 // Simple lighting
128 #define HDX_SIMPLELIGHTTASK_TOKENS \
129  (lighting) \
130  (lightingContext) \
131  (useLighting) \
132  (useColorMaterialDiffuse) \
133  (lightSource) \
134  (position) \
135  (ambient) \
136  (diffuse) \
137  (specular) \
138  (spotDirection) \
139  (spotCutoff) \
140  (spotFalloff) \
141  (attenuation) \
142  (worldToLightTransform) \
143  (shadowIndexStart) \
144  (shadowIndexEnd) \
145  (hasShadow) \
146  (isIndirectLight) \
147  (shadow) \
148  (worldToShadowMatrix) \
149  (shadowToWorldMatrix) \
150  (blur) \
151  (bias) \
152  (material) \
153  (emission) \
154  (sceneColor) \
155  (shininess)
156 
157 TF_DECLARE_PUBLIC_TOKENS(HdxSimpleLightTaskTokens, HDX_API,
159 
161 
162 #endif //PXR_IMAGING_HDX_TOKENS_H
#define HDX_PRIMITIVE_TOKENS
Definition: tokens.h:55
#define HDX_API
Definition: api.h:23
#define HDX_TOKENS
Definition: tokens.h:18
#define HDX_COLOR_CHANNEL_TOKENS
Definition: tokens.h:102
#define HDX_RENDERTAG_TOKENS
Definition: tokens.h:82
ARCH_PRAGMA_PUSH ARCH_PRAGMA_MACRO_TOO_FEW_ARGUMENTS TF_DECLARE_PUBLIC_TOKENS(GusdTokens, GUSD_TOKENS)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define HDX_AOV_TOKENS
Definition: tokens.h:114
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
#define HDX_SIMPLELIGHTTASK_TOKENS
Definition: tokens.h:128
#define HDX_COLOR_CORRECTION_TOKENS
Definition: tokens.h:93