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/rendering/rhi.h | |
| parent | 6ee03a2ea3c764f0364b2e61beb6812226facd4c (diff) | |
feat: wire the scene into the simulation engine
Diffstat (limited to 'src/rendering/rhi.h')
| -rw-r--r-- | src/rendering/rhi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rendering/rhi.h b/src/rendering/rhi.h index 7684aa0..db0711b 100644 --- a/src/rendering/rhi.h +++ b/src/rendering/rhi.h @@ -102,6 +102,8 @@ namespace Donut::RHI virtual auto resize(int width, int height) -> void = 0; virtual auto wait_idle() -> void = 0; + virtual auto set_vsync(bool enabled) -> void { (void)enabled; } + virtual auto create_buffer(BufferType type, size_t size, const void* data = nullptr) -> Ref<Buffer> = 0; virtual auto create_texture(int width, int height, Format format, Filter filter, const void* data = nullptr) -> Ref<Texture> = 0; virtual auto create_cubemap_from_hdri(const std::string& equirect_path) -> Ref<Texture> = 0; |
