Add renderdoc API support (#585)

* Add renderdoc API support

* FIx renderdoc include directory

* Fix RenderDoc linking

* Fix Renderdoc linking (again)

* Maybe fix renderdoc
This commit is contained in:
wheremyfoodat 2024-08-23 02:30:25 +00:00 committed by GitHub
parent 471bdd6ab9
commit 2754df9b94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 942 additions and 4 deletions

View file

@ -1,9 +1,10 @@
#include "panda_sdl/frontend_sdl.hpp"
#include "version.hpp"
#include <glad/gl.h>
#include "renderdoc.hpp"
#include "sdl_sensors.hpp"
#include "version.hpp"
FrontendSDL::FrontendSDL() : keyboardMappings(InputMappings::defaultKeyboardMappings()) {
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS) < 0) {
@ -140,6 +141,14 @@ void FrontendSDL::run() {
emu.reset(Emulator::ReloadOption::Reload);
break;
}
case SDLK_F11: {
if constexpr (Renderdoc::isSupported()) {
Renderdoc::triggerCapture();
}
break;
}
}
}
break;