mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Virtualize CheckGPUFeatures
This commit is contained in:
parent
feb4694acc
commit
a8a34fef9c
7 changed files with 10 additions and 4 deletions
|
@ -36,7 +36,7 @@ public:
|
|||
GPU_D3D11(GraphicsContext *gfxCtx, Draw::DrawContext *draw);
|
||||
~GPU_D3D11();
|
||||
|
||||
void CheckGPUFeatures();
|
||||
void CheckGPUFeatures() override;
|
||||
void PreExecuteOp(u32 op, u32 diff) override;
|
||||
void ExecuteOp(u32 op, u32 diff) override;
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ public:
|
|||
GPU_DX9(GraphicsContext *gfxCtx, Draw::DrawContext *draw);
|
||||
~GPU_DX9();
|
||||
|
||||
void CheckGPUFeatures();
|
||||
void CheckGPUFeatures() override;
|
||||
void PreExecuteOp(u32 op, u32 diff) override;
|
||||
void ExecuteOp(u32 op, u32 diff) override;
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ public:
|
|||
~GPU_GLES();
|
||||
|
||||
// This gets called on startup and when we get back from settings.
|
||||
void CheckGPUFeatures();
|
||||
void CheckGPUFeatures() override;
|
||||
|
||||
bool IsReady() override;
|
||||
|
||||
|
|
|
@ -70,6 +70,8 @@ public:
|
|||
Draw::DrawContext *GetDrawContext() override {
|
||||
return draw_;
|
||||
}
|
||||
virtual void CheckGPUFeatures() = 0;
|
||||
|
||||
bool IsReady() override {
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -26,6 +26,8 @@ class NullGPU : public GPUCommon {
|
|||
public:
|
||||
NullGPU();
|
||||
~NullGPU();
|
||||
|
||||
void CheckGPUFeatures() override {}
|
||||
void InitClear() override {}
|
||||
void ExecuteOp(u32 op, u32 diff) override;
|
||||
|
||||
|
|
|
@ -52,6 +52,8 @@ class SoftGPU : public GPUCommon {
|
|||
public:
|
||||
SoftGPU(GraphicsContext *gfxCtx, Draw::DrawContext *_thin3D);
|
||||
~SoftGPU();
|
||||
|
||||
void CheckGPUFeatures() override {}
|
||||
void InitClear() override {}
|
||||
void ExecuteOp(u32 op, u32 diff) override;
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ public:
|
|||
~GPU_Vulkan();
|
||||
|
||||
// This gets called on startup and when we get back from settings.
|
||||
void CheckGPUFeatures();
|
||||
void CheckGPUFeatures() override;
|
||||
|
||||
// These are where we can reset command buffers etc.
|
||||
void BeginHostFrame() override;
|
||||
|
|
Loading…
Add table
Reference in a new issue