mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-05-05 18:01:15 -04:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user