2013-10-12 17:02:21 +00:00
|
|
|
// Copyright (c) 2013- PPSSPP Project.
|
|
|
|
|
|
|
|
// 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
|
|
|
|
|
2016-10-12 09:32:24 +00:00
|
|
|
#include <functional>
|
|
|
|
|
2013-10-12 17:02:21 +00:00
|
|
|
#include "Common/CommonTypes.h"
|
2018-04-22 15:33:22 +00:00
|
|
|
#include "Core/Core.h"
|
2013-10-12 17:02:21 +00:00
|
|
|
#include "GPU/Common/GPUDebugInterface.h"
|
2022-02-13 18:22:59 +00:00
|
|
|
#include "GPU/GPUState.h"
|
2013-10-12 17:02:21 +00:00
|
|
|
|
|
|
|
namespace GPUStepping {
|
2018-09-01 16:41:20 +00:00
|
|
|
// Should be called from the emu thread.
|
|
|
|
// Begins stepping and increments the stepping counter while inside a lock.
|
|
|
|
bool EnterStepping();
|
2018-06-16 20:53:41 +00:00
|
|
|
bool SingleStep();
|
2014-06-13 15:35:12 +00:00
|
|
|
bool IsStepping();
|
2018-09-01 16:41:20 +00:00
|
|
|
int GetSteppingCounter();
|
2013-10-12 17:02:21 +00:00
|
|
|
|
2018-06-16 22:07:25 +00:00
|
|
|
bool GPU_GetOutputFramebuffer(const GPUDebugBuffer *&buffer);
|
2016-09-25 23:31:38 +00:00
|
|
|
bool GPU_GetCurrentFramebuffer(const GPUDebugBuffer *&buffer, GPUDebugFramebufferType type);
|
2013-10-12 17:02:21 +00:00
|
|
|
bool GPU_GetCurrentDepthbuffer(const GPUDebugBuffer *&buffer);
|
|
|
|
bool GPU_GetCurrentStencilbuffer(const GPUDebugBuffer *&buffer);
|
2022-10-11 05:35:42 +00:00
|
|
|
bool GPU_GetCurrentTexture(const GPUDebugBuffer *&buffer, int level, bool *isFramebuffer);
|
2016-01-10 17:25:19 +00:00
|
|
|
bool GPU_GetCurrentClut(const GPUDebugBuffer *&buffer);
|
2013-10-12 17:02:21 +00:00
|
|
|
bool GPU_SetCmdValue(u32 op);
|
2022-01-22 21:12:59 +00:00
|
|
|
bool GPU_FlushDrawing();
|
2013-10-12 17:02:21 +00:00
|
|
|
|
|
|
|
void ResumeFromStepping();
|
2018-06-11 21:54:42 +00:00
|
|
|
void ForceUnpause();
|
2022-02-13 18:22:59 +00:00
|
|
|
|
|
|
|
GPUgstate LastState();
|
2016-09-25 23:31:38 +00:00
|
|
|
};
|