VideoCommon: update graphics mod action interface

* Add a 'AfterEFB' function to graphics mod action that can return a Material
* Rename previous EFB graphics mod function to 'BeforeEFB' to differentiate from 'AfterEFB'
* Rename previous XFB graphics mod function to 'BeforeXFB' to mirror EFB
This commit is contained in:
iwubcode
2025-11-17 18:29:48 -06:00
parent d16004c371
commit 6ba2d2e081
10 changed files with 27 additions and 14 deletions

View File

@@ -2258,16 +2258,16 @@ void TextureCacheBase::CopyRenderTargetToTexture(
{
for (const auto& action : g_graphics_mod_manager->GetXFBActions(info))
{
action->OnXFB();
action->BeforeXFB();
}
}
else
{
bool skip = false;
GraphicsModActionData::EFB efb{tex_w, tex_h, &skip, &scaled_tex_w, &scaled_tex_h};
GraphicsModActionData::PreEFB efb{tex_w, tex_h, &skip, &scaled_tex_w, &scaled_tex_h};
for (const auto& action : g_graphics_mod_manager->GetEFBActions(info))
{
action->OnEFB(&efb);
action->BeforeEFB(&efb);
}
if (skip == true)
{