Merge pull request #14234 from JoshuaVandaele/wunused-cpipeline

CustomPipeline: Remove unused functions
This commit is contained in:
JosJuice
2025-12-27 11:17:27 +01:00
committed by GitHub
2 changed files with 5 additions and 37 deletions

View File

@@ -3,35 +3,11 @@
#include "VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.h"
#include <algorithm>
#include <array>
#include <variant>
#include <memory>
#include <span>
#include "Common/Contains.h"
#include "Common/Logging/Log.h"
#include "Common/VariantUtil.h"
#include "VideoCommon/AbstractGfx.h"
namespace
{
bool IsQualifier(std::string_view value)
{
static constexpr std::array<std::string_view, 7> qualifiers = {
"attribute", "const", "highp", "lowp", "mediump", "uniform", "varying",
};
return Common::Contains(qualifiers, value);
}
bool IsBuiltInMacro(std::string_view value)
{
static constexpr std::array<std::string_view, 5> built_in = {
"__LINE__", "__FILE__", "__VERSION__", "GL_core_profile", "GL_compatibility_profile",
};
return Common::Contains(built_in, value);
}
} // namespace
#include "Common/CommonTypes.h"
#include "VideoCommon/Assets/CustomAssetLibrary.h"
void CustomPipeline::UpdatePixelData(std::shared_ptr<VideoCommon::CustomAssetLibrary>,
std::span<const u32>,

View File

@@ -4,18 +4,10 @@
#pragma once
#include <memory>
#include <optional>
#include <span>
#include <string>
#include <string_view>
#include <vector>
#include "VideoCommon/AbstractTexture.h"
#include "Common/CommonTypes.h"
#include "VideoCommon/Assets/CustomAssetLibrary.h"
#include "VideoCommon/Assets/MaterialAsset.h"
#include "VideoCommon/Assets/ShaderAsset.h"
#include "VideoCommon/Assets/TextureAsset.h"
#include "VideoCommon/ShaderGenCommon.h"
struct CustomPipeline
{