VideoCommon: Add names for textures and shaders

This commit is contained in:
Pokechu22
2021-12-09 14:00:08 -08:00
parent 85d2ea0dd2
commit afd02b79a5
9 changed files with 146 additions and 46 deletions

View File

@ -5,6 +5,7 @@
#include <array>
#include <bitset>
#include <fmt/format.h>
#include <map>
#include <memory>
#include <optional>
@ -71,6 +72,23 @@ struct EFBCopyParams
bool copy_filter;
};
template <>
struct fmt::formatter<EFBCopyParams>
{
constexpr auto parse(format_parse_context& ctx) { return ctx.begin(); }
template <typename FormatContext>
auto format(const EFBCopyParams& uid, FormatContext& ctx)
{
std::string copy_format;
if (uid.copy_format == EFBCopyFormat::XFB)
copy_format = "XFB";
else
copy_format = fmt::to_string(uid.copy_format);
return format_to(ctx.out(), "format: {}, copy format: {}, depth: {}, yuv: {}, copy filter: {}",
uid.efb_format, copy_format, uid.depth, uid.yuv, uid.copy_filter);
}
};
// Reduced version of the full coefficient array, with a single value for each row.
struct EFBCopyFilterCoefficients
{