aboutsummaryrefslogtreecommitdiff
path: root/src/platform/vulkan/vulkan_renderer.h
diff options
context:
space:
mode:
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;