From a34c49f103c8950a57687ea3d866c244d95b4414 Mon Sep 17 00:00:00 2001 From: hachem Date: Mon, 24 Aug 2026 18:28:39 +0200 Subject: [docs]: added a few comments cause i wont be able to read this in a week's time --- src/rendering/render_path.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/rendering/render_path.h') diff --git a/src/rendering/render_path.h b/src/rendering/render_path.h index c029132..e5e8bb6 100644 --- a/src/rendering/render_path.h +++ b/src/rendering/render_path.h @@ -13,26 +13,26 @@ namespace Donut { class Scene; - // Owns the device-side rendering: the two portable renderers, the shared HDRI + // owns the device-side rendering: the two portable renderers, the shared HDRI // cubemap, and the per-frame composition (off-screen geodesic pass -> present, - // or the scene pass), with ImGui drawn on top inside the swapchain pass. The - // Application hands it a Scene + View each frame; it knows nothing about the UI. + // or the scene pass), with ImGui drawn on top inside the swapchain pass. the + // application hands it a Scene + View each frame; it knows nothing about the UI. class RenderPath { public: auto init(RHI::Device& device, const std::string& hdri_path) -> bool; auto shutdown() -> void; - // Rebuilds the environment cubemap if the path changed (device-idle). + // rebuilds the environment cubemap if the path changed (device-idle). auto sync_hdri(const std::string& hdri_path) -> void; - // Composes one frame's viewport into the swapchain command list. `moving` + // composes one frame's viewport into the swapchain command list. `moving` // drives the black hole's progressive resolution; `time` animates the disk. 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. + // 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: -- cgit v1.3