add renderdoc api
This commit is contained in:
16
src/app.cpp
16
src/app.cpp
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user