aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/texture_cache/formatter.h
diff options
context:
space:
mode:
authorcrueter <swurl@swurl.xyz>2025-04-09 19:11:22 -0400
committerGitHub <noreply@github.com>2025-04-10 01:11:22 +0200
commit9cef9f5dce7c41c9ab2ea5b9b8a294228a535c4c (patch)
treedc718d8597f37f964e92dcd72010661f8083ee09 /src/video_core/texture_cache/formatter.h
parent216ded699791dcbfbfc122b6fc2b12d1252f15bb (diff)
Update fmt to allow for v11
Signed-off-by: swurl <swurl@swurl.xyz>
Diffstat (limited to 'src/video_core/texture_cache/formatter.h')
-rw-r--r--src/video_core/texture_cache/formatter.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/texture_cache/formatter.h b/src/video_core/texture_cache/formatter.h
index cabbfcb2dd..33c32645a2 100644
--- a/src/video_core/texture_cache/formatter.h
+++ b/src/video_core/texture_cache/formatter.h
@@ -5,7 +5,7 @@
#include <string>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "video_core/surface.h"
#include "video_core/texture_cache/types.h"
@@ -13,7 +13,7 @@
template <>
struct fmt::formatter<VideoCore::Surface::PixelFormat> : fmt::formatter<fmt::string_view> {
template <typename FormatContext>
- auto format(VideoCore::Surface::PixelFormat format, FormatContext& ctx) {
+ auto format(VideoCore::Surface::PixelFormat format, FormatContext& ctx) const {
using VideoCore::Surface::PixelFormat;
const string_view name = [format] {
switch (format) {
@@ -234,7 +234,7 @@ struct fmt::formatter<VideoCore::Surface::PixelFormat> : fmt::formatter<fmt::str
template <>
struct fmt::formatter<VideoCommon::ImageType> : fmt::formatter<fmt::string_view> {
template <typename FormatContext>
- auto format(VideoCommon::ImageType type, FormatContext& ctx) {
+ auto format(VideoCommon::ImageType type, FormatContext& ctx) const {
const string_view name = [type] {
using VideoCommon::ImageType;
switch (type) {
@@ -262,7 +262,7 @@ struct fmt::formatter<VideoCommon::Extent3D> {
}
template <typename FormatContext>
- auto format(const VideoCommon::Extent3D& extent, FormatContext& ctx) {
+ auto format(const VideoCommon::Extent3D& extent, FormatContext& ctx) const {
return fmt::format_to(ctx.out(), "{{{}, {}, {}}}", extent.width, extent.height,
extent.depth);
}