| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <optional> |
| 7 |
#include <span> |
| 8 |
#include <string_view> |
| 9 |
#include <vector> |
| 10 |
|
| 11 |
#include "Common/CommonTypes.h" |
| 12 |
#include "Common/Matrix.h" |
| 13 |
#include "Common/SmallVector.h" |
| 14 |
#include "VideoCommon/Assets/TextureAsset.h" |
| 15 |
#include "VideoCommon/Resources/MaterialResource.h" |
| 16 |
#include "VideoCommon/ShaderGenCommon.h" |
| 17 |
|
| 18 |
namespace GraphicsModActionData |
| 19 |
{ |
| 20 |
struct DrawStarted |
| 21 |
{ |
| 22 |
const Common::SmallVector<u32, 8>& texture_units; |
| 23 |
bool* skip; |
| 24 |
std::optional<CustomPixelShader>* custom_pixel_shader; |
| 25 |
std::span<u8>* material_uniform_buffer; |
| 26 |
}; |
| 27 |
|
| 28 |
struct PreEFB |
| 29 |
{ |
| 30 |
u32 texture_width; |
| 31 |
u32 texture_height; |
| 32 |
bool* skip; |
| 33 |
u32* scaled_width; |
| 34 |
u32* scaled_height; |
| 35 |
}; |
| 36 |
|
| 37 |
struct PostEFB |
| 38 |
{ |
| 39 |
VideoCommon::MaterialResource* material = nullptr; |
| 40 |
}; |
| 41 |
|
| 42 |
struct Projection |
| 43 |
{ |
| 44 |
Common::Matrix44* matrix; |
| 45 |
}; |
| 46 |
struct TextureLoad |
| 47 |
{ |
| 48 |
std::string_view texture_name; |
| 49 |
}; |
| 50 |
struct TextureCreate |
| 51 |
{ |
| 52 |
std::string_view texture_name; |
| 53 |
u32 texture_width; |
| 54 |
u32 texture_height; |
| 55 |
std::vector<VideoCommon::CachedAsset<VideoCommon::TextureAsset>>* custom_textures; |
| 56 |
|
| 57 |
|
| 58 |
std::vector<VideoCommon::CachedAsset<VideoCommon::CustomAsset>>* additional_dependencies; |
| 59 |
}; |
| 60 |
} |