mark format functions as const
This commit is contained in:
parent
6dbbe4225b
commit
80d83abcf3
@ -262,7 +262,7 @@ struct fmt::formatter<Common::PhysicalAddress> {
|
|||||||
return ctx.begin();
|
return ctx.begin();
|
||||||
}
|
}
|
||||||
template <typename FormatContext>
|
template <typename FormatContext>
|
||||||
auto format(const Common::PhysicalAddress& addr, FormatContext& ctx) {
|
auto format(const Common::PhysicalAddress& addr, FormatContext& ctx) const {
|
||||||
return fmt::format_to(ctx.out(), "{:#x}", static_cast<u64>(addr.GetValue()));
|
return fmt::format_to(ctx.out(), "{:#x}", static_cast<u64>(addr.GetValue()));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -273,7 +273,7 @@ struct fmt::formatter<Common::ProcessAddress> {
|
|||||||
return ctx.begin();
|
return ctx.begin();
|
||||||
}
|
}
|
||||||
template <typename FormatContext>
|
template <typename FormatContext>
|
||||||
auto format(const Common::ProcessAddress& addr, FormatContext& ctx) {
|
auto format(const Common::ProcessAddress& addr, FormatContext& ctx) const {
|
||||||
return fmt::format_to(ctx.out(), "{:#x}", static_cast<u64>(addr.GetValue()));
|
return fmt::format_to(ctx.out(), "{:#x}", static_cast<u64>(addr.GetValue()));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -284,7 +284,7 @@ struct fmt::formatter<Common::VirtualAddress> {
|
|||||||
return ctx.begin();
|
return ctx.begin();
|
||||||
}
|
}
|
||||||
template <typename FormatContext>
|
template <typename FormatContext>
|
||||||
auto format(const Common::VirtualAddress& addr, FormatContext& ctx) {
|
auto format(const Common::VirtualAddress& addr, FormatContext& ctx) const {
|
||||||
return fmt::format_to(ctx.out(), "{:#x}", static_cast<u64>(addr.GetValue()));
|
return fmt::format_to(ctx.out(), "{:#x}", static_cast<u64>(addr.GetValue()));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -184,7 +184,7 @@ struct fmt::formatter<Shader::Backend::GLASM::Id> {
|
|||||||
return ctx.begin();
|
return ctx.begin();
|
||||||
}
|
}
|
||||||
template <typename FormatContext>
|
template <typename FormatContext>
|
||||||
auto format(Shader::Backend::GLASM::Id id, FormatContext& ctx) {
|
auto format(Shader::Backend::GLASM::Id id, FormatContext& ctx) const {
|
||||||
return Shader::Backend::GLASM::FormatTo<true>(ctx, id);
|
return Shader::Backend::GLASM::FormatTo<true>(ctx, id);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -54,7 +54,7 @@ constexpr Type F64x2{Type::F64x2};
|
|||||||
constexpr Type F64x3{Type::F64x3};
|
constexpr Type F64x3{Type::F64x3};
|
||||||
constexpr Type F64x4{Type::F64x4};
|
constexpr Type F64x4{Type::F64x4};
|
||||||
|
|
||||||
constexpr OpcodeMeta META_TABLE[]{
|
constexpr OpcodeMeta META_TABLE[] {
|
||||||
#define OPCODE(name_token, type_token, ...) \
|
#define OPCODE(name_token, type_token, ...) \
|
||||||
{ \
|
{ \
|
||||||
.name{#name_token}, \
|
.name{#name_token}, \
|
||||||
|
|||||||
@ -262,7 +262,7 @@ struct fmt::formatter<VideoCommon::Extent3D> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename FormatContext>
|
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,
|
return fmt::format_to(ctx.out(), "{{{}, {}, {}}}", extent.width, extent.height,
|
||||||
extent.depth);
|
extent.depth);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user