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/D3D11/GPU_D3D11.h
Views: 1401
// Copyright (c) 2017- 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 <string>20#include <vector>21#include <d3d11.h>2223#include "GPU/GPUCommonHW.h"24#include "GPU/D3D11/DrawEngineD3D11.h"25#include "GPU/Common/VertexDecoderCommon.h"2627class FramebufferManagerD3D11;28class ShaderManagerD3D11;29class TextureCacheD3D11;3031class GPU_D3D11 : public GPUCommonHW {32public:33GPU_D3D11(GraphicsContext *gfxCtx, Draw::DrawContext *draw);34~GPU_D3D11();3536u32 CheckGPUFeatures() const override;3738void GetStats(char *buffer, size_t bufsize) override;39void DeviceLost() override; // Only happens on Android. Drop all textures and shaders.40void DeviceRestore(Draw::DrawContext *draw) override;4142protected:43void FinishDeferred() override;4445private:46void BeginHostFrame() override;4748ID3D11Device *device_;49ID3D11DeviceContext *context_;5051FramebufferManagerD3D11 *framebufferManagerD3D11_;52TextureCacheD3D11 *textureCacheD3D11_;53DrawEngineD3D11 drawEngine_;54ShaderManagerD3D11 *shaderManagerD3D11_;55};565758