aboutsummaryrefslogtreecommitdiff
path: root/src/platform/vulkan/vulkan_renderer.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-20 16:51:57 +0200
committerhachem <im@hachem.wtf>2026-08-20 16:51:57 +0200
commitca9b8beaf69f06cac9b91b66ccd03bb99f09dd22 (patch)
treed1c40b26920eb901ba980b146238399807823642 /src/platform/vulkan/vulkan_renderer.h
parent9a19ae463880e06bae84eb8ae1b7279595ecdc38 (diff)
[chore]: move imgui HDRI switching to vulkan
Diffstat (limited to 'src/platform/vulkan/vulkan_renderer.h')
-rw-r--r--src/platform/vulkan/vulkan_renderer.h9
1 files changed, 9 insertions, 0 deletions
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 <glm/glm.hpp>
#include <functional>
+#include <string>
// 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;