2022-07-02 14:49:51 -05:00
|
|
|
// Copyright 2022 Dolphin Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-10-28 19:24:43 -05:00
|
|
|
#include <string_view>
|
2023-07-02 13:35:05 -05:00
|
|
|
#include <vector>
|
2022-10-28 19:24:43 -05:00
|
|
|
|
2022-07-02 14:49:51 -05:00
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
#include "Common/Matrix.h"
|
2023-07-02 13:35:05 -05:00
|
|
|
#include "VideoCommon/Assets/TextureAsset.h"
|
2022-07-02 14:49:51 -05:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
2022-10-28 19:24:43 -05:00
|
|
|
struct TextureLoad
|
|
|
|
{
|
|
|
|
std::string_view texture_name;
|
|
|
|
};
|
2023-06-20 19:26:53 -05:00
|
|
|
struct TextureCreate
|
|
|
|
{
|
2023-07-02 13:35:05 -05:00
|
|
|
std::string_view texture_name;
|
|
|
|
u32 texture_width;
|
|
|
|
u32 texture_height;
|
|
|
|
std::vector<VideoCommon::CachedAsset<VideoCommon::GameTextureAsset>>* custom_textures;
|
|
|
|
|
|
|
|
// Dependencies needed to reload the texture and trigger this create again
|
|
|
|
std::vector<VideoCommon::CachedAsset<VideoCommon::CustomAsset>>* additional_dependencies;
|
2023-06-20 19:26:53 -05:00
|
|
|
};
|
2022-07-02 14:49:51 -05:00
|
|
|
} // namespace GraphicsModActionData
|