From bc360584a3a8a8902f50642496b2d1287e5088ac Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sat, 2 Jul 2022 14:49:51 -0500 Subject: VideoCommon: add structures to graphics mods to allow for future adding or removing parameters with less code overhead --- Source/Core/VideoCommon/TextureCacheBase.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp') diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 7e49df8040..a90efd15be 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -37,6 +37,7 @@ #include "VideoCommon/BPMemory.h" #include "VideoCommon/FramebufferManager.h" #include "VideoCommon/GraphicsModSystem/Runtime/FBInfo.h" +#include "VideoCommon/GraphicsModSystem/Runtime/GraphicsModActionData.h" #include "VideoCommon/HiresTextures.h" #include "VideoCommon/OpcodeDecoding.h" #include "VideoCommon/PixelShaderManager.h" @@ -2158,9 +2159,10 @@ void TextureCacheBase::CopyRenderTargetToTexture( else { bool skip = false; + GraphicsModActionData::EFB efb{tex_w, tex_h, &skip, &scaled_tex_w, &scaled_tex_h}; for (const auto action : g_renderer->GetGraphicsModManager().GetEFBActions(info)) { - action->OnEFB(&skip, tex_w, tex_h, &scaled_tex_w, &scaled_tex_h); + action->OnEFB(&efb); } if (skip == true) { -- cgit v1.2.3