Loading...
Searching...
No Matches
volumeFilter.h
1//
2// Copyright 2026 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_VOLUME_FILTER_H
8#define EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_VOLUME_FILTER_H
9
10#include "pxr/imaging/hd/sprim.h"
11#include "pxr/imaging/hd/types.h"
12#include "pxr/pxr.h"
13#include "pxr/usd/sdf/path.h"
14
15#include <Riley.h>
16#include <RileyIds.h>
17
18#include <mutex>
19
20PXR_NAMESPACE_OPEN_SCOPE
21
22class HdSceneDelegate;
23class HdPrman_RenderParam;
24
29class HdPrman_VolumeFilter final : public HdSprim
30{
31public:
33 ~HdPrman_VolumeFilter() override;
34
36 void Sync(HdSceneDelegate *sceneDelegate,
37 HdRenderParam *renderParam,
38 HdDirtyBits *dirtyBits) override;
39
42 HdSceneDelegate *sceneDelegate,
43 HdPrman_RenderParam *param,
44 riley::Riley *riley);
45
49 HdDirtyBits GetInitialDirtyBitsMask() const override;
50
51 void Finalize(HdRenderParam *renderParam) override;
52
53 riley::CoordinateSystemId GetCoordSysId();
54
55private:
56 void _SyncToRileyWithLock(
57 HdSceneDelegate *sceneDelegate,
58 HdPrman_RenderParam *param,
59 riley::Riley *riley);
60
61 riley::CoordinateSystemId _coordSysId;
62 mutable std::mutex _syncToRileyMutex;
63 bool _rileyIsInSync;
64};
65
66PXR_NAMESPACE_CLOSE_SCOPE
67
68#endif // EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_VOLUME_FILTER_H
A representation for volume filters.
Definition: volumeFilter.h:30
void Sync(HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits) override
Synchronizes state from the delegate to this object.
void SyncToRiley(HdSceneDelegate *sceneDelegate, HdPrman_RenderParam *param, riley::Riley *riley)
Make sure this object has been updated in Riley.
void Finalize(HdRenderParam *renderParam) override
Finalizes object resources.
HdDirtyBits GetInitialDirtyBitsMask() const override
Returns the minimal set of dirty bits to place in the change tracker for use in the first sync of thi...
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.
Sprim (state prim) is a base class of managing state for non-drawable scene entity (e....
Definition: sprim.h:35
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:281