mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-01-31 19:43:35 +00:00
Yellow squiggly lines begone! Done automatically on .cpp files through `run-clang-tidy`, with manual corrections to the mistakes. If an import is directly used, but is technically unnecessary since it's recursively imported by something else, it is *not* removed. The tool doesn't touch .h files, so I did some of them by hand while fixing errors due to old recursive imports. Not everything is removed, but the cleanup should be substantial enough. Because this done on Linux, code that isn't used on it is mostly untouched. (Hopefully no open PR is depending on these imports...)
55 lines
1.2 KiB
C++
55 lines
1.2 KiB
C++
// Copyright 2022 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <optional>
|
|
#include <span>
|
|
#include <string_view>
|
|
#include <vector>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
#include "Common/Matrix.h"
|
|
#include "Common/SmallVector.h"
|
|
#include "VideoCommon/Assets/TextureAsset.h"
|
|
#include "VideoCommon/ShaderGenCommon.h"
|
|
|
|
namespace GraphicsModActionData
|
|
{
|
|
struct DrawStarted
|
|
{
|
|
const Common::SmallVector<u32, 8>& texture_units;
|
|
bool* skip;
|
|
std::optional<CustomPixelShader>* custom_pixel_shader;
|
|
std::span<u8>* material_uniform_buffer;
|
|
};
|
|
|
|
struct EFB
|
|
{
|
|
u32 texture_width;
|
|
u32 texture_height;
|
|
bool* skip;
|
|
u32* scaled_width;
|
|
u32* scaled_height;
|
|
};
|
|
|
|
struct Projection
|
|
{
|
|
Common::Matrix44* matrix;
|
|
};
|
|
struct TextureLoad
|
|
{
|
|
std::string_view texture_name;
|
|
};
|
|
struct TextureCreate
|
|
{
|
|
std::string_view texture_name;
|
|
u32 texture_width;
|
|
u32 texture_height;
|
|
std::vector<VideoCommon::CachedAsset<VideoCommon::TextureAsset>>* custom_textures;
|
|
|
|
// Dependencies needed to reload the texture and trigger this create again
|
|
std::vector<VideoCommon::CachedAsset<VideoCommon::CustomAsset>>* additional_dependencies;
|
|
};
|
|
} // namespace GraphicsModActionData
|