From afd02b79a511f88ae8c7d0be0c49f529967cb243 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Thu, 9 Dec 2021 14:00:08 -0800 Subject: VideoCommon: Add names for textures and shaders --- Source/Core/VideoCommon/TextureCacheBase.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Source/Core/VideoCommon/TextureCacheBase.h') diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h index 3fa9b85aa0..692aab4916 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.h +++ b/Source/Core/VideoCommon/TextureCacheBase.h @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -71,6 +72,23 @@ struct EFBCopyParams bool copy_filter; }; +template <> +struct fmt::formatter +{ + constexpr auto parse(format_parse_context& ctx) { return ctx.begin(); } + template + 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 { -- cgit v1.2.3