mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
VideoCommon: Add names for textures and shaders
This commit is contained in:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user