mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-05-08 13:14:49 +12:00
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:
parent
471bdd6ab9
commit
2754df9b94
10 changed files with 942 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue