2018-11-17 09:21:51 -08:00
|
|
|
// Copyright (c) 2017- PPSSPP Project.
|
2017-06-02 21:53:20 -07:00
|
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
|
// the Free Software Foundation, version 2.0 or later versions.
|
|
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
// GNU General Public License 2.0 for more details.
|
|
|
|
|
|
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
|
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
|
|
// Official git repository and contact information can be found at
|
|
|
|
|
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2018-09-01 10:58:28 -07:00
|
|
|
#include <functional>
|
2021-05-06 01:31:38 +02:00
|
|
|
|
2017-06-02 21:53:20 -07:00
|
|
|
#include "Common/CommonTypes.h"
|
2022-01-30 15:49:02 -08:00
|
|
|
|
|
|
|
|
class Path;
|
2017-06-02 21:53:20 -07:00
|
|
|
|
|
|
|
|
namespace GPURecord {
|
|
|
|
|
|
|
|
|
|
bool IsActive();
|
2018-09-01 09:45:35 -07:00
|
|
|
bool IsActivePending();
|
2023-08-24 12:52:00 +02:00
|
|
|
bool RecordNextFrame(const std::function<void(const Path &)> callback);
|
|
|
|
|
void ClearCallback();
|
2017-06-02 21:53:20 -07:00
|
|
|
|
|
|
|
|
void NotifyCommand(u32 pc);
|
2017-06-03 00:09:58 -07:00
|
|
|
void NotifyMemcpy(u32 dest, u32 src, u32 sz);
|
|
|
|
|
void NotifyMemset(u32 dest, int v, u32 sz);
|
|
|
|
|
void NotifyUpload(u32 dest, u32 sz);
|
2018-11-17 09:21:51 -08:00
|
|
|
void NotifyDisplay(u32 addr, int stride, int fmt);
|
2022-08-23 19:20:14 -07:00
|
|
|
void NotifyBeginFrame();
|
2022-02-20 13:51:40 -08:00
|
|
|
void NotifyCPU();
|
2017-06-02 21:53:20 -07:00
|
|
|
|
|
|
|
|
};
|