diff options
Diffstat (limited to 'intern/cycles/hydra/volume.h')
-rw-r--r-- | intern/cycles/hydra/volume.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/intern/cycles/hydra/volume.h b/intern/cycles/hydra/volume.h new file mode 100644 index 00000000000..775a7cf069e --- /dev/null +++ b/intern/cycles/hydra/volume.h @@ -0,0 +1,32 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2022 NVIDIA Corporation + * Copyright 2022 Blender Foundation */ + +#pragma once + +#include "hydra/config.h" +#include "hydra/geometry.h" + +#include <pxr/imaging/hd/volume.h> + +HDCYCLES_NAMESPACE_OPEN_SCOPE + +class HdCyclesVolume final : public HdCyclesGeometry<PXR_NS::HdVolume, CCL_NS::Volume> { + public: + HdCyclesVolume(const PXR_NS::SdfPath &rprimId +#if PXR_VERSION < 2102 + , + const PXR_NS::SdfPath &instancerId = {} +#endif + ); + ~HdCyclesVolume() override; + + PXR_NS::HdDirtyBits GetInitialDirtyBitsMask() const override; + + private: + void Populate(PXR_NS::HdSceneDelegate *sceneDelegate, + PXR_NS::HdDirtyBits dirtyBits, + bool &rebuild) override; +}; + +HDCYCLES_NAMESPACE_CLOSE_SCOPE |