core,shader_recompiler: added const ref filesystem::path and removed if type size less 16 (#446)

This commit is contained in:
Herman Semenov 2024-08-16 08:36:05 +00:00 committed by GitHub
parent 3197ad336e
commit c1fb5d5bca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 13 additions and 13 deletions

View file

@ -226,7 +226,7 @@ struct fmt::formatter<Shader::Stage> {
constexpr auto parse(format_parse_context& ctx) {
return ctx.begin();
}
auto format(const Shader::Stage& stage, format_context& ctx) const {
auto format(const Shader::Stage stage, format_context& ctx) const {
constexpr static std::array names = {"fs", "vs", "gs", "es", "hs", "ls", "cs"};
return fmt::format_to(ctx.out(), "{}", names[static_cast<size_t>(stage)]);
}