shader: GCC fmt 8.0.0 fixes

This commit is contained in:
lat9nq 2021-06-28 23:44:03 -04:00 committed by ameerj
parent b9069c7891
commit 2e5af95541
7 changed files with 19 additions and 16 deletions

View file

@ -244,8 +244,9 @@ std::string_view StageName(Stage stage) {
template <typename... Args>
void Name(EmitContext& ctx, Id object, std::string_view format_str, Args&&... args) {
ctx.Name(object,
fmt::format(format_str, StageName(ctx.stage), std::forward<Args>(args)...).c_str());
ctx.Name(object, fmt::format(fmt::runtime(format_str), StageName(ctx.stage),
std::forward<Args>(args)...)
.c_str());
}
void DefineConstBuffers(EmitContext& ctx, const Info& info, Id UniformDefinitions::*member_type,