2018-11-17 17:21:51 +00:00
|
|
|
// Copyright (c) 2017- PPSSPP Project.
|
2017-06-03 04:53:20 +00: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 17:58:28 +00:00
|
|
|
#include <functional>
|
2021-05-05 23:31:38 +00:00
|
|
|
|
2017-06-03 04:53:20 +00:00
|
|
|
#include "Common/CommonTypes.h"
|
2022-01-30 23:49:02 +00:00
|
|
|
|
|
|
|
class Path;
|
2017-06-03 04:53:20 +00:00
|
|
|
|
|
|
|
namespace GPURecord {
|
|
|
|
|
|
|
|
bool IsActive();
|
2018-09-01 16:45:35 +00:00
|
|
|
bool IsActivePending();
|
2018-09-01 17:58:28 +00:00
|
|
|
bool Activate();
|
|
|
|
// Call only if Activate() returns true.
|
2021-05-05 23:31:38 +00:00
|
|
|
void SetCallback(const std::function<void(const Path &)> callback);
|
2017-06-03 04:53:20 +00:00
|
|
|
|
|
|
|
void NotifyCommand(u32 pc);
|
2017-06-03 07:09:58 +00: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 17:21:51 +00:00
|
|
|
void NotifyDisplay(u32 addr, int stride, int fmt);
|
2022-08-24 02:20:14 +00:00
|
|
|
void NotifyBeginFrame();
|
2022-02-20 21:51:40 +00:00
|
|
|
void NotifyCPU();
|
2017-06-03 04:53:20 +00:00
|
|
|
|
|
|
|
};
|