diff options
| author | hachem <im@hachem.wtf> | 2026-08-23 22:39:47 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-23 22:39:47 +0200 |
| commit | 4a72c63f74bc055c29f397f54fca8e9613f4474d (patch) | |
| tree | 5b6f96f22a67f4e303ae72b6e9763d25a6dadd16 /src/platform/vulkan/vulkan_common.h | |
| parent | 6ee03a2ea3c764f0364b2e61beb6812226facd4c (diff) | |
feat: wire the scene into the simulation engine
Diffstat (limited to 'src/platform/vulkan/vulkan_common.h')
| -rw-r--r-- | src/platform/vulkan/vulkan_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/platform/vulkan/vulkan_common.h b/src/platform/vulkan/vulkan_common.h index 242ab9b..5689614 100644 --- a/src/platform/vulkan/vulkan_common.h +++ b/src/platform/vulkan/vulkan_common.h @@ -247,6 +247,7 @@ namespace Donut::RHI auto shutdown() -> void override; auto resize(int width, int height) -> void override { m_framebuffer_resized = true; m_width = width; m_height = height; } auto wait_idle() -> void override { if (m_device) vkDeviceWaitIdle(m_device); } + auto set_vsync(bool enabled) -> void override { m_vsync = enabled; m_framebuffer_resized = true; } auto create_buffer(BufferType type, size_t size, const void* data) -> Ref<Buffer> override; auto create_texture(int w, int h, Format format, Filter filter, const void* data) -> Ref<Texture> override; @@ -281,6 +282,7 @@ namespace Donut::RHI GLFWwindow* m_window = nullptr; int m_width = 0, m_height = 0; bool m_framebuffer_resized = false; + bool m_vsync = true; std::string m_gpu_name; VkInstance m_instance = VK_NULL_HANDLE; |
