diff options
| author | hachem <im@hachem.wtf> | 2026-08-24 03:57:40 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-24 03:57:40 +0200 |
| commit | 59b7c407550d63e997ed1e7bed286be5c332c285 (patch) | |
| tree | 95f168df75d33326dde486b401c1abf62608ff7c /src/rendering/render_path.h | |
| parent | 7ae22084c74cbe0c127e0ea1c96ec22a1f47d221 (diff) | |
[feat]: work on render path exporting
Diffstat (limited to 'src/rendering/render_path.h')
| -rw-r--r-- | src/rendering/render_path.h | 5 |
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; |
