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#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
52TF_DECLARE_PUBLIC_TOKENS(HdxTokens, HDX_API, HDX_TOKENS);
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
76TF_DECLARE_PUBLIC_TOKENS(HdxPrimitiveTokens, HDX_API, HDX_PRIMITIVE_TOKENS);
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
90TF_DECLARE_PUBLIC_TOKENS(HdxRenderTagTokens, HDX_API, HDX_RENDERTAG_TOKENS);
91
92#define HDX_COLOR_CORRECTION_TOKENS \
93 (disabled) \
94 (sRGB) \
95 (openColorIO)
96
97TF_DECLARE_PUBLIC_TOKENS(HdxColorCorrectionTokens, HDX_API,
98 HDX_COLOR_CORRECTION_TOKENS);
99
100// Color channels
101#define HDX_COLOR_CHANNEL_TOKENS \
102 (color) \
103 (red) \
104 (green) \
105 (blue) \
106 (alpha) \
107 (luminance)
108
109TF_DECLARE_PUBLIC_TOKENS(HdxColorChannelTokens, HDX_API,
110 HDX_COLOR_CHANNEL_TOKENS);
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
123TF_DECLARE_PUBLIC_TOKENS(HdxAovTokens, HDX_API,
124 HDX_AOV_TOKENS);
125
126// Simple lighting
127#define HDX_SIMPLELIGHTTASK_TOKENS \
128 (lighting) \
129 (lightingContext) \
130 (useLighting) \
131 (useColorMaterialDiffuse) \
132 (lightSource) \
133 (position) \
134 (ambient) \
135 (diffuse) \
136 (specular) \
137 (spotDirection) \
138 (spotCutoff) \
139 (spotFalloff) \
140 (attenuation) \
141 (worldToLightTransform) \
142 (shadowIndexStart) \
143 (shadowIndexEnd) \
144 (hasShadow) \
145 (isIndirectLight) \
146 (shadow) \
147 (worldToShadowMatrix) \
148 (shadowToWorldMatrix) \
149 (blur) \
150 (bias) \
151 (material) \
152 (emission) \
153 (sceneColor) \
154 (shininess)
155
156TF_DECLARE_PUBLIC_TOKENS(HdxSimpleLightTaskTokens, HDX_API,
157 HDX_SIMPLELIGHTTASK_TOKENS);
158
159PXR_NAMESPACE_CLOSE_SCOPE
160
161#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:92