3#include <litefx/app_api.hpp>
6struct LITEFX_APPMODEL_API
fmt::formatter<LiteFX::Platform> : formatter<string_view> {
7 template <
typename FormatContext>
8 auto format(LiteFX::Platform t, FormatContext& ctx)
const {
9 string_view name =
"Invalid";
11 case LiteFX::Platform::Win32: name =
"Win32";
break;
12 case LiteFX::Platform::Other: name =
"Other";
break;
13 case LiteFX::Platform::None: name =
"None";
break;
15 return formatter<string_view>::format(name, ctx);
20struct LITEFX_APPMODEL_API
fmt::formatter<LiteFX::BackendType> : formatter<string_view> {
21 template <
typename FormatContext>
22 auto format(LiteFX::BackendType t, FormatContext& ctx)
const {
23 string_view name =
"Invalid";
25 case LiteFX::BackendType::Rendering: name =
"Rendering";
break;
27 case LiteFX::BackendType::Other: name =
"Other";
break;
29 return formatter<string_view>::format(name, ctx);
Definition: app_formatters.hpp:6
auto format(LiteFX::BackendType t, FormatContext &ctx) const
Definition: app_formatters.hpp:22
auto format(LiteFX::Platform t, FormatContext &ctx) const
Definition: app_formatters.hpp:8