summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureDecoder.h
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2022-01-12 17:28:17 -0800
committerPokechu22 <Pokechu022@gmail.com>2022-01-13 11:11:08 -0800
commitac46b91673adae121e48bb6beedfb5b61339c39b (patch)
treeefee3e23f3f347f7d6d116be15ed9e2d191599c3 /Source/Core/VideoCommon/TextureDecoder.h
parent78e43a44042e6407318970753df4d3b5b230e80c (diff)
Make all fmt::formatter constructors constexpr
Diffstat (limited to 'Source/Core/VideoCommon/TextureDecoder.h')
-rw-r--r--Source/Core/VideoCommon/TextureDecoder.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/TextureDecoder.h b/Source/Core/VideoCommon/TextureDecoder.h
index fdab2dc412..a00e95d8f2 100644
--- a/Source/Core/VideoCommon/TextureDecoder.h
+++ b/Source/Core/VideoCommon/TextureDecoder.h
@@ -41,7 +41,7 @@ struct fmt::formatter<TextureFormat> : EnumFormatter<TextureFormat::CMPR>
static constexpr array_type names = {"I4", "I8", "IA4", "IA8", "RGB565",
"RGB5A3", "RGBA8", nullptr, "C4", "C8",
"C14X2", nullptr, nullptr, nullptr, "CMPR"};
- formatter() : EnumFormatter(names) {}
+ constexpr formatter() : EnumFormatter(names) {}
};
static inline bool IsColorIndexed(TextureFormat format)
@@ -103,7 +103,7 @@ struct fmt::formatter<EFBCopyFormat> : EnumFormatter<EFBCopyFormat::GB8>
"R8/I8/Z8H", "G8/Z8M", "B8/Z8L", "RG8/Z16R (Note: G and R are reversed)",
"GB8/Z16L",
};
- formatter() : EnumFormatter(names) {}
+ constexpr formatter() : EnumFormatter(names) {}
};
enum class TLUTFormat
@@ -116,7 +116,7 @@ enum class TLUTFormat
template <>
struct fmt::formatter<TLUTFormat> : EnumFormatter<TLUTFormat::RGB5A3>
{
- formatter() : EnumFormatter({"IA8", "RGB565", "RGB5A3"}) {}
+ constexpr formatter() : EnumFormatter({"IA8", "RGB565", "RGB5A3"}) {}
};
static inline bool IsValidTLUTFormat(TLUTFormat tlutfmt)