diff options
author | Zephyron <zephyron@citron-emu.orgq> | 2025-02-16 13:38:05 +1000 |
---|---|---|
committer | Zephyron <zephyron@citron-emu.orgq> | 2025-02-16 13:38:05 +1000 |
commit | 7730d14b4a267c9579636a18af73d4252385e15f (patch) | |
tree | e7deef63da5ae4605a1c5098d26253953b73d067 /src/shader_recompiler/frontend/ir/opcodes.h | |
parent | 677b8f476a94ec1b42d9ba1b0eeb17a3a5859133 (diff) |
build: upgrade fmt and SDL2
Update fmt library to version 11.0.2 and make necessary adjustments:
- Replace fmt/format.h includes with fmt/ranges.h
- Add const qualifiers to formatter::format functions
- Update CMake to require fmt version 11
Additional dependency updates:
- Update SDL2 bundled version from 2.28.2 to 2.32.0
- Update catch2 to version 3.8.0
- Update vcpkg baseline to c82f74667287d3dc386bce81e44964370c91a289
Diffstat (limited to 'src/shader_recompiler/frontend/ir/opcodes.h')
-rw-r--r-- | src/shader_recompiler/frontend/ir/opcodes.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shader_recompiler/frontend/ir/opcodes.h b/src/shader_recompiler/frontend/ir/opcodes.h index e300714f3..6caf12af4 100644 --- a/src/shader_recompiler/frontend/ir/opcodes.h +++ b/src/shader_recompiler/frontend/ir/opcodes.h @@ -6,7 +6,7 @@ #include <algorithm> #include <array> -#include <fmt/format.h> +#include <fmt/ranges.h> #include "common/polyfill_ranges.h" #include "shader_recompiler/frontend/ir/type.h" @@ -54,7 +54,7 @@ constexpr Type F64x2{Type::F64x2}; constexpr Type F64x3{Type::F64x3}; constexpr Type F64x4{Type::F64x4}; -constexpr OpcodeMeta META_TABLE[]{ +constexpr OpcodeMeta META_TABLE[] { #define OPCODE(name_token, type_token, ...) \ { \ .name{#name_token}, \ @@ -103,7 +103,7 @@ struct fmt::formatter<Shader::IR::Opcode> { return ctx.begin(); } template <typename FormatContext> - auto format(const Shader::IR::Opcode& op, FormatContext& ctx) { + auto format(const Shader::IR::Opcode& op, FormatContext& ctx) const { return fmt::format_to(ctx.out(), "{}", Shader::IR::NameOf(op)); } }; |