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 #define HDX_TOKENS \
18  (hdxOitCounterBuffer) \
19  (hdxOitDataBuffer) \
20  (hdxOitDepthBuffer) \
21  (hdxOitIndexBuffer) \
22  (hdxSelectionBuffer) \
23  (imagerVersion) /* \deprecated */ \
24  (lightingContext) \
25  (lightingShader) \
26  (occludedSelectionOpacity) \
27  (oitCounter) \
28  (oitData) \
29  (oitDepth) \
30  (oitIndices) \
31  (oitUniforms) \
32  (oitCounterBufferBar) \
33  (oitDataBufferBar) \
34  (oitDepthBufferBar) \
35  (oitIndexBufferBar) \
36  (oitUniformBar) \
37  (oitRenderPassState) \
38  (oitScreenSize) \
39  (oitRequestFlag) \
40  (oitClearedFlag) \
41  (renderPassState) \
42  (renderIndexVersion) /* \deprecated */ \
43  (selection) \
44  (selectionState) \
45  (selectionOffsets) \
46  (selectionUniforms) \
47  (selColor) \
48  (selLocateColor) \
49  (selectionPointColors) \
50  (drawTargetRenderPasses)
51 
53 
54 #define HDX_PRIMITIVE_TOKENS \
55  (lightTypePositional) \
56  (lightTypeDirectional) \
57  (lightTypeSpot) \
58  \
59  (aovInputTask) \
60  (boundingBoxTask) \
61  (colorCorrectionTask) \
62  (colorizeSelectionTask) \
63  (drawTargetTask) \
64  (drawTargetResolveTask) \
65  (oitRenderTask) \
66  (oitResolveTask) \
67  (oitVolumeRenderTask) \
68  (pickTask) \
69  (pickFromRenderBufferTask) \
70  (presentTask) \
71  (renderTask) \
72  (renderSetupTask) \
73  (simpleLightTask) \
74  (shadowTask)
75 
77 
78 // inCameraGuide is for guides for a camera that only show up when looking
79 // through that camera.
80 
81 #define HDX_RENDERTAG_TOKENS \
82  (renderingGuide) \
83  (label) \
84  (cameraGuide) \
85  (inCameraGuide) \
86  (streamline) \
87  (interactiveOnlyGeom) \
88  (path)
89 
91 
92 #define HDX_COLOR_CORRECTION_TOKENS \
93  (disabled) \
94  (sRGB) \
95  (openColorIO)
96 
97 TF_DECLARE_PUBLIC_TOKENS(HdxColorCorrectionTokens, HDX_API,
99 
100 // Color channels
101 #define HDX_COLOR_CHANNEL_TOKENS \
102  (color) \
103  (red) \
104  (green) \
105  (blue) \
106  (alpha) \
107  (luminance)
108 
109 TF_DECLARE_PUBLIC_TOKENS(HdxColorChannelTokens, HDX_API,
111 
112 // Color channels
113 #define HDX_AOV_TOKENS \
114  /* colorIntermediate->colorIntermediate is used to ping-pong
115  * between two color targets when a task wishes to
116  * read from the color target and also write into it.
117  */ \
118  (colorIntermediate) \
119  /* depthIntermediate functions analogously for depth targets.
120  */ \
121  (depthIntermediate)
122 
123 TF_DECLARE_PUBLIC_TOKENS(HdxAovTokens, HDX_API,
125 
126 // Simple lighting
127 #define HDX_SIMPLELIGHTTASK_TOKENS \
128  (lighting) \
129  (lightingContext) \
130  (useLighting) \
131  (useColorMaterialDiffuse) \
132  (lightCount) \
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:54
#define PXR_NAMESPACE_OPEN_SCOPE
Definition: pxr.h:73
#define HDX_API
Definition: api.h:23
#define HDX_TOKENS
Definition: tokens.h:17
#define HDX_COLOR_CHANNEL_TOKENS
Definition: tokens.h:101
#define HDX_RENDERTAG_TOKENS
Definition: tokens.h:81
ARCH_PRAGMA_PUSH ARCH_PRAGMA_MACRO_TOO_FEW_ARGUMENTS TF_DECLARE_PUBLIC_TOKENS(GusdTokens, GUSD_TOKENS)
#define HDX_AOV_TOKENS
Definition: tokens.h:113
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
#define HDX_SIMPLELIGHTTASK_TOKENS
Definition: tokens.h:127
#define HDX_COLOR_CORRECTION_TOKENS
Definition: tokens.h:92