VideoCommon: pass the EFB buffer scale into the FramebufferManager instead of pulling it from config, in the future this will allow us to have multiple framebuffers

This commit is contained in:
iwubcode
2025-11-05 21:52:54 -06:00
parent 2170080f53
commit 2f20c12d82
5 changed files with 17 additions and 16 deletions
+4 -4
View File
@@ -85,10 +85,10 @@ public:
float EFBToScaledYf(float y) const;
// First-time setup.
bool Initialize();
bool Initialize(int efb_scale);
// Recreate EFB framebuffers, call when the EFB size (IR) changes.
void RecreateEFBFramebuffer();
void RecreateEFBFramebuffer(int efb_scale);
// Recompile shaders, use when MSAA mode changes.
void RecompileShaders();
@@ -160,7 +160,7 @@ protected:
bool needs_flush;
};
bool CreateEFBFramebuffer();
bool CreateEFBFramebuffer(int efb_scale);
void DestroyEFBFramebuffer();
bool CompileConversionPipelines();
@@ -189,7 +189,7 @@ protected:
void DrawPokeVertices(const EFBPokeVertex* vertices, u32 vertex_count,
const AbstractPipeline* pipeline);
std::tuple<u32, u32> CalculateTargetSize();
std::tuple<u32, u32> CalculateTargetSize(int efb_scale);
void DoLoadState(PointerWrap& p);
void DoSaveState(PointerWrap& p);