// Copyright (c) 2013- PPSSPP Project.12// This program is free software: you can redistribute it and/or modify3// it under the terms of the GNU General Public License as published by4// the Free Software Foundation, version 2.0 or later versions.56// This program is distributed in the hope that it will be useful,7// but WITHOUT ANY WARRANTY; without even the implied warranty of8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9// GNU General Public License 2.0 for more details.1011// A copy of the GPL 2.0 should have been included with the program.12// If not, see http://www.gnu.org/licenses/1314// Official git repository and contact information can be found at15// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.1617#pragma once1819#include <functional>2021#include "Common/CommonTypes.h"22#include "Core/Core.h"23#include "GPU/Common/GPUDebugInterface.h"24#include "GPU/GPUState.h"2526namespace GPUStepping {27// Should be called from the emu thread.28// Begins stepping and increments the stepping counter while inside a lock.29bool EnterStepping(CoreState coreState);30bool IsStepping();31void ResumeFromStepping();3233int GetSteppingCounter();3435// Called from the emu thread.36bool ProcessStepping();3738// NOTE: These are only usable from non-EmuThread threads.39bool GPU_GetOutputFramebuffer(const GPUDebugBuffer *&buffer);40bool GPU_GetCurrentFramebuffer(const GPUDebugBuffer *&buffer, GPUDebugFramebufferType type);41bool GPU_GetCurrentDepthbuffer(const GPUDebugBuffer *&buffer);42bool GPU_GetCurrentStencilbuffer(const GPUDebugBuffer *&buffer);43bool GPU_GetCurrentTexture(const GPUDebugBuffer *&buffer, int level, bool *isFramebuffer);44bool GPU_GetCurrentClut(const GPUDebugBuffer *&buffer);45bool GPU_SetCmdValue(u32 op);46bool GPU_FlushDrawing();4748// Can be used to highlight differences in a debugger.49const GPUgstate &LastState();50};515253