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 terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 #ifndef PXR_IMAGING_HD_RENDER_PASS_STATE_H
8 #define PXR_IMAGING_HD_RENDER_PASS_STATE_H
9 
10 #include "pxr/pxr.h"
11 #include "pxr/imaging/hd/api.h"
12 #include "pxr/imaging/hd/aov.h"
13 #include "pxr/imaging/hd/version.h"
14 #include "pxr/imaging/hd/enums.h"
15 
17 
18 #include "pxr/usd/sdf/path.h"
19 
20 #include "pxr/base/tf/token.h"
21 #include "pxr/base/vt/value.h"
22 #include "pxr/base/gf/matrix4d.h"
23 #include "pxr/base/gf/vec2f.h"
24 #include "pxr/base/gf/vec4d.h"
25 #include "pxr/base/gf/vec4f.h"
26 
27 #include <memory>
28 
29 #include <optional>
30 
32 
33 
34 using HdRenderPassStateSharedPtr = std::shared_ptr<class HdRenderPassState>;
35 using HdResourceRegistrySharedPtr = std::shared_ptr<class HdResourceRegistry>;
36 
37 class HdCamera;
38 
39 /// \class HdRenderPassState
40 ///
41 /// A set of rendering parameters used among render passes.
42 ///
43 /// Parameters are expressed as GL states, uniforms or shaders.
44 ///
46 {
47 public:
48  HD_API
50  HD_API
51  virtual ~HdRenderPassState();
52 
53  /// Schedule to update renderPassState parameters.
54  /// e.g. camera matrix, override color, id blend factor.
55  /// Prepare, called once per frame after the sync phase, but prior to
56  /// the commit phase.
57  HD_API
58  virtual void Prepare(HdResourceRegistrySharedPtr const &resourceRegistry);
59 
60  // ---------------------------------------------------------------------- //
61  /// \name Camera and framing state
62  // ---------------------------------------------------------------------- //
63 
64  using ClipPlanesVector = std::vector<GfVec4d>;
65 
66  /// Sets the camera.
67  HD_API
68  void SetCamera(const HdCamera *camera);
69 
70  /// Sets whether to override the window policy used to conform the camera
71  /// if its aspect ratio is not matching the display window/viewport.
72  /// If first value is false, the HdCamera's window policy is used.
73  ///
74  HD_API
76  const std::optional<CameraUtilConformWindowPolicy> &
77  overrideWindowPolicy);
78 
79  /// Sets the framing to show the camera. If a valid framing is set, a
80  /// viewport set earlier with SetViewport will be ignored.
81  HD_API
82  void SetFraming(const CameraUtilFraming &framing);
83 
84  /// Sets the viewport to show the camera. If SetViewport is called,
85  /// any framing set earlier with SetFraming will be ignored.
86  ///
87  /// \deprecated Use the more expressive SetFraming instead.
88  HD_API
89  void SetViewport(const GfVec4d &viewport);
90 
91  /// Get camera
92  HdCamera const *
93  GetCamera() const { return _camera; }
94 
95  /// Get framing information determining how the filmback plane maps
96  /// to pixels.
97  const CameraUtilFraming &
98  GetFraming() const { return _framing; }
99 
100  /// The override value for the window policy to conform the camera
101  /// frustum that can be specified by the application.
102  const std::optional<CameraUtilConformWindowPolicy> &
104 
105  /// The resolved window policy to conform the camera frustum.
106  /// This is either the override value specified by the application or
107  /// the value from the scene delegate's camera.
108  HD_API
110  GetWindowPolicy() const;
111 
112  /// Camera getter API
113  ///
114  /// Returns inverse of HdCamera's transform.
115  ///
116  HD_API
117  virtual GfMatrix4d GetWorldToViewMatrix() const;
118 
119  /// Compute projection matrix using physical attributes of an HdCamera.
120  ///
121  HD_API
122  virtual GfMatrix4d GetProjectionMatrix() const;
123 
124  /// Only use when clients did not specify a camera framing.
125  ///
126  /// \deprecated
127  GfVec4f const & GetViewport() const { return _viewport; }
128 
129  /// Compute a transform from window relative coordinates (x,y,z,1) to
130  /// homogeneous world coordinates (x,y,z,w), using the HdCamera's
131  /// attributes, framing, and viewport dimensions.
132  ///
133  HD_API
135 
136  /// Returns HdCamera's clip planes.
137  ///
138  HD_API
139  virtual ClipPlanesVector const & GetClipPlanes() const;
140 
141  // ---------------------------------------------------------------------- //
142  /// \name Application rendering state
143  // ---------------------------------------------------------------------- //
144 
145  /// Set an override color for rendering where the R, G and B components
146  /// are the color and the alpha component is the blend value
147  /// The color is specified in the render color space
148  HD_API
149  void SetOverrideColor(GfVec4f const &color);
150  const GfVec4f& GetOverrideColor() const { return _overrideColor; }
151 
152  /// Set a wireframe color for rendering where the R, G and B components
153  /// are the color and the alpha component is the blend value
154  /// The color is specified in the render color space
155  HD_API
156  void SetWireframeColor(GfVec4f const &color);
157  const GfVec4f& GetWireframeColor() const { return _wireframeColor; }
158 
159  /// The color is specified in the render color space
160  HD_API
161  void SetMaskColor(GfVec4f const &color);
162  const GfVec4f& GetMaskColor() const { return _maskColor; }
163 
164  /// The color is specified in the render color space
165  HD_API
166  void SetIndicatorColor(GfVec4f const &color);
167  const GfVec4f& GetIndicatorColor() const { return _indicatorColor; }
168 
169  /// Set a point color for rendering where the R, G and B components
170  /// are the color and the alpha component is the blend value
171  /// The color is specified in the render color space
172  HD_API
173  void SetPointColor(GfVec4f const &color);
174  const GfVec4f& GetPointColor() const { return _pointColor; }
175 
176  /// Set the point size for unselected points.
177  HD_API
178  void SetPointSize(float size);
179  float GetPointSize() const { return _pointSize; }
180 
181  /// Set the point size for selected points.
182  HD_API
183  void SetPointSelectedSize(float size);
184  float GetPointSelectedSize() const { return _pointSelectedSize; }
185 
186  /// XXX: Hacky way of disabling lighting
187  HD_API
188  void SetLightingEnabled(bool enabled);
189  bool GetLightingEnabled() const { return _lightingEnabled; }
190 
191  HD_API
192  void SetClippingEnabled(bool enabled);
193  bool GetClippingEnabled() const { return _clippingEnabled; }
194 
195  // ---------------------------------------------------------------------- //
196  /// \name Render pipeline state
197  // ---------------------------------------------------------------------- //
198 
199  /// Set the attachments for this renderpass to render into.
200  HD_API
201  void SetAovBindings(HdRenderPassAovBindingVector const &aovBindings);
202  HD_API
204 
205  /// Set the AOVs that this renderpass needs to read from.
206  HD_API
207  void SetAovInputBindings(HdRenderPassAovBindingVector const &aovBindings);
208  HD_API
210 
211  /// Returns true if the render pass wants to render into the multi-sample
212  /// aovs. Returns false if the render wants to render into the resolve aovs.
213  HD_API
214  void SetUseAovMultiSample(bool state);
215  HD_API
216  bool GetUseAovMultiSample() const;
217 
218  HD_API
219  void SetCullStyle(HdCullStyle cullStyle);
220  HD_API
221  HdCullStyle GetCullStyle() const { return _cullStyle; }
222 
223  HD_API
224  void SetAlphaThreshold(float alphaThreshold);
225  float GetAlphaThreshold() const { return _alphaThreshold; }
226 
227  HD_API
228  void SetTessLevel(float level);
229  float GetTessLevel() const { return _tessLevel; }
230 
231  HD_API
232  void SetDrawingRange(GfVec2f const &drawRange);
233  GfVec2f GetDrawingRange() const { return _drawRange; } // in pixel
234  HD_API
235  GfVec2f GetDrawingRangeNDC() const; // in ndc
236 
237  HD_API
238  void SetDepthBiasUseDefault(bool useDefault);
240 
241  HD_API
242  void SetDepthBiasEnabled(bool enabled);
243  bool GetDepthBiasEnabled() const { return _depthBiasEnabled; }
244 
245  HD_API
246  void SetDepthBias(float constantFactor, float slopeFactor);
247 
248  HD_API
249  void SetDepthFunc(HdCompareFunction depthFunc);
251 
252  HD_API
253  void SetEnableDepthMask(bool state);
254  HD_API
255  bool GetEnableDepthMask() const;
256 
257  HD_API
258  void SetEnableDepthTest(bool enabled);
259  HD_API
260  bool GetEnableDepthTest() const;
261 
262  HD_API
263  void SetEnableDepthClamp(bool enabled);
264  HD_API
265  bool GetEnableDepthClamp() const;
266 
267  HD_API
268  void SetDepthRange(GfVec2f const &depthRange);
269  HD_API
270  const GfVec2f& GetDepthRange() const;
271 
272  HD_API
273  void SetStencil(HdCompareFunction func, int ref, int mask,
276  int GetStencilRef() const { return _stencilRef; }
277  int GetStencilMask() const { return _stencilMask; }
281  HD_API
282  void SetStencilEnabled(bool enabled);
283  HD_API
284  bool GetStencilEnabled() const;
285 
286  HD_API
287  void SetLineWidth(float width);
288  float GetLineWidth() const { return _lineWidth; }
289 
290  HD_API
291  void SetBlend(HdBlendOp colorOp,
292  HdBlendFactor colorSrcFactor,
293  HdBlendFactor colorDstFactor,
294  HdBlendOp alphaOp,
295  HdBlendFactor alphaSrcFactor,
296  HdBlendFactor alphaDstFactor);
303 
304  // Blend constant color is specified in the render color space
305  HD_API
306  void SetBlendConstantColor(GfVec4f const & color);
308  HD_API
309  void SetBlendEnabled(bool enabled);
310 
311  HD_API
314 
315  HD_API
316  void SetColorMaskUseDefault(bool useDefault);
318 
319  HD_API
323  }
324 
325  HD_API
326  void SetVolumeRenderingConstants(float stepSize, float stepSizeLighting);
327 
328  enum ColorMask {
332  };
333 
334  HD_API
335  void SetColorMasks(std::vector<ColorMask> const& masks);
336  std::vector<ColorMask> const& GetColorMasks() const { return _colorMasks; }
337 
338  HD_API
339  void SetMultiSampleEnabled(bool enabled);
341 
342 protected:
343  // ---------------------------------------------------------------------- //
344  // Camera and framing state
345  // ---------------------------------------------------------------------- //
349  std::optional<CameraUtilConformWindowPolicy> _overrideWindowPolicy;
350 
351  // ---------------------------------------------------------------------- //
352  // Application rendering state
353  // ---------------------------------------------------------------------- //
357  float _pointSize;
360 
364 
365  // ---------------------------------------------------------------------- //
366  // Render pipeline state
367  // ---------------------------------------------------------------------- //
369  float _tessLevel;
371 
372  bool _depthBiasUseDefault; // inherit existing state, ignore values below.
381 
383 
384  // Stencil RenderPassState
392 
393  // Line width
394  float _lineWidth;
395 
396  // Blending
405 
406  // alpha to coverage
408 
410  std::vector<ColorMask> _colorMasks;
411 
415 
417 
418  float _stepSize;
420 
422 };
423 
425 
426 #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.
const std::optional< CameraUtilConformWindowPolicy > & GetOverrideWindowPolicy() const
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:25
float _lineWidth
Set the attachments for this renderpass to render into.
HdCompareFunction
Definition: enums.h:19
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:105
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)
The color is specified in the render color space.
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:23
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:45
HdBlendFactor
Definition: enums.h:70
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.
HD_API void SetOverrideWindowPolicy(const std::optional< CameraUtilConformWindowPolicy > &overrideWindowPolicy)
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.
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)
The color is specified in the render color space.
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:37
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:45
CameraUtilConformWindowPolicy
Definition: conformWindow.h:27
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
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:1425
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:45
HdCamera const * _camera
Set the attachments for this renderpass to render into.
float _depthBiasSlopeFactor
Set the attachments for this renderpass to render into.
std::optional< CameraUtilConformWindowPolicy > _overrideWindowPolicy
Set the attachments for this renderpass to render into.
virtual HD_API ~HdRenderPassState()
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
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.
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:55
HD_API void SetAovInputBindings(HdRenderPassAovBindingVector const &aovBindings)
Set the AOVs that this renderpass needs to read from.
std::vector< HdRenderPassAovBinding > HdRenderPassAovBindingVector
Definition: aov.h:137
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.
state
Definition: core.h:2289
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.
bool _colorMaskUseDefault
Set the attachments for this renderpass to render into.
HdBlendFactor _blendColorDstFactor
Set the attachments for this renderpass to render into.