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
91TF_DECLARE_PUBLIC_TOKENS(HdxRenderTagTokens, HDX_API, HDX_RENDERTAG_TOKENS);
92
93#define HDX_COLOR_CORRECTION_TOKENS \
94 (disabled) \
95 (sRGB) \
96 (openColorIO)
97
98TF_DECLARE_PUBLIC_TOKENS(HdxColorCorrectionTokens, HDX_API,
99 HDX_COLOR_CORRECTION_TOKENS);
100
101// Color channels
102#define HDX_COLOR_CHANNEL_TOKENS \
103 (color) \
104 (red) \
105 (green) \
106 (blue) \
107 (alpha) \
108 (luminance)
109
110TF_DECLARE_PUBLIC_TOKENS(HdxColorChannelTokens, HDX_API,
111 HDX_COLOR_CHANNEL_TOKENS);
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
124TF_DECLARE_PUBLIC_TOKENS(HdxAovTokens, HDX_API,
125 HDX_AOV_TOKENS);
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
157TF_DECLARE_PUBLIC_TOKENS(HdxSimpleLightTaskTokens, HDX_API,
158 HDX_SIMPLELIGHTTASK_TOKENS);
159
160PXR_NAMESPACE_CLOSE_SCOPE
161
162#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