Loading...
Searching...
No Matches
tokens.h
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"
12#include "pxr/imaging/hdx/version.h"
14
15PXR_NAMESPACE_OPEN_SCOPE
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
53TF_DECLARE_PUBLIC_TOKENS(HdxTokens, HDX_API, HDX_TOKENS);
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
77TF_DECLARE_PUBLIC_TOKENS(HdxPrimitiveTokens, HDX_API, HDX_PRIMITIVE_TOKENS);
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 (widget)
91
92TF_DECLARE_PUBLIC_TOKENS(HdxRenderTagTokens, HDX_API, HDX_RENDERTAG_TOKENS);
93
94#define HDX_COLOR_CORRECTION_TOKENS \
95 (disabled) \
96 (sRGB) \
97 (openColorIO)
98
99TF_DECLARE_PUBLIC_TOKENS(HdxColorCorrectionTokens, HDX_API,
100 HDX_COLOR_CORRECTION_TOKENS);
101
102// Color channels
103#define HDX_COLOR_CHANNEL_TOKENS \
104 (color) \
105 (red) \
106 (green) \
107 (blue) \
108 (alpha) \
109 (luminance)
110
111TF_DECLARE_PUBLIC_TOKENS(HdxColorChannelTokens, HDX_API,
112 HDX_COLOR_CHANNEL_TOKENS);
113
114// Color channels
115#define HDX_AOV_TOKENS \
116 /* colorIntermediate->colorIntermediate is used to ping-pong
117 * between two color targets when a task wishes to
118 * read from the color target and also write into it.
119 */ \
120 (colorIntermediate) \
121 /* depthIntermediate functions analogously for depth targets.
122 */ \
123 (depthIntermediate)
124
125TF_DECLARE_PUBLIC_TOKENS(HdxAovTokens, HDX_API,
126 HDX_AOV_TOKENS);
127
128// Simple lighting
129#define HDX_SIMPLELIGHTTASK_TOKENS \
130 (lighting) \
131 (lightingContext) \
132 (useLighting) \
133 (useColorMaterialDiffuse) \
134 (lightSource) \
135 (position) \
136 (ambient) \
137 (diffuse) \
138 (specular) \
139 (spotDirection) \
140 (spotCutoff) \
141 (spotFalloff) \
142 (attenuation) \
143 (worldToLightTransform) \
144 (shadowIndexStart) \
145 (shadowIndexEnd) \
146 (hasShadow) \
147 (isIndirectLight) \
148 (shadow) \
149 (worldToShadowMatrix) \
150 (shadowToWorldMatrix) \
151 (blur) \
152 (bias) \
153 (material) \
154 (emission) \
155 (sceneColor) \
156 (shininess)
157
158TF_DECLARE_PUBLIC_TOKENS(HdxSimpleLightTaskTokens, HDX_API,
159 HDX_SIMPLELIGHTTASK_TOKENS);
160
161PXR_NAMESPACE_CLOSE_SCOPE
162
163#endif //PXR_IMAGING_HDX_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.
Definition: staticTokens.h:81