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  /// For backwards compatibility, use the worldToView matrix of the HdCamera
128  /// if given. Otherwise, use the HdCamera's transform.
129  ///
130  /// The HdRenderPassState also has a fallback value for the view
131  /// matrix that is used if no HdCamera was specified, that can be set with,
132  /// e.g.g, HdStRenderPassState::SetCameraFramingState.
133  ///
134  HD_API
136 
137  /// It is expected that an HdCamera was specified that has physically based
138  /// attributes. The projection matrix is computed from those attributes and
139  /// the conform window policy is applied.
140  ///
141  /// For backwards compatibility with scene and render delegates:
142  /// if the HdCamera has no physically based attributes (more precisely,
143  /// the scene delegate provided a VtValue for focalLength that is either
144  /// empty or 1.0f), the HdCamera's projection matrix is used.
145  /// The HdRenderPassState also has a fallback value for the projection
146  /// matrix that is used if no HdCamera was specified, that can be set with,
147  /// e.g.g, HdStRenderPassState::SetCameraFramingState.
148  ///
149  HD_API
151 
152  /// Only use when clients did not specify a camera framing.
153  ///
154  /// \deprecated
155  GfVec4f const & GetViewport() const { return _viewport; }
156 
157  HD_API
158  ClipPlanesVector const & GetClipPlanes() const;
159 
161 
162  // ---------------------------------------------------------------------- //
163  /// \name Application rendering state
164  // ---------------------------------------------------------------------- //
165 
166  /// Set an override color for rendering where the R, G and B components
167  /// are the color and the alpha component is the blend value
168  HD_API
169  void SetOverrideColor(GfVec4f const &color);
170  const GfVec4f& GetOverrideColor() const { return _overrideColor; }
171 
172  /// Set a wireframe color for rendering where the R, G and B components
173  /// are the color and the alpha component is the blend value
174  HD_API
175  void SetWireframeColor(GfVec4f const &color);
176  const GfVec4f& GetWireframeColor() const { return _wireframeColor; }
177 
178  HD_API
179  void SetMaskColor(GfVec4f const &color);
180  const GfVec4f& GetMaskColor() const { return _maskColor; }
181 
182  HD_API
183  void SetIndicatorColor(GfVec4f const &color);
184  const GfVec4f& GetIndicatorColor() const { return _indicatorColor; }
185 
186  /// Set a point color for rendering where the R, G and B components
187  /// are the color and the alpha component is the blend value
188  HD_API
189  void SetPointColor(GfVec4f const &color);
190  const GfVec4f& GetPointColor() const { return _pointColor; }
191 
192  /// Set the point size for unselected points.
193  HD_API
194  void SetPointSize(float size);
195  float GetPointSize() const { return _pointSize; }
196 
197  /// Set the point size for selected points.
198  HD_API
199  void SetPointSelectedSize(float size);
200  float GetPointSelectedSize() const { return _pointSelectedSize; }
201 
202  /// XXX: Hacky way of disabling lighting
203  HD_API
204  void SetLightingEnabled(bool enabled);
205  bool GetLightingEnabled() const { return _lightingEnabled; }
206 
207  HD_API
208  void SetClippingEnabled(bool enabled);
209  bool GetClippingEnabled() const { return _clippingEnabled; }
210 
211  // ---------------------------------------------------------------------- //
212  /// \name Render pipeline state
213  // ---------------------------------------------------------------------- //
214 
215  /// Set the attachments for this renderpass to render into.
216  HD_API
217  void SetAovBindings(HdRenderPassAovBindingVector const &aovBindings);
218  HD_API
220 
221  /// Set the AOVs that this renderpass needs to read from.
222  HD_API
223  void SetAovInputBindings(HdRenderPassAovBindingVector const &aovBindings);
224  HD_API
226 
227  /// Returns true if the render pass wants to render into the multi-sample
228  /// aovs. Returns false if the render wants to render into the resolve aovs.
229  HD_API
230  void SetUseAovMultiSample(bool state);
231  HD_API
232  bool GetUseAovMultiSample() const;
233 
234  HD_API
235  void SetCullStyle(HdCullStyle cullStyle);
236  HD_API
237  HdCullStyle GetCullStyle() const { return _cullStyle; }
238 
239  HD_API
240  void SetAlphaThreshold(float alphaThreshold);
241  float GetAlphaThreshold() const { return _alphaThreshold; }
242 
243  HD_API
244  void SetTessLevel(float level);
245  float GetTessLevel() const { return _tessLevel; }
246 
247  HD_API
248  void SetDrawingRange(GfVec2f const &drawRange);
249  GfVec2f GetDrawingRange() const { return _drawRange; } // in pixel
250  GfVec2f GetDrawingRangeNDC() const { // in ndc
251  return GfVec2f(2*_drawRange[0]/_viewport[2],
252  2*_drawRange[1]/_viewport[3]);
253  }
254 
255  HD_API
256  void SetDepthBiasUseDefault(bool useDefault);
258 
259  HD_API
260  void SetDepthBiasEnabled(bool enabled);
261  bool GetDepthBiasEnabled() const { return _depthBiasEnabled; }
262 
263  HD_API
264  void SetDepthBias(float constantFactor, float slopeFactor);
265 
266  HD_API
267  void SetDepthFunc(HdCompareFunction depthFunc);
269 
270  HD_API
271  void SetEnableDepthMask(bool state);
272  HD_API
273  bool GetEnableDepthMask();
274 
275  HD_API
276  void SetEnableDepthTest(bool enabled);
277  HD_API
278  bool GetEnableDepthTest() 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  enum ColorMask {
329  };
330 
331  HD_API
332  void SetColorMasks(std::vector<ColorMask> const& masks);
333  std::vector<ColorMask> const& GetColorMasks() const { return _colorMasks; }
334 
335 protected:
336  // ---------------------------------------------------------------------- //
337  // Camera and framing state
338  // ---------------------------------------------------------------------- //
342  std::pair<bool, CameraUtilConformWindowPolicy> _overrideWindowPolicy;
343  GfMatrix4d _cullMatrix; // updated during Prepare(..)
344 
345  // Used by applications setting the view matrix directly instead of
346  // using an HdCamera. Will be removed eventually.
348  // Used by applications setting the projection matrix directly instead
349  // of using an HdCamera. Will be removed eventually.
351  // Used by applications setting the clip planes directly instead
352  // of using an HdCamera. Will be removed eventually.
354 
355  // ---------------------------------------------------------------------- //
356  // Application rendering state
357  // ---------------------------------------------------------------------- //
361  float _pointSize;
364 
368 
369  // ---------------------------------------------------------------------- //
370  // Render pipeline state
371  // ---------------------------------------------------------------------- //
373  float _tessLevel;
375 
376  bool _depthBiasUseDefault; // inherit existing state, ignore values below.
383 
385 
386  // Stencil RenderPassState
394 
395  // Line width
396  float _lineWidth;
397 
398  // Blending
407 
408  // alpha to coverage
410 
412  std::vector<ColorMask> _colorMasks;
413 
417 };
418 
420 
421 #endif // PXR_IMAGING_HD_RENDER_PASS_STATE_H
HdRenderPassAovBindingVector _aovInputBindings
Set the attachments for this renderpass to render into.
GLint ref
Definition: glcorearb.h:123
GfMatrix4d GetCullMatrix() const
HdCamera const * GetCamera() const
Get camera.
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.
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 _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
HD_API GfMatrix4d GetWorldToViewMatrix() const
HdBlendFactor GetBlendColorSrcFactor()
Set the attachments for this renderpass to render into.
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:1260
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.
GfMatrix4d _projectionMatrix
Set the attachments for this renderpass to render into.
HD_API void SetPointSelectedSize(float size)
Set the point size for selected points.
GLint level
Definition: glcorearb.h:107
HD_API ClipPlanesVector const & GetClipPlanes() const
#define HD_API
Definition: api.h:40
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.
GLenum GLenum GLsizei const GLuint GLboolean enabled
Definition: glcorearb.h:2538
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.
const GfVec4f & GetOverrideColor() const
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.
HD_API GfMatrix4d GetProjectionMatrix() const
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:663
bool GetDepthBiasEnabled() const
Set the attachments for this renderpass to render into.
bool _depthBiasEnabled
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
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 SetWireframeColor(GfVec4f const &color)
HD_API void SetUseAovMultiSample(bool state)
GfVec2f GetDrawingRangeNDC() const
Set the attachments for this renderpass to render into.
GLint GLuint mask
Definition: glcorearb.h:123
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 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.
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)
GfMatrix4d _worldToViewMatrix
Set the attachments for this renderpass to render into.
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:102
GLenum zfail
Definition: glcorearb.h:124
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:124
GLenum func
Definition: glcorearb.h:782
const std::pair< bool, CameraUtilConformWindowPolicy > & GetOverrideWindowPolicy() const
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1375
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.
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.
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
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
ClipPlanesVector _clipPlanes
Set the attachments for this renderpass to render into.
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:147
bool _clippingEnabled
Set the attachments for this renderpass to render into.
const CameraUtilFraming & GetFraming() const
HD_API bool GetEnableDepthMask()
Set the attachments for this renderpass to render into.
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
GfMatrix4d _cullMatrix
Set the attachments for this renderpass to render into.
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.