All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
bprim.h
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_BPRIM_H
8#define PXR_IMAGING_HD_BPRIM_H
9
10#include "pxr/pxr.h"
11#include "pxr/imaging/hd/api.h"
12#include "pxr/imaging/hd/version.h"
13#include "pxr/imaging/hd/types.h"
14
15#include "pxr/usd/sdf/path.h"
16
17PXR_NAMESPACE_OPEN_SCOPE
18
19class HdSceneDelegate;
20class HdRenderParam;
21
40{
41public:
42 HD_API
43 HdBprim(SdfPath const & id);
44 HD_API
45 virtual ~HdBprim();
46
50 SdfPath const& GetId() const { return _id; }
51
59 virtual void Sync(HdSceneDelegate *sceneDelegate,
60 HdRenderParam *renderParam,
61 HdDirtyBits *dirtyBits) = 0;
62
66 HD_API
67 virtual void Finalize(HdRenderParam *renderParam);
68
72 virtual HdDirtyBits GetInitialDirtyBitsMask() const = 0;
73
74private:
75 SdfPath _id;
76};
77
78
79PXR_NAMESPACE_CLOSE_SCOPE
80
81#endif // PXR_IMAGING_HD_BPRIM_H
Bprim (buffer prim) is a base class of managing a blob of data that is used to communicate between th...
Definition: bprim.h:40
virtual HD_API void Finalize(HdRenderParam *renderParam)
Finalizes object resources.
SdfPath const & GetId() const
Returns the identifier by which this buffer is known.
Definition: bprim.h:50
virtual HdDirtyBits GetInitialDirtyBitsMask() const =0
Returns the minimal set of dirty bits to place in the change tracker for use in the first sync of thi...
virtual void Sync(HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits)=0
Synchronizes state from the delegate to this object.
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.
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274