Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/cycles/hydra/pointcloud.h')
-rw-r--r--intern/cycles/hydra/pointcloud.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/intern/cycles/hydra/pointcloud.h b/intern/cycles/hydra/pointcloud.h
new file mode 100644
index 00000000000..aa1768e807f
--- /dev/null
+++ b/intern/cycles/hydra/pointcloud.h
@@ -0,0 +1,39 @@
+/* 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/points.h>
+
+HDCYCLES_NAMESPACE_OPEN_SCOPE
+
+class HdCyclesPoints final : public HdCyclesGeometry<PXR_NS::HdPoints, CCL_NS::PointCloud> {
+ public:
+ HdCyclesPoints(const PXR_NS::SdfPath &rprimId
+#if PXR_VERSION < 2102
+ ,
+ const PXR_NS::SdfPath &instancerId = {}
+#endif
+ );
+ ~HdCyclesPoints() override;
+
+ PXR_NS::HdDirtyBits GetInitialDirtyBitsMask() const override;
+
+ private:
+ PXR_NS::HdDirtyBits _PropagateDirtyBits(PXR_NS::HdDirtyBits bits) const override;
+
+ void Populate(PXR_NS::HdSceneDelegate *sceneDelegate,
+ PXR_NS::HdDirtyBits dirtyBits,
+ bool &rebuild) override;
+
+ void PopulatePoints(PXR_NS::HdSceneDelegate *sceneDelegate);
+ void PopulateWidths(PXR_NS::HdSceneDelegate *sceneDelegate);
+
+ void PopulatePrimvars(PXR_NS::HdSceneDelegate *sceneDelegate);
+};
+
+HDCYCLES_NAMESPACE_CLOSE_SCOPE