All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
enums.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_HD_ENUMS_H
8#define PXR_IMAGING_HD_ENUMS_H
9
10#include "pxr/pxr.h"
11#include "pxr/imaging/hd/api.h"
12
13PXR_NAMESPACE_OPEN_SCOPE
14
19enum HdCompareFunction
20{
21 HdCmpFuncNever,
22 HdCmpFuncLess,
23 HdCmpFuncEqual,
24 HdCmpFuncLEqual,
25 HdCmpFuncGreater,
26 HdCmpFuncNotEqual,
27 HdCmpFuncGEqual,
28 HdCmpFuncAlways,
29
30 HdCmpFuncLast
31};
32
37enum HdStencilOp
38{
39 HdStencilOpKeep,
40 HdStencilOpZero,
41 HdStencilOpReplace,
42 HdStencilOpIncrement,
43 HdStencilOpIncrementWrap,
44 HdStencilOpDecrement,
45 HdStencilOpDecrementWrap,
46 HdStencilOpInvert,
47
48 HdStencilOpLast
49};
50
55enum HdBlendOp
56{
57 HdBlendOpAdd,
58 HdBlendOpSubtract,
59 HdBlendOpReverseSubtract,
60 HdBlendOpMin,
61 HdBlendOpMax,
62
63 HdBlendOpLast
64};
65
70enum HdBlendFactor
71{
72 HdBlendFactorZero,
73 HdBlendFactorOne,
74 HdBlendFactorSrcColor,
75 HdBlendFactorOneMinusSrcColor,
76 HdBlendFactorDstColor,
77 HdBlendFactorOneMinusDstColor,
78 HdBlendFactorSrcAlpha,
79 HdBlendFactorOneMinusSrcAlpha,
80 HdBlendFactorDstAlpha,
81 HdBlendFactorOneMinusDstAlpha,
82 HdBlendFactorConstantColor,
83 HdBlendFactorOneMinusConstantColor,
84 HdBlendFactorConstantAlpha,
85 HdBlendFactorOneMinusConstantAlpha,
86 HdBlendFactorSrcAlphaSaturate,
87 HdBlendFactorSrc1Color,
88 HdBlendFactorOneMinusSrc1Color,
89 HdBlendFactorSrc1Alpha,
90 HdBlendFactorOneMinusSrc1Alpha,
91
92 HdBlendFactorLast
93};
94
105enum HdCullStyle
106{
107 HdCullStyleDontCare,
108 HdCullStyleNothing,
109 HdCullStyleBack,
110 HdCullStyleFront,
111 HdCullStyleBackUnlessDoubleSided,
112 HdCullStyleFrontUnlessDoubleSided
113};
114
117HD_API
118HdCullStyle HdInvertCullStyle(HdCullStyle cs);
119
120enum HdPolygonMode
121{
122 HdPolygonModeFill,
123 HdPolygonModeLine
124};
125
130enum HdMeshGeomStyle {
131 HdMeshGeomStyleInvalid,
132 HdMeshGeomStyleSurf,
133 HdMeshGeomStyleEdgeOnly,
134 HdMeshGeomStyleEdgeOnSurf,
135 HdMeshGeomStyleHull,
136 HdMeshGeomStyleHullEdgeOnly,
137 HdMeshGeomStyleHullEdgeOnSurf,
138 HdMeshGeomStylePoints
139};
140
141enum HdBasisCurvesGeomStyle {
142 HdBasisCurvesGeomStyleInvalid,
143 HdBasisCurvesGeomStyleWire,
144 HdBasisCurvesGeomStylePatch,
145 HdBasisCurvesGeomStylePoints
146};
147
148enum HdPointsGeomStyle {
149 HdPointsGeomStyleInvalid,
150 HdPointsGeomStylePoints
151};
152
177enum HdInterpolation
178{
179 HdInterpolationConstant = 0,
180 HdInterpolationUniform,
181 HdInterpolationVarying,
182 HdInterpolationVertex,
183 HdInterpolationFaceVarying,
184 HdInterpolationInstance,
185
186 HdInterpolationCount
187};
188
197enum HdDepthPriority
198{
199 HdDepthPriorityNearest = 0,
200 HdDepthPriorityFarthest,
201
202 HdDepthPriorityCount
203};
204
205PXR_NAMESPACE_CLOSE_SCOPE
206
207#endif // PXR_IMAGING_HD_ENUMS_H