Loading...
Searching...
No Matches
drawTargetRenderPassState.h
1//
2// Copyright 2017 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_ST_DRAW_TARGET_RENDER_PASS_STATE_H
8#define PXR_IMAGING_HD_ST_DRAW_TARGET_RENDER_PASS_STATE_H
9
10#include "pxr/pxr.h"
11#include "pxr/imaging/hdSt/api.h"
12#include "pxr/imaging/hd/enums.h"
13#include "pxr/imaging/hd/rprimCollection.h"
14#include "pxr/usd/sdf/path.h"
15
16PXR_NAMESPACE_OPEN_SCOPE
17
18
19class VtValue;
20using HdRenderPassAovBindingVector =
21 std::vector<struct HdRenderPassAovBinding>;
22
33{
34public:
35 HDST_API
37 HDST_API
38 ~HdStDrawTargetRenderPassState(); // final no need to be virtual
39
40 const HdRenderPassAovBindingVector &GetAovBindings() const {
41 return _aovBindings;
42 }
43
44 HDST_API
45 void SetAovBindings(const HdRenderPassAovBindingVector &aovBindings);
46
49 HDST_API
50 void SetDepthPriority(HdDepthPriority priority);
51
53 HDST_API
54 void SetCamera(const SdfPath &cameraId);
55
56 HDST_API
57 void SetRprimCollection(HdRprimCollection const& col);
58
59 HdDepthPriority GetDepthPriority() const { return _depthPriority; }
60
61
63 const SdfPath &GetCamera() const { return _cameraId; }
64
69 unsigned int GetRprimCollectionVersion() const
70 {
71 return _rprimCollectionVersion;
72 }
73
76 {
77 return _rprimCollection;
78 }
79
80private:
81 HdRenderPassAovBindingVector _aovBindings;
82 HdDepthPriority _depthPriority;
83
84 SdfPath _cameraId;
85
86 HdRprimCollection _rprimCollection;
87 unsigned int _rprimCollectionVersion;
88
91};
92
93
94PXR_NAMESPACE_CLOSE_SCOPE
95
96#endif // PXR_IMAGING_HD_ST_DRAW_TARGET_RENDER_PASS_STATE_H
A named, semantic collection of objects.
Represents common non-gl context specific render pass state for a draw target.
HDST_API void SetCamera(const SdfPath &cameraId)
Set the path to the camera to use to draw this render path from.
const SdfPath & GetCamera() const
Returns the path to the camera to render from.
HDST_API void SetDepthPriority(HdDepthPriority priority)
Sets the priority of values in the depth buffer.
unsigned int GetRprimCollectionVersion() const
Returns an increasing version number for when the collection object is changed.
const HdRprimCollection & GetRprimCollection() const
Returns the collection associated with this draw target.
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274
Provides a container which may hold any type, and provides introspection and iteration over array typ...
Definition: value.h:90