Route render capture hooks through platform services

This commit is contained in:
2026-06-03 04:54:29 +02:00
parent 7a9b14a86f
commit beb7f717f1
10 changed files with 76 additions and 18 deletions

View File

@@ -13,6 +13,8 @@ void destroy_window();
void async_lock();
void async_unlock();
void win32_async_swap();
void win32_renderdoc_frame_start();
void win32_renderdoc_frame_end();
void win32_update_fps(int frames);
void win32_update_stylus(float dt);
@@ -201,6 +203,16 @@ public:
win32_async_swap();
}
void begin_render_capture_frame() override
{
win32_renderdoc_frame_start();
}
void end_render_capture_frame() override
{
win32_renderdoc_frame_end();
}
void update_platform_frame(float delta_time_seconds) override
{
win32_update_stylus(delta_time_seconds);