aboutsummaryrefslogtreecommitdiff
path: root/src/rendering/render_path.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-24 18:28:39 +0200
committerhachem <im@hachem.wtf>2026-08-24 18:28:39 +0200
commita34c49f103c8950a57687ea3d866c244d95b4414 (patch)
treeff268f4a7f52769a252443d6f2822c9814e3bb1c /src/rendering/render_path.h
parent06398a7a176e123506de6e8851866a8bec0b3427 (diff)
[docs]: added a few comments cause i wont be able to read this in a week's time
Diffstat (limited to 'src/rendering/render_path.h')
-rw-r--r--src/rendering/render_path.h14
1 files changed, 7 insertions, 7 deletions
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: