aboutsummaryrefslogtreecommitdiff
path: root/src/rendering/render_path.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rendering/render_path.h')
-rw-r--r--src/rendering/render_path.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rendering/render_path.h b/src/rendering/render_path.h
index 0d97395..c029132 100644
--- a/src/rendering/render_path.h
+++ b/src/rendering/render_path.h
@@ -4,6 +4,7 @@
#include "view.h"
#include "scene_renderer.h"
#include "black_hole_renderer.h"
+#include "export_config.h"
#include "core/memory.h"
#include <string>
@@ -30,6 +31,10 @@ namespace Donut
auto render(RHI::CommandList& cmd, Scene& scene, View view,
int fb_width, int fb_height, bool moving, float time) -> void;
+ // Renders the requested export channels off-screen at cfg.width x cfg.height
+ // and writes one PNG per channel. Returns the number of files written.
+ auto export_frame(Scene& scene, const ExportConfig& cfg) -> int;
+
private:
RHI::Device* m_device = nullptr;
Scope<SceneRenderer> m_scene_renderer;