Update fmt to allow for v11

Signed-off-by: swurl <swurl@swurl.xyz>
This commit is contained in:
crueter 2025-04-09 19:11:22 -04:00 committed by GitHub
parent 216ded6997
commit 9cef9f5dce
76 changed files with 106 additions and 110 deletions

View file

@ -3,7 +3,7 @@
#include <string_view>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/common_types.h"
#include "common/logging/log.h"

View file

@ -9,7 +9,7 @@
#include <string>
#include <vector>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/logging/log.h"
#include "common/polyfill_ranges.h"

View file

@ -5,7 +5,7 @@
#include <utility>
#include <vector>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/alignment.h"
#include "common/assert.h"

View file

@ -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);
}

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/assert.h"
#include "common/settings.h"

View file

@ -10,7 +10,7 @@
#include <utility>
#include <vector>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/common_types.h"
#include "common/fs/file.h"