Virtualize CheckGPUFeatures

This commit is contained in:
Henrik Rydgård 2018-02-26 11:35:37 +01:00
parent feb4694acc
commit a8a34fef9c
7 changed files with 10 additions and 4 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -70,6 +70,8 @@ public:
Draw::DrawContext *GetDrawContext() override {
return draw_;
}
virtual void CheckGPUFeatures() = 0;
bool IsReady() override {
return true;
}

View file

@ -26,6 +26,8 @@ class NullGPU : public GPUCommon {
public:
NullGPU();
~NullGPU();
void CheckGPUFeatures() override {}
void InitClear() override {}
void ExecuteOp(u32 op, u32 diff) override;

View file

@ -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;

View file

@ -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;