VideoCommon: Rename Renderer to EFBInterface.

This commit is contained in:
Jordan Woyak
2025-03-11 21:12:06 -05:00
parent de997d616f
commit 5b36c13bfb
28 changed files with 281 additions and 333 deletions

View File

@ -69,7 +69,7 @@ bool VideoBackend::Initialize(const WindowSystemInfo& wsi)
{
return InitializeShared(std::make_unique<NullGfx>(), std::make_unique<VertexManager>(),
std::make_unique<PerfQuery>(), std::make_unique<NullBoundingBox>(),
std::make_unique<NullRenderer>(), std::make_unique<TextureCache>());
std::make_unique<NullEFBInterface>(), std::make_unique<TextureCache>());
}
void VideoBackend::Shutdown()

View File

@ -3,7 +3,6 @@
#include "VideoBackends/Null/NullGfx.h"
#include "VideoBackends/Null/NullBoundingBox.h"
#include "VideoBackends/Null/NullTexture.h"
#include "VideoCommon/AbstractPipeline.h"
@ -92,6 +91,26 @@ NullGfx::CreateNativeVertexFormat(const PortableVertexDeclaration& vtx_decl)
return std::make_unique<NativeVertexFormat>(vtx_decl);
}
NullRenderer::~NullRenderer() = default;
void NullEFBInterface::ReinterpretPixelData(EFBReinterpretType convtype)
{
}
void NullEFBInterface::PokeColor(u16 x, u16 y, u32 color)
{
}
void NullEFBInterface::PokeDepth(u16 x, u16 y, u32 depth)
{
}
u32 NullEFBInterface::PeekColorInternal(u16 x, u16 y)
{
return 0;
}
u32 NullEFBInterface::PeekDepth(u16 x, u16 y)
{
return 0;
}
} // namespace Null

View File

@ -4,7 +4,7 @@
#pragma once
#include "VideoCommon/AbstractGfx.h"
#include "VideoCommon/RenderBase.h"
#include "VideoCommon/EFBInterface.h"
namespace Null
{
@ -38,16 +38,15 @@ public:
SurfaceInfo GetSurfaceInfo() const override { return {}; }
};
class NullRenderer final : public Renderer
class NullEFBInterface final : public EFBInterfaceBase
{
public:
NullRenderer() {}
~NullRenderer() override;
void ReinterpretPixelData(EFBReinterpretType convtype) override;
u32 AccessEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data) override { return 0; }
void PokeEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data) override {}
void PokeColor(u16 x, u16 y, u32 color) override;
void PokeDepth(u16 x, u16 y, u32 depth) override;
void ReinterpretPixelData(EFBReinterpretType convtype) override {}
u32 PeekColorInternal(u16 x, u16 y) override;
u32 PeekDepth(u16 x, u16 y) override;
};
} // namespace Null