HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
renderPassState.h
Go to the documentation of this file.
1 //
2 // Copyright 2016 Pixar
3 //
4 // Licensed under the Apache License, Version 2.0 (the "Apache License")
5 // with the following modification; you may not use this file except in
6 // compliance with the Apache License and the following modification to it:
7 // Section 6. Trademarks. is deleted and replaced with:
8 //
9 // 6. Trademarks. This License does not grant permission to use the trade
10 // names, trademarks, service marks, or product names of the Licensor
11 // and its affiliates, except as required to comply with Section 4(c) of
12 // the License and to reproduce the content of the NOTICE file.
13 //
14 // You may obtain a copy of the Apache License at
15 //
16 // http://www.apache.org/licenses/LICENSE-2.0
17 //
18 // Unless required by applicable law or agreed to in writing, software
19 // distributed under the Apache License with the above modification is
20 // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21 // KIND, either express or implied. See the Apache License for the specific
22 // language governing permissions and limitations under the Apache License.
23 //
24 #ifndef PXR_IMAGING_HD_RENDER_PASS_STATE_H
25 #define PXR_IMAGING_HD_RENDER_PASS_STATE_H
26 
27 #include "pxr/pxr.h"
28 #include "pxr/imaging/hd/api.h"
29 #include "pxr/imaging/hd/aov.h"
30 #include "pxr/imaging/hd/version.h"
31 #include "pxr/imaging/hd/enums.h"
32 
34 
35 #include "pxr/usd/sdf/path.h"
36 
37 #include "pxr/base/tf/token.h"
38 #include "pxr/base/vt/value.h"
39 #include "pxr/base/gf/matrix4d.h"
40 #include "pxr/base/gf/vec2f.h"
41 #include "pxr/base/gf/vec4d.h"
42 #include "pxr/base/gf/vec4f.h"
43 
44 #include <memory>
45 
47 
48 
49 using HdRenderPassStateSharedPtr = std::shared_ptr<class HdRenderPassState>;
50 using HdResourceRegistrySharedPtr = std::shared_ptr<class HdResourceRegistry>;
51 
52 class HdCamera;
53 
54 /// \class HdRenderPassState
55 ///
56 /// A set of rendering parameters used among render passes.
57 ///
58 /// Parameters are expressed as GL states, uniforms or shaders.
59 ///
61 {
62 public:
63  HD_API
65  HD_API
66  virtual ~HdRenderPassState();
67 
68  /// Schedule to update renderPassState parameters.
69  /// e.g. camera matrix, override color, id blend factor.
70  /// Prepare, called once per frame after the sync phase, but prior to
71  /// the commit phase.
72  HD_API
73  virtual void Prepare(HdResourceRegistrySharedPtr const &resourceRegistry);
74 
75  // ---------------------------------------------------------------------- //
76  /// \name Camera and framing state
77  // ---------------------------------------------------------------------- //
78 
79  using ClipPlanesVector = std::vector<GfVec4d>;
80 
81  /// Sets the camera.
82  HD_API
83  void SetCamera(const HdCamera *camera);
84 
85  /// Sets whether to override the window policy used to conform the camera
86  /// if its aspect ratio is not matching the display window/viewport.
87  /// If first value is false, the HdCamera's window policy is used.
88  ///
89  /// Note: using std::pair<bool, ...> here instead of std::optional<...>
90  /// since the latter is only available in C++17 or later.
91  ///
92  HD_API
94  const std::pair<bool, CameraUtilConformWindowPolicy> &
95  overrideWindowPolicy);
96 
97  /// Sets the framing to show the camera. If a valid framing is set, a
98  /// viewport set earlier with SetViewport will be ignored.
99  HD_API
100  void SetFraming(const CameraUtilFraming &framing);
101 
102  /// Sets the viewport to show the camera. If SetViewport is called,
103  /// any framing set earlier with SetFraming will be ignored.
104  ///
105  /// \deprecated Use the more expressive SetFraming instead.
106  HD_API
107  void SetViewport(const GfVec4d &viewport);
108 
109  ///
110  /// \deprecated Use SetCamera, SetFraming and SetOverrideWindowPolicy
111  /// instead.
112  ///
113  HD_API
114  void SetCameraAndFraming(
115  const HdCamera *camera,
116  const CameraUtilFraming &framing,
117  const std::pair<bool, CameraUtilConformWindowPolicy> &
118  overrideWindowPolicy);
119 
120  ///
121  /// \deprecated Use SetCamera, SetViewport and SetOverrideWindowPolicy
122  /// instead.
123  ///
124  HD_API
125  void SetCameraAndViewport(const HdCamera *camera,
126  const GfVec4d &viewport);
127 
128  /// Get camera
129  HdCamera const *
130  GetCamera() const { return _camera; }
131 
132  /// Get framing information determining how the filmback plane maps
133  /// to pixels.
134  const CameraUtilFraming &
135  GetFraming() const { return _framing; }
136 
137  /// The override value for the window policy to conform the camera
138  /// frustum that can be specified by the application.
139  const std::pair<bool, CameraUtilConformWindowPolicy> &
141 
142  /// The resolved window policy to conform the camera frustum.
143  /// This is either the override value specified by the application or
144  /// the value from the scene delegate's camera.
145  HD_API
147  GetWindowPolicy() const;
148 
149  /// Camera getter API
150  ///
151  /// Returns inverse of HdCamera's transform.
152  ///
153  HD_API
154  virtual GfMatrix4d GetWorldToViewMatrix() const;
155 
156  /// Compute projection matrix using physical attributes of an HdCamera.
157  ///
158  HD_API
159  virtual GfMatrix4d GetProjectionMatrix() const;
160 
161  /// Only use when clients did not specify a camera framing.
162  ///
163  /// \deprecated
164  GfVec4f const & GetViewport() const { return _viewport; }
165 
166  /// Compute a transform from window relative coordinates (x,y,z,1) to
167  /// homogeneous world coordinates (x,y,z,w), using the HdCamera's
168  /// attributes, framing, and viewport dimensions.
169  ///
170  HD_API
172 
173  /// Returns HdCamera's clip planes.
174  ///
175  HD_API
176  virtual ClipPlanesVector const & GetClipPlanes() const;
177 
178  // ---------------------------------------------------------------------- //
179  /// \name Application rendering state
180  // ---------------------------------------------------------------------- //
181 
182  /// Set an override color for rendering where the R, G and B components
183  /// are the color and the alpha component is the blend value
184  HD_API
185  void SetOverrideColor(GfVec4f const &color);
186  const GfVec4f& GetOverrideColor() const { return _overrideColor; }
187 
188  /// Set a wireframe color for rendering where the R, G and B components
189  /// are the color and the alpha component is the blend value
190  HD_API
191  void SetWireframeColor(GfVec4f const &color);
192  const GfVec4f& GetWireframeColor() const { return _wireframeColor; }
193 
194  HD_API
195  void SetMaskColor(GfVec4f const &color);
196  const GfVec4f& GetMaskColor() const { return _maskColor; }
197 
198  HD_API
199  void SetIndicatorColor(GfVec4f const &color);
200  const GfVec4f& GetIndicatorColor() const { return _indicatorColor; }
201 
202  /// Set a point color for rendering where the R, G and B components
203  /// are the color and the alpha component is the blend value
204  HD_API
205  void SetPointColor(GfVec4f const &color);
206  const GfVec4f& GetPointColor() const { return _pointColor; }
207 
208  /// Set the point size for unselected points.
209  HD_API
210  void SetPointSize(float size);
211  float GetPointSize() const { return _pointSize; }
212 
213  /// Set the point size for selected points.
214  HD_API
215  void SetPointSelectedSize(float size);
216  float GetPointSelectedSize() const { return _pointSelectedSize; }
217 
218  /// XXX: Hacky way of disabling lighting
219  HD_API
220  void SetLightingEnabled(bool enabled);
221  bool GetLightingEnabled() const { return _lightingEnabled; }
222 
223  HD_API
224  void SetClippingEnabled(bool enabled);
225  bool GetClippingEnabled() const { return _clippingEnabled; }
226 
227  // ---------------------------------------------------------------------- //
228  /// \name Render pipeline state
229  // ---------------------------------------------------------------------- //
230 
231  /// Set the attachments for this renderpass to render into.
232  HD_API
233  void SetAovBindings(HdRenderPassAovBindingVector const &aovBindings);
234  HD_API
236 
237  /// Set the AOVs that this renderpass needs to read from.
238  HD_API
239  void SetAovInputBindings(HdRenderPassAovBindingVector const &aovBindings);
240  HD_API
242 
243  /// Returns true if the render pass wants to render into the multi-sample
244  /// aovs. Returns false if the render wants to render into the resolve aovs.
245  HD_API
246  void SetUseAovMultiSample(bool state);
247  HD_API
248  bool GetUseAovMultiSample() const;
249 
250  HD_API
251  void SetCullStyle(HdCullStyle cullStyle);
252  HD_API
253  HdCullStyle GetCullStyle() const { return _cullStyle; }
254 
255  HD_API
256  void SetAlphaThreshold(float alphaThreshold);
257  float GetAlphaThreshold() const { return _alphaThreshold; }
258 
259  HD_API
260  void SetTessLevel(float level);
261  float GetTessLevel() const { return _tessLevel; }
262 
263  HD_API
264  void SetDrawingRange(GfVec2f const &drawRange);
265  GfVec2f GetDrawingRange() const { return _drawRange; } // in pixel
266  HD_API
267  GfVec2f GetDrawingRangeNDC() const; // in ndc
268 
269  HD_API
270  void SetDepthBiasUseDefault(bool useDefault);
272 
273  HD_API
274  void SetDepthBiasEnabled(bool enabled);
275  bool GetDepthBiasEnabled() const { return _depthBiasEnabled; }
276 
277  HD_API
278  void SetDepthBias(float constantFactor, float slopeFactor);
279 
280  HD_API
281  void SetDepthFunc(HdCompareFunction depthFunc);
283 
284  HD_API
285  void SetEnableDepthMask(bool state);
286  HD_API
287  bool GetEnableDepthMask() const;
288 
289  HD_API
290  void SetEnableDepthTest(bool enabled);
291  HD_API
292  bool GetEnableDepthTest() const;
293 
294  HD_API
295  void SetEnableDepthClamp(bool enabled);
296  HD_API
297  bool GetEnableDepthClamp() const;
298 
299  HD_API
300  void SetDepthRange(GfVec2f const &depthRange);
301  HD_API
302  const GfVec2f& GetDepthRange() const;
303 
304  HD_API
305  void SetStencil(HdCompareFunction func, int ref, int mask,
308  int GetStencilRef() const { return _stencilRef; }
309  int GetStencilMask() const { return _stencilMask; }
313  HD_API
314  void SetStencilEnabled(bool enabled);
315  HD_API
316  bool GetStencilEnabled() const;
317 
318  HD_API
319  void SetLineWidth(float width);
320  float GetLineWidth() const { return _lineWidth; }
321 
322  HD_API
323  void SetBlend(HdBlendOp colorOp,
324  HdBlendFactor colorSrcFactor,
325  HdBlendFactor colorDstFactor,
326  HdBlendOp alphaOp,
327  HdBlendFactor alphaSrcFactor,
328  HdBlendFactor alphaDstFactor);
335  HD_API
336  void SetBlendConstantColor(GfVec4f const & color);
338  HD_API
339  void SetBlendEnabled(bool enabled);
340 
341  HD_API
344 
345  HD_API
346  void SetColorMaskUseDefault(bool useDefault);
348 
349  HD_API
353  }
354 
355  HD_API
356  void SetVolumeRenderingConstants(float stepSize, float stepSizeLighting);
357 
358  enum ColorMask {
362  };
363 
364  HD_API
365  void SetColorMasks(std::vector<ColorMask> const& masks);
366  std::vector<ColorMask> const& GetColorMasks() const { return _colorMasks; }
367 
368  HD_API
369  void SetMultiSampleEnabled(bool enabled);
371 
372 protected:
373  // ---------------------------------------------------------------------- //
374  // Camera and framing state
375  // ---------------------------------------------------------------------- //
379  std::pair<bool, CameraUtilConformWindowPolicy> _overrideWindowPolicy;
380 
381  // ---------------------------------------------------------------------- //
382  // Application rendering state
383  // ---------------------------------------------------------------------- //
387  float _pointSize;
390 
394 
395  // ---------------------------------------------------------------------- //
396  // Render pipeline state
397  // ---------------------------------------------------------------------- //
399  float _tessLevel;
401 
402  bool _depthBiasUseDefault; // inherit existing state, ignore values below.
411 
413 
414  // Stencil RenderPassState
422 
423  // Line width
424  float _lineWidth;
425 
426  // Blending
435 
436  // alpha to coverage
438 
440  std::vector<ColorMask> _colorMasks;
441 
445 
447 
448  float _stepSize;
450 
452 };
453 
455 
456 #endif // PXR_IMAGING_HD_RENDER_PASS_STATE_H
HdRenderPassAovBindingVector _aovInputBindings
Set the attachments for this renderpass to render into.
HdCamera const * GetCamera() const
Get camera.
bool _depthClampEnabled
Set the attachments for this renderpass to render into.
HD_API void SetFraming(const CameraUtilFraming &framing)
std::shared_ptr< class HdRenderPassState > HdRenderPassStateSharedPtr
Definition: engine.h:42
float _lineWidth
Set the attachments for this renderpass to render into.
HdCompareFunction
Definition: enums.h:36
HD_API void SetStencil(HdCompareFunction func, int ref, int mask, HdStencilOp fail, HdStencilOp zfail, HdStencilOp zpass)
Set the attachments for this renderpass to render into.
std::vector< ColorMask > _colorMasks
Set the attachments for this renderpass to render into.
bool GetMultiSampleEnabled() const
Set the attachments for this renderpass to render into.
HD_API void SetDepthBias(float constantFactor, float slopeFactor)
Set the attachments for this renderpass to render into.
HdCullStyle
Definition: enums.h:122
HD_API void SetClippingEnabled(bool enabled)
float _stepSizeLighting
Set the attachments for this renderpass to render into.
float _tessLevel
Set the attachments for this renderpass to render into.
const GfVec4f & GetPointColor() const
GfVec4f _viewport
Set the attachments for this renderpass to render into.
HD_API void SetPointColor(GfVec4f const &color)
GfVec4f _maskColor
Set the attachments for this renderpass to render into.
HD_API void SetMaskColor(GfVec4f const &color)
std::shared_ptr< class HdResourceRegistry > HdResourceRegistrySharedPtr
bool _conservativeRasterizationEnabled
Set the attachments for this renderpass to render into.
HdBlendFactor GetBlendColorSrcFactor()
Set the attachments for this renderpass to render into.
virtual HD_API GfMatrix4d GetProjectionMatrix() const
HD_API void SetAlphaThreshold(float alphaThreshold)
Set the attachments for this renderpass to render into.
float _depthBiasConstantFactor
Set the attachments for this renderpass to render into.
HdRenderPassAovBindingVector _aovBindings
Set the attachments for this renderpass to render into.
HD_API void SetTessLevel(float level)
Set the attachments for this renderpass to render into.
HdStencilOp GetStencilFailOp() const
Set the attachments for this renderpass to render into.
HD_API GfMatrix4d GetImageToWorldMatrix() const
HD_API void SetPointSelectedSize(float size)
Set the point size for selected points.
GLint level
Definition: glcorearb.h:108
#define HD_API
Definition: api.h:40
HD_API void SetDepthRange(GfVec2f const &depthRange)
Set the attachments for this renderpass to render into.
HD_API void SetStencilEnabled(bool enabled)
Set the attachments for this renderpass to render into.
Definition: vec4d.h:62
HdBlendFactor
Definition: enums.h:87
GfVec4f _blendConstantColor
Set the attachments for this renderpass to render into.
const GfVec4f & GetWireframeColor() const
HdCompareFunction GetStencilFunc() const
Set the attachments for this renderpass to render into.
HdBlendOp _blendColorOp
Set the attachments for this renderpass to render into.
GfVec2f GetDrawingRange() const
Set the attachments for this renderpass to render into.
virtual HD_API GfMatrix4d GetWorldToViewMatrix() const
GLenum GLenum GLsizei const GLuint GLboolean enabled
Definition: glcorearb.h:2539
HD_API void SetCullStyle(HdCullStyle cullStyle)
Set the attachments for this renderpass to render into.
HD_API void SetOverrideWindowPolicy(const std::pair< bool, CameraUtilConformWindowPolicy > &overrideWindowPolicy)
virtual HD_API void Prepare(HdResourceRegistrySharedPtr const &resourceRegistry)
HD_API void SetLightingEnabled(bool enabled)
XXX: Hacky way of disabling lighting.
HD_API bool GetStencilEnabled() const
Set the attachments for this renderpass to render into.
virtual HD_API ClipPlanesVector const & GetClipPlanes() const
const GfVec4f & GetOverrideColor() const
bool _multiSampleEnabled
Set the attachments for this renderpass to render into.
HD_API void SetDepthBiasUseDefault(bool useDefault)
Set the attachments for this renderpass to render into.
HdBlendFactor GetBlendColorDstFactor()
Set the attachments for this renderpass to render into.
GfVec4f _pointColor
Set the attachments for this renderpass to render into.
HdCompareFunction _depthFunc
Set the attachments for this renderpass to render into.
GfVec4f _indicatorColor
Set the attachments for this renderpass to render into.
bool GetDepthBiasEnabled() const
Set the attachments for this renderpass to render into.
bool _depthBiasEnabled
Set the attachments for this renderpass to render into.
HD_API bool GetEnableDepthMask() const
Set the attachments for this renderpass to render into.
HdStencilOp GetStencilDepthFailOp() const
Set the attachments for this renderpass to render into.
HdBlendOp GetBlendColorOp()
Set the attachments for this renderpass to render into.
HD_API void SetBlendEnabled(bool enabled)
Set the attachments for this renderpass to render into.
GfVec4f _overrideColor
Set the attachments for this renderpass to render into.
HD_API void SetEnableDepthMask(bool state)
Set the attachments for this renderpass to render into.
std::vector< GfVec4d > ClipPlanesVector
Sets the camera.
bool GetConservativeRasterizationEnabled() const
Set the attachments for this renderpass to render into.
int GetStencilRef() const
Set the attachments for this renderpass to render into.
HdBlendOp _blendAlphaOp
Set the attachments for this renderpass to render into.
HD_API void SetCameraAndFraming(const HdCamera *camera, const CameraUtilFraming &framing, const std::pair< bool, CameraUtilConformWindowPolicy > &overrideWindowPolicy)
GLint ref
Definition: glcorearb.h:124
GfVec2f _depthRange
Set the attachments for this renderpass to render into.
HD_API void SetWireframeColor(GfVec4f const &color)
HD_API void SetUseAovMultiSample(bool state)
HdStencilOp _stencilFailOp
Set the attachments for this renderpass to render into.
int GetStencilMask() const
Set the attachments for this renderpass to render into.
HD_API bool GetEnableDepthTest() const
Set the attachments for this renderpass to render into.
HdCompareFunction _stencilFunc
Set the attachments for this renderpass to render into.
HD_API bool GetEnableDepthClamp() const
Set the attachments for this renderpass to render into.
HD_API void SetMultiSampleEnabled(bool enabled)
Set the attachments for this renderpass to render into.
HD_API HdRenderPassAovBindingVector const & GetAovBindings() const
Set the attachments for this renderpass to render into.
GfVec4f _wireframeColor
Set the attachments for this renderpass to render into.
GLint GLuint mask
Definition: glcorearb.h:124
ColorMask
Set the attachments for this renderpass to render into.
HD_API void SetBlendConstantColor(GfVec4f const &color)
Set the attachments for this renderpass to render into.
HD_API void SetColorMaskUseDefault(bool useDefault)
Set the attachments for this renderpass to render into.
int _stencilRef
Set the attachments for this renderpass to render into.
int _stencilMask
Set the attachments for this renderpass to render into.
HD_API GfVec2f GetDrawingRangeNDC() const
Set the attachments for this renderpass to render into.
HdCompareFunction GetDepthFunc() const
Set the attachments for this renderpass to render into.
HdBlendFactor _blendColorSrcFactor
Set the attachments for this renderpass to render into.
bool _stencilEnabled
Set the attachments for this renderpass to render into.
bool _alphaToCoverageEnabled
Set the attachments for this renderpass to render into.
bool _lightingEnabled
Set the attachments for this renderpass to render into.
bool _depthMaskEnabled
Set the attachments for this renderpass to render into.
HdStencilOp GetStencilDepthPassOp() const
Set the attachments for this renderpass to render into.
HD_API void SetIndicatorColor(GfVec4f const &color)
HD_API CameraUtilConformWindowPolicy GetWindowPolicy() const
float _pointSelectedSize
Set the attachments for this renderpass to render into.
HD_API HdCullStyle GetCullStyle() const
Set the attachments for this renderpass to render into.
GLenum zfail
Definition: glcorearb.h:125
HD_API void SetCamera(const HdCamera *camera)
Sets the camera.
bool GetDepthBiasUseDefault() const
Set the attachments for this renderpass to render into.
HdStencilOp
Definition: enums.h:54
HD_API void SetAlphaToCoverageEnabled(bool enabled)
Set the attachments for this renderpass to render into.
HdStencilOp _stencilZFailOp
Set the attachments for this renderpass to render into.
HD_API void SetOverrideColor(GfVec4f const &color)
HdCullStyle _cullStyle
Set the attachments for this renderpass to render into.
HD_API void SetBlend(HdBlendOp colorOp, HdBlendFactor colorSrcFactor, HdBlendFactor colorDstFactor, HdBlendOp alphaOp, HdBlendFactor alphaSrcFactor, HdBlendFactor alphaDstFactor)
Set the attachments for this renderpass to render into.
HD_API void SetEnableDepthTest(bool enabled)
Set the attachments for this renderpass to render into.
GfVec2f _drawRange
Set the attachments for this renderpass to render into.
float GetPointSelectedSize() const
Definition: vec4f.h:62
CameraUtilConformWindowPolicy
Definition: conformWindow.h:44
HD_API HdRenderPassState()
GLsizeiptr size
Definition: glcorearb.h:664
GLenum GLenum zpass
Definition: glcorearb.h:125
HD_API void SetViewport(const GfVec4d &viewport)
GLenum func
Definition: glcorearb.h:783
const std::pair< bool, CameraUtilConformWindowPolicy > & GetOverrideWindowPolicy() const
float _stepSize
Set the attachments for this renderpass to render into.
HD_API void SetVolumeRenderingConstants(float stepSize, float stepSizeLighting)
Set the attachments for this renderpass to render into.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1441
HD_API void SetDrawingRange(GfVec2f const &drawRange)
Set the attachments for this renderpass to render into.
float GetAlphaThreshold() const
Set the attachments for this renderpass to render into.
float GetTessLevel() const
Set the attachments for this renderpass to render into.
const GfVec4f & GetBlendConstantColor() const
Set the attachments for this renderpass to render into.
HD_API void SetEnableDepthClamp(bool enabled)
Set the attachments for this renderpass to render into.
GLuint color
Definition: glcorearb.h:1261
bool GetAlphaToCoverageEnabled() const
Set the attachments for this renderpass to render into.
bool GetColorMaskUseDefault() const
Set the attachments for this renderpass to render into.
HD_API void SetColorMasks(std::vector< ColorMask > const &masks)
Set the attachments for this renderpass to render into.
float GetPointSize() const
HdBlendFactor GetBlendAlphaSrcFactor()
Set the attachments for this renderpass to render into.
HD_API void SetConservativeRasterizationEnabled(bool enabled)
Set the attachments for this renderpass to render into.
bool _useMultiSampleAov
Set the attachments for this renderpass to render into.
HdBlendFactor _blendAlphaDstFactor
Set the attachments for this renderpass to render into.
Definition: vec2f.h:62
HdCamera const * _camera
Set the attachments for this renderpass to render into.
float _depthBiasSlopeFactor
Set the attachments for this renderpass to render into.
virtual HD_API ~HdRenderPassState()
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:91
std::vector< ColorMask > const & GetColorMasks() const
Set the attachments for this renderpass to render into.
HdBlendFactor GetBlendAlphaDstFactor()
Set the attachments for this renderpass to render into.
bool GetLightingEnabled() const
const GfVec4f & GetIndicatorColor() const
GfVec4f const & GetViewport() const
HD_API const GfVec2f & GetDepthRange() const
Set the attachments for this renderpass to render into.
GLint GLsizei width
Definition: glcorearb.h:103
float GetLineWidth() const
Set the attachments for this renderpass to render into.
float _alphaThreshold
Set the attachments for this renderpass to render into.
bool _depthTestEnabled
Set the attachments for this renderpass to render into.
HD_API void SetLineWidth(float width)
Set the attachments for this renderpass to render into.
bool _depthBiasUseDefault
Set the attachments for this renderpass to render into.
HD_API void SetPointSize(float size)
Set the point size for unselected points.
HD_API void SetCameraAndViewport(const HdCamera *camera, const GfVec4d &viewport)
HdBlendOp GetBlendAlphaOp()
Set the attachments for this renderpass to render into.
float _pointSize
Set the attachments for this renderpass to render into.
HD_API HdRenderPassAovBindingVector const & GetAovInputBindings() const
Set the attachments for this renderpass to render into.
bool _blendEnabled
Set the attachments for this renderpass to render into.
HD_API void SetAovBindings(HdRenderPassAovBindingVector const &aovBindings)
Set the attachments for this renderpass to render into.
HD_API void SetDepthFunc(HdCompareFunction depthFunc)
Set the attachments for this renderpass to render into.
bool GetClippingEnabled() const
HdBlendOp
Definition: enums.h:72
HD_API void SetAovInputBindings(HdRenderPassAovBindingVector const &aovBindings)
Set the AOVs that this renderpass needs to read from.
std::vector< HdRenderPassAovBinding > HdRenderPassAovBindingVector
Definition: aov.h:154
bool _clippingEnabled
Set the attachments for this renderpass to render into.
const CameraUtilFraming & GetFraming() const
HD_API bool GetUseAovMultiSample() const
Set the attachments for this renderpass to render into.
HdBlendFactor _blendAlphaSrcFactor
Set the attachments for this renderpass to render into.
const GfVec4f & GetMaskColor() const
HdStencilOp _stencilZPassOp
Set the attachments for this renderpass to render into.
CameraUtilFraming _framing
Set the attachments for this renderpass to render into.
HD_API void SetDepthBiasEnabled(bool enabled)
Set the attachments for this renderpass to render into.
std::pair< bool, CameraUtilConformWindowPolicy > _overrideWindowPolicy
Set the attachments for this renderpass to render into.
bool _colorMaskUseDefault
Set the attachments for this renderpass to render into.
HdBlendFactor _blendColorDstFactor
Set the attachments for this renderpass to render into.