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 (hdxOitColorBuffer) \
20 (hdxOitDataBuffer) \
21 (hdxOitDepthBuffer) \
22 (hdxOitTransmissionDepthBuffer)\
23 (hdxOitIndexBuffer) \
24 (hdxOitJointBuffer) \
25 (hdxSelectionBuffer) \
26 (imagerVersion) /* \deprecated */ \
27 (lightingContext) \
28 (lightingShader) \
29 (occludedSelectionOpacity) \
30 (oitCounter) \
31 (oitJointBuffer) \
32 (oitData) \
33 (oitUniforms) \
34 (oitCounterBufferBar) \
35 (oitDataBufferBar) \
36 (oitJointBufferBar) \
37 (oitUniformBar) \
38 (oitRenderPassState) \
39 (oitScreenSize) \
40 (oitMaxDataBufferSize) \
41 (oitRequestFlag) \
42 (oitClearedFlag) \
43 (renderPassState) \
44 (renderIndexVersion) /* \deprecated */ \
45 (selection) \
46 (selectionState) \
47 (selectionOffsets) \
48 (selectionUniforms) \
49 (selColor) \
50 (selLocateColor) \
51 (selectionPointColors) \
52 (drawTargetRenderPasses)
53
54TF_DECLARE_PUBLIC_TOKENS(HdxTokens, HDX_API, HDX_TOKENS);
55
56#define HDX_PRIMITIVE_TOKENS \
57 (lightTypePositional) \
58 (lightTypeDirectional) \
59 (lightTypeSpot) \
60 \
61 (aovInputTask) \
62 (boundingBoxTask) \
63 (colorCorrectionTask) \
64 (colorizeSelectionTask) \
65 (drawTargetTask) \
66 (drawTargetResolveTask) \
67 (oitRenderTask) \
68 (oitResolveTask) \
69 (oitVolumeRenderTask) \
70 (pickTask) \
71 (pickFromRenderBufferTask) \
72 (presentTask) \
73 (renderTask) \
74 (renderSetupTask) \
75 (simpleLightTask) \
76 (shadowTask)
77
78TF_DECLARE_PUBLIC_TOKENS(HdxPrimitiveTokens, HDX_API, HDX_PRIMITIVE_TOKENS);
79
80// inCameraGuide is for guides for a camera that only show up when looking
81// through that camera.
82
83#define HDX_RENDERTAG_TOKENS \
84 (renderingGuide) \
85 (label) \
86 (cameraGuide) \
87 (inCameraGuide) \
88 (streamline) \
89 (interactiveOnlyGeom) \
90 (path)
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 (lightCount) \
135 (lightSource) \
136 (position) \
137 (ambient) \
138 (diffuse) \
139 (specular) \
140 (spotDirection) \
141 (spotCutoff) \
142 (spotFalloff) \
143 (attenuation) \
144 (worldToLightTransform) \
145 (shadowIndexStart) \
146 (shadowIndexEnd) \
147 (hasShadow) \
148 (isIndirectLight) \
149 (shadow) \
150 (worldToShadowMatrix) \
151 (shadowToWorldMatrix) \
152 (blur) \
153 (bias) \
154 (material) \
155 (emission) \
156 (sceneColor) \
157 (shininess)
158
159TF_DECLARE_PUBLIC_TOKENS(HdxSimpleLightTaskTokens, HDX_API,
160 HDX_SIMPLELIGHTTASK_TOKENS);
161
162PXR_NAMESPACE_CLOSE_SCOPE
163
164#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.