diff --git a/openVulkanoCpp/Extensions/FmtFormatter.hpp b/openVulkanoCpp/Extensions/FmtFormatter.hpp index 737ec30..48c22d0 100644 --- a/openVulkanoCpp/Extensions/FmtFormatter.hpp +++ b/openVulkanoCpp/Extensions/FmtFormatter.hpp @@ -323,6 +323,7 @@ struct fmt::formatter } }; +#ifdef USING_CUSTOM_FLOAT16 template<> struct fmt::formatter : fmt::formatter { @@ -332,6 +333,7 @@ struct fmt::formatter : fmt::formatter return fmt::formatter::format(static_cast(f), ctx); } }; +#endif template<> struct fmt::formatter : fmt::formatter diff --git a/openVulkanoCpp/Math/Float16.hpp b/openVulkanoCpp/Math/Float16.hpp index 160e6f4..8cc7531 100644 --- a/openVulkanoCpp/Math/Float16.hpp +++ b/openVulkanoCpp/Math/Float16.hpp @@ -18,6 +18,7 @@ #elif __has_keyword(__fp16) typedef __fp16 float16; #else +#define USING_CUSTOM_FLOAT16 class float16 {