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  /// Camera setter API
82  ///
83  /// Sets the camera transform (aka view inverse matrix) and physical
84  /// parameters, the framing information and a possible overide value
85  /// for the window policy used to conform the camera frustum if its
86  /// aspect ratio is not matching the display window.
87  ///
88  /// Note: using std::pair<bool, ...> here instead of std::optional<...>
89  /// since the latter is only available in C++17 or later.
90  HD_API
92  HdCamera const *camera,
93  CameraUtilFraming const &framing,
94  const std::pair<bool, CameraUtilConformWindowPolicy> &
95  overrideWindowPolicy);
96 
97  /// Get camera
98  HdCamera const *
99  GetCamera() const { return _camera; }
100 
101  /// Get framing information determining how the filmback plane maps
102  /// to pixels.
103  const CameraUtilFraming &
104  GetFraming() const { return _framing; }
105 
106  /// The override value for the window policy to conform the camera
107  /// frustum that can be specified by the application.
108  const std::pair<bool, CameraUtilConformWindowPolicy> &
110 
111  /// The resolved window policy to conform the camera frustum.
112  /// This is either the override value specified by the application or
113  /// the value from the scene delegate's camera.
114  HD_API
116  GetWindowPolicy() const;
117 
118  /// Camera setter API
119  /// The view, projection and clipping plane info of the camera will be used.
120  ///
121  /// \deprecated Use the more expressive SetCameraAndFraming instead.
122  HD_API
123  void SetCameraAndViewport(HdCamera const *camera,
124  GfVec4d const& viewport);
125  /// Camera getter API
126  ///
127  /// Returns inverse of HdCamera's transform.
128  ///
129  HD_API
130  virtual GfMatrix4d GetWorldToViewMatrix() const;
131 
132  /// Compute projection matrix using physical attributes of an HdCamera.
133  ///
134  HD_API
135  virtual GfMatrix4d GetProjectionMatrix() const;
136 
137  /// Only use when clients did not specify a camera framing.
138  ///
139  /// \deprecated
140  GfVec4f const & GetViewport() const { return _viewport; }
141 
142  /// Compute a transform from window relative coordinates (x,y,z,1) to
143  /// homogeneous world coordinates (x,y,z,w), using the HdCamera's
144  /// attributes, framing, and viewport dimensions.
145  ///
146  HD_API
148 
149  /// Returns HdCamera's clip planes.
150  ///
151  HD_API
152  virtual ClipPlanesVector const & GetClipPlanes() const;
153 
154  // ---------------------------------------------------------------------- //
155  /// \name Application rendering state
156  // ---------------------------------------------------------------------- //
157 
158  /// Set an override color for rendering where the R, G and B components
159  /// are the color and the alpha component is the blend value
160  HD_API
161  void SetOverrideColor(GfVec4f const &color);
162  const GfVec4f& GetOverrideColor() const { return _overrideColor; }
163 
164  /// Set a wireframe color for rendering where the R, G and B components
165  /// are the color and the alpha component is the blend value
166  HD_API
167  void SetWireframeColor(GfVec4f const &color);
168  const GfVec4f& GetWireframeColor() const { return _wireframeColor; }
169 
170  HD_API
171  void SetMaskColor(GfVec4f const &color);
172  const GfVec4f& GetMaskColor() const { return _maskColor; }
173 
174  HD_API
175  void SetIndicatorColor(GfVec4f const &color);
176  const GfVec4f& GetIndicatorColor() const { return _indicatorColor; }
177 
178  /// Set a point color for rendering where the R, G and B components
179  /// are the color and the alpha component is the blend value
180  HD_API
181  void SetPointColor(GfVec4f const &color);
182  const GfVec4f& GetPointColor() const { return _pointColor; }
183 
184  /// Set the point size for unselected points.
185  HD_API
186  void SetPointSize(float size);
187  float GetPointSize() const { return _pointSize; }
188 
189  /// Set the point size for selected points.
190  HD_API
191  void SetPointSelectedSize(float size);
192  float GetPointSelectedSize() const { return _pointSelectedSize; }
193 
194  /// XXX: Hacky way of disabling lighting
195  HD_API
196  void SetLightingEnabled(bool enabled);
197  bool GetLightingEnabled() const { return _lightingEnabled; }
198 
199  HD_API
200  void SetClippingEnabled(bool enabled);
201  bool GetClippingEnabled() const { return _clippingEnabled; }
202 
203  // ---------------------------------------------------------------------- //
204  /// \name Render pipeline state
205  // ---------------------------------------------------------------------- //
206 
207  /// Set the attachments for this renderpass to render into.
208  HD_API
209  void SetAovBindings(HdRenderPassAovBindingVector const &aovBindings);
210  HD_API
212 
213  /// Set the AOVs that this renderpass needs to read from.
214  HD_API
215  void SetAovInputBindings(HdRenderPassAovBindingVector const &aovBindings);
216  HD_API
218 
219  /// Returns true if the render pass wants to render into the multi-sample
220  /// aovs. Returns false if the render wants to render into the resolve aovs.
221  HD_API
222  void SetUseAovMultiSample(bool state);
223  HD_API
224  bool GetUseAovMultiSample() const;
225 
226  HD_API
227  void SetCullStyle(HdCullStyle cullStyle);
228  HD_API
229  HdCullStyle GetCullStyle() const { return _cullStyle; }
230 
231  HD_API
232  void SetAlphaThreshold(float alphaThreshold);
233  float GetAlphaThreshold() const { return _alphaThreshold; }
234 
235  HD_API
236  void SetTessLevel(float level);
237  float GetTessLevel() const { return _tessLevel; }
238 
239  HD_API
240  void SetDrawingRange(GfVec2f const &drawRange);
241  GfVec2f GetDrawingRange() const { return _drawRange; } // in pixel
242  HD_API
243  GfVec2f GetDrawingRangeNDC() const; // in ndc
244 
245  HD_API
246  void SetDepthBiasUseDefault(bool useDefault);
248 
249  HD_API
250  void SetDepthBiasEnabled(bool enabled);
251  bool GetDepthBiasEnabled() const { return _depthBiasEnabled; }
252 
253  HD_API
254  void SetDepthBias(float constantFactor, float slopeFactor);
255 
256  HD_API
257  void SetDepthFunc(HdCompareFunction depthFunc);
259 
260  HD_API
261  void SetEnableDepthMask(bool state);
262  HD_API
263  bool GetEnableDepthMask() const;
264 
265  HD_API
266  void SetEnableDepthTest(bool enabled);
267  HD_API
268  bool GetEnableDepthTest() const;
269 
270  HD_API
271  void SetEnableDepthClamp(bool enabled);
272  HD_API
273  bool GetEnableDepthClamp() const;
274 
275  HD_API
276  void SetDepthRange(GfVec2f const &depthRange);
277  HD_API
278  const GfVec2f& GetDepthRange() const;
279 
280  HD_API
281  void SetStencil(HdCompareFunction func, int ref, int mask,
284  int GetStencilRef() const { return _stencilRef; }
285  int GetStencilMask() const { return _stencilMask; }
289  HD_API
290  void SetStencilEnabled(bool enabled);
291  HD_API
292  bool GetStencilEnabled() const;
293 
294  HD_API
295  void SetLineWidth(float width);
296  float GetLineWidth() const { return _lineWidth; }
297 
298  HD_API
299  void SetBlend(HdBlendOp colorOp,
300  HdBlendFactor colorSrcFactor,
301  HdBlendFactor colorDstFactor,
302  HdBlendOp alphaOp,
303  HdBlendFactor alphaSrcFactor,
304  HdBlendFactor alphaDstFactor);
311  HD_API
312  void SetBlendConstantColor(GfVec4f const & color);
314  HD_API
315  void SetBlendEnabled(bool enabled);
316 
317  HD_API
320 
321  HD_API
322  void SetColorMaskUseDefault(bool useDefault);
324 
325  HD_API
329  }
330 
331  HD_API
332  void SetVolumeRenderingConstants(float stepSize, float stepSizeLighting);
333 
334  enum ColorMask {
338  };
339 
340  HD_API
341  void SetColorMasks(std::vector<ColorMask> const& masks);
342  std::vector<ColorMask> const& GetColorMasks() const { return _colorMasks; }
343 
344  HD_API
345  void SetMultiSampleEnabled(bool enabled);
347 
348 protected:
349  // ---------------------------------------------------------------------- //
350  // Camera and framing state
351  // ---------------------------------------------------------------------- //
355  std::pair<bool, CameraUtilConformWindowPolicy> _overrideWindowPolicy;
356 
357  // ---------------------------------------------------------------------- //
358  // Application rendering state
359  // ---------------------------------------------------------------------- //
363  float _pointSize;
366 
370 
371  // ---------------------------------------------------------------------- //
372  // Render pipeline state
373  // ---------------------------------------------------------------------- //
375  float _tessLevel;
377 
378  bool _depthBiasUseDefault; // inherit existing state, ignore values below.
387 
389 
390  // Stencil RenderPassState
398 
399  // Line width
400  float _lineWidth;
401 
402  // Blending
411 
412  // alpha to coverage
414 
416  std::vector<ColorMask> _colorMasks;
417 
421 
423 
424  float _stepSize;
426 
428 };
429 
431 
432 #endif // PXR_IMAGING_HD_RENDER_PASS_STATE_H
HdRenderPassAovBindingVector _aovInputBindings
Set the attachments for this renderpass to render into.
GLint ref
Definition: glcorearb.h:124
HdCamera const * GetCamera() const
Get camera.
bool _depthClampEnabled
Set the attachments for this renderpass to render into.
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.
GLuint color
Definition: glcorearb.h:1261
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:63
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.
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.
GLsizeiptr size
Definition: glcorearb.h:664
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 SetCameraAndFraming(HdCamera const *camera, CameraUtilFraming const &framing, const std::pair< bool, CameraUtilConformWindowPolicy > &overrideWindowPolicy)
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
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.
GfVec2f _depthRange
Set the attachments for this renderpass to render into.
HD_API void SetWireframeColor(GfVec4f const &color)
HD_API void SetUseAovMultiSample(bool state)
GLint GLuint mask
Definition: glcorearb.h:124
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.
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.
GLint GLsizei width
Definition: glcorearb.h:103
GLenum zfail
Definition: glcorearb.h:125
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:63
CameraUtilConformWindowPolicy
Definition: conformWindow.h:44
HD_API HdRenderPassState()
GLenum GLenum zpass
Definition: glcorearb.h:125
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:1394
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.
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:63
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.
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.
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.
HD_API void SetCameraAndViewport(HdCamera const *camera, GfVec4d const &viewport)
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.