add renderdoc api

This commit is contained in:
2019-11-16 17:32:06 +01:00
parent ddff7455e7
commit 3dae95023f
4 changed files with 53 additions and 3 deletions

View File

@@ -24,6 +24,8 @@ void async_lock();
void win32_async_swap();
void async_unlock();
void destroy_window();
void win32_renderdoc_frame_start();
void win32_renderdoc_frame_end();
#elif __LINUX__
std::string linux_home_path();
int mkpath(const std::string& dir, mode_t mode = DEFFILEMODE);
@@ -726,6 +728,20 @@ std::string App::res_to_string(int res)
return res_map_str[res_to_index(res)];
}
void App::renderdoc_frame_start()
{
#if __WIN__
win32_renderdoc_frame_start();
#endif
}
void App::renderdoc_frame_end()
{
#if __WIN__
win32_renderdoc_frame_end();
#endif
}
void App::rec_clear()
{
rec_stop();