mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-05-06 03:01:10 -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:
@@ -36,11 +36,17 @@ public:
|
||||
return;
|
||||
m_action_impl->OnDrawStarted(draw_started);
|
||||
}
|
||||
void OnEFB(GraphicsModActionData::EFB* efb) override
|
||||
void BeforeEFB(GraphicsModActionData::PreEFB* efb) override
|
||||
{
|
||||
if (!m_mod.m_enabled)
|
||||
return;
|
||||
m_action_impl->OnEFB(efb);
|
||||
m_action_impl->BeforeEFB(efb);
|
||||
}
|
||||
void AfterEFB(GraphicsModActionData::PostEFB* efb) override
|
||||
{
|
||||
if (!m_mod.m_enabled)
|
||||
return;
|
||||
m_action_impl->AfterEFB(efb);
|
||||
}
|
||||
void OnProjection(GraphicsModActionData::Projection* projection) override
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user