mark format functions as const

This commit is contained in:
Samuliak 2024-10-05 08:04:46 +02:00
parent 509b880eec
commit c52427b676
No known key found for this signature in database
15 changed files with 27 additions and 27 deletions

View file

@ -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) {