From ca9b8beaf69f06cac9b91b66ccd03bb99f09dd22 Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 20 Aug 2026 16:51:57 +0200 Subject: [chore]: move imgui HDRI switching to vulkan --- src/platform/vulkan/vulkan_renderer.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/platform/vulkan/vulkan_renderer.h') diff --git a/src/platform/vulkan/vulkan_renderer.h b/src/platform/vulkan/vulkan_renderer.h index 97a4e38..68a1602 100644 --- a/src/platform/vulkan/vulkan_renderer.h +++ b/src/platform/vulkan/vulkan_renderer.h @@ -2,6 +2,7 @@ #include #include +#include // Live-window Vulkan backend: owns the instance, surface, device, swapchain, // render pass, framebuffers and per-frame synchronization, and drives the @@ -33,6 +34,14 @@ namespace Donut auto on_resize(int width, int height) -> void; + // Rebuilds the starfield environment cubemap from another equirect .hdr + // at runtime (device-idle teardown + rebuild + descriptor rewrite). + // No-op if path is already the active HDRI. + auto set_hdri(const std::string& path) -> void; + + // Filesystem path of the HDRI currently backing the cubemap. + auto current_hdri() const -> const std::string&; + private: struct Impl; Impl* m_impl = nullptr; -- cgit v1.3