Loading...
Searching...
No Matches
extComputation.h
1//
2// Copyright 2018 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_EXT_COMPUTATION_H
8#define PXR_IMAGING_HD_ST_EXT_COMPUTATION_H
9
10#include "pxr/pxr.h"
11#include "pxr/imaging/hdSt/api.h"
12#include "pxr/imaging/hd/extComputation.h"
13#include "pxr/usd/sdf/path.h"
14#include "pxr/base/vt/value.h"
15
16#include <vector>
17
18PXR_NAMESPACE_OPEN_SCOPE
19
20class HdSceneDelegate;
21using HdBufferArrayRangeSharedPtr = std::shared_ptr<class HdBufferArrayRange>;
22
28{
29public:
31 HDST_API
33
34 HDST_API
35 ~HdStExtComputation() override;
36
37 HDST_API
38 void Sync(HdSceneDelegate *sceneDelegate,
39 HdRenderParam *renderParam,
40 HdDirtyBits *dirtyBits) override;
41
42 HDST_API
43 void Finalize(HdRenderParam *renderParam) override;
44
45 HDST_API
46 HdBufferArrayRangeSharedPtr const & GetInputRange() const {
47 return _inputRange;
48 }
49
50private:
51 // No default construction or copying
52 HdStExtComputation() = delete;
53 HdStExtComputation(const HdStExtComputation &) = delete;
54 HdStExtComputation &operator =(const HdStExtComputation &) = delete;
55
56 HdBufferArrayRangeSharedPtr _inputRange;
57};
58
59PXR_NAMESPACE_CLOSE_SCOPE
60
61#endif // PXR_IMAGING_HD_ST_EXT_COMPUTATION_H
Hydra Representation of a Client defined computation.
The HdRenderParam is an opaque (to core Hydra) handle, to an object that is obtained from the render ...
Adapter class providing data exchange with the client scene graph.
Specialization of HdExtComputation which manages inputs as GPU resources.
HDST_API void Sync(HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits) override
Synchronizes state from the delegate to this object.
HDST_API HdStExtComputation(SdfPath const &id)
Construct a new ExtComputation identified by id.
HDST_API void Finalize(HdRenderParam *renderParam) override
Finalizes object resources.
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274