debug: Add renderdoc capture hotkey
This commit is contained in:
parent
4c4208c8e9
commit
cc2c6d8805
12 changed files with 922 additions and 58 deletions
22
src/core/tools/renderdoc.h
Normal file
22
src/core/tools/renderdoc.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
struct RENDERDOC_API_1_6_0;
|
||||
|
||||
namespace Tools {
|
||||
|
||||
class RenderdocAPI {
|
||||
public:
|
||||
explicit RenderdocAPI();
|
||||
~RenderdocAPI();
|
||||
|
||||
void ToggleCapture();
|
||||
|
||||
private:
|
||||
RENDERDOC_API_1_6_0* rdoc_api{};
|
||||
bool is_capturing{false};
|
||||
};
|
||||
|
||||
} // namespace Tools
|
Loading…
Add table
Add a link
Reference in a new issue