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

@@ -12,6 +12,7 @@
#include "Common/Matrix.h"
#include "Common/SmallVector.h"
#include "VideoCommon/Assets/TextureAsset.h"
#include "VideoCommon/Resources/MaterialResource.h"
#include "VideoCommon/ShaderGenCommon.h"
namespace GraphicsModActionData
@@ -24,7 +25,7 @@ struct DrawStarted
std::span<u8>* material_uniform_buffer;
};
struct EFB
struct PreEFB
{
u32 texture_width;
u32 texture_height;
@@ -33,6 +34,11 @@ struct EFB
u32* scaled_height;
};
struct PostEFB
{
VideoCommon::MaterialResource* material = nullptr;
};
struct Projection
{
Common::Matrix44* matrix;