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 @@
#pragma once
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/common_types.h"
#include "shader_recompiler/exception.h"
@ -319,7 +319,7 @@ struct fmt::formatter<Shader::IR::Reg> {
return ctx.begin();
}
template <typename FormatContext>
auto format(const Shader::IR::Reg& reg, FormatContext& ctx) {
auto format(const Shader::IR::Reg& reg, FormatContext& ctx) const {
if (reg == Shader::IR::Reg::RZ) {
return fmt::format_to(ctx.out(), "RZ");
} else if (static_cast<int>(reg) >= 0 && static_cast<int>(reg) < 255) {