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/field.h')
-rw-r--r--intern/cycles/hydra/field.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/intern/cycles/hydra/field.h b/intern/cycles/hydra/field.h
new file mode 100644
index 00000000000..c509ba3e0be
--- /dev/null
+++ b/intern/cycles/hydra/field.h
@@ -0,0 +1,34 @@
+/* SPDX-License-Identifier: Apache-2.0
+ * Copyright 2022 NVIDIA Corporation
+ * Copyright 2022 Blender Foundation */
+
+#pragma once
+
+#include "hydra/config.h"
+#include "scene/image.h"
+
+#include <pxr/imaging/hd/field.h>
+
+HDCYCLES_NAMESPACE_OPEN_SCOPE
+
+class HdCyclesField final : public PXR_NS::HdField {
+ public:
+ HdCyclesField(const PXR_NS::SdfPath &bprimId, const PXR_NS::TfToken &typeId);
+ ~HdCyclesField() override;
+
+ PXR_NS::HdDirtyBits GetInitialDirtyBitsMask() const override;
+
+ void Sync(PXR_NS::HdSceneDelegate *sceneDelegate,
+ PXR_NS::HdRenderParam *renderParam,
+ PXR_NS::HdDirtyBits *dirtyBits) override;
+
+ CCL_NS::ImageHandle GetImageHandle() const
+ {
+ return m_handle;
+ }
+
+ private:
+ CCL_NS::ImageHandle m_handle;
+};
+
+HDCYCLES_NAMESPACE_CLOSE_SCOPE