diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2023-06-20 19:26:53 -0500 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2023-06-20 19:26:53 -0500 |
| commit | 1d767c3a5bad5fe02a9830da0317a9a336139664 (patch) | |
| tree | d35ec0fe29f7c81ed06c8a6bb0bdfc16006f6fe0 /Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsTarget.h | |
| parent | 5ad2d86cc7b0356b7ea04e5bc9e50013fdf5a3b4 (diff) | |
VideoCommon: add graphics mod callback interface for when a texture is created
Diffstat (limited to 'Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsTarget.h')
| -rw-r--r-- | Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsTarget.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsTarget.h b/Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsTarget.h index 67a349e78f..bde445258c 100644 --- a/Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsTarget.h +++ b/Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsTarget.h @@ -26,6 +26,10 @@ struct LoadTextureTarget final : public TextureTarget { }; +struct CreateTextureTarget final : public TextureTarget +{ +}; + struct FBTarget { u32 m_height = 0; @@ -47,8 +51,9 @@ struct ProjectionTarget ProjectionType m_projection_type = ProjectionType::Perspective; }; -using GraphicsTargetConfig = std::variant<DrawStartedTextureTarget, LoadTextureTarget, EFBTarget, - XFBTarget, ProjectionTarget>; +using GraphicsTargetConfig = + std::variant<DrawStartedTextureTarget, LoadTextureTarget, CreateTextureTarget, EFBTarget, + XFBTarget, ProjectionTarget>; std::optional<GraphicsTargetConfig> DeserializeTargetFromConfig(const picojson::object& obj); |
