CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/GPU/Debugger/Stepping.h
Views: 1401
// 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();30bool SingleStep();31bool IsStepping();32int GetSteppingCounter();3334bool GPU_GetOutputFramebuffer(const GPUDebugBuffer *&buffer);35bool GPU_GetCurrentFramebuffer(const GPUDebugBuffer *&buffer, GPUDebugFramebufferType type);36bool GPU_GetCurrentDepthbuffer(const GPUDebugBuffer *&buffer);37bool GPU_GetCurrentStencilbuffer(const GPUDebugBuffer *&buffer);38bool GPU_GetCurrentTexture(const GPUDebugBuffer *&buffer, int level, bool *isFramebuffer);39bool GPU_GetCurrentClut(const GPUDebugBuffer *&buffer);40bool GPU_SetCmdValue(u32 op);41bool GPU_FlushDrawing();4243void ResumeFromStepping();44void ForceUnpause();4546GPUgstate LastState();47};484950