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 | 90ff03c2fdffc09ddb26bdc7e32c3968a6d274fb (patch) | |
| tree | 2fdb1b6f54c4e380af43c75f1051935587a87faa /src/rendering/rhi.h | |
| parent | 5ea6c14c0e14bacee766ce1280ab2c71564e05ec (diff) | |
[feat]: wire in scene into the simulation engine
Diffstat (limited to 'src/rendering/rhi.h')
| -rw-r--r-- | src/rendering/rhi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rendering/rhi.h b/src/rendering/rhi.h index 2110926..e4e7e62 100644 --- a/src/rendering/rhi.h +++ b/src/rendering/rhi.h @@ -128,6 +128,10 @@ namespace Donut::RHI virtual auto resize(int width, int height) -> void = 0; virtual auto wait_idle() -> void = 0; + // Present pacing: GL toggles the swap interval; Vulkan swaps the present + // mode (FIFO vs IMMEDIATE) and rebuilds the swapchain. Default: no-op. + 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; |
