diff --git a/openVulkanoCpp/Extensions/FmtFormatter.hpp b/openVulkanoCpp/Extensions/FmtFormatter.hpp index 0eb3276..2c3b9d2 100644 --- a/openVulkanoCpp/Extensions/FmtFormatter.hpp +++ b/openVulkanoCpp/Extensions/FmtFormatter.hpp @@ -15,6 +15,8 @@ #endif #include "Math/ByteSize.hpp" #include "Math/Math.hpp" +#include "Math/Range.hpp" +#include "Base/UUID.hpp" #include template<> struct fmt::formatter @@ -157,4 +159,36 @@ struct fmt::formatter> { return fmt::format_to(ctx.out(), "({}, {}, {}, {})", q.w, q.x, q.y, q.z); } +}; + +template +struct fmt::formatter> : fmt::formatter +{ + template + constexpr auto parse(ParseContext& ctx) + { + return ctx.begin(); + } + + template + auto format(const OpenVulkano::Math::Range& range, FormatContext& ctx) const + { + return fmt::format_to(ctx.out(), "[{}, {}]", range.min, range.max); + } +}; + +template<> +struct fmt::formatter : fmt::formatter +{ + template + constexpr auto parse(ParseContext& ctx) + { + return ctx.begin(); + } + + template + auto format(const OpenVulkano::UUID& uuid, FormatContext& ctx) const + { + return fmt::format_to(ctx.out(), "{}", uuid.string()); + } }; \ No newline at end of file