2022-07-02 19:49:51 +00:00
|
|
|
// Copyright 2022 Dolphin Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-10-15 19:54:21 +00:00
|
|
|
#include <array>
|
|
|
|
#include <optional>
|
2023-12-12 23:56:26 +00:00
|
|
|
#include <span>
|
2022-10-29 00:24:43 +00:00
|
|
|
#include <string_view>
|
2023-07-02 18:35:05 +00:00
|
|
|
#include <vector>
|
2022-10-29 00:24:43 +00:00
|
|
|
|
2022-07-02 19:49:51 +00:00
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
#include "Common/Matrix.h"
|
2023-12-18 05:37:23 +00:00
|
|
|
#include "Common/SmallVector.h"
|
2023-07-02 18:35:05 +00:00
|
|
|
#include "VideoCommon/Assets/TextureAsset.h"
|
2022-10-15 19:54:21 +00:00
|
|
|
#include "VideoCommon/PixelShaderGen.h"
|
2022-07-02 19:49:51 +00:00
|
|
|
|
|
|
|
namespace GraphicsModActionData
|
|
|
|
{
|
|
|
|
struct DrawStarted
|
|
|
|
{
|
2023-12-18 05:37:23 +00:00
|
|
|
const Common::SmallVector<u32, 8>& texture_units;
|
2022-07-02 19:49:51 +00:00
|
|
|
bool* skip;
|
2022-10-15 19:54:21 +00:00
|
|
|
std::optional<CustomPixelShader>* custom_pixel_shader;
|
2023-12-12 23:56:26 +00:00
|
|
|
std::span<u8>* material_uniform_buffer;
|
2022-07-02 19:49:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct EFB
|
|
|
|
{
|
|
|
|
u32 texture_width;
|
|
|
|
u32 texture_height;
|
|
|
|
bool* skip;
|
|
|
|
u32* scaled_width;
|
|
|
|
u32* scaled_height;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Projection
|
|
|
|
{
|
|
|
|
Common::Matrix44* matrix;
|
|
|
|
};
|
2022-10-29 00:24:43 +00:00
|
|
|
struct TextureLoad
|
|
|
|
{
|
|
|
|
std::string_view texture_name;
|
|
|
|
};
|
2023-06-21 00:26:53 +00:00
|
|
|
struct TextureCreate
|
|
|
|
{
|
2023-07-02 18:35:05 +00: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-21 00:26:53 +00:00
|
|
|
};
|
2022-07-02 19:49:51 +00:00
|
|
|
} // namespace GraphicsModActionData
|