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