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/output_driver.h')
-rw-r--r--intern/cycles/hydra/output_driver.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/intern/cycles/hydra/output_driver.h b/intern/cycles/hydra/output_driver.h
new file mode 100644
index 00000000000..f10adfccf43
--- /dev/null
+++ b/intern/cycles/hydra/output_driver.h
@@ -0,0 +1,23 @@
+/* SPDX-License-Identifier: Apache-2.0
+ * Copyright 2022 NVIDIA Corporation
+ * Copyright 2022 Blender Foundation */
+
+#pragma once
+
+#include "hydra/config.h"
+#include "session/output_driver.h"
+
+HDCYCLES_NAMESPACE_OPEN_SCOPE
+
+class HdCyclesOutputDriver final : public CCL_NS::OutputDriver {
+ public:
+ HdCyclesOutputDriver(HdCyclesSession *renderParam);
+
+ private:
+ void write_render_tile(const Tile &tile) override;
+ bool update_render_tile(const Tile &tile) override;
+
+ HdCyclesSession *const _renderParam;
+};
+
+HDCYCLES_NAMESPACE_CLOSE_SCOPE