mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-05-12 03:02:01 -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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user