VideoCommon: add structures to graphics mods to allow for future adding or removing parameters with less code overhead

This commit is contained in:
iwubcode
2022-07-02 14:49:51 -05:00
parent 6cf99195c6
commit bc360584a3
16 changed files with 145 additions and 81 deletions

View File

@ -0,0 +1,29 @@
// Copyright 2022 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include "Common/CommonTypes.h"
#include "Common/Matrix.h"
namespace GraphicsModActionData
{
struct DrawStarted
{
bool* skip;
};
struct EFB
{
u32 texture_width;
u32 texture_height;
bool* skip;
u32* scaled_width;
u32* scaled_height;
};
struct Projection
{
Common::Matrix44* matrix;
};
} // namespace GraphicsModActionData