Implement AbstractGfx for Software & Null

This commit is contained in:
Scott Mansell
2023-01-27 15:07:05 +13:00
parent f0336a3129
commit d37f83ffeb
15 changed files with 314 additions and 318 deletions

View File

@ -55,6 +55,8 @@ using ClearColor = std::array<float, 4>;
class AbstractGfx
{
public:
virtual ~AbstractGfx() = default;
virtual bool IsHeadless() const = 0;
virtual void SetPipeline(const AbstractPipeline* pipeline) {}

View File

@ -90,8 +90,8 @@ public:
float EFBToScaledXf(float x) const;
float EFBToScaledYf(float y) const;
virtual void ClearScreen(const MathUtil::Rectangle<int>& rc, bool colorEnable, bool alphaEnable,
bool zEnable, u32 color, u32 z);
void ClearScreen(const MathUtil::Rectangle<int>& rc, bool colorEnable, bool alphaEnable,
bool zEnable, u32 color, u32 z);
virtual void ReinterpretPixelData(EFBReinterpretType convtype);
void RenderToXFB(u32 xfbAddr, const MathUtil::Rectangle<int>& sourceRc, u32 fbStride,
u32 fbHeight, float Gamma = 1.0f);