aboutsummaryrefslogtreecommitdiff
path: root/src/platform/vulkan/vulkan_common.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-23 22:39:47 +0200
committerhachem <im@hachem.wtf>2026-08-23 22:39:47 +0200
commit90ff03c2fdffc09ddb26bdc7e32c3968a6d274fb (patch)
tree2fdb1b6f54c4e380af43c75f1051935587a87faa /src/platform/vulkan/vulkan_common.h
parent5ea6c14c0e14bacee766ce1280ab2c71564e05ec (diff)
[feat]: wire in scene into the simulation engine
Diffstat (limited to 'src/platform/vulkan/vulkan_common.h')
-rw-r--r--src/platform/vulkan/vulkan_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/platform/vulkan/vulkan_common.h b/src/platform/vulkan/vulkan_common.h
index 0faa107..5ae257e 100644
--- a/src/platform/vulkan/vulkan_common.h
+++ b/src/platform/vulkan/vulkan_common.h
@@ -267,6 +267,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;
@@ -305,6 +306,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;